Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::value::qt::rgb32 Struct Reference

Color class for red-green-blue where every component is n-bit encoded. More...

#include <rgb32.hh>

Inherits mln::value::Vectorial< E >, and mln::value::internal::value_like_< V, C, N, E >.

Public Member Functions

rgb32operator= (const rgb32 &rhs)
 Assignment.
 
 rgb32 ()
 Constructor without argument.
 
 rgb32 (int r, int g, int b)
 Constructor from component values.
 
 rgb32 (const algebra::vec< 3, int > &rhs)
 Constructor from a algebra::vec.
 
int_u< 8 > red () const
 Acces to red/green/blue component.
 
 rgb32 (const mln::literal::zero_t &)
 Constructors with literals.
 

Static Public Attributes

static const rgb32 zero
 Zero value.
 

Detailed Description

Color class for red-green-blue where every component is n-bit encoded.

Definition at line 197 of file rgb32.hh.

Constructor & Destructor Documentation

mln::value::qt::rgb32::rgb32 ( )
inline

Constructor without argument.

Definition at line 385 of file rgb32.hh.

mln::value::qt::rgb32::rgb32 ( int  r,
int  g,
int  b 
)
inline

Constructor from component values.

Definition at line 427 of file rgb32.hh.

mln::value::qt::rgb32::rgb32 ( const algebra::vec< 3, int > &  rhs)
inline

Constructor from a algebra::vec.

Definition at line 391 of file rgb32.hh.

mln::value::qt::rgb32::rgb32 ( const mln::literal::zero_t )
inline

Constructors with literals.

Definition at line 442 of file rgb32.hh.

Member Function Documentation

rgb32 & mln::value::qt::rgb32::operator= ( const rgb32 rhs)
inline

Assignment.

Definition at line 623 of file rgb32.hh.

int_u<8> mln::value::qt::rgb32::red ( ) const
inline

Acces to red/green/blue component.

Definition at line 212 of file rgb32.hh.

Member Data Documentation

const rgb32 mln::value::qt::rgb32::zero
static

Zero value.

Definition at line 272 of file rgb32.hh.