public |
Inheritance Graph
graph BT
Helper
click Helper "classMinSG_1_1VisibilityMerge_1_1Helper"
Description
Public Static Functions
Documentation
function
MinSG::VisibilityMerge::Helper::getVVList
public | static |
VisibilitySubdivision::list_ptr getVVList( | const VisibilitySubdivision::cell_ptr | node ) |
Convenience function to extract the list of visibility vectors from a visibility region node.
Parameters
- node
- Region which is used as source.
Returns
A pointer to the extracted list ornullptr
if the list could not be extracted.
Defined in MinSG/Ext/VisibilityMerge/Helper.h:40
function
MinSG::VisibilityMerge::Helper::getVV
public | static |
const VisibilitySubdivision::VisibilityVector & getVV( | const Util::GenericAttribute * | attribute ) |
Convenience function to extract the visibility vector from a GenericAttrbiute.
Parameters
- attribute
- GenericAttribute which is used as source.
Returns
Extracted visibility vector
Defined in MinSG/Ext/VisibilityMerge/Helper.h:49
function
MinSG::VisibilityMerge::Helper::getVV
public | static |
VisibilitySubdivision::VisibilityVector & getVV( | Util::GenericAttribute * | attribute ) |
Convenience function to access the visibility vector stored in a GenericAttrbiute.
Parameters
- attribute
- GenericAttribute that stores the data
Returns
Reference to the visibility vector
Defined in MinSG/Ext/VisibilityMerge/Helper.h:58
function
MinSG::VisibilityMerge::Helper::collectVisibilityCells
public | static |
VisibilitySubdivision::cell_set_t collectVisibilityCells( | VisibilitySubdivision::cell_ptr | root ) |
Go recursively through the tree given byrootand extract all leaf cells.
Parameters
- root
- Root node of visibility subdivision subtree.
Returns
Leaf cells that were found.
Defined in MinSG/Ext/VisibilityMerge/Helper.h:67
function
MinSG::VisibilityMerge::Helper::getRuntime
public | static |
VisibilitySubdivision::costs_t getRuntime( | const VisibilitySubdivision::list_ptr | cell ) |
Calculate the overall runtime for a visibility list by calculating the sum of triangles of visible objects from that cell. The result is stored in an internal cache.
Parameters
- list
- Visibility list
Returns
Runtime costs
Defined in MinSG/Ext/VisibilityMerge/Helper.h:77
function
MinSG::VisibilityMerge::Helper::clearRuntime
public | static |
void clearRuntime( | const VisibilitySubdivision::list_ptr | list ) |
Invalidate the runtime of the given list in the internal cache. This function has to be called when a list was modified and the runtime might have been changed.
Parameters
- list
- Visibility list
Defined in MinSG/Ext/VisibilityMerge/Helper.h:86
function
MinSG::VisibilityMerge::Helper::getRuntime
public | static | inline |
VisibilitySubdivision::costs_t getRuntime( | const VisibilitySubdivision::cell_ptr | cell ) |
Calculate the overall runtime for a visibility cell by calculating the sum of triangles of visible objects from that cell. The result is stored in an internal cache.
Parameters
- cell
- Visibility cell
Returns
Runtime costs
Defined in MinSG/Ext/VisibilityMerge/Helper.h:96
function
MinSG::VisibilityMerge::Helper::clearRuntime
public | static | inline |
void clearRuntime( | const VisibilitySubdivision::cell_ptr | cell ) |
Invalidate the runtime of the given cell in the internal cache. This function has to be called when a cell was modified and the runtime might have been changed.
Parameters
- cell
- Visibility cell
Defined in MinSG/Ext/VisibilityMerge/Helper.h:108
function
MinSG::VisibilityMerge::Helper::getMaximumVisibility
public | static |
VisibilitySubdivision::VisibilityVector getMaximumVisibility( | const VisibilitySubdivision::list_ptr | list ) |
Accumulate the visibility vectors of a list of visibility vectors.
Parameters
- list
- List of visibility vectors
Returns
Visibility vector representing the maximum visibility of the list
Defined in MinSG/Ext/VisibilityMerge/Helper.h:121
function
MinSG::VisibilityMerge::Helper::getMaximumVisibility
public | static |
VisibilitySubdivision::VisibilityVector getMaximumVisibility( | const VisibilitySubdivision::cell_ptr | cell ) |
Accumulate the visibility vectors of a visibility cell.
Parameters
- cell
- Visibility cell
Returns
Visibility vector representing the maximum visibility of the cell
Defined in MinSG/Ext/VisibilityMerge/Helper.h:130