44#ifndef vtkCachingInterpolatedVelocityField_h
45#define vtkCachingInterpolatedVelocityField_h
47#include "vtkFiltersFlowPathsModule.h"
79 using Superclass::FunctionValues;
101 vtkGetStringMacro(VectorsSelection);
102 void SelectVectors(
const char* fieldName) { this->SetVectorsSelection(fieldName); }
132 vtkGetMacro(CellCacheHit,
int);
133 vtkGetMacro(DataSetCacheHit,
int);
134 vtkGetMacro(CacheMiss,
int);
153 vtkSetStringMacro(VectorsSelection);
186#ifndef DOXYGEN_SHOULD_SKIP_THIS
197 float* VelocityFloat;
198 double* VelocityDouble;
202 IVFDataSetInfo(
const IVFDataSetInfo& ivfci);
203 IVFDataSetInfo& operator=(
const IVFDataSetInfo& ivfci);
207 static const double TOLERANCE_SCALE;
an abstract base class for locators which find cells
Interface for obtaining interpolated velocity values.
~vtkCachingInterpolatedVelocityField() override
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)
If all weights have been computed (parametric coords etc all valid) then we can quickly interpolate a...
vtkGenericCell * GetLastCell()
If all weights have been computed (parametric coords etc all valid) then we can quickly interpolate a...
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()
int FunctionValues(double *x, double *f) override
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 nullptr so that the next search does not start from the previous ce...
int GetLastLocalCoordinates(double pcoords[3])
Returns the interpolation weights/pcoords cached from last evaluation if the cached cell is valid (re...
virtual int InsideTest(double *x)
Evaluate the velocity field, f={u,v,w}, at {x, y, z}.
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)
If all weights have been computed (parametric coords etc all valid) then we can quickly interpolate a...
void SelectVectors(const char *fieldName)
If you want to work with an arbitrary vector array, then set its name here.
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.
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray