Eneboo - Documentación para desarrolladores
|
QwtColorMap is used to map values into colors. Más...
#include <qwt_color_map.h>
Tipos públicos | |
enum | Format { RGB, Indexed } |
Métodos públicos | |
QwtColorMap (Format=QwtColorMap::RGB) | |
Constructor. | |
virtual | ~QwtColorMap () |
Destructor. | |
Format | format () const |
virtual QwtColorMap * | copy () const =0 |
Clone the color map. | |
virtual QRgb | rgb (const QwtDoubleInterval &interval, double value) const =0 |
virtual unsigned char | colorIndex (const QwtDoubleInterval &interval, double value) const =0 |
QColor | color (const QwtDoubleInterval &, double value) const |
virtual QValueVector< QRgb > | colorTable (const QwtDoubleInterval &) const |
QwtColorMap is used to map values into colors.
For displaying 3D data on a 2D plane the 3rd dimension is often displayed using colors, like f.e in a spectrogram.
Each color map is optimized to return colors for only one of the following image formats:
enum QwtColorMap::Format |
QwtColorMap::QwtColorMap | ( | Format | format = QwtColorMap::RGB | ) |
Constructor.
QwtColorMap::~QwtColorMap | ( | ) | [virtual] |
Destructor.
QColor QwtColorMap::color | ( | const QwtDoubleInterval & | interval, |
double | value | ||
) | const [inline] |
Map a value into a color
interval | Valid interval for values |
value | Value |
virtual unsigned char QwtColorMap::colorIndex | ( | const QwtDoubleInterval & | interval, |
double | value | ||
) | const [pure virtual] |
Map a value of a given interval into a color index
interval | Range for the values |
value | Value |
Implementado en QwtLinearColorMap.
QwtColorTable QwtColorMap::colorTable | ( | const QwtDoubleInterval & | interval | ) | const [virtual] |
Build and return a color map of 256 colors
The color table is needed for rendering indexed images in combination with using colorIndex().
interval | Range for the values |
virtual QwtColorMap* QwtColorMap::copy | ( | ) | const [pure virtual] |
Clone the color map.
Implementado en QwtLinearColorMap y QwtAlphaColorMap.
QwtColorMap::Format QwtColorMap::format | ( | ) | const [inline] |
virtual QRgb QwtColorMap::rgb | ( | const QwtDoubleInterval & | interval, |
double | value | ||
) | const [pure virtual] |
Map a value of a given interval into a rgb value.
interval | Range for the values |
value | Value |
Implementado en QwtLinearColorMap y QwtAlphaColorMap.