VTK  9.3.20240419
Public Member Functions | List of all members
vtkHyperTreeGridGeometryUnlimitedLevelEntry Class Reference

Cursor cache data with coordinates and level info. More...

#include <vtkHyperTreeGridGeometryUnlimitedLevelEntry.h>

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
 Display info about the entry. More...
 
 vtkHyperTreeGridGeometryUnlimitedLevelEntry (vtkHyperTree *tree=nullptr)
 Constructor. More...
 
 vtkHyperTreeGridGeometryUnlimitedLevelEntry (vtkHyperTreeGridGeometryUnlimitedLevelEntry const &)=default
 
vtkHyperTreeGridGeometryUnlimitedLevelEntryoperator= (vtkHyperTreeGridGeometryUnlimitedLevelEntry const &)=default
 
 ~vtkHyperTreeGridGeometryUnlimitedLevelEntry ()=default
 Destructor. More...
 
void Dump (ostream &os)
 Dump information. More...
 
void Initialize (vtkHyperTree *tree, unsigned int level, vtkIdType index, const double *origin)
 Initialize cache entry from explicit required data. More...
 
vtkHyperTreeInitialize (vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false)
 Initialize cache entry at root of given tree index in grid. More...
 
void Reset ()
 Reset function. More...
 
void Copy (const vtkHyperTreeGridGeometryUnlimitedLevelEntry *entry)
 Copy function. More...
 
vtkSmartPointer< vtkHyperTreeGridOrientedGeometryCursorGetHyperTreeGridOrientedGeometryCursor (vtkHyperTreeGrid *grid)
 Create a vtkHyperTreeGridOrientedCursor from input grid and current entry data. More...
 
vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursorGetHyperTreeGridNonOrientedGeometryCursor (vtkHyperTreeGrid *grid)
 Create a vtkHyperTreeGridNonOrientedCursor from input grid and current entry data. More...
 
vtkIdType GetVertexId () const
 Return the index of the current vertex in the tree. More...
 
vtkIdType GetGlobalNodeIndex () const
 Return the global index (relative to the grid) of the current vertex in the tree. More...
 
void SetGlobalIndexStart (vtkIdType index)
 Set the global index for the root cell of the HyperTree. More...
 
void SetGlobalIndexFromLocal (vtkIdType index)
 Set the global index for the current cell of the HyperTree. More...
 
void SetMask (const vtkHyperTreeGrid *grid, bool state)
 Set the blanking mask is empty or not. More...
 
bool IsMasked (const vtkHyperTreeGrid *grid) const
 Determine whether blanking mask is empty or not. More...
 
bool IsLeaf (const vtkHyperTreeGrid *grid) const
 Is the cursor pointing to a leaf? More...
 
bool IsRealLeaf (const vtkHyperTreeGrid *grid) const
 Is the cursor pointing to a leaf? More...
 
bool IsVirtualLeaf (const vtkHyperTreeGrid *grid) const
 Is the cursor pointing to a virually subdivided leaf? More...
 
bool IsTerminalNode (const vtkHyperTreeGrid *grid) const
 Is the cursor pointing to a coarse with all children being leaves ? More...
 
bool IsRoot ()
 Is the cursor at tree root? More...
 
void ToChild (const vtkHyperTreeGrid *grid, unsigned char ichild)
 Move the cursor to child ‘child’ of the current vertex. More...
 
vtkHyperTreeGetTree () const
 Get HyperTree from current cache entry. More...
 
void GetBounds (double bounds[6]) const
 Getter for bounding box of the current cell. More...
 
void GetPoint (double point[3]) const
 Getter for center of the current cell. More...
 
unsigned int GetLevel () const
 Get level info from current cache entry. More...
 
unsigned int GetLastRealLevel () const
 Get level info from current cache entry. More...
 
double * GetOrigin ()
 Getter for origin coordinates of the current cell. More...
 
const double * GetOrigin () const
 Getter for origin coordinates of the current cell. More...
 

Detailed Description

Cursor cache data with coordinates and level info.

cf. vtkHyperTreeGridEntry

See also
vtkHyperTreeGridEntry vtkHyperTreeGridLevelEntry vtkHyperTreeGridGeometryEntry vtkHyperTreeGridGeometryLevelEntry vtkHyperTreeGridGeometryUnlimitedLevelEntry vtkHyperTreeGridNonOrientedSuperCursor vtkHyperTreeGridNonOrientedSuperCursorLight
Thanks:
This class was written by Jacques-Bernard Lekien, Jerome Dubois and Guenole Harel, CEA 2018. This work was supported by Commissariat a l'Energie Atomique CEA, DAM, DIF, F-91297 Arpajon, France.

Definition at line 40 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

Constructor & Destructor Documentation

◆ vtkHyperTreeGridGeometryUnlimitedLevelEntry() [1/2]

vtkHyperTreeGridGeometryUnlimitedLevelEntry::vtkHyperTreeGridGeometryUnlimitedLevelEntry ( vtkHyperTree tree = nullptr)
inline

Constructor.

Definition at line 51 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ vtkHyperTreeGridGeometryUnlimitedLevelEntry() [2/2]

vtkHyperTreeGridGeometryUnlimitedLevelEntry::vtkHyperTreeGridGeometryUnlimitedLevelEntry ( vtkHyperTreeGridGeometryUnlimitedLevelEntry const &  )
default

◆ ~vtkHyperTreeGridGeometryUnlimitedLevelEntry()

vtkHyperTreeGridGeometryUnlimitedLevelEntry::~vtkHyperTreeGridGeometryUnlimitedLevelEntry ( )
default

Destructor.

Member Function Documentation

◆ PrintSelf()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Display info about the entry.

◆ operator=()

vtkHyperTreeGridGeometryUnlimitedLevelEntry& vtkHyperTreeGridGeometryUnlimitedLevelEntry::operator= ( vtkHyperTreeGridGeometryUnlimitedLevelEntry const &  )
default

◆ Dump()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::Dump ( ostream &  os)

Dump information.

◆ Initialize() [1/2]

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::Initialize ( vtkHyperTree tree,
unsigned int  level,
vtkIdType  index,
const double *  origin 
)

Initialize cache entry from explicit required data.

◆ Initialize() [2/2]

vtkHyperTree* vtkHyperTreeGridGeometryUnlimitedLevelEntry::Initialize ( vtkHyperTreeGrid grid,
vtkIdType  treeIndex,
bool  create = false 
)

Initialize cache entry at root of given tree index in grid.

◆ Reset()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::Reset ( )
inline

Reset function.

Definition at line 90 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ Copy()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::Copy ( const vtkHyperTreeGridGeometryUnlimitedLevelEntry entry)
inline

Copy function.

Definition at line 99 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetHyperTreeGridOrientedGeometryCursor()

vtkSmartPointer<vtkHyperTreeGridOrientedGeometryCursor> vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetHyperTreeGridOrientedGeometryCursor ( vtkHyperTreeGrid grid)
inline

Create a vtkHyperTreeGridOrientedCursor from input grid and current entry data.

Definition at line 110 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetHyperTreeGridNonOrientedGeometryCursor()

vtkSmartPointer<vtkHyperTreeGridNonOrientedGeometryCursor> vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetHyperTreeGridNonOrientedGeometryCursor ( vtkHyperTreeGrid grid)
inline

Create a vtkHyperTreeGridNonOrientedCursor from input grid and current entry data.

Definition at line 124 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetVertexId()

vtkIdType vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetVertexId ( ) const
inline

Return the index of the current vertex in the tree.

Precondition
not_tree: tree

Definition at line 137 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetGlobalNodeIndex()

vtkIdType vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetGlobalNodeIndex ( ) const

Return the global index (relative to the grid) of the current vertex in the tree.

Precondition
not_tree: tree

◆ SetGlobalIndexStart()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::SetGlobalIndexStart ( vtkIdType  index)

Set the global index for the root cell of the HyperTree.

Precondition
not_tree: tree

◆ SetGlobalIndexFromLocal()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::SetGlobalIndexFromLocal ( vtkIdType  index)

Set the global index for the current cell of the HyperTree.

Precondition
not_tree: tree

◆ SetMask()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::SetMask ( const vtkHyperTreeGrid grid,
bool  state 
)

Set the blanking mask is empty or not.

Precondition
not_tree: tree

◆ IsMasked()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsMasked ( const vtkHyperTreeGrid grid) const

Determine whether blanking mask is empty or not.

Precondition
not_tree: tree

◆ IsLeaf()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsLeaf ( const vtkHyperTreeGrid grid) const

Is the cursor pointing to a leaf?

Precondition
not_tree: tree Return true if level == grid->GetDepthLimiter()

◆ IsRealLeaf()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsRealLeaf ( const vtkHyperTreeGrid grid) const

Is the cursor pointing to a leaf?

Precondition
not_tree: tree

◆ IsVirtualLeaf()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsVirtualLeaf ( const vtkHyperTreeGrid grid) const

Is the cursor pointing to a virually subdivided leaf?

Precondition
not_tree: tree

◆ IsTerminalNode()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsTerminalNode ( const vtkHyperTreeGrid grid) const

Is the cursor pointing to a coarse with all children being leaves ?

Precondition
not_tree: tree

◆ IsRoot()

bool vtkHyperTreeGridGeometryUnlimitedLevelEntry::IsRoot ( )
inline

Is the cursor at tree root?

Definition at line 198 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ ToChild()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::ToChild ( const vtkHyperTreeGrid grid,
unsigned char  ichild 
)

Move the cursor to child ‘child’ of the current vertex.

Precondition
not_tree: tree
not_leaf: !IsLeaf()
valid_child: ichild>=0 && ichild<this->GetNumberOfChildren()
depth_limiter: level == grid->GetDepthLimiter()
is_masked: !IsMasked()

◆ GetTree()

vtkHyperTree* vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetTree ( ) const
inline

Get HyperTree from current cache entry.

Definition at line 213 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetLevel()

unsigned int vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetLevel ( ) const
inline

Get level info from current cache entry.

Definition at line 219 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetLastRealLevel()

unsigned int vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetLastRealLevel ( ) const
inline

Get level info from current cache entry.

Definition at line 220 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetOrigin() [1/2]

double* vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetOrigin ( )
inline

Getter for origin coordinates of the current cell.

Definition at line 227 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetOrigin() [2/2]

const double* vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetOrigin ( ) const
inline

Getter for origin coordinates of the current cell.

Definition at line 228 of file vtkHyperTreeGridGeometryUnlimitedLevelEntry.h.

◆ GetBounds()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetBounds ( double  bounds[6]) const

Getter for bounding box of the current cell.

◆ GetPoint()

void vtkHyperTreeGridGeometryUnlimitedLevelEntry::GetPoint ( double  point[3]) const

Getter for center of the current cell.


The documentation for this class was generated from the following file: