QwtHueColorMap varies the hue value of the HSV color model.
More...
#include <qwt_color_map.h>
QwtHueColorMap varies the hue value of the HSV color model.
QwtHueColorMap can be used to set up a color map easily, that runs cyclic over all colors. Each cycle has 360 different steps.
The values for value and saturation are in the range of 0 to 255 and doesn't depend on the data value to be mapped.
- See also
- QwtSaturationValueColorMap
◆ QwtHueColorMap()
◆ alpha()
| int QwtHueColorMap::alpha |
( |
| ) |
const |
◆ hue1()
| int QwtHueColorMap::hue1 |
( |
| ) |
const |
◆ hue2()
| int QwtHueColorMap::hue2 |
( |
| ) |
const |
◆ rgb()
| QRgb QwtHueColorMap::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.
◆ saturation()
| int QwtHueColorMap::saturation |
( |
| ) |
const |
◆ setAlpha()
| void QwtHueColorMap::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()
◆ setHueInterval()
| void QwtHueColorMap::setHueInterval |
( |
int |
hue1, |
|
|
int |
hue2 |
|
) |
| |
Set the interval for the hue coordinate.
hue1/hue2 need to be positive number and can be > 360 to define cycles. F.e. 420 to 240 defines a map yellow/red/magenta/blue.
- Parameters
-
| hue1 | First hue coordinate |
| hue2 | Second hue coordinate |
- See also
- hue1(), hue2()
◆ setSaturation()
| void QwtHueColorMap::setSaturation |
( |
int |
saturation | ) |
|
Set the the saturation coordinate.
saturation needs to be in the range 0 to 255,
- Parameters
-
| saturation | Saturation coordinate |
- See also
- saturation()
◆ setValue()
| void QwtHueColorMap::setValue |
( |
int |
value | ) |
|
Set the the value coordinate.
value needs to be in the range 0 to 255,
- Parameters
-
- See also
- value()
◆ value()
| int QwtHueColorMap::value |
( |
| ) |
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