Section: Visualization Toolkit Parallel Classes
To create an instance of class vtkCachingInterpolatedVelocityField, simply invoke its constructor as follows
obj = vtkCachingInterpolatedVelocityField
obj
is an instance of the vtkCachingInterpolatedVelocityField class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkCachingInterpolatedVelocityField = obj.NewInstance ()
vtkCachingInterpolatedVelocityField = obj.SafeDownCast (vtkObject o)
int = obj.FunctionValues (double x, double f)
- Evaluate the velocity field, f={u,v,w}, at {x, y, z}.
returns 1 if valid, 0 if test failed
int = obj.InsideTest (double x)
- Evaluate the velocity field, f={u,v,w}, at {x, y, z}.
returns 1 if valid, 0 if test failed
obj.SetDataSet (int I, vtkDataSet dataset, bool staticdataset, vtkAbstractCellLocator locator)
- Add a dataset used by the interpolation function evaluation.
string = obj.GetVectorsSelection ()
- If you want to work with an arbitrary vector array, then set its name
here. By default this in NULL and the filter will use the active vector
array.
obj.SelectVectors (string fieldName)
- Return the cell id cached from last evaluation.
obj.SetLastCellInfo (vtkIdType c, int datasetindex)
- Return the cell id cached from last evaluation.
obj.ClearLastCellInfo ()
- Set the last cell id to -1 so that the next search does not
start from the previous cell
int = obj.GetLastWeights (double w)
- Returns the interpolation weights/pcoords cached from last evaluation
if the cached cell is valid (returns 1). Otherwise, it does not
change w and returns 0.
int = obj.GetLastLocalCoordinates (double pcoords[3])
- Returns the interpolation weights/pcoords cached from last evaluation
if the cached cell is valid (returns 1). Otherwise, it does not
change w and returns 0.
int = obj.GetCellCacheHit ()
- Caching statistics.
int = obj.GetDataSetCacheHit ()
- Caching statistics.
int = obj.GetCacheMiss ()
- Caching statistics.