Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::utils::VisualizationDescription::Color Struct Reference

Utility Color class. More...

#include <VisualizationDescription.h>

Public Member Functions

 Color ()
 Empty default constructor. More...
 
 Color (icl8u r, icl8u g, icl8u b, icl8u a=255)
 Constructor with given color values. More...
 
icl8ur ()
 accesses red value More...
 
icl8ug ()
 accesses green value More...
 
icl8ub ()
 accesses blue value More...
 
icl8ua ()
 accesses alpha value More...
 
const icl8ur () const
 accesses red value (const) More...
 
const icl8ug () const
 accesses green value (const) More...
 
const icl8ub () const
 accesses blue value (const) More...
 
const icl8ua () const
 accesses alpha value (const) More...
 

Public Attributes

union {
   icl8u   comp [4]
 
   icl32s   rgba
 
}; 
 color union More...
 

Detailed Description

Utility Color class.

Constructor & Destructor Documentation

◆ Color() [1/2]

icl::utils::VisualizationDescription::Color::Color ( )
inline

Empty default constructor.

◆ Color() [2/2]

icl::utils::VisualizationDescription::Color::Color ( icl8u  r,
icl8u  g,
icl8u  b,
icl8u  a = 255 
)
inline

Constructor with given color values.

Member Function Documentation

◆ a() [1/2]

icl8u& icl::utils::VisualizationDescription::Color::a ( )
inline

accesses alpha value

◆ a() [2/2]

const icl8u& icl::utils::VisualizationDescription::Color::a ( ) const
inline

accesses alpha value (const)

◆ b() [1/2]

icl8u& icl::utils::VisualizationDescription::Color::b ( )
inline

accesses blue value

◆ b() [2/2]

const icl8u& icl::utils::VisualizationDescription::Color::b ( ) const
inline

accesses blue value (const)

◆ g() [1/2]

icl8u& icl::utils::VisualizationDescription::Color::g ( )
inline

accesses green value

◆ g() [2/2]

const icl8u& icl::utils::VisualizationDescription::Color::g ( ) const
inline

accesses green value (const)

◆ r() [1/2]

icl8u& icl::utils::VisualizationDescription::Color::r ( )
inline

accesses red value

◆ r() [2/2]

const icl8u& icl::utils::VisualizationDescription::Color::r ( ) const
inline

accesses red value (const)

Member Data Documentation

◆ @17

union { ... }

color union

◆ comp

icl8u icl::utils::VisualizationDescription::Color::comp[4]

◆ rgba

icl32s icl::utils::VisualizationDescription::Color::rgba

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