cartobase 6.0.6
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
 
VoxelValue< uint8_t, C > & operator= (const VoxelValue< uint8_t, C > &)=default
 
 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]

◆ VoxelHSV() [2/3]

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

Definition at line 163 of file voxelhsv.h.

References carto::VoxelValue< uint8_t, 3 >::VoxelValue().

◆ 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 172 of file voxelhsv.h.

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

◆ ~VoxelHSV()

carto::VoxelHSV::~VoxelHSV ( )
inline

Definition at line 183 of file voxelhsv.h.

Member Function Documentation

◆ hue() [1/2]

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

Definition at line 107 of file voxelhsv.h.

◆ hue() [2/2]

◆ operator*=() [1/7]

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

Definition at line 327 of file voxelhsv.h.

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

◆ operator*=() [2/7]

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

Definition at line 315 of file voxelhsv.h.

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

◆ operator*=() [3/7]

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

Definition at line 861 of file voxelhsv.h.

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

◆ operator*=() [4/7]

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

Definition at line 279 of file voxelhsv.h.

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

◆ operator*=() [5/7]

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

Definition at line 291 of file voxelhsv.h.

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

◆ operator*=() [6/7]

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

Definition at line 303 of file voxelhsv.h.

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

◆ operator*=() [7/7]

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

Definition at line 267 of file voxelhsv.h.

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

◆ operator+=() [1/2]

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

Definition at line 243 of file voxelhsv.h.

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

◆ operator+=() [2/2]

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

Definition at line 219 of file voxelhsv.h.

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

◆ operator-=() [1/2]

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

Definition at line 255 of file voxelhsv.h.

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

◆ operator-=() [2/2]

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

Definition at line 231 of file voxelhsv.h.

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

◆ operator/=() [1/7]

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

Definition at line 404 of file voxelhsv.h.

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

◆ operator/=() [2/7]

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

Definition at line 391 of file voxelhsv.h.

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

◆ operator/=() [3/7]

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

Definition at line 873 of file voxelhsv.h.

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

◆ operator/=() [4/7]

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

Definition at line 352 of file voxelhsv.h.

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

◆ operator/=() [5/7]

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

Definition at line 365 of file voxelhsv.h.

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

◆ operator/=() [6/7]

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

Definition at line 378 of file voxelhsv.h.

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

◆ operator/=() [7/7]

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

Definition at line 339 of file voxelhsv.h.

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

◆ operator=() [1/2]

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

Definition at line 205 of file voxelhsv.h.

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

◆ operator=() [2/2]

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

Definition at line 193 of file voxelhsv.h.

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

◆ saturation() [1/2]

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

Definition at line 108 of file voxelhsv.h.

◆ saturation() [2/2]

◆ value() [1/2]

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

Definition at line 109 of file voxelhsv.h.

◆ value() [2/2]


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