30#ifndef vtkGenericInterpolatedVelocityField_h
31#define vtkGenericInterpolatedVelocityField_h
33#include "vtkCommonDataModelModule.h"
36VTK_ABI_NAMESPACE_BEGIN
41class vtkGenericInterpolatedVelocityFieldDataSetsType;
55 using Superclass::FunctionValues;
102 vtkGetMacro(CacheHit,
int);
103 vtkGetMacro(CacheMiss,
int);
112 vtkGetStringMacro(VectorsSelection);
113 void SelectVectors(
const char* fieldName) { this->SetVectorsSelection(fieldName); }
139 double LastPCoords[3];
146 vtkSetStringMacro(VectorsSelection);
149 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).
void SelectVectors(const char *fieldName)
If you want to work with an arbitrary vector array, then set its name here.
~vtkGenericInterpolatedVelocityField() override
static vtkGenericInterpolatedVelocityField * New()
Construct a vtkGenericInterpolatedVelocityField with no initial data set.
void ClearLastCell()
Set the last cell id to -1 so that the next search does not start from the previous cell.
int FunctionValues(vtkGenericDataSet *dataset, double *x, double *f)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericCellIterator * GenCell
vtkGenericAdaptorCell * GetLastCell()
Return the cell cached from last evaluation.
vtkGenericInterpolatedVelocityField()
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