22 #ifndef vtkOverlappingAMR_h
23 #define vtkOverlappingAMR_h
25 #include "vtkCommonDataModelModule.h"
28 VTK_ABI_NAMESPACE_BEGIN
57 void SetOrigin(
const double origin[3]);
65 void SetSpacing(
unsigned int level,
const double spacing[3]);
73 void SetAMRBox(
unsigned int level,
unsigned int id,
const vtkAMRBox& box);
85 void GetOrigin(
unsigned int level,
unsigned int id,
double origin[3]);
109 void SetRefinementRatio(
unsigned int level,
int refRatio);
114 int GetRefinementRatio(
unsigned int level);
121 void SetAMRBlockSourceIndex(
unsigned int level,
unsigned int id,
int sourceId);
122 int GetAMRBlockSourceIndex(
unsigned int level,
unsigned int id);
133 bool HasChildrenInformation();
139 void GenerateParentChildInformation();
146 unsigned int* GetParents(
unsigned int level,
unsigned int index,
unsigned int& numParents);
153 unsigned int* GetChildren(
unsigned int level,
unsigned int index,
unsigned int& numChildren);
158 void PrintParentChildInfo(
unsigned int level,
unsigned int index);
166 bool FindGrid(
double q[3],
unsigned int&
level,
unsigned int& gridId);
192 VTK_ABI_NAMESPACE_END
Encloses a rectangular region of voxel like cells.
void SetAMRInfo(vtkAMRInformation *info) override
Get/Set the meta AMR meta info.
superclass for composite data iterators
a simple class to control print indentation
static vtkOverlappingAMR * SafeDownCast(vtkObjectBase *o)
void GetBounds(double bounds[6])
Return the geometric bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax).
vtkAMRInformation * GetAMRInfo() override
Get/Set the internal representation of amr meta meta data.
vtkSmartPointer< vtkDataArray > GetData(const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity.
static vtkOverlappingAMR * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
hierarchical dataset of vtkUniformGrids
#define VTK_OVERLAPPING_AMR
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
static vtkOverlappingAMR * GetData(vtkInformationVector *v, int i=0)
void GetBounds(double b[6])