Open CASCADE Technology 7.9.1
Loading...
Searching...
No Matches
Image_ColorRGBAF Struct Reference

POD structure for packed RGBA color value (4 floats). More...

#include <Image_Color.hxx>

Public Types

typedef Standard_ShortReal ComponentType_t
 Component type.

Public Member Functions

Standard_ShortReal r () const
 Alias to 1st component (red intensity).
Standard_ShortReal g () const
 Alias to 2nd component (green intensity).
Standard_ShortReal b () const
 Alias to 3rd component (blue intensity).
Standard_ShortReal a () const
 Alias to 4th component (alpha value).
Standard_ShortRealr ()
 Alias to 1st component (red intensity).
Standard_ShortRealg ()
 Alias to 2nd component (green intensity).
Standard_ShortRealb ()
 Alias to 3rd component (blue intensity).
Standard_ShortReala ()
 Alias to 4th component (alpha value).

Static Public Member Functions

static Standard_Integer Length ()
 Returns the number of components.

Data Fields

Standard_ShortReal v [4]

Detailed Description

POD structure for packed RGBA color value (4 floats).

Member Typedef Documentation

◆ ComponentType_t

Member Function Documentation

◆ a() [1/2]

Standard_ShortReal & Image_ColorRGBAF::a ( )
inline

Alias to 4th component (alpha value).

◆ a() [2/2]

Standard_ShortReal Image_ColorRGBAF::a ( ) const
inline

Alias to 4th component (alpha value).

◆ b() [1/2]

Standard_ShortReal & Image_ColorRGBAF::b ( )
inline

Alias to 3rd component (blue intensity).

◆ b() [2/2]

Standard_ShortReal Image_ColorRGBAF::b ( ) const
inline

Alias to 3rd component (blue intensity).

◆ g() [1/2]

Standard_ShortReal & Image_ColorRGBAF::g ( )
inline

Alias to 2nd component (green intensity).

◆ g() [2/2]

Standard_ShortReal Image_ColorRGBAF::g ( ) const
inline

Alias to 2nd component (green intensity).

◆ Length()

Standard_Integer Image_ColorRGBAF::Length ( )
inlinestatic

Returns the number of components.

◆ r() [1/2]

Standard_ShortReal & Image_ColorRGBAF::r ( )
inline

Alias to 1st component (red intensity).

◆ r() [2/2]

Standard_ShortReal Image_ColorRGBAF::r ( ) const
inline

Alias to 1st component (red intensity).

Field Documentation

◆ v

Standard_ShortReal Image_ColorRGBAF::v[4]

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