63 #ifndef vtkAbstractInterpolatedVelocityField_h
64 #define vtkAbstractInterpolatedVelocityField_h
67 #include "vtkFiltersFlowPathsModule.h"
74 VTK_ABI_NAMESPACE_BEGIN
103 INITIALIZE_ALL_DATASETS = 1,
122 virtual void Initialize(
124 vtkGetMacro(InitializationState,
int);
132 vtkSetMacro(Caching,
bool);
133 vtkGetMacro(Caching,
bool);
141 vtkGetMacro(CacheHit,
int);
142 vtkGetMacro(CacheMiss,
int);
158 virtual void SetLastCellId(
vtkIdType c,
int dataindex) = 0;
165 vtkGetStringMacro(VectorsSelection);
166 vtkGetMacro(VectorsType,
int);
173 void SelectVectors(
int fieldAssociation,
const char* fieldName);
193 vtkSetMacro(NormalizeVector,
bool);
194 vtkGetMacro(NormalizeVector,
bool);
205 vtkSetMacro(ForceSurfaceTangentVector,
bool);
206 vtkGetMacro(ForceSurfaceTangentVector,
bool);
214 vtkSetMacro(SurfaceDataset,
bool);
215 vtkGetMacro(SurfaceDataset,
bool);
226 using Superclass::FunctionValues;
242 int GetLastWeights(
double* w);
243 int GetLastLocalCoordinates(
double pcoords[3]);
256 "GetFindCellStrategy() always returns
nullptr. Use GetCellLocator() instead.")
257 virtual vtkFindCellStrategy* GetFindCellStrategy() {
return nullptr; }
286 double LastPCoords[3];
288 double LastClosestPoint[3];
322 std::vector<vtkDataSetInformation>::iterator GetDataSetInfo(
vtkDataSet* dataset);
329 vtkSetStringMacro(VectorsSelection);
368 return (this->LastCellId != -1) ? this->CurrentCell.
Get() :
nullptr;
381 size_t GetDataSetsInfoSize();
389 VTK_ABI_NAMESPACE_END
A helper class for interpolating between times during particle tracing.
represent and manipulate point attribute data
vtkAbstractCellLocator * CellLocator
Define a Cell Locator to perform FindCell(), keep track of them (and other cached information) associ...
static const double TOLERANCE_SCALE
abstract class to specify dataset behavior
T * Get() const noexcept
Get a raw pointer to the contained object.
std::vector< vtkDataSetInformation > DataSetsInfo
Define a Cell Locator to perform FindCell(), keep track of them (and other cached information) associ...
an abstract base class for locators which find cells
An abstract class for obtaining the interpolated velocity values at a point.
provides thread-safe access to cells
virtual int SelfInitialize()
These methods pertain to initializing the vector field by subclasses (which may have special initiali...
helper class to manage the vtkPointSet::FindCell() method
vtkNew< vtkGenericCell > CurrentCell
abstract superclass for composite (multi-block or AMR) datasets
void ClearLastCellId()
Set the last cell id to -1 to incur a global cell search for the next point.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
VelocityFieldInitializationState
list of point or cell ids
abstract superclass for arrays of numeric data
static const double SURFACE_TOLERANCE_SCALE
vtkGenericCell * GetLastCell()
If all weights have been computed (parametric coords etc all valid), a scalar/vector can be quickly i...
Abstract interface for sets of functions.
virtual int FunctionValues(double *x, double *f)
Evaluate functions at x_j.
std::vector< double > Weights
bool ForceSurfaceTangentVector
virtual void SetLastCellId(vtkIdType c)
Get/Set the id of the cell cached from last evaluation.
vtkNew< vtkIdList > PointIds
int InitializationState
Make sure the velocity field is initialized: record the initialization cellLocator.
bool InterpolatePoint(vtkPointData *outPD1, vtkPointData *outPD2, vtkIdType outIndex)
general representation of visualization data
#define VTK_DEPRECATED_IN_9_7_0(reason)