34 #ifndef vtkOverlappingAMR_h
35 #define vtkOverlappingAMR_h
37 #include "vtkCommonDataModelModule.h"
68 void SetOrigin(
const double origin[3]);
76 void SetSpacing(
unsigned int level,
const double spacing[3]);
84 void SetAMRBox(
unsigned int level,
unsigned int id,
const vtkAMRBox& box);
96 void GetOrigin(
unsigned int level,
unsigned int id,
double origin[3]);
120 void SetRefinementRatio(
unsigned int level,
int refRatio);
125 int GetRefinementRatio(
unsigned int level);
132 void SetAMRBlockSourceIndex(
unsigned int level,
unsigned int id,
int sourceId);
133 int GetAMRBlockSourceIndex(
unsigned int level,
unsigned int id);
144 bool HasChildrenInformation();
150 void GenerateParentChildInformation();
157 unsigned int* GetParents(
unsigned int level,
unsigned int index,
unsigned int& numParents);
164 unsigned int* GetChildren(
unsigned int level,
unsigned int index,
unsigned int& numChildren);
169 void PrintParentChildInfo(
unsigned int level,
unsigned int index);
177 bool FindGrid(
double q[3],
unsigned int&
level,
unsigned int& gridId);
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])