34 #ifndef CARTOBASE_TYPE_RGBA_DECL_H    35 #define CARTOBASE_TYPE_RGBA_DECL_H    81       VoxelRGBA( 
const uint8_t &r = 0, 
const uint8_t &g = 0, 
    82                  const uint8_t &b = 0, 
const uint8_t &a = 0 );
   114       inline const uint8_t& 
red   ()
 const { 
return (*
this)[0]; }
   115       inline const uint8_t& 
green ()
 const { 
return (*
this)[1]; }
   116       inline const uint8_t& 
blue  ()
 const { 
return (*
this)[2]; }
   117       inline const uint8_t& 
alpha ()
 const { 
return (*
this)[3]; }
   118       inline       uint8_t& 
red   ()       { 
return (*
this)[0]; }
   119       inline       uint8_t& 
green ()       { 
return (*
this)[1]; }
   120       inline       uint8_t& 
blue  ()       { 
return (*
this)[2]; }
   121       inline       uint8_t& 
alpha ()       { 
return (*
this)[3]; }
 
VoxelRGB operator/(const VoxelRGB &aa, const uint8_t &bb)
const uint8_t & blue() const
VoxelRGBA & operator*=(const uint8_t &value)
const uint8_t & red() const
VoxelRGB operator+(const VoxelRGB &aa, const VoxelRGB &bb)
Base class for any multichannel data (RGB, RGBA, HSV, ...) 
VoxelRGB operator*(const VoxelRGB &aa, const uint8_t &bb)
VoxelRGBA & operator=(const VoxelRGBA &other)
VoxelRGBA & operator-=(const VoxelRGBA &other)
const uint8_t & alpha() const
VoxelRGBA & operator+=(const VoxelRGBA &other)
VoxelRGB operator-(const VoxelRGB &aa, const VoxelRGB &bb)
const uint8_t & green() const
static std::string dataType()
VoxelRGBA(const VoxelRGBA &other)
VoxelRGBA & operator/=(const uint8_t &value)