VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
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:
Inheritance graph
[legend]
Collaboration diagram for vtkAMRInterpolatedVelocityField:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
vtkAbstractInterpolatedVelocityField 
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)

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)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkAMRInterpolatedVelocityField ()
 ~vtkAMRInterpolatedVelocityField ()
virtual int FunctionValues (vtkDataSet *ds, double *x, double *f)

Protected Attributes

vtkOverlappingAMRAmrDataSet
int LastLevel
int LastId

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

Reimplemented from vtkAbstractInterpolatedVelocityField.

Definition at line 41 of file vtkAMRInterpolatedVelocityField.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkAMRInterpolatedVelocityField::IsTypeOf ( const char *  name) [static]

Return 1 if this class type 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 vtkAbstractInterpolatedVelocityField.

virtual int vtkAMRInterpolatedVelocityField::IsA ( const char *  name) [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 vtkAbstractInterpolatedVelocityField.

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

bool vtkAMRInterpolatedVelocityField::GetLastDataSetLocation ( unsigned int level,
unsigned 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) [inline, virtual]

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]

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 vtkAbstractInterpolatedVelocityField.

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 
) [inline, protected, virtual]

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

Definition at line 77 of file vtkAMRInterpolatedVelocityField.h.

Definition at line 78 of file vtkAMRInterpolatedVelocityField.h.

Definition at line 79 of file vtkAMRInterpolatedVelocityField.h.


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