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.; }
unsigned int GetLevel() override
Get the level of the tree vertex pointed by the cursor.
virtual int GetNumberOfChildren()=0
Return the number of children for each node (non-vertex leaf) of the tree.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual unsigned int GetNumberOfCursors()
Return the number of neighborhood cursors The neighborhood definition depends on the type of cursor...
virtual void ToParent()=0
Move the cursor to the parent of the current vertex.
vtkHyperTree * GetTree() override
Set the hyper tree to which the cursor is pointing.
virtual void GetPoint(double pt[3])
Compute the center coordinates of the cursor.
void ToSameVertex(vtkHyperTreeCursor *vtkNotUsed(other)) override
Move the cursor to the same vertex pointed by `other'.
Objects for depth-first traversal HyperTrees.
virtual void SetTree(vtkHyperTree *)=0
Set the HyperTree to which the cursor is pointing.
virtual bool IsRoot()=0
Is the cursor at tree root?
Objects for depth-first traversal HyperTreeGrids.
virtual double * GetOrigin()
Compute the origin of the cursor.
virtual vtkHyperTreeCursor * Clone()=0
Create a copy of `this'.
a simple class to control print indentation
virtual void ToRoot()=0
Move the cursor to the root vertex.
list of point or cell ids
virtual vtkHyperTreeGridCursor * GetCursor(unsigned int)
Return the cursor pointing into i-th neighbor.
virtual int GetChildIndex()=0
Return the child number of the current vertex relative to its parent.
virtual int GetDimension()=0
Return the dimension of the tree.
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.
An object structured as a tree where each node has exactly either 2^d or 3^d children.
virtual bool IsLeaf()=0
Is the cursor pointing to a leaf?
virtual vtkIdType GetVertexId()=0
Return the index of the current vertex in the tree.
int SameTree(vtkHyperTreeCursor *vtkNotUsed(other)) override
Are `this' and `other' pointing on the same hypertree?
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
bool IsEqual(vtkHyperTreeCursor *vtkNotUsed(other)) override
Is `this' equal to `other'?
virtual void ToChild(int child)=0
Move the cursor to child `child' of the current vertex.
virtual double * GetSize()
Compute the size of the cursor.
virtual void GetBounds(double pt[6])
Compute the bounds of the cursor.