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;};
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.
Objects for depth-first traversal HyperTreeGrids.
virtual double * GetSize()
Compute the size of the cursor.
bool IsRoot() override
Is the cursor at tree root?
virtual void Initialize(vtkHyperTreeGrid *, vtkIdType)
Initialize cursor at root of given tree index in grid.
int GetDimension() override
Return the dimension of the tree.
void ToParent() override
Move the cursor to the parent of the current vertex.
void ToSameVertex(vtkHyperTreeCursor *vtkNotUsed(other)) override
Move the cursor to the same vertex pointed by ‘other’.
Objects for depth-first traversal HyperTrees.
int GetNumberOfChildren() override
Return the number of children for each node (non-vertex leaf) of the tree.
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.
void SetTree(vtkHyperTree *) override
Set the hyper tree to which the cursor is pointing.
list of point or cell ids
An object structured as a tree where each node has exactly either 2^d or 3^d children.
bool IsEqual(vtkHyperTreeCursor *vtkNotUsed(other)) override
Is ‘this’ equal to ‘other’?
virtual void GetBounds(double pt[6])
Compute the bounds of the cursor.
void ToRoot() override
Move the cursor to the root vertex.
static vtkHyperTreeGridCursor * New()
bool IsLeaf() override
Is the cursor pointing to a leaf?
~vtkHyperTreeGridCursor() override
Destructor.
virtual void SetGrid(vtkHyperTreeGrid *)
Set the hyper tree grid to which the cursor is pointing.
unsigned int GetLevel() override
Get the level of the tree vertex pointed by the cursor.
vtkHyperTreeGridCursor * Clone() override
Create a copy of ‘this’.
virtual void GetPoint(double pt[3])
Compute the center coordinates of the cursor.
virtual vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
int GetChildIndex() override
Return the child number of the current vertex relative to its parent.
vtkHyperTreeGridCursor()
Constructor.
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 vtkHyperTreeGridCursor * GetCursor(unsigned int)
Return the cursor pointing into i-th neighbor.
vtkIdType GetVertexId() override
Return the index of the current vertex in the tree.
void ToChild(int child) override
Move the cursor to child ‘child’ of the current vertex.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.