|
Open CASCADE Technology
6.7.1
|
#include <OpenGl_Structure.hxx>

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_Group * | AddGroup () |
| 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_ListOfGroup & | Groups () const |
| Returns list of OpenGL groups. More... | |
| const OpenGl_ListOfStructure & | ConnectedStructures () const |
| Returns list of connected OpenGL structures. More... | |
| const OpenGl_AspectFace * | AspectFace () const |
| Returns OpenGL face aspect. More... | |
| const OpenGl_Matrix * | Transformation () const |
| Returns OpenGL transformation matrix. More... | |
| const TEL_TRANSFORM_PERSISTENCE * | PersistentTranslation () 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 () |
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) |
| OpenGl_Structure::OpenGl_Structure | ( | ) |
|
protectedvirtual |
| OpenGl_Group* OpenGl_Structure::AddGroup | ( | ) |
|
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 | ) |
|
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.
|
inline |
Returns list of OpenGL groups.
|
inline |
|
inline |
Returns OpenGL persistent translation.
|
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 |
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 | ) |
|
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.
|
inline |
Returns OpenGL transformation matrix.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.5