QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model. More...
#include <qwt_color_map.h>

Classes | |
| class | PrivateData |
Public Member Functions | |
| int | alpha () const |
| int | hue () const |
| QwtSaturationValueColorMap () | |
| Constructor. | |
| virtual QRgb | rgb (const QwtInterval &, double value) const |
| int | saturation1 () const |
| int | saturation2 () const |
| void | setAlpha (int alpha) |
| Set the the alpha coordinate. | |
| void | setHue (int hue) |
| Set the the hue coordinate. | |
| void | setSaturationInterval (int sat1, int sat2) |
| Set the interval for the saturation coordinate. | |
| void | setValueInterval (int value1, int value2) |
| Set the interval for the value coordinate. | |
| int | value1 () const |
| int | value2 () const |
| virtual | ~QwtSaturationValueColorMap () |
| Destructor. | |
Private Attributes | |
| PrivateData * | d_data |
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 inthe range of 0 to 259.
Definition at line 206 of file qwt_color_map.h.
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.
Definition at line 1017 of file qwt_color_map.cpp.
| QwtSaturationValueColorMap::~QwtSaturationValueColorMap | ( | ) | [virtual] |
Destructor.
Definition at line 1023 of file qwt_color_map.cpp.
| int QwtSaturationValueColorMap::alpha | ( | ) | const |
| int QwtSaturationValueColorMap::hue | ( | ) | const |
| QRgb QwtSaturationValueColorMap::rgb | ( | const QwtInterval & | interval, |
| double | value | ||
| ) | const [virtual] |
Map a value of a given interval into a RGB value
| interval | Range for all values |
| value | Value to map into a RGB value |
Implements QwtColorMap.
Definition at line 1185 of file qwt_color_map.cpp.
| int QwtSaturationValueColorMap::saturation1 | ( | ) | const |
Definition at line 1136 of file qwt_color_map.cpp.
| int QwtSaturationValueColorMap::saturation2 | ( | ) | const |
Definition at line 1145 of file qwt_color_map.cpp.
| 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.
| alpha | Alpha coordinate |
Definition at line 1112 of file qwt_color_map.cpp.
| void QwtSaturationValueColorMap::setHue | ( | int | hue | ) |
Set the the hue coordinate.
Hue coordinates ouside 0 to 359 will be interpreted as hue % 360..
| hue | Hue coordinate |
Definition at line 1037 of file qwt_color_map.cpp.
| 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.
| saturation1 | First saturation |
| saturation2 | Second saturation |
Definition at line 1061 of file qwt_color_map.cpp.
| 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.
| value1 | First value |
| value2 | Second value |
Definition at line 1088 of file qwt_color_map.cpp.
| int QwtSaturationValueColorMap::value1 | ( | ) | const |
Definition at line 1154 of file qwt_color_map.cpp.
| int QwtSaturationValueColorMap::value2 | ( | ) | const |
Definition at line 1163 of file qwt_color_map.cpp.
PrivateData* QwtSaturationValueColorMap::d_data [private] |
Definition at line 227 of file qwt_color_map.h.