Go to the documentation of this file.
34 #ifndef vtkOverlappingAMR_h
35 #define vtkOverlappingAMR_h
37 #include "vtkCommonDataModelModule.h"
169 void GetBounds(
double b[6]) { Superclass::GetBounds(b);}
180 {
return Superclass::GetAMRInfo();}
182 {
return Superclass::SetAMRInfo(
info);}
Encloses a rectangular region of voxel like cells.
unsigned int * GetParents(unsigned int level, unsigned int index, unsigned int &numParents)
Return a pointer to Parents of a block.
vtkCompositeDataIterator * NewIterator() override
Return a new iterator (the iterator has to be deleted by the user).
static vtkInformationIdTypeKey * NUMBER_OF_BLANKED_POINTS()
void GenerateParentChildInformation()
Generate the parent/child relationships - needed to be called before GetParents or GetChildren can be...
int GetRefinementRatio(unsigned int level)
Returns the refinement of a given level.
bool FindGrid(double q[3], unsigned int &level, unsigned int &gridId)
Given a point q, find the highest level grid that contains it.
void Audit()
Check whether the data set is internally consistent, e.g.
void SetAMRInfo(vtkAMRInformation *info) override
void SetAMRBlockSourceIndex(unsigned int level, unsigned int id, int sourceId)
Set/Get the source id of a block.
void GetOrigin(unsigned int level, unsigned int id, double origin[3])
Returns the origin of an AMR block.
static vtkOverlappingAMR * SafeDownCast(vtkObjectBase *o)
int GetAMRBlockSourceIndex(unsigned int level, unsigned int id)
superclass for composite data iterators
const vtkAMRBox & GetAMRBox(unsigned int level, unsigned int id)
a simple class to control print indentation
vtkAMRInformation * GetAMRInfo() override
Get/Set the internal representation of amr meta meta data.
unsigned int * GetChildren(unsigned int level, unsigned int index, unsigned int &numChildren)
Return a pointer to Children of a block.
void SetAMRBox(unsigned int level, unsigned int id, const vtkAMRBox &box)
Set/Get the AMRBox for a given block.
static vtkOverlappingAMR * New()
static vtkOverlappingAMR * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
hierarchical dataset of vtkUniformGrids
void GetBounds(unsigned int level, unsigned int id, double *bb)
Returns the bounding information of a data set.
void PrintParentChildInfo(unsigned int level, unsigned int index)
Prints the parents and children of a requested block (Debug Routine)
~vtkOverlappingAMR() override
#define VTK_OVERLAPPING_AMR
void SetSpacing(unsigned int level, const double spacing[3])
Get/Set the grid spacing at a given level.
void GetBounds(double b[6])
bool HasChildrenInformation()
Return whether parent child information has been generated.
void GetSpacing(unsigned int level, double spacing[3])
int GetRefinementRatio(vtkCompositeDataIterator *iter)
Returns the refinement ratio for the position pointed by the iterator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOverlappingAMR * GetData(vtkInformationVector *v, int i=0)
void SetOrigin(const double *)
Get/Set the global origin of the amr data set.
void SetRefinementRatio(unsigned int level, int refRatio)
Sets the refinement of a given level.