AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Compact BlockDataType for an InOutOctree. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/quest/InOutOctree.hpp>
Public Types | |
enum | LeafColor { Undetermined = -2, White = -1, Gray = 0, Black = 1 } |
Public Member Functions | |
InOutBlockData () | |
Default constructor for an InOutBlockData. More... | |
InOutBlockData (int dataIdx) | |
Constructor from a given index. More... | |
InOutBlockData (const InOutBlockData &other) | |
Copy constructor for an InOutBlockData instance. More... | |
InOutBlockData & | operator= (const InOutBlockData &other) |
Assignment operator for an InOutBlockData instance. More... | |
bool | isLeaf () const |
Predicate to determine if the associated block is a leaf. More... | |
void | setInternal () |
Marks the associated block as internal. More... | |
void | setNonBlock () |
Marks the associated block as a non-block (i.e. not in the tree) More... | |
bool | isBlock () const |
Predicate to determine if the associated block is in the tree. More... | |
void | clear () |
bool | hasData () const |
const int & | dataIndex () const |
void | setGray (int idx) |
Sets the block as gray, and provides index of its associated data. More... | |
void | setBlack () |
void | setWhite () |
void | setData (int idx) |
void | setUncoloredLeaf () |
LeafColor | color () const |
Find the 'color' of this LeafBlock. More... | |
bool | isColored () const |
Friends | |
bool | operator== (const InOutBlockData &lhs, const InOutBlockData &rhs) |
Compact BlockDataType for an InOutOctree.
Storage requirement is one integer per block to hold the color of a block and for gray block, the index of the associated triangles
|
inline |
Default constructor for an InOutBlockData.
|
inlineexplicit |
Constructor from a given index.
|
inline |
Copy constructor for an InOutBlockData instance.
|
inline |
Assignment operator for an InOutBlockData instance.
|
inline |
Predicate to determine if the associated block is a leaf.
Referenced by axom::quest::detail::InOutOctreeMeshDumper< DIM >::dumpLocalOctreeMeshesForBlock(), axom::quest::InOutOctree< DIM >::generateIndex(), axom::quest::detail::InOutOctreeStats< DIM >::InOutOctreeStats(), and axom::quest::operator<<().
|
inline |
Marks the associated block as internal.
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Marks the associated block as a non-block (i.e. not in the tree)
|
inline |
Predicate to determine if the associated block is in the tree.
|
inline |
Clears the data associated with the block
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Predicate to determine if the associated block has data (i.e. it is a gray block)
Referenced by axom::quest::detail::InOutOctreeValidator< DIM >::checkEachVertexIsIndexed(), axom::quest::detail::InOutOctreeMeshDumper< DIM >::dumpLocalOctreeMeshesForBlock(), axom::quest::detail::InOutOctreeMeshDumper< DIM >::dumpTriMeshVTK(), axom::quest::InOutOctree< DIM >::generateIndex(), axom::quest::detail::InOutOctreeStats< DIM >::InOutOctreeStats(), and axom::quest::operator<<().
|
inline |
Returns the index of the data associated with the block
Referenced by axom::quest::InOutOctree< DIM >::generateIndex(), and axom::quest::operator<<().
|
inline |
Sets the block as gray, and provides index of its associated data.
idx | The index of the data associated with the gray leaf block |
References SLIC_ASSERT.
|
inline |
Marks the block as Black (the entire domain is inside the surface)
References SLIC_ASSERT.
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Marks the block as Black (the entire domain is outside the surface)
References SLIC_ASSERT.
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Sets the data associated with the block to the given index idx
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Marks the block as uncolored
References SLIC_ASSERT.
|
inline |
Find the 'color' of this LeafBlock.
'Black' indicates that the entire block is within the surface 'White' indicates that the entire block is outside the surface 'Gray' indicates that the block intersects the surface geometry Leaves that haven't been colored yet are 'Undetermined'
References SLIC_ASSERT_MSG.
Referenced by axom::quest::detail::InOutOctreeValidator< DIM >::checkNeighboringBlockColors(), axom::quest::detail::InOutOctreeMeshDumper< DIM >::dumpDifferentColoredNeighborsMeshVTK(), axom::quest::detail::InOutOctreeMeshDumper< DIM >::dumpTriMeshVTK(), axom::quest::InOutOctree< DIM >::generateIndex(), axom::quest::detail::InOutOctreeStats< DIM >::InOutOctreeStats(), axom::quest::operator<<(), and axom::quest::InOutOctree< DIM >::within().
|
inline |
Predicate to determine if the associated block has a color
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
friend |
Friend function to compare equality of two InOutBlockData instances