66 #ifndef __vtkAbstractInterpolatedVelocityField_h
67 #define __vtkAbstractInterpolatedVelocityField_h
69 #include "vtkFunctionSet.h"
80 class vtkAbstractInterpolatedVelocityFieldDataSetsType;
82 #include "vtkFiltersFlowPathsModule.h"
88 void PrintSelf( ostream & os, vtkIndent indent );
97 vtkSetMacro( Caching,
bool );
98 vtkGetMacro( Caching,
bool );
104 vtkGetMacro( CacheHit,
int );
105 vtkGetMacro( CacheMiss,
int );
108 vtkGetObjectMacro( LastDataSet, vtkDataSet );
112 vtkGetMacro( LastCellId, vtkIdType );
117 virtual void SetLastCellId( vtkIdType c,
int dataindex ) = 0;
122 vtkGetStringMacro( VectorsSelection );
123 vtkGetMacro(VectorsType,
int);
128 void SelectVectors(
int fieldAssociation,
const char * fieldName );
148 vtkSetMacro( NormalizeVector,
bool );
149 vtkGetMacro( NormalizeVector,
bool );
155 { this->Caching = from->
Caching; }
160 virtual int FunctionValues(
double * x,
double * f ) = 0;
169 int GetLastWeights(
double * w );
170 int GetLastLocalCoordinates(
double pcoords[3] );
187 double LastPCoords[3];
196 vtkSetStringMacro( VectorsSelection );
207 virtual int FunctionValues( vtkDataSet * ds,
double * x,
double * f );
216 void FastCompute( vtkDataArray * vectors,
double f[3] );
219 {
return ( this->LastCellId != -1 ) ? this->GenCell : NULL; }
A helper class for interpolating between times during particle tracing.
static const double TOLERANCE_SCALE
An abstract class for obtaining the interpolated velocity values at a point.
virtual void CopyParameters(vtkAbstractInterpolatedVelocityField *from)
vtkGenericCell * GetLastCell()
virtual void SetLastCellId(vtkIdType c)
bool InterpolatePoint(vtkPointData *outPD1, vtkPointData *outPD2, vtkIdType outIndex)