QwtColorMap(3) | Qwt User's Guide | QwtColorMap(3) |
NAME¶
QwtColorMap -QwtColorMap is used to map values into colors.
SYNOPSIS¶
#include <qwt_color_map.h>
Inherited by QwtAlphaColorMap, and QwtLinearColorMap.
Public Types¶
enum Format { RGB, Indexed }
Public Member Functions¶
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
Detailed Description¶
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:
- QImage::Format_Indexed8
- QImage::Format_ARGB32
See Also:
Member Enumeration Documentation¶
enum QwtColorMap::Format¶
Format for color mappingSee Also:
Enumerator
- RGB
- The map is intended to map into RGB values.
- Indexed
- The map is intended to map into 8 bit values, that are indices into the color table.
Member Function Documentation¶
QColor QwtColorMap::color (const QwtInterval &interval, doublevalue) const [inline]¶
Map a value into a colorParameters:
value Value
Returns:
Warning:
virtual unsigned char QwtColorMap::colorIndex (const QwtInterval &interval, doublevalue) const [pure virtual]¶
Map a value of a given interval into a color indexParameters:
value Value
Returns:
Implemented in QwtLinearColorMap.
QVector< QRgb > QwtColorMap::colorTable (const QwtInterval &interval) const [virtual]¶
Build and return a color map of 256 colorsThe color table is needed for rendering indexed images in combination with using colorIndex().
Parameters:
Returns:
QwtColorMap::Format QwtColorMap::format () const [inline]¶
Returns:See Also:
virtual QRgb QwtColorMap::rgb (const QwtInterval &interval, doublevalue) const [pure virtual]¶
Map a value of a given interval into a RGB value.Parameters:
value Value
Returns:
Implemented in QwtAlphaColorMap, and QwtLinearColorMap.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.Thu Dec 11 2014 | Version 6.1.2 |