QwtAlphaColorMap varies the alpha value of a color.
More...
#include <qwt_color_map.h>
QwtAlphaColorMap varies the alpha value of a color.
Definition at line 147 of file qwt_color_map.h.
◆ QwtAlphaColorMap()
QwtAlphaColorMap::QwtAlphaColorMap |
( |
const QColor & |
color = QColor( Qt::gray ) | ) |
|
|
explicit |
◆ ~QwtAlphaColorMap()
QwtAlphaColorMap::~QwtAlphaColorMap |
( |
| ) |
|
|
virtual |
◆ 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.
Definition at line 622 of file qwt_color_map.cpp.
◆ 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()
Definition at line 587 of file qwt_color_map.cpp.
◆ setColor()
void QwtAlphaColorMap::setColor |
( |
const QColor & |
color | ) |
|
◆ m_data
The documentation for this class was generated from the following files: