 |
VTK
9.0.1
|
Go to the documentation of this file.
38 #ifndef vtkHyperTreeGridNonOrientedCursor_h
39 #define vtkHyperTreeGridNonOrientedCursor_h
41 #include "vtkCommonDataModelModule.h"
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
vtkHyperTreeGridNonOrientedCursor()
Constructor.
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkIdType index)
Initialize cursor at root of given tree index in grid.
vtkHyperTree * GetTree() const
Set the hyper tree to which the cursor is pointing.
bool IsLeaf()
Is the cursor pointing to a leaf?
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
abstract base class for most VTK objects
vtkHyperTreeGridNonOrientedCursor * Clone()
Create a copy of ‘this’.
Objects for traversal a HyperTreeGrid.
void SetGlobalIndexStart(vtkIdType index)
JB.
void ToRoot()
Move the cursor to the root vertex.
bool IsRoot()
Is the cursor at tree root?
std::vector< vtkHyperTreeGridEntry > Entries
JB Hyper tree grid to which the cursor is attached.
unsigned char GetDimension()
Return the dimension of the tree.
void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)
Initialize cursor at root of given tree index in grid.
a simple class to control print indentation
A data object structured as a tree.
void ToParent()
Move the cursor to the parent of the current vertex.
Entries are cache data for cursors.
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
static vtkHyperTreeGridNonOrientedCursor * New()
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastValidEntry
JB Le dernier noeud valid enregistre.
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
void SetMask(bool state)
Set the blanking mask is empty or not.
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkHyperTreeGridEntry &entry)
Initialize cursor at root of given tree index in grid.
void SetGlobalIndexFromLocal(vtkIdType index)
JB.
bool HasTree() const
Return if a Tree pointing exist.
bool IsMasked()
Determine whether blanking mask is empty or not.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
~vtkHyperTreeGridNonOrientedCursor() override
Destructor.