cartobase  5.0.5
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 > &) 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

- 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

◆ ChannelType

Definition at line 75 of file voxelrgba_decl.h.

Constructor & Destructor Documentation

◆ VoxelRGBA() [1/4]

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

Definition at line 61 of file voxelrgba_def.h.

◆ VoxelRGBA() [2/4]

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

◆ VoxelRGBA() [3/4]

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

Definition at line 82 of file voxelrgba_def.h.

◆ VoxelRGBA() [4/4]

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 91 of file voxelrgba_def.h.

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

◆ ~VoxelRGBA()

carto::VoxelRGBA::~VoxelRGBA ( )
inline

Definition at line 104 of file voxelrgba_def.h.

Member Function Documentation

◆ alpha() [1/2]

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

Definition at line 117 of file voxelrgba_decl.h.

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

◆ alpha() [2/2]

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

◆ blue() [1/2]

◆ blue() [2/2]

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

Definition at line 120 of file voxelrgba_decl.h.

◆ green() [1/2]

◆ green() [2/2]

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

Definition at line 119 of file voxelrgba_decl.h.

◆ operator*=() [1/7]

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

Definition at line 290 of file voxelrgba_def.h.

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

◆ operator*=() [2/7]

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

Definition at line 302 of file voxelrgba_def.h.

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

◆ operator*=() [3/7]

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

Definition at line 314 of file voxelrgba_def.h.

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

◆ operator*=() [4/7]

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

Definition at line 326 of file voxelrgba_def.h.

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

◆ operator*=() [5/7]

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

Definition at line 338 of file voxelrgba_def.h.

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

◆ operator*=() [6/7]

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

Definition at line 351 of file voxelrgba_def.h.

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

◆ operator*=() [7/7]

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

Definition at line 888 of file voxelrgba_def.h.

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

◆ operator+=() [1/3]

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

Definition at line 155 of file voxelrgba_def.h.

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

◆ operator+=() [2/3]

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

◆ operator+=() [3/3]

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

Definition at line 252 of file voxelrgba_def.h.

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

◆ operator-=() [1/3]

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

Definition at line 205 of file voxelrgba_def.h.

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

◆ operator-=() [2/3]

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

◆ operator-=() [3/3]

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

Definition at line 271 of file voxelrgba_def.h.

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

◆ operator/=() [1/7]

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

Definition at line 364 of file voxelrgba_def.h.

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

◆ operator/=() [2/7]

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

Definition at line 377 of file voxelrgba_def.h.

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

◆ operator/=() [3/7]

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

Definition at line 390 of file voxelrgba_def.h.

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

◆ operator/=() [4/7]

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

Definition at line 403 of file voxelrgba_def.h.

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

◆ operator/=() [5/7]

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

Definition at line 416 of file voxelrgba_def.h.

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

◆ operator/=() [6/7]

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

Definition at line 430 of file voxelrgba_def.h.

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

◆ operator/=() [7/7]

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

Definition at line 900 of file voxelrgba_def.h.

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

◆ operator=() [1/3]

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

Definition at line 114 of file voxelrgba_def.h.

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

Definition at line 140 of file voxelrgba_def.h.

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

◆ red() [1/2]

◆ red() [2/2]

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: