 |
VTK
9.0.1
|
Go to the documentation of this file.
39 #ifndef vtkHyperTreeGridNonOrientedGeometryCursor_h
40 #define vtkHyperTreeGridNonOrientedGeometryCursor_h
42 #include "vtkCommonDataModelModule.h"
242 std::shared_ptr<vtkHyperTreeGridScales>
Scales;
255 std::vector<vtkHyperTreeGridGeometryEntry>
Entries;
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkHyperTreeGridGeometryEntry &entry)
Initialize cursor at root of given tree index in grid.
Objects for traversal a HyperTreeGrid.
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
void GetPoint(double point[3])
void ToRoot()
Move the cursor to the root vertex.
bool HasTree() const
Return if a Tree pointing exist.
void ToChild(unsigned char ichild)
Move the cursor to child ‘child’ of the current vertex.
unsigned char GetDimension()
Return the dimension of the tree.
bool IsLeaf()
Is the cursor pointing to a leaf?
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
Hold a reference to a vtkObjectBase instance.
abstract base class for most VTK objects
void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)
Initialize cursor at root of given tree index in grid.
std::shared_ptr< vtkHyperTreeGridScales > Scales
JB Storage of pre-computed per-level cell scales.
static vtkHyperTreeGridNonOrientedGeometryCursor * New()
void SetMask(bool state)
Set the blanking mask is empty or not.
bool IsMasked()
Determine whether blanking mask is empty or not.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Initialize(vtkHyperTreeGridNonOrientedGeometryCursor *cursor)
JB.
virtual vtkHyperTreeGridNonOrientedGeometryCursor * Clone()
Create a copy of ‘this’.
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
void GetBounds(double bounds[6])
JB.
void Initialize(vtkHyperTreeGrid *grid, vtkHyperTree *tree, unsigned int level, vtkIdType index, double *origin)
JB.
vtkHyperTreeGridNonOrientedGeometryCursor()
Constructor JB Just pour vtkHyperTreeGridNonOrientedVonNeumannSuperCursor et Moore.
Objects for traversal a HyperTreeGrid.
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
a simple class to control print indentation
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
A data object structured as a tree.
bool IsRoot()
Is the cursor at tree root?
vtkHyperTree * GetTree() const
Set the hyper tree to which the cursor is pointing.
void SetGlobalIndexFromLocal(vtkIdType index)
JB.
std::vector< vtkHyperTreeGridGeometryEntry > Entries
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursor > GetHyperTreeGridOrientedGeometryCursor(vtkHyperTreeGrid *grid)
JB Create a vtkHyperTreeGridOrientedGeometryCursor from input grid and current entry data.
void SubdivideLeaf()
JB Fait chier normalement on devrait passer par GetEntry.
void SetGlobalIndexStart(vtkIdType index)
JB.
void ToParent()
Move the cursor to the parent of the current vertex.
~vtkHyperTreeGridNonOrientedGeometryCursor() override
Destructor JB Just pour vtkHyperTreeGridNonOrientedVonNeumannSuperCursor et Moore.
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
int LastValidEntry
JB La derniere entree valide.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.