VTK
|
A concrete class for obtaining the interpolated velocity values at a point. More...
#include <vtkInterpolatedVelocityField.h>
Public Types | |
typedef vtkCompositeInterpolatedVelocityField | Superclass |
![]() | |
typedef vtkAbstractInterpolatedVelocityField | Superclass |
![]() | |
typedef vtkFunctionSet | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkInterpolatedVelocityField * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | AddDataSet (vtkDataSet *dataset) |
virtual int | FunctionValues (double *x, double *f) |
virtual int | SnapPointOnCell (double *pOrigin, double *pProj) |
virtual void | SetLastCellId (vtkIdType c, int dataindex) |
virtual void | SetLastCellId (vtkIdType c) |
![]() | |
vtkCompositeInterpolatedVelocityField * | NewInstance () const |
virtual int | GetLastDataSetIndex () |
virtual vtkDataSet * | GetLastDataSet () |
![]() | |
vtkAbstractInterpolatedVelocityField * | NewInstance () const |
void | SelectVectors (int fieldAssociation, const char *fieldName) |
void | ClearLastCellId () |
virtual void | SetCaching (bool) |
virtual bool | GetCaching () |
virtual int | GetCacheHit () |
virtual int | GetCacheMiss () |
virtual vtkIdType | GetLastCellId () |
virtual char * | GetVectorsSelection () |
virtual int | GetVectorsType () |
virtual void | SetNormalizeVector (bool) |
virtual bool | GetNormalizeVector () |
virtual void | SetForceSurfaceTangentVector (bool) |
virtual bool | GetForceSurfaceTangentVector () |
virtual void | SetSurfaceDataset (bool) |
virtual bool | GetSurfaceDataset () |
virtual void | CopyParameters (vtkAbstractInterpolatedVelocityField *from) |
int | GetLastWeights (double *w) |
int | GetLastLocalCoordinates (double pcoords[3]) |
![]() | |
vtkFunctionSet * | NewInstance () const |
virtual int | GetNumberOfFunctions () |
virtual int | GetNumberOfIndependentVariables () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkInterpolatedVelocityField * | SafeDownCast (vtkObjectBase *o) |
static vtkInterpolatedVelocityField * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkCompositeInterpolatedVelocityField * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractInterpolatedVelocityField * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkFunctionSet * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
A concrete class for obtaining the interpolated velocity values at a point.
vtkInterpolatedVelocityField acts as a continuous velocity field via cell interpolation on a vtkDataSet, NumberOfIndependentVariables = 4 (x,y,z,t) and NumberOfFunctions = 3 (u,v,w). As a concrete sub-class of vtkCompositeInterpolatedVelocityField, this class adopts two levels of cell caching for faster though less robust cell location than its sibling class vtkCellLocatorInterpolatedVelocityField. Level #0 begins with intra-cell caching. Specifically, if the previous cell is valid and the nex point is still within it, ( vtkCell::EvaluatePosition() returns 1, coupled with the new parametric coordinates and weights ), the function values are interpolated and vtkCell::EvaluatePosition() is invoked only. If it fails, level #1 follows by inter-cell location of the target cell (that contains the next point). By inter-cell, the previous cell gives an important clue / guess or serves as an immediate neighbor to aid in the location of the target cell (as is typically the case with integrating a streamline across cells) by means of vtkDataSet:: FindCell(). If this still fails, a global cell search is invoked via vtkDataSet::FindCell().
Regardless of inter-cell or global search, vtkPointLocator is employed as a crucial tool underlying the cell locator. The use of vtkPointLocator casues vtkInterpolatedVelocityField to return false target cells for datasets defined on complex grids.
Definition at line 59 of file vtkInterpolatedVelocityField.h.
Definition at line 64 of file vtkInterpolatedVelocityField.h.
|
inlineprotected |
Definition at line 94 of file vtkInterpolatedVelocityField.h.
|
inlineprotected |
Definition at line 95 of file vtkInterpolatedVelocityField.h.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkCompositeInterpolatedVelocityField.
|
static |
|
protectedvirtual |
Reimplemented from vtkCompositeInterpolatedVelocityField.
vtkInterpolatedVelocityField* vtkInterpolatedVelocityField::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkCompositeInterpolatedVelocityField.
|
static |
Construct a vtkInterpolatedVelocityField without an initial dataset. Caching is set on and LastCellId is set to -1.
|
virtual |
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.
Implements vtkCompositeInterpolatedVelocityField.
Evaluate the velocity field f at point (x, y, z).
Implements vtkAbstractInterpolatedVelocityField.
|
virtual |
Project the provided point on current cell, current dataset.
Set the cell id cached by the last evaluation within a specified dataset.
Implements vtkAbstractInterpolatedVelocityField.
|
inlinevirtual |
Set the cell id cached by the last evaluation.
Reimplemented from vtkAbstractInterpolatedVelocityField.
Definition at line 89 of file vtkInterpolatedVelocityField.h.
|
inlineprotectedvirtual |
Evaluate the velocity field f at point (x, y, z) in a specified dataset by either involving vtkPointLocator, via vtkPointSet::FindCell(), in locating the next cell (for datasets of type vtkPointSet) or simply invoking vtkImageData/vtkRectilinearGrid::FindCell() to fulfill the same task if the point is outside the current cell.
Reimplemented from vtkAbstractInterpolatedVelocityField.
Definition at line 104 of file vtkInterpolatedVelocityField.h.