
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:
Definition at line 44 of file qwt_color_map.h.
| Public Types | |
| enum | Format { RGB, Indexed } | 
| Public Member Functions | |
| QwtColorMap (Format=QwtColorMap::RGB) | |
| virtual | ~QwtColorMap () | 
| Format | format () const | 
| virtual QwtColorMap * | copy () const =0 | 
| 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 QVector< QRgb > | colorTable (const QwtDoubleInterval &) const | 
| 
 | 
| 
 
 
 
 Definition at line 57 of file qwt_color_map.h. | 
| 
 | 
| Constructor. 
 Definition at line 164 of file qwt_color_map.cpp. | 
| 
 | 
| Destructor. 
 Definition at line 170 of file qwt_color_map.cpp. | 
| 
 | ||||||||||||
| Map a value into a color 
 
 
 
 Definition at line 198 of file qwt_color_map.h. References colorIndex(), colorTable(), and rgb(). | 
| 
 | ||||||||||||
| Map a value of a given interval into a color index 
 
 Implemented in QwtLinearColorMap. Referenced by color(), and QwtPainter::drawColorBar(). | 
| 
 | 
| Build and return a color map of 256 colors The color table is needed for rendering indexed images in combination with using colorIndex(). 
 
 
 Definition at line 183 of file qwt_color_map.cpp. References QwtDoubleInterval::isValid(), QwtDoubleInterval::minValue(), rgb(), and QwtDoubleInterval::width(). Referenced by color(), and QwtPainter::drawColorBar(). | 
| 
 | 
| Clone the color map. 
 Implemented in QwtLinearColorMap, and QwtAlphaColorMap. Referenced by QwtScaleWidget::setColorMap(), and QwtPlotSpectrogram::setColorMap(). | 
| 
 | 
| 
 
 
 Definition at line 216 of file qwt_color_map.h. Referenced by QwtPainter::drawColorBar(). | 
| 
 | ||||||||||||
| Map a value of a given interval into a rgb value. 
 
 Implemented in QwtLinearColorMap, and QwtAlphaColorMap. Referenced by color(), colorTable(), and QwtPainter::drawColorBar(). | 
 1.4.6
 1.4.6