|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   37 #ifndef vtkHyperTreeGridGeometryLevelEntry_h 
   38 #define vtkHyperTreeGridGeometryLevelEntry_h 
   69     for (
unsigned int d = 0; d < 3; ++d)
 
   83   void Dump(ostream& os);
 
   93     for (
unsigned int d = 0; d < 3; ++d)
 
   95       this->Origin[d] = origin[d];
 
  109     this->Tree = 
nullptr;
 
  118     this->
Initialize(entry->Tree, entry->Level, entry->Index, entry->Origin);
 
  130     cursor->Initialize(grid, this->Tree, this->Level, this->Index, this->Origin);
 
  141     assert(
"pre: level==0" && this->Level == 0);
 
  144     cursor->Initialize(grid, this->Tree, this->Level, this->Index, this->Origin);
 
  210   bool IsRoot() { 
return (this->Index == 0); }
 
  230   unsigned int GetLevel()
 const { 
return this->Level; }
 
  236   const double* 
GetOrigin()
 const { 
return this->Origin; }
 
  270 #endif // __VTK_WRAP__ 
  272 #endif // vtkHyperTreeGridGeometryLevelEntry 
  
void Initialize(vtkHyperTree *tree, unsigned int level, vtkIdType index, const double *origin)
Initialize cache entry from explicit required data.
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetHyperTreeGridOrientedGeometryCursor(vtkHyperTreeGrid *grid)
Create a vtkHyperTreeGridOrientedCursor from input grid and current entry data.
const double * GetOrigin() const
double * GetOrigin()
Getter for origin coordinates of the current cell.
void SetGlobalIndexStart(vtkIdType index)
Set the global index for the root cell of the HyperTree.
bool IsTerminalNode(const vtkHyperTreeGrid *grid) const
Is the cursor pointing to a coarse with all childrens being leaves ?
bool IsMasked(const vtkHyperTreeGrid *grid) const
Determine whether blanking mask is empty or not.
void SetMask(const vtkHyperTreeGrid *grid, bool state)
Set the blanking mask is empty or not.
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > GetHyperTreeGridNonOrientedGeometryCursor(vtkHyperTreeGrid *grid)
Create a vtkHyperTreeGridNonOrientedCursor from input grid and current entry data.
void GetPoint(double point[3]) const
Getter for center of the current cell.
void Dump(ostream &os)
Dump information.
Cursor cache data with coordinates and level info.
void ToChild(const vtkHyperTreeGrid *grid, unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
void Copy(const vtkHyperTreeGridGeometryLevelEntry *entry)
Copy function.
vtkHyperTreeGridGeometryLevelEntry()
Constructor.
static vtkSmartPointer< T > New()
Create an instance of a VTK object.
a simple class to control print indentation
vtkIdType GetGlobalNodeIndex() const
Return the global index (relative to the grid) of the current vertex in the tree.
void SubdivideLeaf(const vtkHyperTreeGrid *grid)
Change the current cell's status: if leaf then becomes coarse and all its children are created,...
A data object structured as a tree.
bool IsLeaf(const vtkHyperTreeGrid *grid) const
Is the cursor pointing to a leaf?
void GetBounds(double bounds[6]) const
Getter for bounding box of the current cell.
bool IsRoot()
Is the cursor at tree root?
void Reset()
Reset function.
vtkHyperTree * GetTree() const
Get HyperTree from current cache entry.
void PrintSelf(ostream &os, vtkIndent indent)
Display info about the entry.
~vtkHyperTreeGridGeometryLevelEntry()=default
Destructor.
vtkIdType GetVertexId() const
Return the index of the current vertex in the tree.
unsigned int GetLevel() const
Get level info from current cache entry.
void SetGlobalIndexFromLocal(vtkIdType index)
Set the global index for the current cell of the HyperTree.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.