34 #ifndef vtkOverlappingAMR_h
35 #define vtkOverlappingAMR_h
37 #include "vtkCommonDataModelModule.h"
68 void SetOrigin(const
double*);
91 void GetBounds(
unsigned int level,
unsigned int id,
double* bb);
97 void GetOrigin(
unsigned int level,
unsigned int id,
double origin[3]);
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.
superclass for composite data iterators
a simple class to control print indentation
hierarchical dataset of vtkUniformGrids
int GetRefinementRatio(unsigned int level)
Returns the refinement of a given level.
~vtkOverlappingAMR() override
void SetAMRBlockSourceIndex(unsigned int level, unsigned int id, int sourceId)
Set/Get the source id of a block.
int GetRefinementRatio(vtkCompositeDataIterator *iter)
Returns the refinement ratio for the position pointed by the iterator.
void GetBounds(double b[6])
bool HasChildrenInformation()
Return whether parent child information has been generated.
unsigned int * GetParents(unsigned int level, unsigned int index, unsigned int &numParents)
Return a pointer to Parents of a block.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetAMRBlockSourceIndex(unsigned int level, unsigned int id)
bool FindGrid(double q[3], unsigned int &level, unsigned int &gridId)
Given a point q, find the highest level grid that contains it.
void SetAMRInfo(vtkAMRInformation *info) override
unsigned int * GetChildren(unsigned int level, unsigned int index, unsigned int &numChildren)
Return a pointer to Children of a block.
static vtkOverlappingAMR * SafeDownCast(vtkObjectBase *o)
VTK_NEWINSTANCE vtkCompositeDataIterator * NewIterator() override
Return a new iterator (the iterator has to be deleted by the user).
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
static vtkOverlappingAMR * GetData(vtkInformationVector *v, int i=0)
vtkAMRInformation * GetAMRInfo() override
Get/Set the interal representation of amr meta meta data.
static vtkOverlappingAMR * New()
void SetRefinementRatio(unsigned int level, int refRatio)
Sets the refinement of a given level.
void Audit()
Check whether the data set is internally consistent, e.g.
void PrintParentChildInfo(unsigned int level, unsigned int index)
Prints the parents and children of a requested block (Debug Routine)
void GenerateParentChildInformation()
Generate the parent/child relationships - needed to be called before GetParents or GetChildren can be...
#define VTK_OVERLAPPING_AMR