Eneboo - Documentación para desarrolladores
|
QwtAlphaColorMap variies the alpha value of a color. Más...
#include <qwt_color_map.h>
Clases | |
class | PrivateData |
Métodos públicos | |
QwtAlphaColorMap (const QColor &=QColor(Qt::gray)) | |
QwtAlphaColorMap (const QwtAlphaColorMap &) | |
virtual | ~QwtAlphaColorMap () |
Destructor. | |
QwtAlphaColorMap & | operator= (const QwtAlphaColorMap &) |
virtual QwtColorMap * | copy () const |
Clone the color map. | |
void | setColor (const QColor &) |
QColor | color () const |
virtual QRgb | rgb (const QwtDoubleInterval &, double value) const |
Map a value of a given interval into a alpha value. |
QwtAlphaColorMap variies the alpha value of a color.
Constructor
color | Color of the map |
QwtAlphaColorMap::QwtAlphaColorMap | ( | const QwtAlphaColorMap & | other | ) |
Copy constructor
other | Other color map |
QwtAlphaColorMap::~QwtAlphaColorMap | ( | ) | [virtual] |
Destructor.
QColor QwtAlphaColorMap::color | ( | ) | const |
QwtColorMap * QwtAlphaColorMap::copy | ( | ) | const [virtual] |
Clone the color map.
Implementa QwtColorMap.
QwtAlphaColorMap & QwtAlphaColorMap::operator= | ( | const QwtAlphaColorMap & | other | ) |
Assignment operator
other | Other color map |
QRgb QwtAlphaColorMap::rgb | ( | const QwtDoubleInterval & | interval, |
double | value | ||
) | const [virtual] |
Map a value of a given interval into a alpha value.
alpha := (value - interval.minValue()) / interval.width();
interval | Range for all values |
value | Value to map into a rgb value |
Implementa QwtColorMap.
void QwtAlphaColorMap::setColor | ( | const QColor & | color | ) |