QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
更多...
#include <qwt_colormap.h>
|
| | QwtSaturationValueColorMap () |
| | Constructor.
|
| |
| void | setHue (int hue) |
| | Set 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.
|
| |
| void | setAlpha (int alpha) |
| | Set the alpha coordinate.
|
| |
| int | hue () const |
| | Return hue coordinate.
|
| |
| int | saturation1 () const |
| | Return first saturation coordinate.
|
| |
| int | saturation2 () const |
| | Return second saturation coordinate.
|
| |
| int | value1 () const |
| | Return first value coordinate.
|
| |
| int | value2 () const |
| | Return second value coordinate.
|
| |
| int | alpha () const |
| | Return alpha coordinate.
|
| |
| virtual QRgb | rgb (double vMin, double vMax, double value) const override |
| | Map a value of a given interval into a RGB value.
|
| |
| | QwtColorMap (Format=QwtColorMap::RGB) |
| | Constructor.
|
| |
|
virtual | ~QwtColorMap () |
| | Destructor.
|
| |
| void | setFormat (Format) |
| | Set the format of the color map.
|
| |
|
Format | format () const |
| |
| virtual uint | colorIndex (int numColors, double vMin, double vMax, double value) const |
| | Map a value of a given interval into a color index.
|
| |
|
QColor | color (double vMin, double vMax, double value) const |
| |
| virtual QVector< QRgb > | colorTable (int numColors) const |
| | Build and return a color map of arbitrary number of colors.
|
| |
| virtual QVector< QRgb > | colorTable256 () const |
| | Build and return a color map of 256 colors.
|
| |
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 359.
- 参见
- QwtHueColorMap
◆ QwtSaturationValueColorMap()
| QwtSaturationValueColorMap::QwtSaturationValueColorMap |
( |
| ) |
|
◆ alpha()
| int QwtSaturationValueColorMap::alpha |
( |
| ) |
const |
Return alpha coordinate.
- 返回
- Alpha coordinate.
- 参见
- setAlpha()
◆ hue()
| int QwtSaturationValueColorMap::hue |
( |
| ) |
const |
Return hue coordinate.
- 返回
- Hue coordinate.
- 参见
- setHue()
◆ rgb()
| QRgb QwtSaturationValueColorMap::rgb |
( |
double |
vMin, |
|
|
double |
vMax, |
|
|
double |
value |
|
) |
| const |
|
overridevirtual |
Map a value of a given interval into a RGB value.
- 参数
-
| [in] | vMin | Minimum of the value interval. |
| [in] | vMax | Maximum of the value interval. |
| [in] | value | Value to map into a RGB value. |
- 返回
- RGB value for value.
实现了 QwtColorMap.
◆ saturation1()
| int QwtSaturationValueColorMap::saturation1 |
( |
| ) |
const |
◆ saturation2()
| int QwtSaturationValueColorMap::saturation2 |
( |
| ) |
const |
◆ setAlpha()
| void QwtSaturationValueColorMap::setAlpha |
( |
int |
alpha | ) |
|
Set the alpha coordinate.
alpha needs to be in the range 0 to 255, where 255 means opaque and 0 means transparent.
- 参数
-
| [in] | alpha | Alpha coordinate. |
- 参见
- alpha()
◆ setHue()
| void QwtSaturationValueColorMap::setHue |
( |
int |
hue | ) |
|
Set the hue coordinate.
Hue coordinates outside 0 to 359 will be interpreted as hue % 360.
- 参数
-
- 参见
- 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.
- 参数
-
| [in] | saturation1 | First saturation. |
| [in] | saturation2 | Second saturation. |
- 参见
- 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.
- 参数
-
| [in] | value1 | First value. |
| [in] | value2 | Second value. |
- 参见
- value1(), value2(), setSaturationInterval()
◆ value1()
| int QwtSaturationValueColorMap::value1 |
( |
| ) |
const |
◆ value2()
| int QwtSaturationValueColorMap::value2 |
( |
| ) |
const |
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/core/qwt_colormap.h
- /home/runner/work/QWT/QWT/src/core/qwt_colormap.cpp