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