gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
PViewAsSimpleFunction.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef PVIEW_AS_SIMPLEFUNCTIONH
7 #define PVIEW_AS_SIMPLEFUNCTIONH
8 
9 #include "simpleFunction.h"
10 
11 class PView;
12 
13 class PViewEvaluator : public simpleFunction<double> {
15  int _step;
16 
17 public:
18  PViewEvaluator(PView *pv) : _pv(pv), _step(0) {}
19  double operator()(double x, double y, double z) const;
20  void setStep(int s) { _step = s; }
21 };
22 
23 #endif
PViewEvaluator
Definition: PViewAsSimpleFunction.h:13
PView
Definition: PView.h:27
PViewEvaluator::operator()
double operator()(double x, double y, double z) const
Definition: PViewAsSimpleFunction.cpp:10
PViewEvaluator::_step
int _step
Definition: PViewAsSimpleFunction.h:15
simpleFunction
Definition: GModel.h:30
PViewEvaluator::setStep
void setStep(int s)
Definition: PViewAsSimpleFunction.h:20
PViewEvaluator::PViewEvaluator
PViewEvaluator(PView *pv)
Definition: PViewAsSimpleFunction.h:18
PViewEvaluator::_pv
PView * _pv
Definition: PViewAsSimpleFunction.h:14
simpleFunction.h
z
const double z
Definition: GaussQuadratureQuad.cpp:56