cartobase  5.0.5
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 > &) const
 
bool operator== (const uint8_t &) const
 
bool operator!= (const VoxelValue< uint8_t, C > &) const
 
bool operator!= (const uint8_t &) const
 
 operator bool () const
 
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

◆ VoxelRGB() [1/4]

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

Definition at line 61 of file voxelrgb_def.h.

◆ VoxelRGB() [2/4]

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

◆ VoxelRGB() [3/4]

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

Definition at line 81 of file voxelrgb_def.h.

◆ VoxelRGB() [4/4]

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

Definition at line 90 of file voxelrgb_def.h.

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

◆ ~VoxelRGB()

carto::VoxelRGB::~VoxelRGB ( )
inline

Definition at line 101 of file voxelrgb_def.h.

Member Function Documentation

◆ blue() [1/2]

◆ blue() [2/2]

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

◆ green() [1/2]

◆ green() [2/2]

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

Definition at line 117 of file voxelrgb_decl.h.

◆ operator*=() [1/7]

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

Definition at line 221 of file voxelrgb_def.h.

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

◆ operator*=() [2/7]

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

Definition at line 233 of file voxelrgb_def.h.

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

◆ operator*=() [3/7]

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

Definition at line 245 of file voxelrgb_def.h.

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

◆ operator*=() [4/7]

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

Definition at line 257 of file voxelrgb_def.h.

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

◆ operator*=() [5/7]

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

Definition at line 269 of file voxelrgb_def.h.

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

◆ operator*=() [6/7]

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

Definition at line 282 of file voxelrgb_def.h.

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

◆ operator*=() [7/7]

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

Definition at line 819 of file voxelrgb_def.h.

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

◆ operator+=() [1/3]

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

Definition at line 149 of file voxelrgb_def.h.

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

◆ operator+=() [2/3]

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

◆ operator+=() [3/3]

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

Definition at line 197 of file voxelrgb_def.h.

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

◆ operator-=() [1/3]

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

Definition at line 173 of file voxelrgb_def.h.

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

◆ operator-=() [2/3]

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

◆ operator-=() [3/3]

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

Definition at line 209 of file voxelrgb_def.h.

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

◆ operator/=() [1/7]

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

Definition at line 295 of file voxelrgb_def.h.

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

◆ operator/=() [2/7]

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

Definition at line 308 of file voxelrgb_def.h.

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

◆ operator/=() [3/7]

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

Definition at line 321 of file voxelrgb_def.h.

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

◆ operator/=() [4/7]

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

Definition at line 334 of file voxelrgb_def.h.

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

◆ operator/=() [5/7]

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

Definition at line 347 of file voxelrgb_def.h.

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

◆ operator/=() [6/7]

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

Definition at line 361 of file voxelrgb_def.h.

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

◆ operator/=() [7/7]

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

Definition at line 831 of file voxelrgb_def.h.

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

◆ operator=() [1/3]

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

Definition at line 111 of file voxelrgb_def.h.

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

Definition at line 135 of file voxelrgb_def.h.

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

◆ red() [1/2]

◆ red() [2/2]

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: