| cartobase
    4.7.0
    | 
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 | 
| 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 58 of file voxelvalue.h.
| typedef T carto::VoxelValue< T, C >::ChannelType | 
Definition at line 62 of file voxelvalue.h.
| carto::VoxelValue< T, C >::VoxelValue | ( | ) | 
Definition at line 48 of file voxelvalue_d.h.
| carto::VoxelValue< T, C >::VoxelValue | ( | const VoxelValue< T, C > & | other | ) | 
Definition at line 56 of file voxelvalue_d.h.
| carto::VoxelValue< T, C >::~VoxelValue | ( | ) | 
Definition at line 65 of file voxelvalue_d.h.
| carto::VoxelValue< T, C >::operator bool | ( | ) | const | 
Definition at line 122 of file voxelvalue_d.h.
| 
 | inline | 
Definition at line 90 of file voxelvalue_d.h.
| 
 | inline | 
Definition at line 112 of file voxelvalue_d.h.
| 
 | inline | 
Definition at line 77 of file voxelvalue_d.h.
| bool carto::VoxelValue< T, C >::operator== | ( | const T & | bb | ) | const | 
Definition at line 99 of file voxelvalue_d.h.
| 
 | inline | 
Definition at line 83 of file voxelvalue.h.
| 
 | inline | 
Definition at line 85 of file voxelvalue.h.
| 
 | protected | 
Definition at line 88 of file voxelvalue.h.
Referenced by carto::VoxelValue< uint8_t, 4 >::operator[]().
| 
 | static | 
Definition at line 65 of file voxelvalue.h.