QwtAlphaColorMap varies the alpha value of a color.
更多...
#include <qwt_colormap.h>
|
| | QwtAlphaColorMap (const QColor &=QColor(Qt::gray)) |
| | Constructor.
|
| |
| void | setAlphaInterval (int alpha1, int alpha2) |
| | Set the interval for the alpha coordinate.
|
| |
| int | alpha1 () const |
| | Return first alpha coordinate.
|
| |
| int | alpha2 () const |
| | Return second alpha coordinate.
|
| |
| void | setColor (const QColor &) |
| | Set the color.
|
| |
| QColor | color () const |
| | Return the color.
|
| |
| virtual QRgb | rgb (double vMin, double vMax, double value) const override |
| | Map a value of a given interval into a alpha 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.
|
| |
QwtAlphaColorMap varies the alpha value of a color.
◆ QwtAlphaColorMap()
| QwtAlphaColorMap::QwtAlphaColorMap |
( |
const QColor & |
color = QColor(Qt::gray) | ) |
|
|
explicit |
◆ alpha1()
| int QwtAlphaColorMap::alpha1 |
( |
| ) |
const |
◆ alpha2()
| int QwtAlphaColorMap::alpha2 |
( |
| ) |
const |
◆ color()
| QColor QwtAlphaColorMap::color |
( |
| ) |
const |
◆ rgb()
| QRgb QwtAlphaColorMap::rgb |
( |
double |
vMin, |
|
|
double |
vMax, |
|
|
double |
value |
|
) |
| const |
|
overridevirtual |
Map a value of a given interval into a alpha 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, with an alpha value.
实现了 QwtColorMap.
◆ setAlphaInterval()
| void QwtAlphaColorMap::setAlphaInterval |
( |
int |
alpha1, |
|
|
int |
alpha2 |
|
) |
| |
Set the interval for the alpha coordinate.
alpha1/alpha2 need to be in the range 0 to 255, where 255 means opaque and 0 means transparent.
- 参数
-
| [in] | alpha1 | First alpha coordinate. |
| [in] | alpha2 | Second alpha coordinate. |
- 参见
- alpha1(), alpha2()
◆ setColor()
| void QwtAlphaColorMap::setColor |
( |
const QColor & |
color | ) |
|
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/core/qwt_colormap.h
- /home/runner/work/QWT/QWT/src/core/qwt_colormap.cpp