Go to the documentation of this file.
44 #ifndef vtkCachingInterpolatedVelocityField_h
45 #define vtkCachingInterpolatedVelocityField_h
47 #include "vtkFiltersFlowPathsModule.h"
97 vtkGetStringMacro(VectorsSelection);
99 {this->SetVectorsSelection(fieldName);}
129 vtkGetMacro(CellCacheHit,
int);
130 vtkGetMacro(DataSetCacheHit,
int);
131 vtkGetMacro(CacheMiss,
int);
150 vtkSetStringMacro(VectorsSelection);
183 #ifndef DOXYGEN_SHOULD_SKIP_THIS
194 float *VelocityFloat;
195 double *VelocityDouble;
199 IVFDataSetInfo(
const IVFDataSetInfo &ivfci);
200 IVFDataSetInfo &operator=(
const IVFDataSetInfo &ivfci);
203 static const double TOLERANCE_SCALE;
virtual void SetDataSet(int I, vtkDataSet *dataset, bool staticdataset, vtkAbstractCellLocator *locator)
Add a dataset used by the interpolation function evaluation.
Abstract interface for sets of functions.
int InsideTest(IVFDataSetInfo *cache, double *x)
represent and manipulate point attribute data
void SelectVectors(const char *fieldName)
bool InterpolatePoint(vtkCachingInterpolatedVelocityField *inCIVF, vtkPointData *outPD, vtkIdType outIndex)
~vtkCachingInterpolatedVelocityField() override
virtual int InsideTest(double *x)
abstract superclass for arrays of numeric data
std::vector< double > Weights
void FastCompute(IVFDataSetInfo *cache, double f[3])
If all weights have been computed (parametric coords etc all valid) then we can quickly interpolate a...
vtkCachingInterpolatedVelocityField()
static vtkCachingInterpolatedVelocityField * New()
Construct a vtkCachingInterpolatedVelocityField with no initial data set.
void ClearLastCellInfo()
Set LastCellId to -1 and Cache to nullptr so that the next search does not start from the previous ce...
Interface for obtaining interpolated velocity values.
int FunctionValues(IVFDataSetInfo *cache, double *x, double *f)
int GetLastWeights(double *w)
Returns the interpolation weights/pcoords cached from last evaluation if the cached cell is valid (re...
a simple class to control print indentation
int FunctionValues(double *x, double *f) override
Evaluate the velocity field, f={u,v,w}, at {x, y, z}.
int GetLastLocalCoordinates(double pcoords[3])
void SetLastCellInfo(vtkIdType c, int datasetindex)
Set LastCellId to c and LastCacheIndex datasetindex, cached from last evaluation.
an abstract base class for locators which find cells
abstract class to specify dataset behavior
vtkGenericCell * TempCell
A helper class for interpolating between times during particle tracing.
provides thread-safe access to cells
vtkGenericCell * GetLastCell()
bool InterpolatePoint(vtkPointData *outPD, vtkIdType outIndex)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.