cartobase  4.5.0
carto::VoxelRGBA Class Reference

RGBA Value. More...

#include <cartobase/type/voxelrgba_decl.h>

Inheritance diagram for carto::VoxelRGBA:
Collaboration diagram for carto::VoxelRGBA:

Public Types

typedef uint8_t ChannelType
 
- Public Types inherited from carto::VoxelValue< uint8_t, 4 >
typedef uint8_t ChannelType
 

Public Member Functions

 VoxelRGBA (const VoxelRGBA &other)
 
 VoxelRGBA (const VoxelRGB &other)
 
 VoxelRGBA (const VoxelValue< uint8_t, 4 > &other)
 
 VoxelRGBA (const uint8_t &r=0, const uint8_t &g=0, const uint8_t &b=0, const uint8_t &a=0)
 
 ~VoxelRGBA ()
 
VoxelRGBAoperator= (const VoxelRGBA &other)
 
VoxelRGBAoperator= (const VoxelRGB &other)
 
VoxelRGBAoperator= (const uint8_t &value)
 
VoxelRGBAoperator+= (const VoxelRGBA &other)
 
VoxelRGBAoperator+= (const VoxelRGB &other)
 
VoxelRGBAoperator-= (const VoxelRGBA &other)
 
VoxelRGBAoperator-= (const VoxelRGB &other)
 
VoxelRGBAoperator+= (const uint8_t &value)
 
VoxelRGBAoperator-= (const uint8_t &value)
 
VoxelRGBAoperator*= (const uint8_t &value)
 
VoxelRGBAoperator*= (const uint16_t &value)
 
VoxelRGBAoperator*= (const uint32_t &value)
 
VoxelRGBAoperator*= (const uint64_t &value)
 
VoxelRGBAoperator*= (const float &value)
 
VoxelRGBAoperator*= (const double &value)
 
VoxelRGBAoperator/= (const uint8_t &value)
 
VoxelRGBAoperator/= (const uint16_t &value)
 
VoxelRGBAoperator/= (const uint32_t &value)
 
VoxelRGBAoperator/= (const uint64_t &value)
 
VoxelRGBAoperator/= (const float &value)
 
VoxelRGBAoperator/= (const double &value)
 
VoxelRGBAoperator*= (const long &value)
 
VoxelRGBAoperator/= (const long &value)
 
const uint8_t & red () const
 
const uint8_t & green () const
 
const uint8_t & blue () const
 
const uint8_t & alpha () const
 
uint8_t & red ()
 
uint8_t & green ()
 
uint8_t & blue ()
 
uint8_t & alpha ()
 
- Public Member Functions inherited from carto::VoxelValue< uint8_t, 4 >
 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

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

Detailed Description

RGBA Value.

This class replaces AimsRGBA.
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/voxelrgba_decl.h, you need to include cartobase/type/voxelrgba.h in order to use this class (all methods are inline).

Definition at line 71 of file voxelrgba_decl.h.

Member Typedef Documentation

Definition at line 75 of file voxelrgba_decl.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file voxelrgba_def.h.

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

Definition at line 81 of file voxelrgba_def.h.

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

Definition at line 90 of file voxelrgba_def.h.

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

carto::VoxelRGBA::~VoxelRGBA ( )
inline

Definition at line 103 of file voxelrgba_def.h.

Member Function Documentation

const uint8_t& carto::VoxelRGBA::alpha ( ) const
inline

Definition at line 117 of file voxelrgba_decl.h.

Referenced by operator+=(), operator-=(), operator=(), and VoxelRGBA().

uint8_t& carto::VoxelRGBA::alpha ( )
inline

Definition at line 121 of file voxelrgba_decl.h.

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

Definition at line 120 of file voxelrgba_decl.h.

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

Definition at line 119 of file voxelrgba_decl.h.

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

Definition at line 289 of file voxelrgba_def.h.

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

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

Definition at line 301 of file voxelrgba_def.h.

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

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

Definition at line 313 of file voxelrgba_def.h.

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

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

Definition at line 325 of file voxelrgba_def.h.

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

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

Definition at line 337 of file voxelrgba_def.h.

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

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

Definition at line 350 of file voxelrgba_def.h.

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

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

Definition at line 667 of file voxelrgba_def.h.

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

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

Definition at line 154 of file voxelrgba_def.h.

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

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

Definition at line 251 of file voxelrgba_def.h.

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

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

Definition at line 204 of file voxelrgba_def.h.

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

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

Definition at line 270 of file voxelrgba_def.h.

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

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

Definition at line 363 of file voxelrgba_def.h.

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

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

Definition at line 376 of file voxelrgba_def.h.

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

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

Definition at line 389 of file voxelrgba_def.h.

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

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

Definition at line 402 of file voxelrgba_def.h.

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

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

Definition at line 415 of file voxelrgba_def.h.

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

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

Definition at line 429 of file voxelrgba_def.h.

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

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

Definition at line 679 of file voxelrgba_def.h.

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

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

Definition at line 113 of file voxelrgba_def.h.

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

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

Definition at line 139 of file voxelrgba_def.h.

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

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

Definition at line 118 of file voxelrgba_decl.h.


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