24#ifndef vtkOverlappingAMRMetaData_h
25#define vtkOverlappingAMRMetaData_h
30#include "vtkCommonDataModelModule.h"
33VTK_ABI_NAMESPACE_BEGIN
54 void Initialize(
const std::vector<unsigned int>& blocksPerLevel)
override;
76 void GetBounds(
unsigned int level,
unsigned int id,
double* bb);
83 void SetBounds(
unsigned int level,
unsigned int id,
double* bb);
90 bool GetOrigin(
unsigned int level,
unsigned int id,
double* origin);
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);
225 bool FindCell(
double q[3],
unsigned int level,
unsigned int index,
int& cellIdx);
231 bool FindGrid(
double q[3],
int level,
unsigned int& gridId);
237 bool FindGrids(
double q[3],
unsigned int level, std::vector<unsigned int>& gridIds);
244 bool FindGrid(
double q[3],
unsigned int& level,
unsigned int& gridId);
252 return this->AllChildren[i];
259 [[nodiscard]] vtkGetMacro(GridType,
unsigned int);
260 vtkSetMacro(GridType,
unsigned int);
277 bool HasValidOrigin()
const;
278 bool HasValidBounds()
const;
279 void UpdateBounds(
int level,
int id);
280 void AllocateBoxes(
unsigned int n);
281 void AllocateBlockBounds(
unsigned int n);
282 void CalculateParentChildRelationShip(
unsigned int level,
283 std::vector<std::vector<unsigned int>>& children,
284 std::vector<std::vector<unsigned int>>& parents);
295 std::vector<vtkAMRBox> Boxes;
298 std::vector<vtkBoundingBox> BlockBounds;
315 vtkNew<vtkIntArray> Refinement;
318 std::vector<std::vector<std::vector<unsigned int>>> AllChildren;
319 std::vector<std::vector<std::vector<unsigned int>>> AllParents;
Encloses a rectangular region of voxel like cells.
dynamic, self-adjusting array of double
a simple class to control print indentation
dynamic, self-adjusting array of int
Allocate and hold a VTK object.
Computes the portion of a dataset which is inside a selection.
Hold a reference to a vtkObjectBase instance.