38#ifndef vtkHyperTreeGridNonOrientedSuperCursor_h
39#define vtkHyperTreeGridNonOrientedSuperCursor_h
41#include "vtkCommonDataModelModule.h"
121 unsigned int icursor,
unsigned int&
level,
bool& leaf,
vtkIdType&
id);
156 void SetMask(
unsigned int icursor,
bool state);
232 unsigned int icursor);
240 unsigned int icursor);
269 std::vector<vtkHyperTreeGridGeometryLevelEntry>
Entries;
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
vtkHyperTree * GetTree()
Set the hyper tree to which the cursor is pointing.
void GetBounds(double bounds[6])
JB Coordonnees de la boite englobante.
bool IsLeaf(unsigned int icursor)
void GetPoint(unsigned int icursor, double point[3])
bool IsMasked()
Determine whether blanking mask is empty or not.
unsigned int GetNumberOfCursors()
JB.
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
JB.
std::vector< vtkHyperTreeGridGeometryLevelEntry > Entries
bool IsLeaf()
Is the cursor pointing to a leaf?
~vtkHyperTreeGridNonOrientedSuperCursor() override
Destructor.
bool IsMasked(unsigned int icursor)
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
void GetPoint(double point[3])
JB Coordonnees du centre de la maille.
void ToParent()
Move the cursor to the parent of the current vertex.
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
bool HasTree()
Return if a Tree pointing exist.
virtual vtkHyperTreeGridNonOrientedSuperCursor * Clone()
Create a copy of ‘this’.
const unsigned int * ChildCursorToParentCursorTable
vtkHyperTreeGridNonOrientedSuperCursor()
Constructor.
void ToRoot()
Move the cursor to the root vertex.
unsigned int CurrentFirstNonValidEntryByLevel
JB Hyper tree grid to which the cursor is attached.
unsigned int GetIndicePreviousEntry(unsigned int icursor)
JB La valeur precedente.
bool IsRoot()
Is the cursor at tree root?
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
unsigned int IndiceCentralCursor
JB.
unsigned int FirstCurrentNeighboorReferenceEntry
JB La derniere reference valide pour decrire tous les voisins.
unsigned int GetLevel(unsigned int icursor)
void SetGlobalIndexFromLocal(vtkIdType index)
JB.
unsigned int NumberOfCursors
const unsigned int * ChildCursorToChildTable
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > GetNonOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
unsigned char GetDimension()
Return the dimension of the tree.
vtkHyperTree * GetTree(unsigned int icursor)
Set the hyper tree to which the cursor is pointing.
void SubdivideLeaf()
JB Fait chier normalement on devrait passer par GetEntry.
bool HasTree(unsigned int icursor)
JB Return if a Tree pointing exist.
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetOrientedGeometryCursor(unsigned int icursor)
Return the cursor pointing into i-th neighbor.
vtkIdType GetGlobalNodeIndex(unsigned int icursor)
JB Return the global index (relative to the grid) of the neighboor icursor current vertex in the tree...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)=0
Initialize cursor at root of given tree index in grid.
void SetGlobalIndexStart(vtkIdType index)
JB.
unsigned int GetIndiceEntry(unsigned int icursor)
JB.
void SetMask(unsigned int icursor, bool state)
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
vtkIdType GetVertexId(unsigned int icursor)
void SetMask(bool state)
Set the blanking mask is empty or not.
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
std::vector< unsigned int > FirstNonValidEntryByLevel
std::vector< unsigned int > ReferenceEntries
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > CentralCursor
JB.
void GetBounds(unsigned int icursor, double bounds[6])
Objects for traversal a HyperTreeGrid.
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
Hold a reference to a vtkObjectBase instance.