#include <ColorMap.hpp>
|
void | calcColorGrey (float *color, size_t bucket) |
| Returns a color from a gray gradient. More...
|
|
void | calcColorHot (float *color, size_t bucket) |
| Returns a color from a hot gradient. More...
|
|
void | calcColorHSV (float *color, size_t bucket) |
| Returns a color from a HSV gradient. More...
|
|
void | calcColorJet (float *color, size_t bucket) |
| Returns a color from a Jet gradient. More...
|
|
void | calcColorSHSV (float *color, size_t bucket) |
| Returns a color from a SHSV gradient. More...
|
|
void | calcColorSimpsons (float *color, size_t bucket) |
| Returns a color from a Simpsons gradient. More...
|
|
void | convertHSVToRGB (float hue, float s, float v, float &r, float &g, float &b) |
| Converts the given color in HSV space into RGB space. More...
|
|
Definition at line 61 of file ColorMap.hpp.
◆ ColorMap()
lvr2::ColorMap::ColorMap |
( |
size_t |
buckets | ) |
|
|
inline |
Ctor. Constructs a color gradient with the given number of buckets.
- Parameters
-
buckets | Number of colors in current gradient |
Definition at line 71 of file ColorMap.hpp.
◆ ~ColorMap()
virtual lvr2::ColorMap::~ColorMap |
( |
| ) |
|
|
inlinevirtual |
◆ calcColorGrey()
void lvr2::ColorMap::calcColorGrey |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a gray gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 83 of file ColorMap.cpp.
◆ calcColorHot()
void lvr2::ColorMap::calcColorHot |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a hot gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 103 of file ColorMap.cpp.
◆ calcColorHSV()
void lvr2::ColorMap::calcColorHSV |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a HSV gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 90 of file ColorMap.cpp.
◆ calcColorJet()
void lvr2::ColorMap::calcColorJet |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a Jet gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 115 of file ColorMap.cpp.
◆ calcColorSHSV()
void lvr2::ColorMap::calcColorSHSV |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a SHSV gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 97 of file ColorMap.cpp.
◆ calcColorSimpsons()
void lvr2::ColorMap::calcColorSimpsons |
( |
float * |
color, |
|
|
size_t |
bucket |
|
) |
| |
|
private |
Returns a color from a Simpsons gradient.
- Parameters
-
color | The three color components |
bucket | The bucket index |
Definition at line 76 of file ColorMap.cpp.
◆ convertHSVToRGB()
void lvr2::ColorMap::convertHSVToRGB |
( |
float |
hue, |
|
|
float |
s, |
|
|
float |
v, |
|
|
float & |
r, |
|
|
float & |
g, |
|
|
float & |
b |
|
) |
| |
|
private |
Converts the given color in HSV space into RGB space.
- Parameters
-
hue | Hue component of input color |
s | Saturation component of input color |
v | Value component of input color |
r | Converted red component |
g | Converted green component |
b | Converted blue component |
Definition at line 131 of file ColorMap.cpp.
◆ getColor()
void lvr2::ColorMap::getColor |
( |
float * |
color, |
|
|
size_t |
bucket, |
|
|
GradientType |
gradient = GREY |
|
) |
| |
Returns three float values for the color of the given bucket.
- Parameters
-
color | The three color components |
bucket | The bucket index |
gradient | The type of gradient (default grey) |
Definition at line 43 of file ColorMap.cpp.
◆ m_numBuckets
size_t lvr2::ColorMap::m_numBuckets |
|
private |
Number of colors in the color gradient.
Definition at line 150 of file ColorMap.hpp.
The documentation for this class was generated from the following files: