QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
More...
#include <qwt_color_map.h>
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
Value and saturation are in the range of 0 to 255 while hue is in the range of 0 to 259.
- See also
- QwtHueColorMap
◆ QwtSaturationValueColorMap()
| QwtSaturationValueColorMap::QwtSaturationValueColorMap |
( |
| ) |
|
Constructor.
The value interval is initialized by 0 to 255, saturation by 255 to 255. Hue to 0 and alpha to 255.
So the default setting interpolates the value coordinate only.
- See also
- setHueInterval(), setSaturation(), setValue(), setValue()
◆ alpha()
| int QwtSaturationValueColorMap::alpha |
( |
| ) |
const |
◆ hue()
| int QwtSaturationValueColorMap::hue |
( |
| ) |
const |
◆ rgb()
| QRgb QwtSaturationValueColorMap::rgb |
( |
const QwtInterval & |
interval, |
|
|
double |
value |
|
) |
| const |
|
virtual |
Map a value of a given interval into a RGB value.
- Parameters
-
| interval | Range for all values |
| value | Value to map into a RGB value |
- Returns
- RGB value for value
Implements QwtColorMap.
◆ saturation1()
| int QwtSaturationValueColorMap::saturation1 |
( |
| ) |
const |
◆ saturation2()
| int QwtSaturationValueColorMap::saturation2 |
( |
| ) |
const |
◆ setAlpha()
| void QwtSaturationValueColorMap::setAlpha |
( |
int |
alpha | ) |
|
Set the the alpha coordinate.
alpha needs to be in the range 0 to 255, where 255 means opaque and 0 means transparent.
- Parameters
-
- See also
- alpha()
◆ setHue()
| void QwtSaturationValueColorMap::setHue |
( |
int |
hue | ) |
|
Set the the hue coordinate.
Hue coordinates outside 0 to 359 will be interpreted as hue % 360..
- Parameters
-
- See also
- hue()
◆ setSaturationInterval()
| void QwtSaturationValueColorMap::setSaturationInterval |
( |
int |
saturation1, |
|
|
int |
saturation2 |
|
) |
| |
Set the interval for the saturation coordinate.
When saturation1 == saturation2 the map interpolates between the value coordinates only
saturation1/saturation2 need to be in the range 0 to 255.
- Parameters
-
| saturation1 | First saturation |
| saturation2 | Second saturation |
- See also
- saturation1(), saturation2(), setValueInterval()
◆ setValueInterval()
| void QwtSaturationValueColorMap::setValueInterval |
( |
int |
value1, |
|
|
int |
value2 |
|
) |
| |
Set the interval for the value coordinate.
When value1 == value2 the map interpolates between the saturation coordinates only.
value1/value2 need to be in the range 0 to 255.
- Parameters
-
| value1 | First value |
| value2 | Second value |
- See also
- value1(), value2(), setSaturationInterval()
◆ value1()
| int QwtSaturationValueColorMap::value1 |
( |
| ) |
const |
◆ value2()
| int QwtSaturationValueColorMap::value2 |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/qwt_color_map.h
- /home/runner/work/QWT/QWT/src/qwt_color_map.cpp