itom  4.1.0
ito::RGBChannel< _COLOR > Class Template Reference
Inheritance diagram for ito::RGBChannel< _COLOR >:
ito::Rgba32

Public Member Functions

 RGBChannel ()
 
 RGBChannel (const uint8 gray)
 
 RGBChannel (const RGBChannel &rhs)
 
RGBChanneloperator+= (const RGBChannel &rhs)
 
RGBChanneloperator= (const RGBChannel &rhs)
 
RGBChanneloperator= (const uint32 &rhs)
 
RGBChanneloperator-= (const RGBChannel &rhs)
 
RGBChanneloperator*= (const RGBChannel &rhs)
 
RGBChanneloperator/= (const RGBChannel &rhs)
 
RGBChannel operator+ (const RGBChannel &second) const
 
RGBChannel operator- (const RGBChannel &second) const
 
RGBChannel operator* (const RGBChannel &second) const
 
RGBChannel operator/ (const RGBChannel &second) const
 
bool operator== (const RGBChannel &rhs) const
 
bool operator!= (const RGBChannel &rhs) const
 
bool operator< (const RGBChannel &rhs) const
 
bool operator> (const RGBChannel &rhs) const
 
float32 gray () const
 
uint8 & value ()
 
uint8 value () const
 

Static Public Member Functions

static RGBChannel< _COLOR > zeros ()
 
static RGBChannel< _COLOR > black ()
 

Additional Inherited Members

- Private Types inherited from ito::Rgba32
enum  RGBSelectionFlags {
  RGBA_B = 0, RGBA_G = 1, RGBA_R = 2, RGBA_A = 3,
  RGBA_Y = 4, RGBA_RGB = 5
}
 
- Private Member Functions inherited from ito::Rgba32
 Rgba32 ()
 
 Rgba32 (const uint8 &a, const uint8 &r, const uint8 &g, const uint8 &b)
 
 Rgba32 (const uint8 gray)
 Constructor which will set color channels to gray uint8 and alpha to 255. More...
 
 Rgba32 (const Rgba32 &rhs)
 
Rgba32operator+= (const Rgba32 &rhs)
 
Rgba32operator= (const Rgba32 &rhs)
 
Rgba32operator= (const uint32 &rhs)
 
Rgba32operator-= (const Rgba32 &rhs)
 
Rgba32operator*= (const Rgba32 &rhs)
 Multiplication by another Rgba32 value. More...
 
Rgba32operator*= (const ito::float32 &grayFactor)
 Multiplication by a float32 grayFactor (alpha is unchanged). More...
 
Rgba32operator/= (const Rgba32 &rhs)
 
Rgba32 operator+ (const Rgba32 &second) const
 
Rgba32 operator- (const Rgba32 &second) const
 
Rgba32 operator* (const Rgba32 &second) const
 
Rgba32 operator* (const ito::float32 &second) const
 
Rgba32 operator/ (const Rgba32 &second) const
 
bool operator== (const Rgba32 &rhs) const
 
bool operator!= (const Rgba32 &rhs) const
 
float32 gray () const
 
uint8 & alpha ()
 
uint8 & red ()
 
uint8 & green ()
 
uint8 & blue ()
 
uint8 alpha () const
 
uint8 red () const
 
uint8 green () const
 
uint8 blue () const
 
uint32 & argb ()
 
uint32 argb () const
 
uint32 * u32ptr ()
 
uint8 * u8ptr ()
 
- Static Private Member Functions inherited from ito::Rgba32
static Rgba32 zeros ()
 
static Rgba32 black ()
 
static Rgba32 fromUnsignedLong (const uint32 val)
 static constructor to create Rgba32 from uint32 containing the values argb More...
 
- Private Attributes inherited from ito::RgbaBase32
union {
   struct {
      ito::uint8   b
 
      ito::uint8   g
 
      ito::uint8   r
 
      ito::uint8   a
 
   } 
 
   ito::uint8   items [4]
 
   ito::uint32   rgba
 
}; 
 

Constructor & Destructor Documentation

template<uint8 _COLOR>
ito::RGBChannel< _COLOR >::RGBChannel ( )
inline

< Constructor for basic values

template<uint8 _COLOR>
ito::RGBChannel< _COLOR >::RGBChannel ( const uint8  gray)
inlineexplicit

< Constructor which will set color channels to gray uint8 and alpha to 255

template<uint8 _COLOR>
ito::RGBChannel< _COLOR >::RGBChannel ( const RGBChannel< _COLOR > &  rhs)
inline

< Copy-Constructor for lvalues

Member Function Documentation

template<uint8 _COLOR>
bool ito::RGBChannel< _COLOR >::operator!= ( const RGBChannel< _COLOR > &  rhs) const
inline

< Implementation of != operator comparing each element including alpha channel, true if one is different

template<uint8 _COLOR>
RGBChannel ito::RGBChannel< _COLOR >::operator* ( const RGBChannel< _COLOR > &  second) const
inline

< Implementation of * operator using *= operator

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator*= ( const RGBChannel< _COLOR > &  rhs)
inline

< Implementation of *= operator with overflow handling and normalisation

template<uint8 _COLOR>
RGBChannel ito::RGBChannel< _COLOR >::operator+ ( const RGBChannel< _COLOR > &  second) const
inline

< Implementation of + operator using += operator

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator+= ( const RGBChannel< _COLOR > &  rhs)
inline

< Implementation of += operator with overflow handling

template<uint8 _COLOR>
RGBChannel ito::RGBChannel< _COLOR >::operator- ( const RGBChannel< _COLOR > &  second) const
inline

< Implementation of - operator using -= operator

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator-= ( const RGBChannel< _COLOR > &  rhs)
inline

< Implementation of -= operator with overflow handling

template<uint8 _COLOR>
RGBChannel ito::RGBChannel< _COLOR >::operator/ ( const RGBChannel< _COLOR > &  second) const
inline

< Implementation of * operator using *= operator

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator/= ( const RGBChannel< _COLOR > &  rhs)
inline

< Implementation of *= operator with overflow handling and normalisation

template<uint8 _COLOR>
bool ito::RGBChannel< _COLOR >::operator< ( const RGBChannel< _COLOR > &  rhs) const
inline

< Implementation of != operator comparing each element including alpha channel, true if one is different

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator= ( const RGBChannel< _COLOR > &  rhs)
inline

< Implementation of = operator

template<uint8 _COLOR>
RGBChannel& ito::RGBChannel< _COLOR >::operator= ( const uint32 &  rhs)
inline

< Implementation of = for uint32 by direct copy

template<uint8 _COLOR>
bool ito::RGBChannel< _COLOR >::operator== ( const RGBChannel< _COLOR > &  rhs) const
inline

< Implementation of == operator comparing each element including alpha channel, true if all are equal

template<uint8 _COLOR>
bool ito::RGBChannel< _COLOR >::operator> ( const RGBChannel< _COLOR > &  rhs) const
inline

< Implementation of != operator comparing each element including alpha channel, true if one is different

template<uint8 _COLOR>
uint8& ito::RGBChannel< _COLOR >::value ( )
inline

< Read out single channel and return as gray value

template<uint8 _COLOR>
uint8 ito::RGBChannel< _COLOR >::value ( ) const
inline

< Access to single-Channel


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