QwtAlphaColorMap varies the alpha value of a color.
More...
#include <qwt_color_map.h>
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 |
( |
const QwtInterval & |
interval, |
|
|
double |
value |
|
) |
| const |
|
virtual |
Map a value of a given interval into a alpha value.
- Parameters
-
| interval | Range for all values |
| value | Value to map into a RGB value |
- Returns
- RGB value, with an alpha value
Implements 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.
- Parameters
-
| alpha1 | First alpha coordinate |
| alpha2 | Second alpha coordinate |
- See also
- alpha1(), alpha2()
◆ setColor()
| void QwtAlphaColorMap::setColor |
( |
const QColor & |
color | ) |
|
Set the color.
- Parameters
-
- See also
- color()
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