| Open CASCADE Technology
    7.8.0.dev
    | 
Base interface for drawable elements. More...
#include <OpenGl_Element.hxx>

| Public Member Functions | |
| OpenGl_Element () | |
| virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const =0 | 
| virtual void | Release (OpenGl_Context *theContext)=0 | 
| Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.  More... | |
| virtual Standard_Boolean | IsFillDrawMode () const | 
| Return TRUE if primitive type generates shaded triangulation (to be used in filters).  More... | |
| virtual Standard_Size | EstimatedDataSize () const | 
| Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.  More... | |
| virtual void | UpdateMemStats (Graphic3d_FrameStatsDataTmp &theStats) const | 
| Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom.  More... | |
| virtual void | UpdateDrawStats (Graphic3d_FrameStatsDataTmp &theStats, bool theIsDetailed) const | 
| Increment draw calls statistics.  More... | |
| virtual void | SynchronizeAspects () | 
| Update parameters of the drawable elements.  More... | |
| virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const | 
| Dumps the content of me into the stream.  More... | |
| Static Public Member Functions | |
| template<typename theResource_t > | |
| static void | Destroy (OpenGl_Context *theContext, theResource_t *&theElement) | 
| Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.  More... | |
| Protected Member Functions | |
| virtual | ~OpenGl_Element () | 
Base interface for drawable elements.
| OpenGl_Element::OpenGl_Element | ( | ) | 
| 
 | protectedvirtual | 
| 
 | inlinestatic | 
Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.
| 
 | virtual | 
Dumps the content of me into the stream.
Reimplemented in OpenGl_Text, OpenGl_PrimitiveArray, OpenGl_Aspects, OpenGl_GraduatedTrihedron, OpenGl_FrameStatsPrs, OpenGl_Flipper, and OpenGl_StencilTest.
| 
 | inlinevirtual | 
Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
Reimplemented in OpenGl_Text, and OpenGl_PrimitiveArray.
| 
 | inlinevirtual | 
Return TRUE if primitive type generates shaded triangulation (to be used in filters).
Reimplemented in OpenGl_PrimitiveArray.
| 
 | pure virtual | 
Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.
Implemented in OpenGl_Aspects, OpenGl_Text, OpenGl_PrimitiveArray, OpenGl_GraduatedTrihedron, OpenGl_Flipper, OpenGl_FrameStatsPrs, and OpenGl_StencilTest.
| 
 | pure virtual | 
Implemented in OpenGl_Aspects, OpenGl_Text, OpenGl_PrimitiveArray, OpenGl_GraduatedTrihedron, OpenGl_Flipper, OpenGl_FrameStatsPrs, and OpenGl_StencilTest.
| 
 | inlinevirtual | 
Update parameters of the drawable elements.
Reimplemented in OpenGl_Aspects.
| 
 | virtual | 
Increment draw calls statistics.
| theStats | [in] [out] frame counters to increment | 
| theIsDetailed | [in] indicate detailed dump (more counters - number of triangles, points, etc.) | 
Reimplemented in OpenGl_Text, and OpenGl_PrimitiveArray.
| 
 | virtual | 
Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom.
 1.8.13
 1.8.13