Section: Visualization Toolkit Filtering Classes
To create an instance of class vtkGenericInterpolatedVelocityField, simply invoke its constructor as follows
obj = vtkGenericInterpolatedVelocityField
obj
is an instance of the vtkGenericInterpolatedVelocityField class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGenericInterpolatedVelocityField = obj.NewInstance ()
vtkGenericInterpolatedVelocityField = obj.SafeDownCast (vtkObject o)
int = obj.FunctionValues (double x, double f)
- Evaluate the velocity field, f, at (x, y, z, t).
For now, t is ignored.
obj.AddDataSet (vtkGenericDataSet dataset)
- Add a dataset used for the implicit function evaluation.
If more than one dataset is added, the evaluation point is
searched in all until a match is found. THIS FUNCTION
DOES NOT CHANGE THE REFERENCE COUNT OF dataset FOR THREAD
SAFETY REASONS.
obj.ClearLastCell ()
- Set the last cell id to -1 so that the next search does not
start from the previous cell
vtkGenericAdaptorCell = obj.GetLastCell ()
- Return the cell cached from last evaluation.
int = obj.GetLastLocalCoordinates (double pcoords[3])
- Returns the interpolation weights cached from last evaluation
if the cached cell is valid (returns 1). Otherwise, it does not
change w and returns 0.
int = obj.GetCaching ()
- Turn caching on/off.
obj.SetCaching (int )
- Turn caching on/off.
obj.CachingOn ()
- Turn caching on/off.
obj.CachingOff ()
- Turn caching on/off.
int = obj.GetCacheHit ()
- Caching statistics.
int = obj.GetCacheMiss ()
- Caching statistics.
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)
- Returns the last dataset that was visited. Can be used
as a first guess as to where the next point will be as
well as to avoid searching through all datasets to get
more information about the point.
vtkGenericDataSet = obj.GetLastDataSet ()
- Returns the last dataset that was visited. Can be used
as a first guess as to where the next point will be as
well as to avoid searching through all datasets to get
more information about the point.
obj.CopyParameters (vtkGenericInterpolatedVelocityField from)
- Copy the user set parameters from source. This copies
the Caching parameters. Sub-classes can add more after
chaining.