cartobase  5.0.5
carto::VoxelHSV Class Reference

HSV Value. More...

#include <cartobase/type/voxelhsv.h>

Inheritance diagram for carto::VoxelHSV:
Collaboration diagram for carto::VoxelHSV:

Public Member Functions

 VoxelHSV (const VoxelHSV &other)
 
 VoxelHSV (const VoxelValue< uint8_t, 3 > &other)
 
 VoxelHSV (const uint8_t &h=0, const uint8_t &s=0, const uint8_t &v=0)
 
 ~VoxelHSV ()
 
VoxelHSVoperator= (const VoxelHSV &other)
 
VoxelHSVoperator= (const uint8_t &val)
 
VoxelHSVoperator+= (const VoxelHSV &other)
 
VoxelHSVoperator-= (const VoxelHSV &other)
 
VoxelHSVoperator+= (const uint8_t &val)
 
VoxelHSVoperator-= (const uint8_t &val)
 
VoxelHSVoperator*= (const uint8_t &val)
 
VoxelHSVoperator*= (const uint16_t &val)
 
VoxelHSVoperator*= (const uint32_t &val)
 
VoxelHSVoperator*= (const uint64_t &val)
 
VoxelHSVoperator*= (const float &val)
 
VoxelHSVoperator*= (const double &val)
 
VoxelHSVoperator/= (const uint8_t &val)
 
VoxelHSVoperator/= (const uint16_t &val)
 
VoxelHSVoperator/= (const uint32_t &val)
 
VoxelHSVoperator/= (const uint64_t &val)
 
VoxelHSVoperator/= (const float &val)
 
VoxelHSVoperator/= (const double &val)
 
VoxelHSVoperator*= (const long &val)
 
VoxelHSVoperator/= (const long &val)
 
const uint8_t & hue () const
 
const uint8_t & saturation () const
 
const uint8_t & value () const
 
uint8_t & hue ()
 
uint8_t & saturation ()
 
uint8_t & value ()
 
- 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

HSV Value.

This class replaces AimsHSV.
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.

Definition at line 67 of file voxelhsv.h.

Constructor & Destructor Documentation

◆ VoxelHSV() [1/3]

carto::VoxelHSV::VoxelHSV ( const VoxelHSV other)
inline

Definition at line 148 of file voxelhsv.h.

◆ VoxelHSV() [2/3]

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

Definition at line 157 of file voxelhsv.h.

◆ VoxelHSV() [3/3]

carto::VoxelHSV::VoxelHSV ( const uint8_t &  h = 0,
const uint8_t &  s = 0,
const uint8_t &  v = 0 
)
inline

Definition at line 166 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ ~VoxelHSV()

carto::VoxelHSV::~VoxelHSV ( )
inline

Definition at line 177 of file voxelhsv.h.

Member Function Documentation

◆ hue() [1/2]

const uint8_t& carto::VoxelHSV::hue ( ) const
inline

Definition at line 104 of file voxelhsv.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and VoxelHSV().

◆ hue() [2/2]

uint8_t& carto::VoxelHSV::hue ( )
inline

Definition at line 107 of file voxelhsv.h.

◆ operator*=() [1/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const uint8_t &  val)
inline

Definition at line 261 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [2/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const uint16_t &  val)
inline

Definition at line 273 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [3/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const uint32_t &  val)
inline

Definition at line 285 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [4/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const uint64_t &  val)
inline

Definition at line 297 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [5/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const float &  val)
inline

Definition at line 309 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [6/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const double &  val)
inline

Definition at line 321 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator*=() [7/7]

VoxelHSV & carto::VoxelHSV::operator*= ( const long &  val)
inline

Definition at line 855 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator+=() [1/2]

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

Definition at line 213 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator+=() [2/2]

VoxelHSV & carto::VoxelHSV::operator+= ( const uint8_t &  val)
inline

Definition at line 237 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator-=() [1/2]

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

Definition at line 225 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator-=() [2/2]

VoxelHSV & carto::VoxelHSV::operator-= ( const uint8_t &  val)
inline

Definition at line 249 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator/=() [1/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const uint8_t &  val)
inline

Definition at line 333 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [2/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const uint16_t &  val)
inline

Definition at line 346 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [3/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const uint32_t &  val)
inline

Definition at line 359 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [4/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const uint64_t &  val)
inline

Definition at line 372 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [5/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const float &  val)
inline

Definition at line 385 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [6/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const double &  val)
inline

Definition at line 398 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator/=() [7/7]

VoxelHSV & carto::VoxelHSV::operator/= ( const long &  val)
inline

Definition at line 867 of file voxelhsv.h.

References ASSERT, hue(), saturation(), and value().

◆ operator=() [1/2]

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

Definition at line 187 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ operator=() [2/2]

VoxelHSV & carto::VoxelHSV::operator= ( const uint8_t &  val)
inline

Definition at line 199 of file voxelhsv.h.

References hue(), saturation(), and value().

◆ saturation() [1/2]

const uint8_t& carto::VoxelHSV::saturation ( ) const
inline

Definition at line 105 of file voxelhsv.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and VoxelHSV().

◆ saturation() [2/2]

uint8_t& carto::VoxelHSV::saturation ( )
inline

Definition at line 108 of file voxelhsv.h.

◆ value() [1/2]

const uint8_t& carto::VoxelHSV::value ( ) const
inline

Definition at line 106 of file voxelhsv.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and VoxelHSV().

◆ value() [2/2]

uint8_t& carto::VoxelHSV::value ( )
inline

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