Commit 735fdd3e authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

adding new DrawAndEvalSample functions

parent 834b0974
......@@ -55,29 +55,65 @@ public:
Exit("Not implemented")
}
virtual T EvalSample(const Point &) {
virtual T EvalSample(const Point &x) {
Exit("Not implemented")
}
virtual T EvalSample(int, const Point &) {
virtual T EvalSample(int n, const Point &x) {
Exit("Not implemented")
}
virtual T EvalSample(double, const Point &) {
virtual T EvalSample(double t, const Point &x) {
Exit("Not implemented")
}
virtual T EvalSample(const cell &) {
virtual T EvalSample(const cell &c) {
Exit("Not implemented")
}
virtual T EvalSample(int, const cell &) {
virtual T EvalSample(int n, const cell &c) {
Exit("Not implemented")
}
virtual T EvalSample(double, const cell &) {
virtual T EvalSample(double t, const cell &c) {
Exit("Not implemented")
}
T DrawAndEvalSample(const SampleID &id) {
DrawSample(id);
return EvalSample();
}
T DrawAndEvalSample(const SampleID &id, const Point &x) {
DrawSample(id);
return EvalSample(x);
}
T DrawAndEvalSample(const SampleID &id, int n, const Point &x) {
DrawSample(id);
return EvalSample(n, x);
}
T DrawAndEvalSample(const SampleID &id, double t, const Point &x) {
DrawSample(id);
return EvalSample(t, x);
}
T DrawAndEvalSample(const SampleID &id, const cell &c) {
DrawSample(id);
return EvalSample(c);
}
T DrawAndEvalSample(const SampleID &id, int n, const cell &c) {
DrawSample(id);
return EvalSample(n, c);
}
T DrawAndEvalSample(const SampleID &id, double t, const cell &c) {
DrawSample(id);
return EvalSample(t, c);
}
};
class ScalarDummy : public SampleGenerator<Scalar> {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment