SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
store the visibility information related to a Phrase More...
#include <GeometricVisibilityBadge.h>
Public Member Functions | |
VisibilityState | calculateHierarchicalVisibility (const smtk::view::DescriptivePhrase *phrase, bool decrementNumChildren=false, std::size_t offset=0) const |
Calculate the hierarchical visibility of a phrase. More... | |
VisibilityState | calculateCombinedVisibility (const smtk::view::DescriptivePhrase *phrase, bool decrementNumChildren=false, std::size_t offset=0) const |
Calculate the visibility of phrase that takes both its geometric and hierarchical visibilities into consideration. More... | |
Public Attributes | |
std::size_t | m_numberOfVisibleChildren = 0 |
std::size_t | m_numberOfInvisibleChildren = 0 |
VisibilityState | m_geometricVisibility = VisibilityState::Neither |
bool | m_isResource = false |
store the visibility information related to a Phrase
Note that the phrase itself is not stored since it is used in maintaining the Phrase Visibility Cache
GeometricVisibilityBadge::VisibilityState smtk::extension::paraview::appcomponents::GeometricVisibilityBadge::PhraseInfo::calculateCombinedVisibility | ( | const smtk::view::DescriptivePhrase * | phrase, |
bool | decrementNumChildren = false , |
||
std::size_t | offset = 0 |
||
) | const |
Calculate the visibility of phrase that takes both its geometric and hierarchical visibilities into consideration.
If decrementNumChildren is true, then the "adjust" the phrase's number of children by the offset. This is to support the case of calculating visibility when removing some of the phrase's children.
GeometricVisibilityBadge::VisibilityState smtk::extension::paraview::appcomponents::GeometricVisibilityBadge::PhraseInfo::calculateHierarchicalVisibility | ( | const smtk::view::DescriptivePhrase * | phrase, |
bool | decrementNumChildren = false , |
||
std::size_t | offset = 0 |
||
) | const |
Calculate the hierarchical visibility of a phrase.
If decrementNumChildren is true, then the "adjust" the phrase's number of children by the offset. This is to support the case of calculating visibility when removing some of the phrase's children.
Note that is does not take into consideration of the phrase's geometric visibility