|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   38 #ifndef vtkHyperTreeGridGeometryEntry_h 
   39 #define vtkHyperTreeGridGeometryEntry_h 
   67     for (
unsigned int d = 0; d < 3; ++d)
 
   69       this->Origin[d] = origin[d];
 
   81   void Dump(ostream& os);
 
   94     for (
unsigned int d = 0; d < 3; ++d)
 
   96       this->Origin[d] = origin[d];
 
  105     this->Index = entry->Index;
 
  106     for (
unsigned int d = 0; d < 3; ++d)
 
  108       this->Origin[d] = entry->Origin[d];
 
  174   bool IsRoot()
 const { 
return (this->Index == 0); }
 
  185     const double* sizeChild, 
unsigned char ichild);
 
  191   const double* 
GetOrigin()
 const { 
return this->Origin; }
 
  196   void GetBounds(
const double* sizeChild, 
double bounds[6])
 const 
  199     bounds[0] = this->Origin[0];
 
  200     bounds[1] = this->Origin[0] + sizeChild[0];
 
  201     bounds[2] = this->Origin[1];
 
  202     bounds[3] = this->Origin[1] + sizeChild[1];
 
  203     bounds[4] = this->Origin[2];
 
  204     bounds[5] = this->Origin[2] + sizeChild[2];
 
  213     point[0] = this->Origin[0] + sizeChild[0] / 2.;
 
  214     point[1] = this->Origin[1] + sizeChild[1] / 2.;
 
  215     point[2] = this->Origin[2] + sizeChild[2] / 2.;
 
  230 #endif // __VTK_WRAP__ 
  232 #endif // vtkHyperTreeGridGeometryEntry_h 
  
vtkIdType GetVertexId() const
Return the index of the current vertex in the tree.
vtkHyperTree * Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)
Initialize cursor at root of given tree index in grid.
void Initialize(vtkIdType index, const double *origin)
Initialize cursor from explicit required data.
void SubdivideLeaf(const vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level)
Change the current cell's status: if leaf then becomes coarse and all its children are created,...
void PrintSelf(ostream &os, vtkIndent indent)
Display info about the entry.
vtkHyperTreeGridGeometryEntry(vtkIdType index, const double *origin)
Constructor.
GeometryEntry is a cache data for cursors requiring coordinates.
bool IsRoot() const
Is the cursor at tree root?
bool IsTerminalNode(const vtkHyperTreeGrid *grid, const vtkHyperTree *tree, unsigned int level) const
Is the cursor pointing to a coarse with all childrens leaves ?
vtkIdType GetGlobalNodeIndex(const vtkHyperTree *tree) const
Return the global index (relative to the grid) of the current vertex in the tree.
const double * GetOrigin() const
double * GetOrigin()
Getter for origin coordinates of the current cell.
a simple class to control print indentation
~vtkHyperTreeGridGeometryEntry()=default
Destructor.
void Dump(ostream &os)
Dump information.
bool IsLeaf(const vtkHyperTreeGrid *grid, const vtkHyperTree *tree, unsigned int level) const
Is the cursor pointing to a leaf?
A data object structured as a tree.
void SetMask(const vtkHyperTreeGrid *grid, const vtkHyperTree *tree, bool state)
Set the blanking mask is empty or not.
void SetGlobalIndexStart(vtkHyperTree *tree, vtkIdType index)
Set the global index for the root cell of the HyperTree.
vtkHyperTreeGridGeometryEntry()
Constructor.
void Copy(const vtkHyperTreeGridGeometryEntry *entry)
Copy function.
void GetPoint(const double *sizeChild, double point[3]) const
Getter for center of the current cell.
void GetBounds(const double *sizeChild, double bounds[6]) const
Getter for bounding box of the current cell.
bool IsMasked(const vtkHyperTreeGrid *grid, const vtkHyperTree *tree) const
Determine whether blanking mask is empty or not.
void SetGlobalIndexFromLocal(vtkHyperTree *tree, 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.
void ToChild(const vtkHyperTreeGrid *grid, const vtkHyperTree *tree, unsigned int level, const double *sizeChild, unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.