VTK
9.1.0
|
LevelEntry is a cache data for cursors requiring level info. More...
#include <vtkHyperTreeGridLevelEntry.h>
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
Display info about the entry. | |
void | Dump (ostream &os) |
Dump information. | |
vtkHyperTreeGridLevelEntry () | |
Constructor. | |
vtkHyperTreeGridLevelEntry (vtkHyperTreeGridLevelEntry *entry) | |
Constructor. | |
vtkHyperTreeGridLevelEntry (vtkHyperTree *tree, unsigned int level, vtkIdType index) | |
Constructor. | |
vtkHyperTreeGridLevelEntry (vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false) | |
Constructor. | |
~vtkHyperTreeGridLevelEntry ()=default | |
Destructor. | |
void | Reset () |
Reset function. | |
void | Initialize (vtkHyperTree *tree, unsigned int level, vtkIdType index) |
Initialize cursor from explicit required data. | |
vtkHyperTree * | Initialize (vtkHyperTreeGrid *grid, vtkIdType treeIndex, bool create=false) |
Initialize cursor at root of given tree index in grid. | |
void | Copy (const vtkHyperTreeGridLevelEntry *entry) |
Copy function. | |
vtkSmartPointer< vtkHyperTreeGridNonOrientedCursor > | GetHyperTreeGridNonOrientedCursor (vtkHyperTreeGrid *grid) |
Create a vtkHyperTreeGridNonOrientedCursor from input grid and current entry data. | |
vtkIdType | GetVertexId () const |
Return the index of the current vertex in the tree. | |
vtkIdType | GetGlobalNodeIndex () const |
Return the global index (relative to the grid) of the current vertex in the tree. | |
void | SetGlobalIndexStart (vtkIdType index) |
Set the global index for the root cell of the HyperTree. | |
void | SetGlobalIndexFromLocal (vtkIdType index) |
Set the global index for the current cell of the HyperTree. | |
void | SetMask (const vtkHyperTreeGrid *grid, bool state) |
Set the blanking mask is empty or not. | |
bool | IsMasked (const vtkHyperTreeGrid *grid) const |
Determine whether blanking mask is empty or not. | |
bool | IsLeaf (const vtkHyperTreeGrid *grid) const |
Is the cursor pointing to a leaf? | |
void | SubdivideLeaf (const vtkHyperTreeGrid *grid) |
Change the current cell's status: if leaf then becomes coarse and all its children are created, cf. | |
bool | IsTerminalNode (const vtkHyperTreeGrid *grid) const |
Is the cursor pointing to a coarse with all childrens being leaves ? | |
bool | IsRoot () const |
Is the cursor at tree root? | |
void | ToChild (const vtkHyperTreeGrid *grid, unsigned char ichild) |
Move the cursor to child ‘child’ of the current vertex. | |
vtkHyperTree * | GetTree () const |
Get HyperTree from current cache entry. | |
unsigned int | GetLevel () const |
Get level info from current cache entry. | |
Protected Attributes | |
vtkHyperTree * | Tree |
pointer to the HyperTree containing the current cell. | |
unsigned int | Level |
level of the current cell in the HyperTree. | |
vtkIdType | Index |
index of the current cell in the HyperTree. | |
LevelEntry is a cache data for cursors requiring level info.
Definition at line 48 of file vtkHyperTreeGridLevelEntry.h.
|
inline |
Constructor.
Definition at line 64 of file vtkHyperTreeGridLevelEntry.h.
|
inline |
Constructor.
Definition at line 74 of file vtkHyperTreeGridLevelEntry.h.
|
inline |
Constructor.
Definition at line 84 of file vtkHyperTreeGridLevelEntry.h.
vtkHyperTreeGridLevelEntry::vtkHyperTreeGridLevelEntry | ( | vtkHyperTreeGrid * | grid, |
vtkIdType | treeIndex, | ||
bool | create = false |
||
) |
Constructor.
|
default |
Destructor.
void vtkHyperTreeGridLevelEntry::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Display info about the entry.
void vtkHyperTreeGridLevelEntry::Dump | ( | ostream & | os | ) |
Dump information.
|
inline |
Reset function.
Definition at line 104 of file vtkHyperTreeGridLevelEntry.h.
|
inline |
Initialize cursor from explicit required data.
Definition at line 114 of file vtkHyperTreeGridLevelEntry.h.
vtkHyperTree * vtkHyperTreeGridLevelEntry::Initialize | ( | vtkHyperTreeGrid * | grid, |
vtkIdType | treeIndex, | ||
bool | create = false |
||
) |
Initialize cursor at root of given tree index in grid.
|
inline |
Copy function.
Definition at line 129 of file vtkHyperTreeGridLevelEntry.h.
vtkSmartPointer< vtkHyperTreeGridNonOrientedCursor > vtkHyperTreeGridLevelEntry::GetHyperTreeGridNonOrientedCursor | ( | vtkHyperTreeGrid * | grid | ) |
Create a vtkHyperTreeGridNonOrientedCursor from input grid and current entry data.
|
inline |
Return the index of the current vertex in the tree.
Definition at line 146 of file vtkHyperTreeGridLevelEntry.h.
vtkIdType vtkHyperTreeGridLevelEntry::GetGlobalNodeIndex | ( | ) | const |
Return the global index (relative to the grid) of the current vertex in the tree.
void vtkHyperTreeGridLevelEntry::SetGlobalIndexStart | ( | vtkIdType | index | ) |
Set the global index for the root cell of the HyperTree.
void vtkHyperTreeGridLevelEntry::SetGlobalIndexFromLocal | ( | vtkIdType | index | ) |
Set the global index for the current cell of the HyperTree.
void vtkHyperTreeGridLevelEntry::SetMask | ( | const vtkHyperTreeGrid * | grid, |
bool | state | ||
) |
Set the blanking mask is empty or not.
bool vtkHyperTreeGridLevelEntry::IsMasked | ( | const vtkHyperTreeGrid * | grid | ) | const |
Determine whether blanking mask is empty or not.
bool vtkHyperTreeGridLevelEntry::IsLeaf | ( | const vtkHyperTreeGrid * | grid | ) | const |
Is the cursor pointing to a leaf?
void vtkHyperTreeGridLevelEntry::SubdivideLeaf | ( | const vtkHyperTreeGrid * | grid | ) |
Change the current cell's status: if leaf then becomes coarse and all its children are created, cf.
HyperTree.
bool vtkHyperTreeGridLevelEntry::IsTerminalNode | ( | const vtkHyperTreeGrid * | grid | ) | const |
Is the cursor pointing to a coarse with all childrens being leaves ?
|
inline |
Is the cursor at tree root?
Definition at line 203 of file vtkHyperTreeGridLevelEntry.h.
void vtkHyperTreeGridLevelEntry::ToChild | ( | const vtkHyperTreeGrid * | grid, |
unsigned char | ichild | ||
) |
Move the cursor to child ‘child’ of the current vertex.
|
inline |
Get HyperTree from current cache entry.
Definition at line 218 of file vtkHyperTreeGridLevelEntry.h.
|
inline |
Get level info from current cache entry.
Definition at line 223 of file vtkHyperTreeGridLevelEntry.h.
|
protected |
pointer to the HyperTree containing the current cell.
Definition at line 229 of file vtkHyperTreeGridLevelEntry.h.
|
protected |
level of the current cell in the HyperTree.
Definition at line 234 of file vtkHyperTreeGridLevelEntry.h.
|
protected |
index of the current cell in the HyperTree.
Definition at line 239 of file vtkHyperTreeGridLevelEntry.h.