mln::value::rgb< n > Struct Template Reference

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

#include <rgb.hh>

Inherits mln::value::Vectorial< rgb<n> >, and value_like_< algebra::vec< 3, int_u< n > >,algebra::vec< 3, int_u< n > >,algebra::vec< 3, int >,rgb< n > >.

List of all members.

Public Member Functions

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

Static Public Attributes

static const rgb< n > zero
 Zero value.


Detailed Description

template<unsigned n>
struct mln::value::rgb< n >

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


Constructor & Destructor Documentation

template<unsigned n>
mln::value::rgb< n >::rgb (  )  [inline]

Constructor without argument.

template<unsigned n>
mln::value::rgb< n >::rgb ( int  r,
int  g,
int  b 
) [inline]

Constructor from component values.

template<unsigned n>
mln::value::rgb< n >::rgb ( const algebra::vec< 3, int > &  rhs  )  [inline]

Constructor from a algebra::vec.

template<unsigned n>
mln::value::rgb< n >::rgb ( const mln::literal::white_t  )  [inline]

Constructors with literals.


Member Function Documentation

template<unsigned n>
rgb< n > & mln::value::rgb< n >::operator= ( const rgb< n > &  rhs  )  [inline]

Assignment.

template<unsigned n>
int_u<n> mln::value::rgb< n >::red (  )  const [inline]

Acces to red/green/blue component.


Member Data Documentation

template<unsigned n>
const rgb< n > mln::value::rgb< n >::zero [inline, static]

Zero value.


Generated on Tue Jul 14 16:33:22 2009 for Milena (Olena) by  doxygen 1.5.9