itom
Loading...
Searching...
No Matches
ito::RGBChannel< _COLOR > Class Template Reference
Inheritance diagram for ito::RGBChannel< _COLOR >:
ito::Rgba32 ito::RgbaBase32

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
 
- Public 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.
 
 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.
 
Rgba32operator*= (const ito::float32 &grayFactor)
 Multiplication by a float32 grayFactor (alpha is unchanged).
 
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 Public Member Functions

static RGBChannel< _COLOR > zeros ()
 
static RGBChannel< _COLOR > black ()
 
- Static Public 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
 

Additional Inherited Members

- Public 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
}
 
- Public 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

◆ RGBChannel() [1/3]

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

< Constructor for basic values

◆ RGBChannel() [2/3]

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

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

◆ RGBChannel() [3/3]

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

< Copy-Constructor for lvalues

Member Function Documentation

◆ operator!=()

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

◆ operator*()

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

< Implementation of * operator using *= operator

◆ operator*=()

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

< Implementation of *= operator with overflow handling and normalisation

◆ operator+()

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

< Implementation of + operator using += operator

◆ operator+=()

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

< Implementation of += operator with overflow handling

◆ operator-()

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

< Implementation of - operator using -= operator

◆ operator-=()

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

< Implementation of -= operator with overflow handling

◆ operator/()

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

< Implementation of * operator using *= operator

◆ operator/=()

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

< Implementation of *= operator with overflow handling and normalisation

◆ operator<()

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

◆ operator=() [1/2]

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

< Implementation of = operator

◆ operator=() [2/2]

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

< Implementation of = for uint32 by direct copy

◆ operator==()

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

◆ operator>()

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

◆ value() [1/2]

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

< Read out single channel and return as gray value

◆ value() [2/2]

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: