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 141 of file qwt_color_map.h.
QwtAlphaColorMap::QwtAlphaColorMap |
( |
const QColor & |
color = QColor( Qt::gray ) | ) |
|
|
explicit |
QwtAlphaColorMap::~QwtAlphaColorMap |
( |
| ) |
|
|
virtual |
int QwtAlphaColorMap::alpha1 |
( |
| ) |
const |
int QwtAlphaColorMap::alpha2 |
( |
| ) |
const |
QColor QwtAlphaColorMap::color |
( |
| ) |
const |
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 667 of file qwt_color_map.cpp.
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 632 of file qwt_color_map.cpp.
void QwtAlphaColorMap::setColor |
( |
const QColor & |
color | ) |
|
The documentation for this class was generated from the following files: