 |
VTK
9.0.1
|
Go to the documentation of this file.
31 #ifndef vtkAMRInformation_h
32 #define vtkAMRInformation_h
35 #include "vtkCommonDataModelModule.h"
45 class vtkAMRIndexIterator;
62 void Initialize(
int numLevels,
const int* blocksPerLevel);
68 vtkGetMacro(GridDescription,
int);
77 void GetOrigin(
double origin[3]);
79 void SetOrigin(
const double* origin);
87 return static_cast<unsigned int>(this->NumBlocks.size() - 1);
93 unsigned int GetNumberOfDataSets(
unsigned int level)
const;
108 void ComputeIndexPair(
unsigned int index,
unsigned int&
level,
unsigned int&
id);
113 const double* GetBounds();
118 void GetBounds(
unsigned int level,
unsigned int id,
double* bb);
123 bool GetOrigin(
unsigned int level,
unsigned int id,
double* origin);
130 bool HasSpacing(
unsigned int level);
136 void SetAMRBox(
unsigned int level,
unsigned int id,
const vtkAMRBox& box);
137 const vtkAMRBox& GetAMRBox(
unsigned int level,
unsigned int id)
const;
143 bool GetCoarsenedAMRBox(
unsigned int level,
unsigned int id,
vtkAMRBox& box)
const;
150 int GetAMRBlockSourceIndex(
int index);
151 void SetAMRBlockSourceIndex(
int index,
int sourceId);
164 void GenerateRefinementRatio();
170 bool HasRefinementRatio();
176 void SetRefinementRatio(
unsigned int level,
int ratio);
181 int GetRefinementRatio(
unsigned int level)
const;
186 void SetSpacing(
unsigned int level,
const double*
h);
191 bool HasChildrenInformation();
198 unsigned int* GetParents(
unsigned int level,
unsigned int index,
unsigned int& numParents);
205 unsigned int* GetChildren(
unsigned int level,
unsigned int index,
unsigned int& numChildren);
210 void PrintParentChildInfo(
unsigned int level,
unsigned int index);
216 void GenerateParentChildInformation();
228 bool FindCell(
double q[3],
unsigned int level,
unsigned int index,
int& cellIdx);
233 bool FindGrid(
double q[3],
int level,
unsigned int& gridId);
238 bool FindGrid(
double q[3],
unsigned int&
level,
unsigned int& gridId);
243 const std::vector<int>&
GetNumBlocks()
const {
return this->NumBlocks; }
247 return this->AllChildren[i];
258 bool HasValidOrigin();
259 bool HasValidBounds();
260 void UpdateBounds(
const int level,
const int id);
261 void AllocateBoxes(
unsigned int n);
262 void GenerateBlockLevel();
263 void CalculateParentChildRelationShip(
unsigned int level,
289 std::vector<std::vector<std::vector<unsigned int> > > AllChildren;
290 std::vector<std::vector<std::vector<unsigned int> > > AllParents;
Encloses a rectangular region of voxel like cells.
dynamic, self-adjusting array of unsigned int
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
a simple class to control print indentation
dynamic, self-adjusting array of int
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
dynamic, self-adjusting array of double