cartobase  4.5.0
carto::VoxelRGB Class Reference

RGB Value. More...

#include <cartobase/type/voxelrgb_decl.h>

Inheritance diagram for carto::VoxelRGB:
Collaboration diagram for carto::VoxelRGB:

Public Member Functions

 VoxelRGB (const VoxelRGB &other)
 
 VoxelRGB (const VoxelRGBA &other)
 
 VoxelRGB (const VoxelValue< uint8_t, 3 > &other)
 
 VoxelRGB (const uint8_t &r=0, const uint8_t &g=0, const uint8_t &b=0)
 
 ~VoxelRGB ()
 
VoxelRGBoperator= (const VoxelRGB &other)
 
VoxelRGBoperator= (const VoxelRGBA &other)
 
VoxelRGBoperator= (const uint8_t &value)
 
VoxelRGBoperator+= (const VoxelRGB &other)
 
VoxelRGBoperator+= (const VoxelRGBA &other)
 
VoxelRGBoperator-= (const VoxelRGB &other)
 
VoxelRGBoperator-= (const VoxelRGBA &other)
 
VoxelRGBoperator+= (const uint8_t &value)
 
VoxelRGBoperator-= (const uint8_t &value)
 
VoxelRGBoperator*= (const uint8_t &value)
 
VoxelRGBoperator*= (const uint16_t &value)
 
VoxelRGBoperator*= (const uint32_t &value)
 
VoxelRGBoperator*= (const uint64_t &value)
 
VoxelRGBoperator*= (const float &value)
 
VoxelRGBoperator*= (const double &value)
 
VoxelRGBoperator/= (const uint8_t &value)
 
VoxelRGBoperator/= (const uint16_t &value)
 
VoxelRGBoperator/= (const uint32_t &value)
 
VoxelRGBoperator/= (const uint64_t &value)
 
VoxelRGBoperator/= (const float &value)
 
VoxelRGBoperator/= (const double &value)
 
VoxelRGBoperator*= (const long &value)
 
VoxelRGBoperator/= (const long &value)
 
const uint8_t & red () const
 
const uint8_t & green () const
 
const uint8_t & blue () const
 
uint8_t & red ()
 
uint8_t & green ()
 
uint8_t & blue ()
 
- Public Member Functions inherited from carto::VoxelValue< uint8_t, 3 >
 VoxelValue ()
 
 VoxelValue (const VoxelValue< uint8_t, C > &other)
 
 ~VoxelValue ()
 
bool operator== (const VoxelValue< uint8_t, C > &)
 
bool operator== (const uint8_t &)
 
bool operator!= (const VoxelValue< uint8_t, C > &)
 
bool operator!= (const uint8_t &)
 
const uint8_t & operator[] (unsigned int i) const
 
uint8_t & operator[] (unsigned int i)
 

Additional Inherited Members

- Public Types inherited from carto::VoxelValue< uint8_t, 3 >
typedef uint8_t ChannelType
 
- Static Public Attributes inherited from carto::VoxelValue< uint8_t, 3 >
static const unsigned int channelcount
 
- Protected Attributes inherited from carto::VoxelValue< uint8_t, 3 >
uint8_t _voxel [C]
 

Detailed Description

RGB Value.

This class replaces AimsRGB.
All previous operators are implemented.
Read/Write operators are implemented in soma-io/utilities/asciidatasourcetraits.h so you need to include this file for read/write operations.

Warning
Even though declarations are contained in cartobase/type/voxelrgb_decl.h, you need to include cartobase/type/voxelrgb.h in order to use this class (all methods are inline).

Definition at line 71 of file voxelrgb_decl.h.

Constructor & Destructor Documentation

carto::VoxelRGB::VoxelRGB ( const VoxelRGB other)
inline

Definition at line 60 of file voxelrgb_def.h.

carto::VoxelRGB::VoxelRGB ( const VoxelRGBA other)
inline
carto::VoxelRGB::VoxelRGB ( const VoxelValue< uint8_t, 3 > &  other)
inline

Definition at line 80 of file voxelrgb_def.h.

carto::VoxelRGB::VoxelRGB ( const uint8_t &  r = 0,
const uint8_t &  g = 0,
const uint8_t &  b = 0 
)
inline

Definition at line 89 of file voxelrgb_def.h.

References blue(), green(), and red().

carto::VoxelRGB::~VoxelRGB ( )
inline

Definition at line 100 of file voxelrgb_def.h.

Member Function Documentation

uint8_t& carto::VoxelRGB::blue ( )
inline

Definition at line 118 of file voxelrgb_decl.h.

uint8_t& carto::VoxelRGB::green ( )
inline

Definition at line 117 of file voxelrgb_decl.h.

VoxelRGB & carto::VoxelRGB::operator*= ( const uint8_t &  value)
inline

Definition at line 220 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const uint16_t &  value)
inline

Definition at line 232 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const uint32_t &  value)
inline

Definition at line 244 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const uint64_t &  value)
inline

Definition at line 256 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const float &  value)
inline

Definition at line 268 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const double &  value)
inline

Definition at line 281 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator*= ( const long &  value)
inline

Definition at line 598 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator+= ( const VoxelRGB other)
inline

Definition at line 148 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator+= ( const VoxelRGBA other)
inline
VoxelRGB & carto::VoxelRGB::operator+= ( const uint8_t &  value)
inline

Definition at line 196 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator-= ( const VoxelRGB other)
inline

Definition at line 172 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator-= ( const VoxelRGBA other)
inline
VoxelRGB & carto::VoxelRGB::operator-= ( const uint8_t &  value)
inline

Definition at line 208 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const uint8_t &  value)
inline

Definition at line 294 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const uint16_t &  value)
inline

Definition at line 307 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const uint32_t &  value)
inline

Definition at line 320 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const uint64_t &  value)
inline

Definition at line 333 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const float &  value)
inline

Definition at line 346 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const double &  value)
inline

Definition at line 360 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator/= ( const long &  value)
inline

Definition at line 610 of file voxelrgb_def.h.

References ASSERT, blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator= ( const VoxelRGB other)
inline

Definition at line 110 of file voxelrgb_def.h.

References blue(), green(), and red().

VoxelRGB & carto::VoxelRGB::operator= ( const VoxelRGBA other)
inline
VoxelRGB & carto::VoxelRGB::operator= ( const uint8_t &  value)
inline

Definition at line 134 of file voxelrgb_def.h.

References blue(), green(), and red().

uint8_t& carto::VoxelRGB::red ( )
inline

Definition at line 116 of file voxelrgb_decl.h.


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