|
cartobase 6.0.6
|
Base class for any multichannel data (RGB, RGBA, HSV, ...) More...
#include <cartobase/type/voxelvalue.h>


Public Types | |
| typedef T | ChannelType |
Public Member Functions | |
| VoxelValue () | |
| VoxelValue (const VoxelValue< T, C > &other) | |
| ~VoxelValue () | |
| bool | operator== (const VoxelValue< T, C > &) const |
| bool | operator!= (const VoxelValue< T, C > &) const |
| bool | operator== (const T &) const |
| bool | operator!= (const T &) const |
| VoxelValue< T, C > & | operator= (const VoxelValue< T, C > &)=default |
| operator bool () const | |
| const T & | operator[] (unsigned int i) const |
| T & | operator[] (unsigned int i) |
Static Public Attributes | |
| static const unsigned int | channelcount = C |
Protected Attributes | |
| T | _voxel [C] |
Base class for any multichannel data (RGB, RGBA, HSV, ...)
| T | data type for channel value (uint8_t, ...) |
| C | number of channels The voxel is stored as an array so that sizeof( VoxelValue<T,C> ) = C * sizeof( T ) Only access, equality and stream operators are implemented here. All math operators must be implemented in specific classes (RGB, HSB, ...) |
Definition at line 59 of file voxelvalue.h.
| typedef T carto::VoxelValue< T, C >::ChannelType |
Definition at line 63 of file voxelvalue.h.
| carto::VoxelValue< T, C >::VoxelValue | ( | ) |
Definition at line 49 of file voxelvalue_d.h.
Referenced by operator bool(), operator!=(), operator=(), operator==(), and VoxelValue().
| carto::VoxelValue< T, C >::VoxelValue | ( | const VoxelValue< T, C > & | other | ) |
Definition at line 57 of file voxelvalue_d.h.
References VoxelValue().
| carto::VoxelValue< T, C >::~VoxelValue | ( | ) |
Definition at line 66 of file voxelvalue_d.h.
| carto::VoxelValue< T, C >::operator bool | ( | ) | const |
Definition at line 123 of file voxelvalue_d.h.
References VoxelValue().
|
inline |
Definition at line 113 of file voxelvalue_d.h.
|
inline |
Definition at line 91 of file voxelvalue_d.h.
References VoxelValue().
|
default |
References VoxelValue().
| bool carto::VoxelValue< T, C >::operator== | ( | const T & | bb | ) | const |
Definition at line 100 of file voxelvalue_d.h.
|
inline |
Definition at line 78 of file voxelvalue_d.h.
References VoxelValue().
|
inline |
Definition at line 89 of file voxelvalue.h.
References _voxel.
|
inline |
Definition at line 87 of file voxelvalue.h.
References _voxel.
|
protected |
Definition at line 92 of file voxelvalue.h.
Referenced by operator[](), and operator[]().
|
static |
Definition at line 66 of file voxelvalue.h.