Open CASCADE Technology
7.6.0
|
Element rendering frame statistics. More...
#include <OpenGl_FrameStatsPrs.hxx>
Public Member Functions | |
OpenGl_FrameStatsPrs () | |
Default constructor. More... | |
virtual | ~OpenGl_FrameStatsPrs () |
Destructor. More... | |
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const override |
Render element. More... | |
virtual void | Release (OpenGl_Context *theCtx) override |
Release OpenGL resources. More... | |
void | Update (const Handle< OpenGl_Workspace > &theWorkspace) |
Update text. More... | |
void | SetTextAspect (const Handle< Graphic3d_AspectText3d > &theAspect) |
Assign text aspect. More... | |
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
Dumps the content of me into the stream. More... | |
Public Member Functions inherited from OpenGl_Element | |
OpenGl_Element () | |
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... | |
Protected Member Functions | |
void | updateChart (const Handle< OpenGl_Workspace > &theWorkspace) |
Update chart presentation. More... | |
Protected Member Functions inherited from OpenGl_Element | |
virtual | ~OpenGl_Element () |
Protected Attributes | |
Handle< OpenGl_FrameStats > | myStatsPrev |
currently displayed stats More... | |
Handle< Graphic3d_TransformPers > | myCountersTrsfPers |
transformation persistence for counters presentation More... | |
OpenGl_Text | myCountersText |
counters presentation More... | |
OpenGl_Aspects | myTextAspect |
text aspect More... | |
Handle< Graphic3d_TransformPers > | myChartTrsfPers |
transformation persistence for chart presentation More... | |
Handle< Graphic3d_ArrayOfTriangles > | myChartArray |
array of chart triangles More... | |
Handle< OpenGl_VertexBuffer > | myChartVertices |
VBO with chart triangles. More... | |
Handle< OpenGl_IndexBuffer > | myChartIndices |
VBO with chart triangle indexes. More... | |
Handle< OpenGl_VertexBuffer > | myChartLines |
array of chart lines More... | |
OpenGl_Text | myChartLabels [3] |
chart labels More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from OpenGl_Element | |
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... | |
Element rendering frame statistics.
OpenGl_FrameStatsPrs::OpenGl_FrameStatsPrs | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
overridevirtual |
Dumps the content of me into the stream.
Reimplemented from OpenGl_Element.
|
overridevirtual |
Release OpenGL resources.
Implements OpenGl_Element.
|
overridevirtual |
Render element.
Implements OpenGl_Element.
|
inline |
Assign text aspect.
void OpenGl_FrameStatsPrs::Update | ( | const Handle< OpenGl_Workspace > & | theWorkspace | ) |
Update text.
|
protected |
Update chart presentation.
|
protected |
array of chart triangles
|
protected |
VBO with chart triangle indexes.
|
protected |
chart labels
|
protected |
array of chart lines
|
protected |
transformation persistence for chart presentation
|
protected |
VBO with chart triangles.
|
protected |
counters presentation
|
protected |
transformation persistence for counters presentation
|
protected |
currently displayed stats
|
protected |
text aspect