29 #ifndef NEMOSYS_SIZEFIELDGEN_H_ 30 #define NEMOSYS_SIZEFIELDGEN_H_ 32 #include <vtkDataArray.h> 33 #include <vtkDataSet.h> 34 #include <vtkSmartPointer.h> 36 #include "nemosys_export.h" 44 SizeFieldBase() : ds(nullptr), dev_mult(1.5), maxIsmin(true), sizeFactor(1.) {
45 std::cout <<
"SizeFieldBase constructed" << std::endl;
47 SizeFieldBase(vtkDataSet *_ds,
int arrayID,
double _dev_mult,
bool _maxIsmin,
48 const std::string &arrName);
51 std::cout <<
"SizeFieldBase destroyed" << std::endl;
60 static SizeFieldBase *Create(vtkDataSet *_dataSet,
const std::string &method,
61 int arrayID,
double _dev_mult,
bool _maxIsmin,
62 double _sizeFactor = 1.0,
int _order = 1);
63 static std::unique_ptr<SizeFieldBase> CreateUnique(
64 vtkDataSet *_dataSet,
const std::string &method,
int arrayID,
65 double _dev_mult,
bool _maxIsmin,
double _sizeFactor = 1.0,
71 virtual void computeSizeField(vtkDataArray *da) = 0;
76 vtkSmartPointer<vtkDataSet>
ds;
79 vtkSmartPointer<vtkDataArray>
da;
87 void mutateValues(std::vector<double> &values)
const;
93 #endif // NEMOSYS_SIZEFIELDGEN_H_ vtkSmartPointer< vtkDataSet > ds
vtkSmartPointer< vtkDataArray > da
void setSizeFactor(double sf)