Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
OpenGl_Structure Class Reference

#include <OpenGl_Structure.hxx>

Inheritance diagram for OpenGl_Structure:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_Structure ()
void SetTransformation (const float *AMatrix)
void SetTransformPersistence (const CALL_DEF_TRANSFORM_PERSISTENCE &ATransPers)
void SetDegenerateModel (const Standard_Integer AMode, const float ASkipRatio)
void SetAspectLine (const CALL_DEF_CONTEXTLINE &AContext)
void SetAspectFace (const CALL_DEF_CONTEXTFILLAREA &AContext)
void SetAspectMarker (const CALL_DEF_CONTEXTMARKER &AContext)
void SetAspectText (const CALL_DEF_CONTEXTTEXT &AContext)
void SetHighlightBox (const Handle< OpenGl_Context > &theGlCtx, const CALL_DEF_BOUNDBOX &theBoundBox)
void ClearHighlightBox (const Handle< OpenGl_Context > &theGlCtx)
void SetHighlightColor (const Handle< OpenGl_Context > &theGlCtx, const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B)
void ClearHighlightColor (const Handle< OpenGl_Context > &theGlCtx)
void SetNamedStatus (const Standard_Integer aStatus)
void Connect (const OpenGl_Structure *astructure)
void Disconnect (const OpenGl_Structure *astructure)
OpenGl_GroupAddGroup ()
void RemoveGroup (const Handle< OpenGl_Context > &theGlCtx, const OpenGl_Group *theGroup)
void Clear (const Handle< OpenGl_Context > &theGlCtx)
void SetZLayer (const Standard_Integer theLayerIndex)
 Set z layer ID to display the structure in specified layer.
Standard_Integer GetZLayer () const
 Get z layer ID.
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const
virtual void Release (const Handle< OpenGl_Context > &theGlCtx)
 Release GPU resources.
void ReleaseGlResources (const Handle< OpenGl_Context > &theGlCtx)
 This method releases GL resources without actual elements destruction. As result structure could be correctly destroyed layter without GL context (after last window was closed for example).

Protected Member Functions

virtual ~OpenGl_Structure ()

Protected Attributes

OpenGl_MatrixmyTransformation
TEL_TRANSFORM_PERSISTENCEmyTransPers
DEGENERATIONmyDegenerateModel
OpenGl_AspectLinemyAspectLine
OpenGl_AspectFacemyAspectFace
OpenGl_AspectMarkermyAspectMarker
OpenGl_AspectTextmyAspectText
OpenGl_GroupmyHighlightBox
TEL_COLOURmyHighlightColor
int myNamedStatus
int myZLayer
OpenGl_ListOfStructure myConnected
OpenGl_ListOfGroup myGroups

Constructor & Destructor Documentation

virtual OpenGl_Structure::~OpenGl_Structure ( ) [protected, virtual]

Member Function Documentation

virtual void OpenGl_Structure::Release ( const Handle< OpenGl_Context > &  theContext) [virtual]

Implements OpenGl_Element.

Notice however that reusage of this structure after calling this method is incorrect and will lead to broken visualization due to loosed data.

virtual void OpenGl_Structure::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const [virtual]

Implements OpenGl_Element.


Field Documentation


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