Go to the documentation of this file.
29 #ifndef vtkHyperTreeCursor_h
30 #define vtkHyperTreeCursor_h
32 #include "vtkCommonDataModelModule.h"
virtual vtkHyperTreeCursor * Clone()=0
Create a copy of ‘this’.
virtual int GetCurrentLevel()=0
Return the level of the node pointed by the cursor.
virtual vtkHyperTree * GetTree()=0
Return the HyperTree on which the cursor points to.
virtual int GetChildIndex()=0
Return the child number of the current node relative to its parent.
const int VTK_2TREE_CHILD_SE
virtual bool IsEqual(vtkHyperTreeCursor *other)=0
Is ‘this’ equal to ‘other’?
@ VTK_3TREE_CHILD_ZMAX_YMIN_XMIN
virtual vtkIdType GetLeafId()=0
Return the index of the current leaf in the data arrays.
@ VTK_3TREE_CHILD_ZMIN_YMAX_XMAX
virtual vtkIdType GetNodeId()=0
Return the index of the current node in the data arrays.
const int VTK_2TREE_CHILD_NE
abstract base class for most VTK objects
@ VTK_3TREE_CHILD_ZMIN_YMAX_XMIN
virtual int GetNumberOfChildren()=0
Return the number of children for each node of the tree.
@ VTK_3TREE_CHILD_ZMAX_YMAX_XMIN
@ VTK_3TREE_CHILD_ZMAX_YMAX_XMAX
const int VTK_1TREE_TREE_CHILD_LEFT
const int VTK_2TREE_CHILD_SW
Objects that can traverse hypertree nodes.
a simple class to control print indentation
virtual int GetIndex(int d)=0
Return the index in dimension ‘d’, as if the node was a cell of a uniform grid of 1<<GetCurrentLevel(...
An object structured as a tree where each node has exactly either 2^n or 3^n children.
virtual bool IsRoot()=0
Is the node pointed by the cursor the root?
virtual int SameTree(vtkHyperTreeCursor *other)=0
Are ‘this’ and ‘other’ pointing on the same hyper3TREE?
virtual void ToRoot()=0
Move the cursor to the root node.
virtual bool Found()=0
Did the last call to MoveToNode succeed?
virtual void ToSameNode(vtkHyperTreeCursor *other)=0
Move the cursor to the same node pointed by ‘other’.
@ VTK_3TREE_CHILD_ZMAX_YMIN_XMAX
virtual void MoveToNode(int *indices, int level)=0
Move to the node described by its indices in each dimension and at a given level.
const int VTK_2TREE_CHILD_NW
@ VTK_3TREE_CHILD_ZMIN_YMIN_XMIN
virtual void ToChild(int child)=0
Move the cursor to child ‘child’ of the current node.
virtual void ToParent()=0
Move the cursor to the parent of the current node.
virtual int GetDimension()=0
Return the dimension of the tree.
const int VTK_1TREE_TREE_CHILD_RIGHT
@ VTK_3TREE_CHILD_ZMIN_YMIN_XMAX
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool IsTerminalNode()=0
virtual bool IsLeaf()=0
Is the node pointed by the cursor a leaf?
~vtkHyperTreeCursor() override