26#ifndef vtkHyperTreeGridNonOrientedSuperCursorLight_h 
   27#define vtkHyperTreeGridNonOrientedSuperCursorLight_h 
   29#include "vtkCommonDataModelModule.h"  
   38VTK_ABI_NAMESPACE_BEGIN
 
  110    unsigned int icursor, 
unsigned int& level, 
bool& leaf, 
vtkIdType& 
id);
 
  145  void SetMask(
unsigned int icursor, 
bool state);
 
  244  std::vector<vtkHyperTreeGridLevelEntry> 
Entries;
 
  258    assert(
"pre: icursor != IndiceCentralCursor" && icursor != this->IndiceCentralCursor);
 
  259    assert(
"pre: valid_icursor" && icursor < this->NumberOfCursors);
 
  260    if (icursor > this->IndiceCentralCursor)
 
  262      assert(
"pre: valid_icursor" &&
 
  263        0 <= 
long(this->FirstCurrentNeighboorReferenceEntry + icursor) - 1 &&
 
  264        long(this->FirstCurrentNeighboorReferenceEntry + icursor) - 1 <
 
  265          long(this->ReferenceEntries.size()));
 
  266      assert(
"pre: valid_icursor" &&
 
  267        this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor - 1] <
 
  268          this->Entries.size());
 
  269      return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor - 1];
 
  273      assert(
"pre: valid_icursor" &&
 
  274        this->FirstCurrentNeighboorReferenceEntry + icursor < this->ReferenceEntries.size());
 
  275      assert(
"pre: valid_icursor" &&
 
  276        this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor] <
 
  277          this->Entries.size());
 
  278      return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry + icursor];
 
  287    assert(
"pre: icursor != IndiceCentralCursor" && icursor != IndiceCentralCursor);
 
  288    assert(
"pre: valid_icursor" && icursor < this->NumberOfCursors);
 
  289    if (icursor > this->IndiceCentralCursor)
 
  291      assert(
"pre: valid_icursor" &&
 
  293          long(this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor) -
 
  295        long(this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor) -
 
  297          long(this->ReferenceEntries.size()));
 
  298      assert(
"pre: valid_icursor" &&
 
  299        this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
 
  300          (this->NumberOfCursors - 1) + icursor - 1] < this->Entries.size());
 
  301      return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
 
  302        (this->NumberOfCursors - 1) + icursor - 1];
 
  306      assert(
"pre: valid_icursor" &&
 
  307        this->FirstCurrentNeighboorReferenceEntry - (this->NumberOfCursors - 1) + icursor <
 
  308          this->ReferenceEntries.size());
 
  309      assert(
"pre: valid_icursor" &&
 
  310        this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
 
  311          (this->NumberOfCursors - 1) + icursor] < this->Entries.size());
 
  312      return this->ReferenceEntries[this->FirstCurrentNeighboorReferenceEntry -
 
  313        (this->NumberOfCursors - 1) + icursor];
 
Objects for traversal a HyperTreeGrid.
 
Objects for traversal a HyperTreeGrid.
 
void GetBounds(double bounds[6])
JB Coordonnees de la boite englobante En light, information non disponible sur les voisins.
 
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor > CentralCursor
JB.
 
vtkIdType GetGlobalNodeIndex(unsigned int icursor)
JB Return the global index (relative to the grid) of the neighboor icursor current vertex in the tree...
 
void SubdivideLeaf()
JB Fait chier normalement on devrait passer par GetEntry.
 
bool IsLeaf()
Is the cursor pointing to a leaf?
 
std::vector< vtkHyperTreeGridLevelEntry > Entries
 
unsigned int IndiceCentralCursor
JB.
 
void SetMask(unsigned int icursor, bool state)
 
vtkHyperTreeGrid * GetGrid()
Set the hyper tree grid to which the cursor is pointing.
 
~vtkHyperTreeGridNonOrientedSuperCursorLight() override
Destructor.
 
unsigned int NumberOfCursors
 
vtkHyperTreeGridNonOrientedSuperCursorLight()
JB Peut etre reporter les services GetCursor present dans la version non Light ?
 
vtkHyperTree * GetInformation(unsigned int icursor, unsigned int &level, bool &leaf, vtkIdType &id)
JB.
 
const unsigned int * ChildCursorToChildTable
 
bool IsRoot()
Is the cursor at tree root?
 
void GetPoint(double point[3])
JB Coordonnees du centre de la maille En light, information non disponible sur les voisins.
 
const unsigned int * ChildCursorToParentCursorTable
 
unsigned char GetDimension()
Return the dimension of the tree.
 
vtkIdType GetGlobalNodeIndex()
Return the global index (relative to the grid) of the current vertex in the tree.
 
vtkIdType GetVertexId(unsigned int icursor)
 
unsigned int FirstCurrentNeighboorReferenceEntry
JB La derniere reference valide pour decrire tous les voisins.
 
unsigned char GetNumberOfChildren()
Return the number of children for each node (non-vertex leaf) of the tree.
 
unsigned int GetIndicePreviousEntry(unsigned int icursor)
JB La valeur precedente.
 
void ToParent()
Move the cursor to the parent of the current vertex.
 
unsigned int GetLevel(unsigned int icursor)
 
bool IsMasked(unsigned int icursor)
 
virtual vtkHyperTreeGridNonOrientedSuperCursorLight * Clone()
Create a copy of ‘this’.
 
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
 
virtual void Initialize(vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)=0
Initialize cursor at root of given tree index in grid.
 
vtkHyperTree * GetTree(unsigned int icursor)
Set the hyper tree to which the cursor is pointing.
 
vtkIdType GetVertexId()
Return the index of the current vertex in the tree.
 
vtkHyperTree * GetTree()
Set the hyper tree to which the cursor is pointing.
 
void ToRoot()
Move the cursor to the root vertex.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
unsigned int GetIndiceEntry(unsigned int icursor)
JB.
 
bool IsMasked()
Determine whether blanking mask is empty or not.
 
std::vector< unsigned int > FirstNonValidEntryByLevel
 
void SetGlobalIndexFromLocal(vtkIdType index)
JB.
 
unsigned int GetLevel()
Get the level of the tree vertex pointed by the cursor.
 
bool IsLeaf(unsigned int icursor)
 
unsigned int GetNumberOfCursors()
JB.
 
void SetMask(bool state)
Set the blanking mask is empty or not.
 
bool HasTree()
Return if a Tree pointing exist.
 
void SetGlobalIndexStart(vtkIdType index)
JB.
 
bool HasTree(unsigned int icursor)
JB Return if a Tree pointing exist.
 
unsigned int CurrentFirstNonValidEntryByLevel
JB Hyper tree grid to which the cursor is attached.
 
void ToChild(unsigned char)
Move the cursor to child ‘child’ of the current vertex.
 
std::vector< unsigned int > ReferenceEntries
 
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.