Go to the documentation of this file.
35 #ifndef vtkHyperTreeGridCursor_h
36 #define vtkHyperTreeGridCursor_h
38 #include "vtkCommonDataModelModule.h"
104 unsigned int GetLevel()
override {
return this->Level;};
131 void ToChild(
int child )
override;
186 { pt[0] = pt[1] = pt[2] = pt[3] = pt[4] = pt[5] = 0.; }
192 virtual void GetPoint(
double pt[3] ) { pt[0] = pt[1] = pt[2] = 0.; }
vtkHyperTree * GetTree() override
Return the HyperTree to which the cursor is pointing.
virtual vtkHyperTreeCursor * Clone()=0
Create a copy of ‘this’.
Objects for depth-first traversal HyperTreeGrids.
virtual int GetChildIndex()=0
Return the child number of the current vertex relative to its parent.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual double * GetSize()
Compute the size of the cursor.
virtual int GetNumberOfChildren()=0
Return the number of children for each node (non-vertex leaf) of the tree.
void ToSameVertex(vtkHyperTreeCursor *vtkNotUsed(other)) override
Move the cursor to the same vertex pointed by ‘other’.
Objects for depth-first traversal HyperTrees.
int SameTree(vtkHyperTreeCursor *vtkNotUsed(other)) override
Are ‘this’ and ‘other’ pointing on the same hypertree?
a simple class to control print indentation
virtual unsigned int GetNumberOfCursors()
Return the number of neighborhood cursors The neighborhood definition depends on the type of cursor.
list of point or cell ids
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?
bool IsEqual(vtkHyperTreeCursor *vtkNotUsed(other)) override
Is ‘this’ equal to ‘other’?
virtual void GetBounds(double pt[6])
Compute the bounds of the cursor.
virtual void ToRoot()=0
Move the cursor to the root vertex.
unsigned int GetLevel() override
Get the level of the tree vertex pointed by the cursor.
virtual void GetPoint(double pt[3])
Compute the center coordinates of the cursor.
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.
virtual double * GetOrigin()
Compute the origin of the cursor.
virtual bool GetCornerCursors(unsigned int, unsigned int, vtkIdList *)
Return the list of cursors pointing to the leaves touching a given corner of the cell.
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?
virtual vtkHyperTreeGridCursor * GetCursor(unsigned int)
Return the cursor pointing into i-th neighbor.
virtual vtkIdType GetVertexId()=0
Return the index of the current vertex in the tree.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.