|
Open CASCADE Technology
6.5.4
|
#include <OpenGl_LayerList.hxx>
Public Member Functions | |
| OpenGl_LayerList (const Standard_Integer theNbPriorities=11) | |
| Constructor. | |
| virtual | ~OpenGl_LayerList () |
| Destructor. | |
| Standard_Integer | NbPriorities () const |
| Method returns the number of available priorities. | |
| Standard_Integer | NbStructures () const |
| Number of displayed structures. | |
| void | AddLayer (const Standard_Integer theLayerId) |
| Insert a new layer with id. | |
| Standard_Boolean | HasLayer (const Standard_Integer theLayerId) const |
| Check whether the layer with given id is already created. | |
| void | RemoveLayer (const Standard_Integer theLayerId) |
| Remove layer by its id. | |
| void | AddStructure (const OpenGl_Structure *theStructure, const Standard_Integer theLayerId, const Standard_Integer thePriority) |
| Add structure to list with given priority. The structure will be inserted to specified layer. If the layer isn't found, the structure will be put to default bottom-level layer. | |
| void | RemoveStructure (const OpenGl_Structure *theStructure, const Standard_Integer theZLayerId) |
| Remove structure from structure list and return its previous priority. | |
| void | ChangeLayer (const OpenGl_Structure *theStructure, const Standard_Integer theOldLayerId, const Standard_Integer theNewLayerId) |
| Change structure z layer If the new layer is not presented, the structure will be displayed in default z layer. | |
| void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const |
| Render this element. | |
Protected Attributes | |
| OpenGl_SequenceOfLayers | myLayers |
| OpenGl_LayerSeqIds | myLayerIds |
| Standard_Integer | myNbPriorities |
| Standard_Integer | myNbStructures |
| OpenGl_LayerList::OpenGl_LayerList | ( | const Standard_Integer | theNbPriorities = 11 | ) |
| virtual OpenGl_LayerList::~OpenGl_LayerList | ( | ) | [virtual] |
| void OpenGl_LayerList::AddLayer | ( | const Standard_Integer | theLayerId | ) |
| void OpenGl_LayerList::AddStructure | ( | const OpenGl_Structure * | theStructure, |
| const Standard_Integer | theLayerId, | ||
| const Standard_Integer | thePriority | ||
| ) |
| void OpenGl_LayerList::ChangeLayer | ( | const OpenGl_Structure * | theStructure, |
| const Standard_Integer | theOldLayerId, | ||
| const Standard_Integer | theNewLayerId | ||
| ) |
| Standard_Boolean OpenGl_LayerList::HasLayer | ( | const Standard_Integer | theLayerId | ) | const |
| void OpenGl_LayerList::RemoveLayer | ( | const Standard_Integer | theLayerId | ) |
| void OpenGl_LayerList::RemoveStructure | ( | const OpenGl_Structure * | theStructure, |
| const Standard_Integer | theZLayerId | ||
| ) |
| void OpenGl_LayerList::Render | ( | const Handle< OpenGl_Workspace > & | theWorkspace | ) | const |
OpenGl_LayerSeqIds OpenGl_LayerList::myLayerIds [protected] |
OpenGl_SequenceOfLayers OpenGl_LayerList::myLayers [protected] |
Standard_Integer OpenGl_LayerList::myNbPriorities [protected] |
Standard_Integer OpenGl_LayerList::myNbStructures [protected] |
1.8.0