Color class for red-green-blue where every component is n-bit encoded. More...
#include <rgb32.hh>
Public Types | |
typedef int_u< 8 > | blue_t |
typedef Value< void > | category |
typedef C | enc |
Encoding associated type. | |
typedef V | equiv |
Equivalent associated type. | |
typedef rgb32 | exact_t |
typedef int_u< 8 > | green_t |
typedef N | interop |
Interoperation associated type. | |
typedef int_u< 8 > | red_t |
Public Member Functions | |
C & | handle_ () |
operator algebra::vec< 3, float > () const | |
operator algebra::vec< 3, int > () const | |
rgb32 & | operator= (const rgb32 &rhs) |
Assignment. | |
rgb32 (const algebra::vec< 3, unsigned > &rhs) | |
rgb32 (int r, int g, int b) | |
Constructor from component values. | |
rgb32 (const algebra::vec< 3, int_u< 8 > > &rhs) | |
rgb32 (const algebra::vec< 3, int > &rhs) | |
Constructor from a algebra::vec. | |
rgb32 () | |
Constructor without argument. | |
rgb32 (const algebra::vec< 3, float > &rhs) | |
const C & | to_enc () const |
Explicit conversion towards encoding type. | |
V | to_equiv () const |
Explicit conversion towards equivalent type. | |
N | to_interop () const |
Explicit conversion towards interoperation type. | |
int_u< 8 > | red () const |
Acces to red/green/blue component. | |
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 &) | |
Constructors with literals. | |
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_ |
Alpha value (unused). | |
Static Public Attributes | |
static const rgb32 | zero |
Zero value. | |
Protected Attributes | |
enc | v_ |
Color class for red-green-blue where every component is n-bit encoded.
Definition at line 197 of file rgb32.hh.
typedef int_u<8> mln::value::qt::rgb32::blue_t |
typedef Value<void> mln::Value< rgb32 >::category [inherited] |
Reimplemented from mln::Object< rgb32 >.
Definition at line 59 of file core/concept/value.hh.
typedef C mln::value::internal::value_like_< V, C, N, E >::enc [inherited] |
Encoding associated type.
Reimplemented in mln::value::internal::gray_< n >, and mln::value::label< n >.
Definition at line 60 of file value_like.hh.
typedef V mln::value::internal::value_like_< V, C, N, E >::equiv [inherited] |
Equivalent associated type.
Reimplemented in mln::value::internal::gray_< n >.
Definition at line 57 of file value_like.hh.
typedef int_u<8> mln::value::qt::rgb32::green_t |
typedef N mln::value::internal::value_like_< V, C, N, E >::interop [inherited] |
Interoperation associated type.
Definition at line 63 of file value_like.hh.
typedef int_u<8> mln::value::qt::rgb32::red_t |
mln::value::qt::rgb32::rgb32 | ( | ) | [inline] |
mln::value::qt::rgb32::rgb32 | ( | int | r, | |
int | g, | |||
int | b | |||
) | [inline] |
Constructor from component values.
Definition at line 427 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
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.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const algebra::vec< 3, unsigned > & | rhs | ) | [inline] |
Definition at line 400 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const algebra::vec< 3, int_u< 8 > > & | rhs | ) | [inline] |
Definition at line 409 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const algebra::vec< 3, float > & | rhs | ) | [inline] |
Definition at line 418 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::zero_t & | ) | [inline] |
Constructors with literals.
Definition at line 442 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::white_t & | ) | [inline] |
Definition at line 451 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::black_t & | ) | [inline] |
Definition at line 460 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::light_gray_t & | ) | [inline] |
Definition at line 469 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::medium_gray_t & | ) | [inline] |
Definition at line 478 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::dark_gray_t & | ) | [inline] |
Definition at line 487 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::red_t & | ) | [inline] |
Definition at line 496 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::blue_t & | ) | [inline] |
Definition at line 514 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::green_t & | ) | [inline] |
Definition at line 505 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::brown_t & | ) | [inline] |
Definition at line 523 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::lime_t & | ) | [inline] |
Definition at line 532 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::orange_t & | ) | [inline] |
Definition at line 541 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::pink_t & | ) | [inline] |
Definition at line 550 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::purple_t & | ) | [inline] |
Definition at line 559 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::teal_t & | ) | [inline] |
Definition at line 568 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::violet_t & | ) | [inline] |
Definition at line 577 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::cyan_t & | ) | [inline] |
Definition at line 586 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::magenta_t & | ) | [inline] |
Definition at line 595 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::yellow_t & | ) | [inline] |
Definition at line 604 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::rgb32 | ( | const mln::literal::olive_t & | ) | [inline] |
Definition at line 613 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8> mln::value::qt::rgb32::blue | ( | ) | const [inline] |
Definition at line 218 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Referenced by mln::fun::v2v::qt_rgb_to_int_u< n >::operator()(), mln::value::qt::operator<<(), and mln::value::qt::operator>>().
int_u<8>& mln::value::qt::rgb32::blue | ( | ) | [inline] |
Definition at line 219 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8>& mln::value::qt::rgb32::comp | ( | unsigned | k | ) | [inline] |
Definition at line 222 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8> mln::value::qt::rgb32::comp | ( | unsigned | k | ) | const [inline] |
Definition at line 221 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8> mln::value::qt::rgb32::green | ( | ) | const [inline] |
Definition at line 215 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Referenced by mln::fun::v2v::qt_rgb_to_int_u< n >::operator()(), mln::value::qt::operator<<(), and mln::value::qt::operator>>().
int_u<8>& mln::value::qt::rgb32::green | ( | ) | [inline] |
Definition at line 216 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
C& mln::value::internal::value_like_< V, C, N, E >::handle_ | ( | ) | [inline, inherited] |
Definition at line 76 of file value_like.hh.
Referenced by mln::value::operator>>().
mln::value::qt::rgb32::operator algebra::vec< 3, float > | ( | ) | const [inline] |
Definition at line 643 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
mln::value::qt::rgb32::operator algebra::vec< 3, int > | ( | ) | const [inline] |
Definition at line 633 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Assignment.
Definition at line 623 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8>& mln::value::qt::rgb32::red | ( | ) | [inline] |
Definition at line 213 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
int_u<8> mln::value::qt::rgb32::red | ( | ) | const [inline] |
Acces to red/green/blue component.
Definition at line 212 of file rgb32.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Referenced by mln::fun::v2v::qt_rgb_to_int_u< n >::operator()(), mln::value::qt::operator<<(), and mln::value::qt::operator>>().
const C & mln::value::internal::value_like_< V, C, N, E >::to_enc | ( | ) | const [inline, inherited] |
Explicit conversion towards encoding type.
Definition at line 110 of file value_like.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Referenced by mln::value::internal::convert_< float01_< n > >::index_of_value(), mln::value::label< n >::operator unsigned(), and mln::value::internal::operator==().
V mln::value::internal::value_like_< V, C, N, E >::to_equiv | ( | ) | const [inline, inherited] |
Explicit conversion towards equivalent type.
Definition at line 102 of file value_like.hh.
References mln::value::internal::value_like_< V, C, N, E >::v_.
Referenced by mln::convert::over_load::from_to_().
N mln::value::internal::value_like_< V, C, N, E >::to_interop | ( | ) | const [inline, inherited] |
Explicit conversion towards interoperation type.
Definition at line 118 of file value_like.hh.
Referenced by mln::value::qt::operator*(), mln::value::operator*(), mln::value::qt::operator+(), mln::value::operator+(), mln::value::qt::operator-(), mln::value::operator-(), mln::value::qt::operator/(), and mln::value::operator/().
enc mln::value::internal::value_like_< V, C, N, E >::v_ [protected, inherited] |
Definition at line 79 of file value_like.hh.
Referenced by blue(), mln::value::rgb< n >::blue(), comp(), mln::value::rgb< n >::comp(), mln::value::float01_< n >::float01_(), mln::value::float01_f::float01_f(), mln::value::internal::gray_< n >::gray_(), mln::value::internal::gray_f::gray_f(), mln::value::graylevel< n >::graylevel(), mln::value::graylevel_f::graylevel_f(), green(), mln::value::rgb< n >::green(), mln::value::internal::value_like_< int, int, gray_< n >, gray_< n > >::handle_(), mln::value::int_s< n >::int_s(), mln::value::int_u< n >::int_u(), mln::value::int_u_sat< n >::int_u_sat(), mln::algebra::quat::inv(), mln::algebra::quat::is_null(), mln::algebra::quat::is_pure(), mln::algebra::quat::is_unit(), mln::value::label< n >::label(), mln::value::label< n >::next(), mln::value::int_u< n >::next(), operator algebra::vec< 3, float >(), mln::value::rgb< n >::operator algebra::vec< 3, float >(), operator algebra::vec< 3, int >(), mln::value::rgb< n >::operator algebra::vec< 3, int >(), mln::algebra::quat::operator const algebra::vec< 4, float > &(), mln::value::float01_f::operator float(), mln::value::float01_< n >::operator float(), mln::value::internal::gray_f::operator gray_< m >(), mln::value::internal::gray_< n >::operator gray_< m >(), mln::value::internal::gray_f::operator graylevel< m >(), mln::value::internal::gray_< n >::operator graylevel< m >(), mln::value::internal::gray_f::operator graylevel_f(), mln::value::internal::gray_< n >::operator graylevel_f(), mln::value::int_u_sat< n >::operator int(), mln::value::int_u< n >::operator unsigned(), mln::value::label< n >::operator++(), mln::value::int_u_sat< n >::operator+=(), mln::value::int_u< n >::operator-(), mln::value::label< n >::operator--(), mln::value::int_u_sat< n >::operator-=(), operator=(), mln::value::rgb< n >::operator=(), mln::algebra::quat::operator=(), mln::value::label< n >::operator=(), mln::value::int_u_sat< n >::operator=(), mln::value::int_u< n >::operator=(), mln::value::int_s< n >::operator=(), mln::value::graylevel_f::operator=(), mln::value::graylevel< n >::operator=(), mln::value::internal::gray_f::operator=(), mln::value::internal::gray_< n >::operator=(), mln::value::float01_f::operator=(), mln::value::float01_< n >::operator=(), mln::value::label< n >::prev(), mln::algebra::quat::quat(), red(), mln::value::rgb< n >::red(), mln::value::rgb< n >::rgb(), rgb32(), mln::algebra::quat::s(), mln::value::float01_< n >::set_ind(), mln::algebra::quat::set_unit(), mln::algebra::quat::set_v(), mln::algebra::quat::sprod(), mln::value::internal::value_like_< V, C, N, E >::to_enc(), mln::value::internal::value_like_< V, C, N, E >::to_equiv(), mln::value::graylevel< n >::to_float(), mln::algebra::quat::to_vec(), mln::algebra::quat::v(), mln::value::graylevel_f::value(), mln::value::graylevel< n >::value(), mln::value::internal::gray_f::value(), mln::value::internal::gray_< n >::value(), mln::value::float01_f::value(), and mln::value::float01_< n >::value().
const rgb32 mln::value::qt::rgb32::zero [static] |