VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkAMRInterpolatedVelocityField Class Reference

A concrete class for obtaining the interpolated velocity values at a point in AMR data. More...

#include <vtkAMRInterpolatedVelocityField.h>

Inheritance diagram for vtkAMRInterpolatedVelocityField:
[legend]
Collaboration diagram for vtkAMRInterpolatedVelocityField:
[legend]

Public Types

typedef
vtkAbstractInterpolatedVelocityField 
Superclass
 
- Public Types inherited from vtkAbstractInterpolatedVelocityField
typedef vtkFunctionSet Superclass
 
- Public Types inherited from vtkFunctionSet
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkAMRInterpolatedVelocityFieldNewInstance () const
 
virtual vtkOverlappingAMRGetAmrDataSet ()
 
void SetAMRData (vtkOverlappingAMR *amr)
 
bool GetLastDataSetLocation (unsigned int &level, unsigned int &id)
 
bool SetLastDataSet (int level, int id)
 
virtual void SetLastCellId (vtkIdType c, int dataindex)
 
virtual int FunctionValues (double *x, double *f)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetLastCellId (vtkIdType c)
 
- Public Member Functions inherited from vtkAbstractInterpolatedVelocityField
vtkAbstractInterpolatedVelocityFieldNewInstance () const
 
virtual vtkDataSet * GetLastDataSet ()
 
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 CopyParameters (vtkAbstractInterpolatedVelocityField *from)
 
int GetLastWeights (double *w)
 
int GetLastLocalCoordinates (double pcoords[3])
 
- Public Member Functions inherited from vtkFunctionSet
vtkFunctionSetNewInstance () const
 
virtual int GetNumberOfFunctions ()
 
virtual int GetNumberOfIndependentVariables ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static
vtkAMRInterpolatedVelocityField
SafeDownCast (vtkObjectBase *o)
 
static
vtkAMRInterpolatedVelocityField
New ()
 
static bool FindGrid (double q[3], vtkOverlappingAMR *amrds, unsigned int &level, unsigned int &gridId)
 
- Static Public Member Functions inherited from vtkAbstractInterpolatedVelocityField
static int IsTypeOf (const char *type)
 
static
vtkAbstractInterpolatedVelocityField
SafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkFunctionSet
static int IsTypeOf (const char *type)
 
static vtkFunctionSetSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkAMRInterpolatedVelocityField ()
 
 ~vtkAMRInterpolatedVelocityField ()
 
virtual int FunctionValues (vtkDataSet *ds, double *x, double *f)
 
- Protected Member Functions inherited from vtkAbstractInterpolatedVelocityField
 vtkAbstractInterpolatedVelocityField ()
 
 ~vtkAbstractInterpolatedVelocityField ()
 
virtual void SetVectorsSelection (const char *)
 
void FastCompute (vtkDataArray *vectors, double f[3])
 
bool InterpolatePoint (vtkPointData *outPD, vtkIdType outIndex)
 
vtkGenericCellGetLastCell ()
 
- Protected Member Functions inherited from vtkFunctionSet
 vtkFunctionSet ()
 
 ~vtkFunctionSet ()
 

Protected Attributes

vtkOverlappingAMRAmrDataSet
 
int LastLevel
 
int LastId
 
- Protected Attributes inherited from vtkAbstractInterpolatedVelocityField
int CacheHit
 
int CacheMiss
 
int WeightsSize
 
bool Caching
 
bool NormalizeVector
 
int VectorsType
 
char * VectorsSelection
 
double * Weights
 
double LastPCoords [3]
 
vtkIdType LastCellId
 
vtkDataSet * LastDataSet
 
vtkGenericCellCell
 
vtkGenericCellGenCell
 
- Protected Attributes inherited from vtkFunctionSet
int NumFuncs
 
int NumIndepVars
 

Additional Inherited Members

- Static Protected Attributes inherited from vtkAbstractInterpolatedVelocityField
static const double TOLERANCE_SCALE
 

Detailed Description

A concrete class for obtaining the interpolated velocity values at a point in AMR data.

The main functionality supported here is the point location inside vtkOverlappingAMR data set.

Tests:
vtkAMRInterpolatedVelocityField (Tests)

Definition at line 36 of file vtkAMRInterpolatedVelocityField.h.

Member Typedef Documentation

Definition at line 41 of file vtkAMRInterpolatedVelocityField.h.

Constructor & Destructor Documentation

vtkAMRInterpolatedVelocityField::vtkAMRInterpolatedVelocityField ( )
protected
vtkAMRInterpolatedVelocityField::~vtkAMRInterpolatedVelocityField ( )
protected

Member Function Documentation

static int vtkAMRInterpolatedVelocityField::IsTypeOf ( const char *  type)
static
virtual int vtkAMRInterpolatedVelocityField::IsA ( const char *  type)
virtual
static vtkAMRInterpolatedVelocityField* vtkAMRInterpolatedVelocityField::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkAMRInterpolatedVelocityField::NewInstanceInternal ( ) const
protectedvirtual
vtkAMRInterpolatedVelocityField* vtkAMRInterpolatedVelocityField::NewInstance ( ) const
static vtkAMRInterpolatedVelocityField* vtkAMRInterpolatedVelocityField::New ( )
static
virtual vtkOverlappingAMR* vtkAMRInterpolatedVelocityField::GetAmrDataSet ( )
virtual
void vtkAMRInterpolatedVelocityField::SetAMRData ( vtkOverlappingAMR amr)
bool vtkAMRInterpolatedVelocityField::GetLastDataSetLocation ( unsigned int &  level,
unsigned int &  id 
)
bool vtkAMRInterpolatedVelocityField::SetLastDataSet ( int  level,
int  id 
)
virtual void vtkAMRInterpolatedVelocityField::SetLastCellId ( vtkIdType  c,
int  dataindex 
)
virtual

Set the id of the most recently visited cell of a dataset.

Implements vtkAbstractInterpolatedVelocityField.

virtual void vtkAMRInterpolatedVelocityField::SetLastCellId ( vtkIdType  c)
inlinevirtual

Set the cell id cached by the last evaluation.

Reimplemented from vtkAbstractInterpolatedVelocityField.

Definition at line 56 of file vtkAMRInterpolatedVelocityField.h.

virtual int vtkAMRInterpolatedVelocityField::FunctionValues ( double *  x,
double *  f 
)
virtual

Evaluate the velocity field f at point p. If it succeeds, then both the last data set (this->LastDataSet) and the last data set location (this->LastLevel, this->LastId) will be set according to where p is found. If it fails, either p is out of bound, in which case both the last data set and the last location will be invlaid or, in a multi-process setting, p is inbound but not on the processor. In the last case, the last data set location is still valid

Implements vtkAbstractInterpolatedVelocityField.

void vtkAMRInterpolatedVelocityField::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual
static bool vtkAMRInterpolatedVelocityField::FindGrid ( double  q[3],
vtkOverlappingAMR amrds,
unsigned int &  level,
unsigned int &  gridId 
)
static
virtual int vtkAMRInterpolatedVelocityField::FunctionValues ( vtkDataSet *  ds,
double *  x,
double *  f 
)
inlineprotectedvirtual

Evaluate the velocity field f at point (x, y, z) in a specified dataset by invoking vtkDataSet::FindCell() to locate the next cell if the given point is outside the current cell. To address vtkPointSet, vtkPointLocator is involved via vtkPointSet::FindCell() in vtkInterpolatedVelocityField for cell location. In vtkCellLocatorInterpolatedVelocityField, this function is invoked just to handle vtkImageData and vtkRectilinearGrid that are not assigned with any vtkAbstractCellLocatot-type cell locator.

Reimplemented from vtkAbstractInterpolatedVelocityField.

Definition at line 83 of file vtkAMRInterpolatedVelocityField.h.

Member Data Documentation

vtkOverlappingAMR* vtkAMRInterpolatedVelocityField::AmrDataSet
protected

Definition at line 77 of file vtkAMRInterpolatedVelocityField.h.

int vtkAMRInterpolatedVelocityField::LastLevel
protected

Definition at line 78 of file vtkAMRInterpolatedVelocityField.h.

int vtkAMRInterpolatedVelocityField::LastId
protected

Definition at line 79 of file vtkAMRInterpolatedVelocityField.h.


The documentation for this class was generated from the following file: