38 #ifndef vtkOverlappingAMR_h
39 #define vtkOverlappingAMR_h
42 #include "vtkCommonDataModelModule.h"
46 VTK_ABI_NAMESPACE_BEGIN
68 void SetOrigin(
const double origin[3]);
85 void SetSpacing(
unsigned int level,
const double spacing[3]);
94 void SetAMRBox(
unsigned int level,
unsigned int id,
const vtkAMRBox& box);
115 void GetBounds(
unsigned int level,
unsigned int id,
double bb[6]);
120 void GetOrigin(
unsigned int level,
unsigned int id,
double origin[3]);
152 void SetRefinementRatio(
unsigned int level,
int refRatio);
157 int GetRefinementRatio(
unsigned int level);
165 void SetAMRBlockSourceIndex(
unsigned int level,
unsigned int id,
int sourceId);
166 int GetAMRBlockSourceIndex(
unsigned int level,
unsigned int id);
178 bool HasChildrenInformation();
184 void GenerateParentChildInformation();
191 unsigned int* GetParents(
unsigned int level,
unsigned int index,
unsigned int& numParents);
198 unsigned int* GetChildren(
unsigned int level,
unsigned int index,
unsigned int& numChildren);
203 void PrintParentChildInfo(
unsigned int level,
unsigned int index);
208 bool FindGrid(
double q[3],
unsigned int&
level,
unsigned int& gridId);
222 [[nodiscard]]
bool CheckValidity();
235 "This
function is deprecated, use GetAMRMetaData() or GetOverlappingAMRMetaData()")
242 ~vtkOverlappingAMR() override;
247 void InstantiateMetaData() override;
250 vtkOverlappingAMR(const vtkOverlappingAMR&) = delete;
251 void operator=(const vtkOverlappingAMR&) = delete;
254 VTK_ABI_NAMESPACE_END
virtual void SetDataSet(unsigned int level, unsigned int idx, vtkDataSet *grid)
At the passed in level, set grid as the idx'th block at that level.
abstract class to specify dataset behavior
Encloses a rectangular region of voxel like cells.
virtual const double * GetBounds()
Get the (min/max) bounds of the AMR domain.
superclass for composite data iterators
#define VTK_DEPRECATED_IN_9_6_0(reason)
a simple class to control print indentation
static vtkOverlappingAMR * SafeDownCast(vtkObjectBase *o)
static vtkAMRDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
int GetDataObjectType() VTK_FUTURE_CONST override
Return class name of data type (see vtkType.h for definitions).
static vtkOverlappingAMR * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
static vtkOverlappingAMR * GetData(vtkInformationVector *v, int i=0)