VTK
|
hierarchical dataset of vtkUniformGrids More...
#include <vtkHierarchicalBoxDataSet.h>
Public Types | |
typedef vtkCompositeDataSet | Superclass |
![]() | |
typedef vtkDataObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkCompositeDataIterator * | NewIterator () |
virtual int | GetDataObjectType () |
void | SetNumberOfLevels (unsigned int numLevels) |
unsigned int | GetNumberOfLevels () |
void | SetNumberOfDataSets (unsigned int level, unsigned int numdatasets) |
unsigned int | GetNumberOfDataSets (unsigned int level) |
vtkAMRBox | GetAMRBox (vtkCompositeDataIterator *iter) |
vtkInformation * | GetMetaData (unsigned int level, unsigned int index) |
int | HasMetaData (unsigned int level, unsigned int index) |
void | SetRefinementRatio (unsigned int level, int refRatio) |
int | GetRefinementRatio (unsigned int level) |
int | GetRefinementRatio (vtkCompositeDataIterator *iter) |
void | GenerateVisibilityArrays () |
virtual void | GetScalarRange (double range[]) |
virtual double * | GetScalarRange () |
unsigned int | GetFlatIndex (unsigned int level, unsigned int index) |
virtual void | SetDataSet (vtkCompositeDataIterator *iter, vtkDataObject *dataObj) |
void | SetDataSet (unsigned int level, unsigned int id, int LoCorner[3], int HiCorner[3], vtkUniformGrid *dataSet) |
void | SetDataSet (unsigned int level, unsigned int id, vtkAMRBox &box, vtkUniformGrid *dataSet) |
vtkUniformGrid * | GetDataSet (unsigned int level, unsigned int id, vtkAMRBox &box) |
vtkInformation * | GetLevelMetaData (unsigned int level) |
int | HasLevelMetaData (unsigned int level) |
virtual vtkDataObject * | GetDataSet (vtkCompositeDataIterator *iter) |
virtual vtkInformation * | GetMetaData (vtkCompositeDataIterator *iter) |
virtual int | HasMetaData (vtkCompositeDataIterator *iter) |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkAlgorithmOutput * | GetProducerPort () |
virtual void | CopyStructure (vtkCompositeDataSet *input) |
virtual unsigned long | GetActualMemorySize () |
virtual void | Initialize () |
virtual vtkIdType | GetNumberOfPoints () |
virtual void | ShallowCopy (vtkDataObject *src) |
virtual void | DeepCopy (vtkDataObject *src) |
Static Public Member Functions | |
static vtkHierarchicalBoxDataSet * | New () |
static int | IsTypeOf (const char *type) |
static vtkHierarchicalBoxDataSet * | SafeDownCast (vtkObject *o) |
static vtkInformationIntegerVectorKey * | BOX () |
static vtkInformationIntegerKey * | BOX_DIMENSIONALITY () |
static vtkInformationIntegerKey * | REFINEMENT_RATIO () |
static vtkInformationIdTypeKey * | NUMBER_OF_BLANKED_POINTS () |
static vtkHierarchicalBoxDataSet * | GetData (vtkInformation *info) |
static vtkHierarchicalBoxDataSet * | GetData (vtkInformationVector *v, int i=0) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkCompositeDataSet * | SafeDownCast (vtkObject *o) |
static vtkInformationStringKey * | NAME () |
static vtkCompositeDataSet * | GetData (vtkInformation *info) |
static vtkCompositeDataSet * | GetData (vtkInformationVector *v, int i=0) |
Protected Member Functions | |
vtkHierarchicalBoxDataSet () | |
~vtkHierarchicalBoxDataSet () | |
virtual void | ComputeScalarRange () |
![]() | |
vtkCompositeDataSet () | |
~vtkCompositeDataSet () | |
void | SetNumberOfChildren (unsigned int num) |
unsigned int | GetNumberOfChildren () |
void | SetChild (unsigned int index, vtkDataObject *) |
void | RemoveChild (unsigned int index) |
vtkDataObject * | GetChild (unsigned int num) |
vtkInformation * | GetChildMetaData (unsigned int index) |
void | SetChildMetaData (unsigned int index, vtkInformation *info) |
int | HasChildMetaData (unsigned int index) |
Protected Attributes | |
double | ScalarRange [2] |
vtkTimeStamp | ScalarRangeComputeTime |
![]() | |
vtkCompositeDataSetInternals * | Internals |
hierarchical dataset of vtkUniformGrids
vtkHierarchicalBoxDataSet is a concrete implementation of vtkCompositeDataSet. The dataset type is restricted to vtkUniformGrid. Each dataset has an associated vtkAMRBox that represents it's region (similar to extent) in space.
Definition at line 53 of file vtkHierarchicalBoxDataSet.h.
Definition at line 57 of file vtkHierarchicalBoxDataSet.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkCompositeDataSet.
|
static |
|
virtual |
Reimplemented from vtkCompositeDataSet.
|
static |
void vtkHierarchicalBoxDataSet::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Return a new iterator (the iterator has to be deleted by user).
Reimplemented from vtkCompositeDataSet.
|
inlinevirtual |
Return class name of data type (see vtkType.h for definitions).
Reimplemented from vtkCompositeDataSet.
Definition at line 64 of file vtkHierarchicalBoxDataSet.h.
void vtkHierarchicalBoxDataSet::SetNumberOfLevels | ( | unsigned int | numLevels | ) |
Set the number of refinement levels. This call might cause allocation if the new number of levels is larger than the current one.
unsigned int vtkHierarchicalBoxDataSet::GetNumberOfLevels | ( | ) |
Returns the number of levels.
void vtkHierarchicalBoxDataSet::SetNumberOfDataSets | ( | unsigned int | level, |
unsigned int | numdatasets | ||
) |
Set the number of data set at a given level.
unsigned int vtkHierarchicalBoxDataSet::GetNumberOfDataSets | ( | unsigned int | level | ) |
Returns the number of data sets available at any level.
|
inlinevirtual |
Sets the data set at the location pointed by the iterator. The iterator does not need to be iterating over this dataset itself. It can be any composite datasite with similar structure (achieve by using CopyStructure). Un-hiding superclass overload.
Reimplemented from vtkCompositeDataSet.
Definition at line 84 of file vtkHierarchicalBoxDataSet.h.
void vtkHierarchicalBoxDataSet::SetDataSet | ( | unsigned int | level, |
unsigned int | id, | ||
int | LoCorner[3], | ||
int | HiCorner[3], | ||
vtkUniformGrid * | dataSet | ||
) |
Set the dataset pointer for a given node. This will resize the number of levels and the number of datasets in the level to fit level, id requested.
void vtkHierarchicalBoxDataSet::SetDataSet | ( | unsigned int | level, |
unsigned int | id, | ||
vtkAMRBox & | box, | ||
vtkUniformGrid * | dataSet | ||
) |
Set the dataset pointer for a given node. This will resize the number of levels and the number of datasets in the level to fit level, id requested.
vtkUniformGrid* vtkHierarchicalBoxDataSet::GetDataSet | ( | unsigned int | level, |
unsigned int | id, | ||
vtkAMRBox & | box | ||
) |
Get a dataset given a level and an id. In case of parallel computation, the dataset can be a null pointer whereas the vtkAMRBox is always defined.
vtkAMRBox vtkHierarchicalBoxDataSet::GetAMRBox | ( | vtkCompositeDataIterator * | iter | ) |
Returns the AMR box for the location pointer by the iterator.
|
inline |
Get meta-data associated with a level. This may allocate a new vtkInformation object if none is already present. Use HasLevelMetaData to avoid unnecessary allocations.
Definition at line 124 of file vtkHierarchicalBoxDataSet.h.
|
inline |
Returns if meta-data exists for a given level.
Definition at line 130 of file vtkHierarchicalBoxDataSet.h.
vtkInformation* vtkHierarchicalBoxDataSet::GetMetaData | ( | unsigned int | level, |
unsigned int | index | ||
) |
Get meta-data associated with a dataset. This may allocate a new vtkInformation object if none is already present. Use HasMetaData to avoid unnecessary allocations.
int vtkHierarchicalBoxDataSet::HasMetaData | ( | unsigned int | level, |
unsigned int | index | ||
) |
Returns if meta-data exists for a given dataset under a given level.
void vtkHierarchicalBoxDataSet::SetRefinementRatio | ( | unsigned int | level, |
int | refRatio | ||
) |
Sets the refinement of a given level. The spacing at level level+1 is defined as spacing(level+1) = spacing(level)/refRatio(level). Note that currently, this is not enforced by this class however some algorithms might not function properly if the spacing in the blocks (vtkUniformGrid) does not match the one described by the refinement ratio.
int vtkHierarchicalBoxDataSet::GetRefinementRatio | ( | unsigned int | level | ) |
Returns the refinement of a given level.
int vtkHierarchicalBoxDataSet::GetRefinementRatio | ( | vtkCompositeDataIterator * | iter | ) |
Returns the refinement ratio for the position pointed by the iterator.
void vtkHierarchicalBoxDataSet::GenerateVisibilityArrays | ( | ) |
Blank lower level cells if they are overlapped by higher level ones.
|
static |
|
static |
|
static |
|
static |
|
static |
Retrieve an instance of this class from an information object.
|
static |
Retrieve an instance of this class from an information object.
|
virtual |
Copy the cached scalar range into range.
|
virtual |
Return the cached range.
|
inlinevirtual |
Unhiding superclass method.
Reimplemented from vtkCompositeDataSet.
Definition at line 181 of file vtkHierarchicalBoxDataSet.h.
|
inlinevirtual |
Unhiding superclass method.
Reimplemented from vtkCompositeDataSet.
Definition at line 187 of file vtkHierarchicalBoxDataSet.h.
|
inlinevirtual |
Unhiding superclass method.
Reimplemented from vtkCompositeDataSet.
Definition at line 194 of file vtkHierarchicalBoxDataSet.h.
unsigned int vtkHierarchicalBoxDataSet::GetFlatIndex | ( | unsigned int | level, |
unsigned int | index | ||
) |
Given the level and dataset index, returns the flat index provided level and dataset index are valid.
|
protectedvirtual |
Compute the range of the scalars and cache it into ScalarRange only if the cache became invalid (ScalarRangeComputeTime).
|
protected |
Definition at line 211 of file vtkHierarchicalBoxDataSet.h.
|
protected |
Definition at line 213 of file vtkHierarchicalBoxDataSet.h.