| QwtColorMap(3) | Qwt User's Guide | QwtColorMap(3) | 
NAME¶
QwtColorMap -
SYNOPSIS¶
#include <qwt_color_map.h>
Inherited by QwtAlphaColorMap, and QwtLinearColorMap.
Public Types¶
enum Format { RGB, Indexed }
  
  
Public Member Functions¶
QwtColorMap (Format=QwtColorMap::RGB)
  
  virtual ~QwtColorMap ()
  
  QColor color (const QwtDoubleInterval &, double value) const
  
  virtual unsigned char colorIndex (const QwtDoubleInterval
    &interval, double value) const =0
  
  virtual QVector< QRgb > colorTable (const
    QwtDoubleInterval &) const
  
  virtual QwtColorMap * copy () const =0
  
  Format format () const
  
  virtual QRgb rgb (const QwtDoubleInterval &interval, double
    value) const =0
  
  
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¶
- RGB
    
The map is intended to map into QRgb values. - Indexed
    
The map is intended to map into 8 bit values, that are indices into the color table. 
See also:
Member Function Documentation¶
QColor QwtColorMap::color (const QwtDoubleInterval &interval, doublevalue) const [inline]¶
Map a value into a color
Parameters:
value Value
Returns:
Warning:
virtual unsigned char QwtColorMap::colorIndex (const QwtDoubleInterval &interval, doublevalue) const [pure virtual]¶
Map a value of a given interval into a color index
Parameters:
value Value
Returns:
Implemented in 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().
Parameters:
Returns:
QwtColorMap::Format QwtColorMap::format () const [inline]¶
Returns:
See also:
virtual QRgb QwtColorMap::rgb (const QwtDoubleInterval &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.
| Tue Nov 20 2012 | Version 5.2.3 |