10 #ifndef QWT_COLOR_MAP_H 
   11 #define QWT_COLOR_MAP_H 
   13 #include "qwt_global.h" 
   14 #include "qwt_interval.h" 
   56     Format format() 
const;
 
   66         double value ) 
const = 0;
 
   75     virtual unsigned char colorIndex(
 
   76         const QwtInterval &interval, 
double value ) 
const = 0;
 
   78     QColor color( 
const QwtInterval &, 
double value ) 
const;
 
   79     virtual QVector<QRgb> colorTable( 
const QwtInterval & ) 
const;
 
  114     void setMode( Mode );
 
  117     void setColorInterval( 
const QColor &color1, 
const QColor &color2 );
 
  118     void addColorStop( 
double value, 
const QColor& );
 
  119     QVector<double> colorStops() 
const;
 
  121     QColor color1() 
const;
 
  122     QColor color2() 
const;
 
  148     void setColor( 
const QColor & );
 
  149     QColor 
color() 
const;
 
  180     if ( d_format == 
RGB )
 
  182         return QColor::fromRgba( 
rgb( interval, value ) );
 
  186         const unsigned int index = 
colorIndex( interval, value );
 
QwtLinearColorMap builds a color map from color stops. 
Definition: qwt_color_map.h:92
The map is intended to map into RGB values. 
Definition: qwt_color_map.h:44
Mode
Definition: qwt_color_map.h:99
Format
Definition: qwt_color_map.h:41
Return the color from the next lower color stop. 
Definition: qwt_color_map.h:102
virtual QVector< QRgb > colorTable(const QwtInterval &) const 
Definition: qwt_color_map.cpp:219
QwtColorMap is used to map values into colors. 
Definition: qwt_color_map.h:33
virtual QRgb rgb(const QwtInterval &interval, double value) const =0
QColor color(const QwtInterval &, double value) const 
Definition: qwt_color_map.h:177
Format format() const 
Definition: qwt_color_map.h:195
virtual unsigned char colorIndex(const QwtInterval &interval, double value) const =0
A class representing an interval. 
Definition: qwt_interval.h:26
QwtAlphaColorMap varies the alpha value of a color. 
Definition: qwt_color_map.h:142