Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes
OpenGl_PriorityList Class Reference

#include <OpenGl_PriorityList.hxx>

Public Member Functions

 OpenGl_PriorityList (const Standard_Integer ANbPriorities=11)
 
virtual ~OpenGl_PriorityList ()
 
void Add (const OpenGl_Structure *AStructure, const Standard_Integer APriority)
 
Standard_Integer Remove (const OpenGl_Structure *AStructure)
 Remove structure and returns its priority, if the structure is not found, method returns negative value. More...
 
Standard_Integer NbStructures () const
 
void Render (const Handle< OpenGl_Workspace > &AWorkspace) const
 
Standard_Integer NbPriorities () const
 Returns the number of available priority levels. More...
 
Standard_Boolean Append (const OpenGl_PriorityList &theOther)
 Append priority list of acceptable type (with similar number of priorities or less). Returns Standard_False if the list can not be accepted. More...
 
const OpenGl_ArrayOfStructureArrayOfStructures () const
 Returns array of OpenGL structures. More...
 

Protected Attributes

OpenGl_ArrayOfStructure myArray
 
Standard_Integer myNbStructures
 

Constructor & Destructor Documentation

OpenGl_PriorityList::OpenGl_PriorityList ( const Standard_Integer  ANbPriorities = 11)
inline
virtual OpenGl_PriorityList::~OpenGl_PriorityList ( )
inlinevirtual

Member Function Documentation

void OpenGl_PriorityList::Add ( const OpenGl_Structure AStructure,
const Standard_Integer  APriority 
)
Standard_Boolean OpenGl_PriorityList::Append ( const OpenGl_PriorityList theOther)

Append priority list of acceptable type (with similar number of priorities or less). Returns Standard_False if the list can not be accepted.

const OpenGl_ArrayOfStructure& OpenGl_PriorityList::ArrayOfStructures ( ) const
inline

Returns array of OpenGL structures.

Standard_Integer OpenGl_PriorityList::NbPriorities ( ) const

Returns the number of available priority levels.

Standard_Integer OpenGl_PriorityList::NbStructures ( ) const
inline
Standard_Integer OpenGl_PriorityList::Remove ( const OpenGl_Structure AStructure)

Remove structure and returns its priority, if the structure is not found, method returns negative value.

void OpenGl_PriorityList::Render ( const Handle< OpenGl_Workspace > &  AWorkspace) const

Field Documentation

OpenGl_ArrayOfStructure OpenGl_PriorityList::myArray
protected
Standard_Integer OpenGl_PriorityList::myNbStructures
protected

The documentation for this class was generated from the following file: