42 #ifndef vtkGenericInterpolatedVelocityField_h
43 #define vtkGenericInterpolatedVelocityField_h
45 #include "vtkCommonDataModelModule.h"
52 class vtkGenericInterpolatedVelocityFieldDataSetsType;
66 using Superclass::FunctionValues;
113 vtkGetMacro(CacheHit,
int);
114 vtkGetMacro(CacheMiss,
int);
123 vtkGetStringMacro(VectorsSelection);
124 void SelectVectors(
const char* fieldName) { this->SetVectorsSelection(fieldName); }
150 double LastPCoords[3];
157 vtkSetStringMacro(VectorsSelection);
160 vtkGenericInterpolatedVelocityFieldDataSetsType*
DataSets;
Abstract interface for sets of functions.
iterator used to traverse cells
defines dataset interface
Interface for obtaining interpolated velocity values.
virtual void AddDataSet(vtkGenericDataSet *dataset)
Add a dataset used for the implicit function evaluation.
vtkGenericDataSet * LastDataSet
int FunctionValues(double *x, double *f) override
Evaluate the velocity field, f, at (x, y, z, t).
int FunctionValues(vtkGenericDataSet *ds, double *x, double *f)
void SelectVectors(const char *fieldName)
~vtkGenericInterpolatedVelocityField() override
void ClearLastCell()
Set the last cell id to -1 so that the next search does not start from the previous cell.
static vtkGenericInterpolatedVelocityField * New()
Construct a vtkGenericInterpolatedVelocityField with no initial data set.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericCellIterator * GenCell
vtkGenericInterpolatedVelocityField()
vtkGenericAdaptorCell * GetLastCell()
Return the cell cached from last evaluation.
static const double TOLERANCE_SCALE
virtual void CopyParameters(vtkGenericInterpolatedVelocityField *from)
Copy the user set parameters from source.
vtkGenericInterpolatedVelocityFieldDataSetsType * DataSets
int GetLastLocalCoordinates(double pcoords[3])
Returns the interpolation weights cached from last evaluation if the cached cell is valid (returns 1)...
a simple class to control print indentation