|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
QwtAlphaColorMap varies the alpha value of a color. . More...
#include <qwt_color_map.h>
Classes | |
| class | PrivateData |
Public Member Functions | |
| QwtAlphaColorMap (const QColor &=QColor(Qt::gray)) | |
| Constructor. | |
| virtual | ~QwtAlphaColorMap () |
| Destructor. | |
| 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 (const QwtInterval &, double value) const override |
| Map a value of a given interval into a alpha value. | |
Public Member Functions inherited from QwtColorMap | |
| 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, const QwtInterval &interval, double value) const |
| Map a value of a given interval into a color index. | |
| QColor | color (const QwtInterval &, 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. | |
Additional Inherited Members | |
Public Types inherited from QwtColorMap | |
| enum | Format { RGB , Indexed } |
| Format for color mapping. More... | |
QwtAlphaColorMap varies the alpha value of a color. .
|
explicit |
Constructor.
| int QwtAlphaColorMap::alpha1 | ( | ) | const |
Return first alpha coordinate.
| int QwtAlphaColorMap::alpha2 | ( | ) | const |
Return second alpha coordinate.
| QColor QwtAlphaColorMap::color | ( | ) | const |
Return the color.
|
overridevirtual |
Map a value of a given interval into a alpha value.
Implements QwtColorMap.
| void QwtAlphaColorMap::setAlphaInterval | ( | int | alpha1, |
| int | alpha2 | ||
| ) |
Set the interval for the alpha coordinate.
| void QwtAlphaColorMap::setColor | ( | const QColor & | color | ) |
Set the color.