67 #ifndef vtkAbstractInterpolatedVelocityField_h
68 #define vtkAbstractInterpolatedVelocityField_h
80 class vtkAbstractInterpolatedVelocityFieldDataSetsType;
82 #include "vtkFiltersFlowPathsModule.h"
99 vtkGetMacro( Caching,
bool );
107 vtkGetMacro( CacheHit,
int );
108 vtkGetMacro( CacheMiss,
int );
132 vtkGetMacro(VectorsType,
int);
161 vtkGetMacro( NormalizeVector,
bool );
170 vtkGetMacro(ForceSurfaceTangentVector,
bool);
178 vtkGetMacro(SurfaceDataset,
bool);
185 { this->Caching = from->
Caching; }
224 double LastPCoords[3];
236 vtkSetStringMacro( VectorsSelection );
277 {
return ( this->LastCellId != -1 ) ? this->GenCell : NULL; }
An abstract class for obtaining the interpolated velocity values at a point.
bool ForceSurfaceTangentVector
static const double SURFACE_TOLERANCE_SCALE
virtual int FunctionValues(vtkDataSet *ds, double *x, double *f)
Evaluate the velocity field f at point (x, y, z) in a specified dataset by invoking vtkDataSet::FindC...
int GetLastWeights(double *w)
Get the interpolation weights cached from last evaluation.
int GetLastLocalCoordinates(double pcoords[3])
virtual int FunctionValues(double *x, double *f)=0
Evaluate the velocity field f at point (x, y, z).
virtual bool FindAndUpdateCell(vtkDataSet *ds, double *x)
Try to find the cell closest to provided x point in provided dataset, By first testing inclusion in i...
vtkAbstractInterpolatedVelocityField()
void ClearLastCellId()
Set the last cell id to -1 to incur a global cell search for the next point.
void FastCompute(vtkDataArray *vectors, double f[3])
If all weights have been computed (parametric coords etc all valid), a scalar/vector can be quickly i...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool InterpolatePoint(vtkPointData *outPD, vtkIdType outIndex)
static const double TOLERANCE_SCALE
~vtkAbstractInterpolatedVelocityField()
virtual void CopyParameters(vtkAbstractInterpolatedVelocityField *from)
Import parameters.
virtual void SetLastCellId(vtkIdType c)
virtual bool CheckPCoords(double pcoords[3])
Check that all three pcoords are between 0 and 1 included.
vtkGenericCell * GetLastCell()
virtual void SetLastCellId(vtkIdType c, int dataindex)=0
Set the id of the most recently visited cell of a dataset.
void SelectVectors(int fieldAssociation, const char *fieldName)
the association type (see vtkDataObject::FieldAssociations) and the name of the velocity data field
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.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.