Open Search
    DrawVolume< T > Struct Template Reference

    #include <gfx_basictypes_3d.h>

    Detailed Description

    template<typename T>
    struct maxon::DrawVolume< T >

    Definition of a rectangle used for window/draw operations.

    Public Member Functions

     DrawVolume ()
     
     DrawVolume (DrawPoint3d< T > positionValue, DrawDimension3d< T > sizeValue)
     
     DrawVolume (T x, T y, T z, T w, T h, T d)
     
    String ToString (const FormatStatement *formatStatement=nullptr) const
     
     MAXON_OPERATOR_EQUALITY_HASHCODE (DrawVolume, position, size)
     

    Static Public Member Functions

    static Result< void > DescribeIO (const DataSerializeInterface &stream)
     

    Public Attributes

    DrawPoint3d< T > position
     
    DrawDimension3d< T > size
     

    Constructor & Destructor Documentation

    ◆ DrawVolume() [1/3]

    ◆ DrawVolume() [2/3]

    DrawVolume ( DrawPoint3d< T >  positionValue,
    DrawDimension3d< T >  sizeValue 
    )

    ◆ DrawVolume() [3/3]

    DrawVolume ( x,
    y,
    z,
    w,
    h,
    d 
    )

    Member Function Documentation

    ◆ ToString()

    String ToString ( const FormatStatement formatStatement = nullptr) const

    Returns a readable string of the content.

    Parameters
    [in]formatStatementNullptr or additional formatting instruction. Currently no additional formatting instructions are supported.
    Returns
    The converted result.

    ◆ MAXON_OPERATOR_EQUALITY_HASHCODE()

    MAXON_OPERATOR_EQUALITY_HASHCODE ( DrawVolume< T >  ,
    position  ,
    size   
    )

    ◆ DescribeIO()

    static Result<void> DescribeIO ( const DataSerializeInterface stream)
    static

    Describe all elements of this class for I/O operations.

    Parameters
    [in]streamThe stream that is used to register the class members.
    Returns
    OK on success.

    Member Data Documentation

    ◆ position

    DrawPoint3d<T> position

    ◆ size

    DrawDimension3d<T> size