QwtColorMap(3) | Qwt User's Guide | QwtColorMap(3) |
QwtColorMap - QwtColorMap is used to map values into colors.
#include <qwt_color_map.h>
Inherited by QwtAlphaColorMap, and QwtLinearColorMap.
enum Format { RGB, Indexed }
QwtColorMap (Format=QwtColorMap::RGB)
Constructor. virtual ~QwtColorMap ()
Destructor. Format format () const
virtual QRgb rgb (const QwtInterval &interval, double value)
const =0
virtual unsigned char colorIndex (const QwtInterval
&interval, double value) const =0
QColor color (const QwtInterval &, double value) const
virtual QVector< QRgb > colorTable (const QwtInterval
&) 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:
See also:
Format for color mapping
See also:
Enumerator
Map a value into a color
Parameters:
Returns:
Warning:
Map a value of a given interval into a color index
Parameters:
Returns:
Implemented in QwtLinearColorMap.
Build and return a color map of 256 colors
The color table is needed for rendering indexed images in combination with using colorIndex().
Parameters:
Returns:
Returns:
See also:
Map a value of a given interval into a RGB value.
Parameters:
Returns:
Implemented in QwtAlphaColorMap, and QwtLinearColorMap.
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |