1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
// Gmsh - Copyright (C) 1997-2021 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#ifndef PVIEW_AS_SIMPLEFUNCTIONH
#define PVIEW_AS_SIMPLEFUNCTIONH
#include "simpleFunction.h"
class PView;
class PViewEvaluator : public simpleFunction<double> {
PView *_pv;
int _step;
public:
PViewEvaluator(PView *pv) : _pv(pv), _step(0) {}
double operator()(double x, double y, double z) const;
void setStep(int s) { _step = s; }
};
#endif
|