$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::qt::rgb32 Struct Reference

#include <mln/value/qt/rgb32.hh>

Public Member Functions

 rgb32 ()
 rgb32 (int r, int g, int b)
 rgb32 (const algebra::vec< 3, int > &rhs)
 rgb32 (const algebra::vec< 3, unsigned > &rhs)
 rgb32 (const algebra::vec< 3, int_u< 8 > > &rhs)
 rgb32 (const algebra::vec< 3, float > &rhs)
C & handle_ ()
 operator algebra::vec< 3, float > () const
 operator algebra::vec< 3, int > () const
rgb32operator= (const rgb32 &rhs)
const C & to_enc () const
to_equiv () const
to_interop () const
int_u< 8 > red () const
int_u< 8 > & red ()
int_u< 8 > green () const
int_u< 8 > & green ()
int_u< 8 > blue () const
int_u< 8 > & blue ()
int_u< 8 > comp (unsigned k) const
int_u< 8 > & comp (unsigned k)
 rgb32 (const mln::literal::zero_t &)
 rgb32 (const mln::literal::white_t &)
 rgb32 (const mln::literal::black_t &)
 rgb32 (const mln::literal::light_gray_t &)
 rgb32 (const mln::literal::medium_gray_t &)
 rgb32 (const mln::literal::dark_gray_t &)
 rgb32 (const mln::literal::red_t &)
 rgb32 (const mln::literal::blue_t &)
 rgb32 (const mln::literal::green_t &)
 rgb32 (const mln::literal::brown_t &)
 rgb32 (const mln::literal::lime_t &)
 rgb32 (const mln::literal::orange_t &)
 rgb32 (const mln::literal::pink_t &)
 rgb32 (const mln::literal::purple_t &)
 rgb32 (const mln::literal::teal_t &)
 rgb32 (const mln::literal::violet_t &)
 rgb32 (const mln::literal::cyan_t &)
 rgb32 (const mln::literal::magenta_t &)
 rgb32 (const mln::literal::yellow_t &)
 rgb32 (const mln::literal::olive_t &)

Public Attributes

int_u< 8 > alpha_

Static Public Attributes

static const rgb32 zero

Protected Attributes

enc v_

Public Types

typedef int_u< 8 > blue_t
typedef Value< void > category
typedef C enc
typedef V equiv
typedef rgb32 exact_t
typedef int_u< 8 > green_t
typedef N interop
typedef int_u< 8 > red_t

Detailed Description

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

This class allows the conversion from a mln::image2d to a QImage encoded with QImage::Format_RGB32 or QImage::Format_ARGB32.

See Also
to_qimage_nocopy_qt_rgb32

Definition at line 193 of file rgb32.hh.

Constructor & Destructor Documentation

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

Constructor without argument.

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

Constructor from component values.

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

Constructor from a algebra::vec.

mln::value::qt::rgb32::rgb32 ( const algebra::vec< 3, unsigned > &  rhs)
mln::value::qt::rgb32::rgb32 ( const algebra::vec< 3, int_u< 8 > > &  rhs)
mln::value::qt::rgb32::rgb32 ( const algebra::vec< 3, float > &  rhs)
mln::value::qt::rgb32::rgb32 ( const mln::literal::zero_t )

Constructors with literals.

mln::value::qt::rgb32::rgb32 ( const mln::literal::white_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::black_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::light_gray_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::medium_gray_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::dark_gray_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::red_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::blue_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::green_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::brown_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::lime_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::orange_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::pink_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::purple_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::teal_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::violet_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::cyan_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::magenta_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::yellow_t )
mln::value::qt::rgb32::rgb32 ( const mln::literal::olive_t )

Member Function Documentation

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

Definition at line 214 of file rgb32.hh.

int_u<8>& mln::value::qt::rgb32::blue ( )
inline

Definition at line 215 of file rgb32.hh.

int_u<8> mln::value::qt::rgb32::comp ( unsigned  k) const
inline

Definition at line 217 of file rgb32.hh.

int_u<8>& mln::value::qt::rgb32::comp ( unsigned  k)
inline

Definition at line 218 of file rgb32.hh.

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

Definition at line 211 of file rgb32.hh.

int_u<8>& mln::value::qt::rgb32::green ( )
inline

Definition at line 212 of file rgb32.hh.

template<typename V, typename C, typename N, typename E>
C& mln::value::internal::value_like_< V, C, N, E >::handle_ ( )
inlineinherited

Definition at line 81 of file value_like.hh.

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

Assignment.

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

Acces to red/green/blue component.

Definition at line 208 of file rgb32.hh.

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

Definition at line 209 of file rgb32.hh.

template<typename V, typename C, typename N, typename E>
const C& mln::value::internal::value_like_< V, C, N, E >::to_enc ( ) const
inherited

Explicit conversion towards encoding type.

template<typename V, typename C, typename N, typename E>
V mln::value::internal::value_like_< V, C, N, E >::to_equiv ( ) const
inherited

Explicit conversion towards equivalent type.

template<typename V, typename C, typename N, typename E>
N mln::value::internal::value_like_< V, C, N, E >::to_interop ( ) const
inherited

Explicit conversion towards interoperation type.

Member Data Documentation

int_u<8> mln::value::qt::rgb32::alpha_

Alpha value (unused).

Definition at line 272 of file rgb32.hh.

template<typename V, typename C, typename N, typename E>
enc mln::value::internal::value_like_< V, C, N, E >::v_
protectedinherited

Definition at line 84 of file value_like.hh.

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

Zero value.

Definition at line 268 of file rgb32.hh.

Member Typedef Documentation

Definition at line 205 of file rgb32.hh.

typedef Value<void> mln::Value< rgb32 >::category
inherited

Definition at line 62 of file core/concept/value.hh.

template<typename V, typename C, typename N, typename E>
typedef C mln::value::internal::value_like_< V, C, N, E >::enc
inherited

Encoding associated type.

Definition at line 65 of file value_like.hh.

template<typename V, typename C, typename N, typename E>
typedef V mln::value::internal::value_like_< V, C, N, E >::equiv
inherited

Equivalent associated type.

Definition at line 62 of file value_like.hh.

typedef rgb32 mln::Object< rgb32 >::exact_t
inherited

Definition at line 105 of file object.hh.

Definition at line 204 of file rgb32.hh.

template<typename V, typename C, typename N, typename E>
typedef N mln::value::internal::value_like_< V, C, N, E >::interop
inherited

Interoperation associated type.

Definition at line 68 of file value_like.hh.

Definition at line 203 of file rgb32.hh.