Go to the documentation of this file.
34 #ifndef vtkHyperTreeCursor_h
35 #define vtkHyperTreeCursor_h
37 #include "vtkCommonDataModelModule.h"
virtual vtkHyperTreeCursor * Clone()=0
Create a copy of ‘this’.
virtual vtkHyperTree * GetTree()=0
Return the HyperTree to which the cursor is pointing.
virtual int GetChildIndex()=0
Return the child number of the current vertex relative to its parent.
virtual bool IsEqual(vtkHyperTreeCursor *other)=0
Is ‘this’ equal to ‘other’?
abstract base class for most VTK objects
virtual int GetNumberOfChildren()=0
Return the number of children for each node (non-vertex leaf) of the tree.
virtual unsigned int GetLevel()=0
Return the level of the vertex pointed by the cursor.
Objects for depth-first traversal HyperTrees.
a simple class to control print indentation
An object structured as a tree where each node has exactly either 2^d or 3^d children.
virtual bool IsRoot()=0
Is the cursor at tree root?
virtual int SameTree(vtkHyperTreeCursor *other)=0
Are ‘this’ and ‘other’ pointing on the same hypertree?
virtual void ToRoot()=0
Move the cursor to the root vertex.
virtual void ToSameVertex(vtkHyperTreeCursor *other)=0
Move the cursor to the same vertex pointed by ‘other’.
virtual void ToChild(int child)=0
Move the cursor to child ‘child’ of the current vertex.
virtual void ToParent()=0
Move the cursor to the parent of the current vertex.
virtual int GetDimension()=0
Return the dimension of the tree.
virtual void SetTree(vtkHyperTree *)=0
Set the HyperTree to which the cursor is pointing.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool IsLeaf()=0
Is the cursor pointing to a leaf?
~vtkHyperTreeCursor() override
virtual vtkIdType GetVertexId()=0
Return the index of the current vertex in the tree.