Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 SetAspectLine (const CALL_DEF_CONTEXTLINE &theAspect)
 
void SetAspectFace (const CALL_DEF_CONTEXTFILLAREA &theAspect)
 
void SetAspectMarker (const CALL_DEF_CONTEXTMARKER &theAspect)
 
void SetAspectText (const CALL_DEF_CONTEXTTEXT &theAspect)
 
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)
 
Standard_Boolean IsVisible () const
 
void SetClipPlanes (const Graphic3d_SequenceOfHClipPlane &thePlanes)
 
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. More...
 
Standard_Integer GetZLayer () const
 Get z layer ID. More...
 
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const
 
virtual void Release (const Handle< OpenGl_Context > &theGlCtx)
 Release GPU resources. More...
 
void ReleaseGlResources (const Handle< OpenGl_Context > &theGlCtx)
 This method releases GL resources without actual elements destruction. As result structure could be correctly destroyed layer without GL context (after last window was closed for example). More...
 
const OpenGl_ListOfGroupGroups () const
 Returns list of OpenGL groups. More...
 
const OpenGl_ListOfStructureConnectedStructures () const
 Returns list of connected OpenGL structures. More...
 
const OpenGl_AspectFaceAspectFace () const
 Returns OpenGL face aspect. More...
 
const OpenGl_MatrixTransformation () const
 Returns OpenGL transformation matrix. More...
 
const TEL_TRANSFORM_PERSISTENCEPersistentTranslation () const
 Returns OpenGL persistent translation. More...
 
- Public Member Functions inherited from OpenGl_Element
 OpenGl_Element ()
 
Standard_Boolean RenderFiltered (const Handle< OpenGl_Workspace > &theWorkspace, const Handle< OpenGl_RenderFilter > &theFilter) const
 Render element if it passes the filtering procedure. This method should be used for elements which can be used in scope of rendering algorithms. E.g. elements of groups during recursive rendering. If render filter is null, pure rendering is performed. More...
 

Protected Member Functions

virtual ~OpenGl_Structure ()
 
- Protected Member Functions inherited from OpenGl_Element
virtual ~OpenGl_Element ()
 

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from OpenGl_Element
template<typename theResource_t >
static void Destroy (const Handle< OpenGl_Context > &theContext, theResource_t *&theElement)
 

Constructor & Destructor Documentation

OpenGl_Structure::OpenGl_Structure ( )
virtual OpenGl_Structure::~OpenGl_Structure ( )
protectedvirtual

Member Function Documentation

OpenGl_Group* OpenGl_Structure::AddGroup ( )
const OpenGl_AspectFace* OpenGl_Structure::AspectFace ( ) const
inline

Returns OpenGL face aspect.

void OpenGl_Structure::Clear ( const Handle< OpenGl_Context > &  theGlCtx)
void OpenGl_Structure::ClearHighlightBox ( const Handle< OpenGl_Context > &  theGlCtx)
void OpenGl_Structure::ClearHighlightColor ( const Handle< OpenGl_Context > &  theGlCtx)
void OpenGl_Structure::Connect ( const OpenGl_Structure astructure)
const OpenGl_ListOfStructure& OpenGl_Structure::ConnectedStructures ( ) const
inline

Returns list of connected OpenGL structures.

void OpenGl_Structure::Disconnect ( const OpenGl_Structure astructure)
Standard_Integer OpenGl_Structure::GetZLayer ( ) const

Get z layer ID.

const OpenGl_ListOfGroup& OpenGl_Structure::Groups ( ) const
inline

Returns list of OpenGL groups.

Standard_Boolean OpenGl_Structure::IsVisible ( ) const
inline
const TEL_TRANSFORM_PERSISTENCE* OpenGl_Structure::PersistentTranslation ( ) const
inline

Returns OpenGL persistent translation.

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

Release GPU resources.

Implements OpenGl_Element.

void OpenGl_Structure::ReleaseGlResources ( const Handle< OpenGl_Context > &  theGlCtx)

This method releases GL resources without actual elements destruction. As result structure could be correctly destroyed layer without GL context (after last window was closed for example).

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

void OpenGl_Structure::RemoveGroup ( const Handle< OpenGl_Context > &  theGlCtx,
const OpenGl_Group theGroup 
)
virtual void OpenGl_Structure::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
virtual

Implements OpenGl_Element.

void OpenGl_Structure::SetAspectFace ( const CALL_DEF_CONTEXTFILLAREA theAspect)
void OpenGl_Structure::SetAspectLine ( const CALL_DEF_CONTEXTLINE theAspect)
void OpenGl_Structure::SetAspectMarker ( const CALL_DEF_CONTEXTMARKER theAspect)
void OpenGl_Structure::SetAspectText ( const CALL_DEF_CONTEXTTEXT theAspect)
void OpenGl_Structure::SetClipPlanes ( const Graphic3d_SequenceOfHClipPlane thePlanes)
inline
void OpenGl_Structure::SetHighlightBox ( const Handle< OpenGl_Context > &  theGlCtx,
const CALL_DEF_BOUNDBOX theBoundBox 
)
void OpenGl_Structure::SetHighlightColor ( const Handle< OpenGl_Context > &  theGlCtx,
const Standard_ShortReal  R,
const Standard_ShortReal  G,
const Standard_ShortReal  B 
)
void OpenGl_Structure::SetNamedStatus ( const Standard_Integer  aStatus)
void OpenGl_Structure::SetTransformation ( const float *  AMatrix)
void OpenGl_Structure::SetTransformPersistence ( const CALL_DEF_TRANSFORM_PERSISTENCE ATransPers)
void OpenGl_Structure::SetZLayer ( const Standard_Integer  theLayerIndex)

Set z layer ID to display the structure in specified layer.

const OpenGl_Matrix* OpenGl_Structure::Transformation ( ) const
inline

Returns OpenGL transformation matrix.

Field Documentation

OpenGl_AspectFace* OpenGl_Structure::myAspectFace
protected
OpenGl_AspectLine* OpenGl_Structure::myAspectLine
protected
OpenGl_AspectMarker* OpenGl_Structure::myAspectMarker
protected
OpenGl_AspectText* OpenGl_Structure::myAspectText
protected
Graphic3d_SequenceOfHClipPlane OpenGl_Structure::myClipPlanes
protected
OpenGl_ListOfStructure OpenGl_Structure::myConnected
protected
OpenGl_ListOfGroup OpenGl_Structure::myGroups
protected
OpenGl_Group* OpenGl_Structure::myHighlightBox
protected
TEL_COLOUR* OpenGl_Structure::myHighlightColor
protected
int OpenGl_Structure::myNamedStatus
protected
OpenGl_Matrix* OpenGl_Structure::myTransformation
protected
TEL_TRANSFORM_PERSISTENCE* OpenGl_Structure::myTransPers
protected
int OpenGl_Structure::myZLayer
protected

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