Open CASCADE Technology
6.9.0
|
Presentations list sorted within priorities. More...
#include <OpenGl_Layer.hxx>
Public Member Functions | |
OpenGl_Layer (const Standard_Integer theNbPriorities=11) | |
Initializes associated priority list and layer properties. More... | |
virtual | ~OpenGl_Layer () |
Destructor. More... | |
const Graphic3d_ZLayerSettings & | LayerSettings () const |
Returns settings of the layer object. More... | |
void | SetLayerSettings (const Graphic3d_ZLayerSettings &theSettings) |
Sets settings of the layer object. More... | |
const Standard_Boolean | IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const |
Returns true if theSetting is enabled for the layer. More... | |
void | Add (const OpenGl_Structure *theStruct, const Standard_Integer thePriority, Standard_Boolean isForChangePriority=Standard_False) |
bool | Remove (const OpenGl_Structure *theStruct, Standard_Integer &thePriority, Standard_Boolean isForChangePriority=Standard_False) |
Remove structure and returns its priority, if the structure is not found, method returns negative value. More... | |
Standard_Integer | NbStructures () const |
Standard_Integer | NbPriorities () const |
Returns the number of available priority levels. More... | |
Standard_Boolean | Append (const OpenGl_Layer &theOther) |
Append layer of acceptable type (with similar number of priorities or less). Returns Standard_False if the list can not be accepted. More... | |
const OpenGl_ArrayOfStructure & | ArrayOfStructures () const |
Returns array of OpenGL structures. More... | |
void | InvalidateBVHData () |
Marks BVH tree for given priority list as dirty and marks primitive set for rebuild. More... | |
void | Render (const Handle< OpenGl_Workspace > &theWorkspace, const OpenGl_GlobalLayerSettings &theDefaultSettings) const |
Protected Member Functions | |
void | traverse (OpenGl_BVHTreeSelector &theSelector) const |
Traverses through BVH tree to determine which structures are in view volume. More... | |
void | renderAll (const Handle< OpenGl_Workspace > &theWorkspace) const |
Iterates through the hierarchical list of existing structures and renders them all. More... | |
void | renderTraverse (const Handle< OpenGl_Workspace > &theWorkspace) const |
Iterates through the hierarchical list of existing structures and renders only overlapping ones. More... | |
Presentations list sorted within priorities.
OpenGl_Layer::OpenGl_Layer | ( | const Standard_Integer | theNbPriorities = 11 | ) |
Initializes associated priority list and layer properties.
|
virtual |
Destructor.
void OpenGl_Layer::Add | ( | const OpenGl_Structure * | theStruct, |
const Standard_Integer | thePriority, | ||
Standard_Boolean | isForChangePriority = Standard_False |
||
) |
Standard_Boolean OpenGl_Layer::Append | ( | const OpenGl_Layer & | theOther | ) |
Append layer of acceptable type (with similar number of priorities or less). Returns Standard_False if the list can not be accepted.
|
inline |
Returns array of OpenGL structures.
void OpenGl_Layer::InvalidateBVHData | ( | ) |
Marks BVH tree for given priority list as dirty and marks primitive set for rebuild.
|
inline |
Returns true if theSetting is enabled for the layer.
|
inline |
Returns settings of the layer object.
|
inline |
Returns the number of available priority levels.
|
inline |
bool OpenGl_Layer::Remove | ( | const OpenGl_Structure * | theStruct, |
Standard_Integer & | thePriority, | ||
Standard_Boolean | isForChangePriority = Standard_False |
||
) |
Remove structure and returns its priority, if the structure is not found, method returns negative value.
void OpenGl_Layer::Render | ( | const Handle< OpenGl_Workspace > & | theWorkspace, |
const OpenGl_GlobalLayerSettings & | theDefaultSettings | ||
) | const |
|
protected |
Iterates through the hierarchical list of existing structures and renders them all.
|
protected |
Iterates through the hierarchical list of existing structures and renders only overlapping ones.
|
inline |
Sets settings of the layer object.
|
protected |
Traverses through BVH tree to determine which structures are in view volume.