19#ifndef vtkAMRInformation_h
20#define vtkAMRInformation_h
23#include "vtkCommonDataModelModule.h"
30VTK_ABI_NAMESPACE_BEGIN
34class vtkAMRIndexIterator;
51 void Initialize(
int numLevels,
const int* blocksPerLevel);
57 vtkGetMacro(GridDescription,
int);
76 return static_cast<unsigned int>(this->NumBlocks.size() - 1);
92 int GetIndex(
unsigned int level,
unsigned int id)
const {
return this->NumBlocks[level] + id; }
107 void GetBounds(
unsigned int level,
unsigned int id,
double* bb);
112 bool GetOrigin(
unsigned int level,
unsigned int id,
double* origin);
187 unsigned int*
GetParents(
unsigned int level,
unsigned int index,
unsigned int& numParents);
194 unsigned int*
GetChildren(
unsigned int level,
unsigned int index,
unsigned int& numChildren);
217 bool FindCell(
double q[3],
unsigned int level,
unsigned int index,
int& cellIdx);
222 bool FindGrid(
double q[3],
int level,
unsigned int& gridId);
227 bool FindGrid(
double q[3],
unsigned int& level,
unsigned int& gridId);
232 const std::vector<int>&
GetNumBlocks()
const {
return this->NumBlocks; }
236 return this->AllChildren[i];
247 bool HasValidOrigin();
248 bool HasValidBounds();
249 void UpdateBounds(
int level,
int id);
250 void AllocateBoxes(
unsigned int n);
251 void GenerateBlockLevel();
252 void CalculateParentChildRelationShip(
unsigned int level,
253 std::vector<std::vector<unsigned int>>& children,
254 std::vector<std::vector<unsigned int>>& parents);
278 std::vector<std::vector<std::vector<unsigned int>>> AllChildren;
279 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
abstract base class for most VTK objects
Computes the portion of a dataset which is inside a selection.
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned int