OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    OpenGl_FrameStatsPrs Class Reference

    Element rendering frame statistics. More...

    #include <OpenGl_FrameStatsPrs.hxx>

    Inheritance diagram for OpenGl_FrameStatsPrs:

    Public Member Functions

     OpenGl_FrameStatsPrs ()
     Default constructor.
     ~OpenGl_FrameStatsPrs () override
     Destructor.
    void Render (const occ::handle< OpenGl_Workspace > &theWorkspace) const override
     Render element.
    void Release (OpenGl_Context *theCtx) override
     Release OpenGL resources.
    void Update (const occ::handle< OpenGl_Workspace > &theWorkspace)
     Update text.
    void SetTextAspect (const occ::handle< Graphic3d_AspectText3d > &theAspect)
     Assign text aspect.
    void DumpJson (Standard_OStream &theOStream, int theDepth=-1) const override
     Dumps the content of me into the stream.
    Public Member Functions inherited from OpenGl_Element
     OpenGl_Element ()
    virtual bool IsFillDrawMode () const
     Return TRUE if primitive type generates shaded triangulation (to be used in filters).
    virtual size_t EstimatedDataSize () const
     Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
    virtual void UpdateMemStats (Graphic3d_FrameStatsDataTmp &theStats) const
     Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom.
    virtual void UpdateDrawStats (Graphic3d_FrameStatsDataTmp &theStats, bool theIsDetailed) const
     Increment draw calls statistics.
    virtual void SynchronizeAspects ()
     Update parameters of the drawable elements.

    Protected Member Functions

    void updateChart (const occ::handle< OpenGl_Workspace > &theWorkspace)
     Update chart presentation.
    Protected Member Functions inherited from OpenGl_Element
    virtual ~OpenGl_Element ()

    Protected Attributes

    occ::handle< OpenGl_FrameStats > myStatsPrev
     currently displayed stats
    occ::handle< Graphic3d_TransformPers > myCountersTrsfPers
     transformation persistence for counters presentation
    OpenGl_Text myCountersText
     counters presentation
    OpenGl_Aspects myTextAspect
     text aspect
    occ::handle< Graphic3d_TransformPers > myChartTrsfPers
     transformation persistence for chart presentation
    occ::handle< Graphic3d_ArrayOfTriangles > myChartArray
     array of chart triangles
    occ::handle< OpenGl_VertexBuffer > myChartVertices
     VBO with chart triangles.
    occ::handle< OpenGl_IndexBuffer > myChartIndices
     VBO with chart triangle indexes.
    occ::handle< OpenGl_VertexBuffer > myChartLines
     array of chart lines
    OpenGl_Text myChartLabels [3]
     chart labels

    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.

    Detailed Description

    Element rendering frame statistics.

    Constructor & Destructor Documentation

    ◆ OpenGl_FrameStatsPrs()

    OpenGl_FrameStatsPrs::OpenGl_FrameStatsPrs ( )

    Default constructor.

    ◆ ~OpenGl_FrameStatsPrs()

    OpenGl_FrameStatsPrs::~OpenGl_FrameStatsPrs ( )
    override

    Destructor.

    Member Function Documentation

    ◆ DumpJson()

    void OpenGl_FrameStatsPrs::DumpJson ( Standard_OStream & theOStream,
    int theDepth = -1 ) const
    overridevirtual

    Dumps the content of me into the stream.

    Reimplemented from OpenGl_Element.

    ◆ Release()

    void OpenGl_FrameStatsPrs::Release ( OpenGl_Context * theCtx)
    overridevirtual

    Release OpenGL resources.

    Implements OpenGl_Element.

    ◆ Render()

    void OpenGl_FrameStatsPrs::Render ( const occ::handle< OpenGl_Workspace > & theWorkspace) const
    overridevirtual

    Render element.

    Implements OpenGl_Element.

    ◆ SetTextAspect()

    void OpenGl_FrameStatsPrs::SetTextAspect ( const occ::handle< Graphic3d_AspectText3d > & theAspect)
    inline

    Assign text aspect.

    ◆ Update()

    void OpenGl_FrameStatsPrs::Update ( const occ::handle< OpenGl_Workspace > & theWorkspace)

    Update text.

    ◆ updateChart()

    void OpenGl_FrameStatsPrs::updateChart ( const occ::handle< OpenGl_Workspace > & theWorkspace)
    protected

    Update chart presentation.

    Field Documentation

    ◆ myChartArray

    occ::handle<Graphic3d_ArrayOfTriangles> OpenGl_FrameStatsPrs::myChartArray
    protected

    array of chart triangles

    ◆ myChartIndices

    occ::handle<OpenGl_IndexBuffer> OpenGl_FrameStatsPrs::myChartIndices
    protected

    VBO with chart triangle indexes.

    ◆ myChartLabels

    OpenGl_Text OpenGl_FrameStatsPrs::myChartLabels[3]
    protected

    chart labels

    ◆ myChartLines

    occ::handle<OpenGl_VertexBuffer> OpenGl_FrameStatsPrs::myChartLines
    protected

    array of chart lines

    ◆ myChartTrsfPers

    occ::handle<Graphic3d_TransformPers> OpenGl_FrameStatsPrs::myChartTrsfPers
    protected

    transformation persistence for chart presentation

    ◆ myChartVertices

    occ::handle<OpenGl_VertexBuffer> OpenGl_FrameStatsPrs::myChartVertices
    protected

    VBO with chart triangles.

    ◆ myCountersText

    OpenGl_Text OpenGl_FrameStatsPrs::myCountersText
    protected

    counters presentation

    ◆ myCountersTrsfPers

    occ::handle<Graphic3d_TransformPers> OpenGl_FrameStatsPrs::myCountersTrsfPers
    protected

    transformation persistence for counters presentation

    ◆ myStatsPrev

    occ::handle<OpenGl_FrameStats> OpenGl_FrameStatsPrs::myStatsPrev
    protected

    currently displayed stats

    ◆ myTextAspect

    OpenGl_Aspects OpenGl_FrameStatsPrs::myTextAspect
    protected

    text aspect


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