VTK
|
A concrete class for obtaining the interpolated velocity values at a point in AMR data. More...
#include <vtkAMRInterpolatedVelocityField.h>
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.
Definition at line 36 of file vtkAMRInterpolatedVelocityField.h.
Reimplemented from vtkAbstractInterpolatedVelocityField.
Definition at line 41 of file vtkAMRInterpolatedVelocityField.h.
vtkAMRInterpolatedVelocityField::vtkAMRInterpolatedVelocityField | ( | ) | [protected] |
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.
static vtkAMRInterpolatedVelocityField* vtkAMRInterpolatedVelocityField::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAbstractInterpolatedVelocityField.
virtual vtkObjectBase* vtkAMRInterpolatedVelocityField::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAbstractInterpolatedVelocityField.
Reimplemented from vtkAbstractInterpolatedVelocityField.
static vtkAMRInterpolatedVelocityField* vtkAMRInterpolatedVelocityField::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
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 | ) | [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.
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.