OCCT3D 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_GraduatedTrihedron Class Reference

    This class allows to render Graduated Trihedron, i.e. trihedron with grid. it is based on Graphic3d_GraduatedTrihedron parameters and support its customization on construction level only. More...

    #include <OpenGl_GraduatedTrihedron.hxx>

    Inheritance diagram for OpenGl_GraduatedTrihedron:

    Public Member Functions

     OpenGl_GraduatedTrihedron ()
     Default constructor.
     ~OpenGl_GraduatedTrihedron () override
     Destructor.
    void Render (const occ::handle< OpenGl_Workspace > &theWorkspace) const override
     Draw the element.
    void Release (OpenGl_Context *theCtx) override
     Release OpenGL resources.
    void SetValues (const Graphic3d_GraduatedTrihedron &theData)
     Setup configuration.
    void SetMinMax (const NCollection_Vec3< float > &theMin, const NCollection_Vec3< float > &theMax)
     Sets up-to-date values of scene bounding box. Can be used in callback mechanism to get up-to-date values.
    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 Attributes

    Scene bounding box values
    NCollection_Vec3< float > myMin
     Axes for trihedron.
    NCollection_Vec3< float > myMax
     Axes for trihedron.
    Axis myAxes [3]
     Axes for trihedron.
    Graphic3d_GraduatedTrihedron myData
     Axes for trihedron.
    OpenGl_Aspects myGridLineAspect
     Color grid properties.

    Labels properties

    OpenGl_Text myLabelValues
    OpenGl_Aspects myAspectLabels
    OpenGl_Aspects myAspectValues

    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.
    Protected Member Functions inherited from OpenGl_Element
    virtual ~OpenGl_Element ()

    Detailed Description

    This class allows to render Graduated Trihedron, i.e. trihedron with grid. it is based on Graphic3d_GraduatedTrihedron parameters and support its customization on construction level only.

    See also
    Graphic3d_GraduatedTrihedron

    Constructor & Destructor Documentation

    ◆ OpenGl_GraduatedTrihedron()

    OpenGl_GraduatedTrihedron::OpenGl_GraduatedTrihedron ( )

    Default constructor.

    ◆ ~OpenGl_GraduatedTrihedron()

    OpenGl_GraduatedTrihedron::~OpenGl_GraduatedTrihedron ( )
    override

    Destructor.

    Member Function Documentation

    ◆ DumpJson()

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

    Dumps the content of me into the stream.

    Reimplemented from OpenGl_Element.

    ◆ Release()

    void OpenGl_GraduatedTrihedron::Release ( OpenGl_Context * theCtx)
    overridevirtual

    Release OpenGL resources.

    Implements OpenGl_Element.

    ◆ Render()

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

    Draw the element.

    Implements OpenGl_Element.

    ◆ SetMinMax()

    void OpenGl_GraduatedTrihedron::SetMinMax ( const NCollection_Vec3< float > & theMin,
    const NCollection_Vec3< float > & theMax )

    Sets up-to-date values of scene bounding box. Can be used in callback mechanism to get up-to-date values.

    See also
    Graphic3d_GraduatedTrihedron::CubicAxesCallback

    ◆ SetValues()

    void OpenGl_GraduatedTrihedron::SetValues ( const Graphic3d_GraduatedTrihedron & theData)

    Setup configuration.

    Field Documentation

    ◆ myAspectLabels

    OpenGl_Aspects OpenGl_GraduatedTrihedron::myAspectLabels
    mutableprotected

    ◆ myAspectValues

    OpenGl_Aspects OpenGl_GraduatedTrihedron::myAspectValues
    mutableprotected

    ◆ myAxes

    Axis OpenGl_GraduatedTrihedron::myAxes[3]
    mutableprotected

    Axes for trihedron.

    ◆ myData

    Graphic3d_GraduatedTrihedron OpenGl_GraduatedTrihedron::myData
    mutableprotected

    Axes for trihedron.

    ◆ myGridLineAspect

    OpenGl_Aspects OpenGl_GraduatedTrihedron::myGridLineAspect
    mutableprotected

    Color grid properties.

    ◆ myLabelValues

    OpenGl_Text OpenGl_GraduatedTrihedron::myLabelValues
    mutableprotected

    ◆ myMax

    NCollection_Vec3<float> OpenGl_GraduatedTrihedron::myMax
    protected

    Axes for trihedron.

    ◆ myMin

    NCollection_Vec3<float> OpenGl_GraduatedTrihedron::myMin
    protected

    Axes for trihedron.


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