 |
VTK
9.0.1
|
Go to the documentation of this file.
38 #ifndef vtkHyperTreeGridNonOrientedSuperCursorLight_h
39 #define vtkHyperTreeGridNonOrientedSuperCursorLight_h
41 #include "vtkCommonDataModelModule.h"
121 unsigned int icursor,
unsigned int&
level,
bool& leaf,
vtkIdType&
id);
156 void SetMask(
unsigned int icursor,
bool state);
255 std::vector<vtkHyperTreeGridLevelEntry>
Entries;
269 assert(
"pre: icursor != IndiceCentralCursor" && icursor != this->IndiceCentralCursor);
270 assert(
"pre: valid_icursor" && icursor < this->NumberOfCursors);
271 if (icursor > this->IndiceCentralCursor)
273 assert(
"pre: valid_icursor" &&
274 0 <=
long(this->FirstCurrentNeighboorReferenceEntry + icursor) - 1 &&
275 long(this->FirstCurrentNeighboorReferenceEntry + icursor) - 1 <
276 long(this->ReferenceEntries.size()));
277 assert(
"pre: valid_icursor" &&
278 this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor - 1] <
279 this->Entries.size());
280 return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor - 1];
284 assert(
"pre: valid_icursor" &&
285 this->FirstCurrentNeighboorReferenceEntry + icursor < this->ReferenceEntries.size());
286 assert(
"pre: valid_icursor" &&
287 this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor] <
288 this->Entries.size());
289 return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor];
298 assert(
"pre: icursor != IndiceCentralCursor" && icursor != IndiceCentralCursor);
299 assert(
"pre: valid_icursor" && icursor < this->NumberOfCursors);
300 if (icursor > this->IndiceCentralCursor)
302 assert(
"pre: valid_icursor" &&
304 long(this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor) -
306 long(this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor) -
308 long(this->ReferenceEntries.size()));
309 assert(
"pre: valid_icursor" &&
310 this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
311 (this->NumberOfCursors - 1) + icursor - 1] < this->Entries.size());
312 return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
313 (this->NumberOfCursors - 1) + icursor - 1];
317 assert(
"pre: valid_icursor" &&
318 this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor <
319 this->ReferenceEntries.size());
320 assert(
"pre: valid_icursor" &&
321 this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
322 (this->NumberOfCursors - 1) + icursor] < this->Entries.size());
323 return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
324 (this->NumberOfCursors - 1) + icursor];
void SetGlobalIndexFromLocal(vtkIdType index)
JB.
Objects for traversal a HyperTreeGrid.
void SubdivideLeaf()
JB Fait chier normalement on devrait passer par GetEntry.
void SetGlobalIndexStart(vtkIdType index)
JB.
vtkIdType GetVertexId(unsigned int icursor)
void ToRoot()
Move the cursor to the root vertex.
vtkHyperTreeGridNonOrientedSuperCursorLight()
JB Peut etre reporter les services GetCursor present dans la version non Light ?
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > CentralCursor
JB.
~vtkHyperTreeGridNonOrientedSuperCursorLight() override
Destructor.
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
void ToChild(unsigned char)
Move the cursor to child ‘child’ of the current vertex.
const unsigned int * ChildCursorToChildTable
unsigned int GetLevel(unsigned int icursor)
void GetPoint(double point[3])
JB Coordonnees du centre de la maille En light, information non disponible sur les voisins.
void SetMask(bool state)
Set the blanking mask is empty or not.
bool IsRoot()
Is the cursor at tree root?
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
JB.
abstract base class for most VTK objects
vtkHyperTree * GetTree()
Set the hyper tree to which the cursor is pointing.
unsigned int GetIndiceEntry(unsigned int icursor)
JB.
unsigned int IndiceCentralCursor
JB.
unsigned int NumberOfCursors
unsigned int FirstCurrentNeighboorReferenceEntry
JB La derniere reference valide pour decrire tous les voisins.
std::vector< unsigned int > ReferenceEntries
vtkHyperTree * GetTree(unsigned int icursor)
virtual vtkHyperTreeGridNonOrientedSuperCursorLight * Clone()
Create a copy of ‘this’.
bool HasTree()
Return if a Tree pointing exist.
unsigned int GetNumberOfCursors()
JB.
bool IsLeaf()
Is the cursor pointing to a leaf?
bool IsMasked()
Determine whether blanking mask is empty or not.
void GetBounds(double bounds[6])
JB Coordonnees de la boite englobante En light, information non disponible sur les voisins.
virtual void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)=0
Initialize cursor at root of given tree index in grid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Objects for traversal a HyperTreeGrid.
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
void SetMask(unsigned int icursor, bool state)
a simple class to control print indentation
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
std::vector< vtkHyperTreeGridLevelEntry > Entries
A data object structured as a tree.
vtkIdType GetGlobalNodeIndex(unsigned int icursor)
JB Return the global index (relative to the grid) of the neighboor icursor current vertex in the tree...
void ToParent()
Move the cursor to the parent of the current vertex.
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
bool IsLeaf(unsigned int icursor)
unsigned int GetIndicePreviousEntry(unsigned int icursor)
JB La valeur precedente.
bool HasTree(unsigned int icursor)
JB Return if a Tree pointing exist.
unsigned char GetDimension()
Return the dimension of the tree.
bool IsMasked(unsigned int icursor)
const unsigned int * ChildCursorToParentCursorTable
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
unsigned int CurrentFirstNonValidEntryByLevel
JB Hyper tree grid to which the cursor is attached.
std::vector< unsigned int > FirstNonValidEntryByLevel
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.