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
    Graphic3d_ValueInterface Struct Referenceabstract

    Interface for generic variable value. More...

    #include <Graphic3d_ShaderVariable.hxx>

    Inheritance diagram for Graphic3d_ValueInterface:

    Public Member Functions

    virtual ~Graphic3d_ValueInterface ()
     Releases memory resources of variable value.
    virtual size_t TypeID () const =0
     Returns unique identifier of value type.
    template<class T>
    T & As ()
     Returns variable value casted to specified type.
    template<class T>
    const T & As () const
     Returns variable value casted to specified type.

    Detailed Description

    Interface for generic variable value.

    Constructor & Destructor Documentation

    ◆ ~Graphic3d_ValueInterface()

    virtual Graphic3d_ValueInterface::~Graphic3d_ValueInterface ( )
    virtual

    Releases memory resources of variable value.

    Member Function Documentation

    ◆ As() [1/2]

    template<class T>
    T & Graphic3d_ValueInterface::As ( )

    Returns variable value casted to specified type.

    ◆ As() [2/2]

    template<class T>
    const T & Graphic3d_ValueInterface::As ( ) const

    Returns variable value casted to specified type.

    ◆ TypeID()


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