26#ifndef vtkHyperTreeGridOrientedGeometryCursor_h
27#define vtkHyperTreeGridOrientedGeometryCursor_h
29#include "vtkCommonDataModelModule.h"
37VTK_ABI_NAMESPACE_BEGIN
177 std::shared_ptr<vtkHyperTreeGridScales>
Scales;
GeometryEntry is a cache data for cursors requiring coordinates.
Objects for traversal a HyperTreeGrid.
bool HasTree() const
Return if a Tree pointing exist.
void SetGlobalIndexFromLocal(vtkIdType index)
void GetBounds(double bounds[6])
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
virtual vtkHyperTreeGridOrientedGeometryCursor * Clone()
Create a copy of ‘this’.
~vtkHyperTreeGridOrientedGeometryCursor() override
Used by vtkHyperTreeGridNonOrientedVonNeumannSuperCursor & Moore.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetGlobalIndexStart(vtkIdType index)
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
unsigned char GetDimension()
Return the dimension of the tree.
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
bool IsLeaf()
Is the cursor pointing to a leaf?
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkIdType index, double *origin)
Initialize cursor at root of given tree index in grid.
vtkHyperTreeGrid * Grid
Reference to the HTG currently processed.
void SetMask(bool state)
Set the blanking mask is empty or not.
void GetPoint(double point[3])
void Initialize(vtkHyperTreeGridOrientedGeometryCursor *cursor)
Initialize cursor at root of given tree index in grid.
bool IsMasked()
Determine whether blanking mask is empty or not.
void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)
Initialize cursor at root of given tree index in grid.
vtkHyperTreeGridGeometryEntry Entry
bool IsRoot()
Is the cursor at tree root?
vtkHyperTreeGridOrientedGeometryCursor()
Used by vtkHyperTreeGridNonOrientedVonNeumannSuperCursor & Moore.
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
std::shared_ptr< vtkHyperTreeGridScales > Scales
Storage of pre-computed per-level cell scales.
static vtkHyperTreeGridOrientedGeometryCursor * New()
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkHyperTreeGridGeometryEntry &entry)
Initialize cursor at root of given tree index in grid.
vtkHyperTree * GetTree() const
Set the hyper tree to which the cursor is pointing.
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
A data object structured as a tree.
a simple class to control print indentation
abstract base class for most VTK objects