Go to the documentation of this file.
134 #ifndef vtkHyperTree_h
135 #define vtkHyperTree_h
137 #include "vtkCommonDataModelModule.h"
204 unsigned int dimension );
virtual unsigned int GetActualMemorySize()=0
Return memory used in kibibytes (1024 bytes).
virtual void FindChildParameters(int, vtkIdType &, bool &)
Find the Index, Parent Index and IsLeaf() parameters of the child of a node in the hypertree.
virtual int GetDimension()=0
Return the dimension of the tree.
abstract base class for most VTK objects
virtual void SubdivideLeaf(vtkHyperTreeCursor *leaf)=0
Subdivide node pointed by cursor, only if its a leaf.
virtual void SetGlobalIndexStart(vtkIdType)=0
Set the start global index for the current tree.
virtual int GetBranchFactor()=0
Return the branch factor of the tree.
virtual vtkHyperTreeCursor * NewCursor()=0
Return pointer to new instance of hyper tree cursor.
virtual void SetGlobalIndexFromLocal(vtkIdType local, vtkIdType global)=0
Set the mapping between local & global Ids used by HyperTreeGrids.
virtual vtkIdType GetNumberOfChildren()=0
Return the number of children per node of the tree.
virtual void GetScale(double[3])=0
virtual vtkIdType GetNumberOfNodes()=0
Return the number of nodes (non-leaf vertices) in the tree.
void PrintSelf(ostream &, vtkIndent) override
Methods invoked by print to print information about the object including superclasses.
Objects for depth-first traversal HyperTrees.
a simple class to control print indentation
virtual vtkIdType GetGlobalIndexFromLocal(vtkIdType local)=0
Get the global id of a local node.
An object structured as a tree where each node has exactly either 2^d or 3^d children.
virtual vtkIdType GetNumberOfVertices()=0
Return the number of vertices in the tree.
virtual void SetScale(double[3])=0
Set/Get scale of the tree in each direction.
virtual double GetScale(unsigned int)=0
static vtkHyperTree * CreateInstance(unsigned int branchFactor, unsigned int dimension)
Return an instance of a templated hypertree for given branch factor and dimension.
virtual vtkIdType GetNumberOfLeaves()=0
Return the number of leaf vertices in the tree.
virtual void FindParentIndex(vtkIdType &)
Find the Index of the parent of a vertex in the hypertree.
virtual vtkIdType GetNumberOfLevels()=0
Return the number of levels.
virtual void Initialize()=0
Restore the initial state: only one node and one leaf: the root.