29#ifndef vtkHyperTreeGridNonOrientedSuperCursor_h
30#define vtkHyperTreeGridNonOrientedSuperCursor_h
32#include "vtkCommonDataModelModule.h"
40VTK_ABI_NAMESPACE_BEGIN
114 unsigned int icursor,
unsigned int& level,
bool& leaf,
vtkIdType&
id);
158 void SetMask(
unsigned int icursor,
bool state);
180 void GetPoint(
unsigned int icursor,
double point[3]);
244 unsigned int icursor);
252 unsigned int icursor);
281 std::vector<vtkHyperTreeGridGeometryLevelEntry>
Entries;
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()
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.
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
Combine three get information into one.
std::vector< vtkHyperTreeGridGeometryLevelEntry > Entries
bool IsLeaf()
Is the cursor pointing to a leaf?
~vtkHyperTreeGridNonOrientedSuperCursor() override
Destructor.
bool IsMasked(unsigned int icursor)
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
void GetPoint(double point[3])
Returns the coordinates cell center.
void ToParent()
Move the cursor to the parent of the current vertex.
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.
bool HasTree()
Return if a Tree pointing exist.
virtual vtkHyperTreeGridNonOrientedSuperCursor * Clone()
Create a copy of ‘this’.
const unsigned int * ChildCursorToParentCursorTable
vtkHyperTreeGridNonOrientedSuperCursor()
Constructor.
void ToRoot()
Move the cursor to the root vertex.
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
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > GetNonOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
unsigned char GetDimension()
Return the dimension of the tree.
vtkHyperTree * GetTree(unsigned int icursor)
Set the hyper tree to which the cursor is pointing.
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.
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
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.
double * GetSize()
Get the size cell.
double * GetOrigin(unsigned int icursor)
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)
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.
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.
double * GetOrigin()
Get the origin cell.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > CentralCursor
Describes the central cursor necessary an instance of vtkHyperTreeGridNonOrientedGeometryCursor.
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.