11#ifndef vtkHyperTreeGridNonOrientedUnlimitedSuperCursor_h
12#define vtkHyperTreeGridNonOrientedUnlimitedSuperCursor_h
14#include "vtkCommonDataModelModule.h"
22VTK_ABI_NAMESPACE_BEGIN
95 unsigned int icursor,
unsigned int& level,
bool& leaf,
vtkIdType&
id);
121 void SetMask(
unsigned int icursor,
bool state);
139 void GetPoint(
unsigned int icursor,
double point[3]);
217 unsigned int icursor);
225 unsigned int icursor);
248 unsigned int CurrentFirstNonValidEntryByLevel = 0;
250 std::vector<vtkHyperTreeGridGeometryUnlimitedLevelEntry>
Entries;
256 unsigned int FirstCurrentNeighboorReferenceEntry = 0;
266 unsigned int IndiceCentralCursor = 0;
269 unsigned int NumberOfCursors = 0;
273 const unsigned int* ChildCursorToParentCursorTable =
nullptr;
277 const unsigned int* ChildCursorToChildTable =
nullptr;
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
void GetPoint(double point[3])
Mesh center coordinates.
void SetMask(unsigned int icursor, bool state)
void SetGlobalIndexFromLocal(vtkIdType index)
unsigned int GetIndicePreviousEntry(unsigned int icursor)
The previous value.
bool IsMasked(unsigned int icursor)
std::vector< vtkHyperTreeGridGeometryUnlimitedLevelEntry > Entries
std::vector< unsigned int > ReferenceEntries
unsigned int GetLastRealLevel(unsigned int icursor)
Get the level of the tree vertex pointed by the cursor.
vtkHyperTree * GetTree()
Set the hyper tree to which the cursor is pointing.
double GetExtensivePropertyRatio(vtkIdType index)
returns the value of the ratio to be applied to extensive value for the current cursor,...
virtual vtkHyperTreeGridNonOrientedUnlimitedSuperCursor * Clone()
Create a copy of ‘this’.
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
bool IsMasked()
Determine whether blanking mask is empty or not.
bool HasTree(unsigned int icursor)
Return if a Tree pointing exist.
vtkHyperTree * GetTree(unsigned int icursor)
Set the hyper tree to which the cursor is pointing.
unsigned int GetIndiceEntry(unsigned int icursor)
virtual void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)=0
Initialize cursor at root of given tree index in grid.
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned char GetDimension()
Return the dimension of the tree.
void GetBounds(double bounds[6])
Bounding box coordinates.
bool IsLeaf(unsigned int icursor)
Is the cursor pointing to a leaf?
unsigned int GetNumberOfCursors()
~vtkHyperTreeGridNonOrientedUnlimitedSuperCursor() override
Destructor.
vtkIdType GetGlobalNodeIndex(unsigned int icursor)
Return the global index (relative to the grid) of the neighbor icursor current vertex in the tree.
unsigned int GetLevel(unsigned int icursor)
Get the level of the tree vertex pointed by the cursor.
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
vtkSmartPointer< vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor > CentralCursor
bool IsRealLeaf(unsigned int icursor)
Is the cursor pointing to a leaf?
std::vector< unsigned int > FirstNonValidEntryByLevel
bool IsVirtualLeaf(unsigned int icursor)
Is the cursor pointing to a real node in the tree.
vtkIdType GetVertexId(unsigned int icursor)
Return the index of the current vertex in the tree.
double GetExtensivePropertyRatio()
returns the value of the ratio to be applied to extensive value for the current cursor,...
void SetMask(bool state)
Set the blanking mask is empty or not.
bool IsRealLeaf()
Is the cursor pointing to a leaf?
bool IsRoot()
Is the cursor at tree root?
void GetBounds(unsigned int icursor, double bounds[6])
bool IsLeaf()
Is the cursor pointing to a leaf?
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > GetNonOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
void ToRoot()
Move the cursor to the root vertex.
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
bool IsVirtualLeaf()
Is the cursor pointing to a real node in the tree.
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
bool HasTree()
Return if a Tree pointing exist.
unsigned int GetLastRealLevel()
Get the level of the tree vertex pointed by the cursor.
vtkHyperTreeGridNonOrientedUnlimitedSuperCursor()
Constructor.
void SetGlobalIndexStart(vtkIdType index)
void ToParent()
Move the cursor to the parent of the current vertex.
void GetPoint(unsigned int icursor, double point[3])
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
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.