29 #ifndef vtkHyperTreeGridNonOrientedSuperCursor_h
30 #define vtkHyperTreeGridNonOrientedSuperCursor_h
32 #include "vtkCommonDataModelModule.h"
40 VTK_ABI_NAMESPACE_BEGIN
114 unsigned int icursor,
unsigned int&
level,
bool& leaf,
vtkIdType&
id);
158 void SetMask(
unsigned int icursor,
bool state);
244 unsigned int icursor);
252 unsigned int icursor);
281 std::vector<vtkHyperTreeGridGeometryLevelEntry>
Entries;
327 VTK_ABI_NAMESPACE_END
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
unsigned int GetNumberOfCursors() const
Get the number of cursors to describe neighboring cells and the current cell.
vtkHyperTree * GetTree(unsigned int icursor)
Set the hyper tree to which the cursor is pointing.
void GetBounds(double bounds[6])
Returns the coordinates of the bounding box : (xmin, xmax, ymin, ymax, zmin, zmax).
bool IsLeaf(unsigned int icursor)
void GetPoint(unsigned int icursor, double point[3])
Returns the coordinates cell center.
bool IsMasked()
Determine whether blanking mask is empty or not.
double * GetOrigin(unsigned int icursor)
std::vector< vtkHyperTreeGridGeometryLevelEntry > Entries
bool IsLeaf()
Is the cursor pointing to a leaf?
~vtkHyperTreeGridNonOrientedSuperCursor() override
Destructor.
bool IsMasked(unsigned int icursor)
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
void GetPoint(double point[3])
Returns the coordinates cell center.
void ToParent()
Move the cursor to the parent of the current vertex.
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
Combine three get information into one.
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the hypertree grid and defined by server) of the current vertex ...
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
double * GetOrigin()
Get the origin cell.
bool HasTree()
Return if a Tree pointing exist.
const unsigned int * ChildCursorToParentCursorTable
vtkHyperTreeGridNonOrientedSuperCursor()
Constructor.
virtual vtkHyperTreeGridNonOrientedSuperCursor * Clone()
Create a copy of ‘this’.
void ToRoot()
Move the cursor to the root vertex.
vtkHyperTree * GetTree()
Set the hyper tree to which the cursor is pointing.
unsigned int CurrentFirstNonValidEntryByLevel
Hyper tree grid to which the cursor is attached.
unsigned int GetIndicePreviousEntry(unsigned int icursor)
The previous value.
bool IsRoot()
Answer if a cursor is root.
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
unsigned int IndiceCentralCursor
Index central cursor.
unsigned int FirstCurrentNeighboorReferenceEntry
The last valid reference describing neighbors.
unsigned int GetLevel(unsigned int icursor)
void SetGlobalIndexFromLocal(vtkIdType index)
Calls this method for each cell in the HT to set the global index associated with them.
unsigned int NumberOfCursors
const unsigned int * ChildCursorToChildTable
unsigned char GetDimension()
Return the dimension of the tree.
void SubdivideLeaf()
Subdivide Leaf.
bool HasTree(unsigned int icursor)
Return if a HyperTree pointing exist.
unsigned int GetIndiceCentralCursor() const
Get the indice of central cursor, the current cell.
vtkIdType GetGlobalNodeIndex(unsigned int icursor)
Return the global index (relative to the hypertree grid and defined by server) of the neighbor icurso...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)=0
Initialize cursor at root of given tree index in grid.
void SetGlobalIndexStart(vtkIdType index)
Calls this method once per HyperTree to set the global index of the first cell.
unsigned int GetIndiceEntry(unsigned int icursor)
Get index entry of icursor.
void SetMask(unsigned int icursor, bool state)
double * GetSize()
Get the size cell.
vtkHyperTreeGrid * Grid
The pointer to the HyperTreeGrid instance during the crossing.
vtkIdType GetVertexId(unsigned int icursor)
void SetMask(bool state)
Set the blanking mask is empty or not.
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
std::vector< unsigned int > FirstNonValidEntryByLevel
std::vector< unsigned int > ReferenceEntries
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > CentralCursor
Describes the central cursor necessary an instance of vtkHyperTreeGridNonOrientedGeometryCursor.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > GetNonOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
void GetBounds(unsigned int icursor, double bounds[6])
Returns the coordinates of the bounding box : (xmin, xmax, ymin, ymax, zmin, zmax).
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
A data object structured as a tree.
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.