10#ifndef QWT_COLOR_MAP_H 
   11#define QWT_COLOR_MAP_H 
   13#include "qwt_global.h" 
   18#if QT_VERSION < 0x060000 
   19template< 
typename T > 
class QVector;
 
   66    void setFormat( Format );
 
   78    virtual uint colorIndex( 
int numColors,
 
   81    QColor color( 
const QwtInterval&, 
double value ) 
const;
 
 
  121    void setMode( Mode );
 
  124    void setColorInterval( 
const QColor& color1, 
const QColor& color2 );
 
  125    void addColorStop( 
double value, 
const QColor& );
 
  128    QColor color1() 
const;
 
  129    QColor color2() 
const;
 
  132        double value ) 
const QWT_OVERRIDE;
 
  134    virtual uint colorIndex( 
int numColors,
 
  135        const QwtInterval&, 
double value ) 
const QWT_OVERRIDE;
 
 
  153    void setAlphaInterval( 
int alpha1, 
int alpha2 );
 
  158    void setColor( 
const QColor& );
 
  159    QColor color() 
const;
 
  162        double value ) 
const QWT_OVERRIDE;
 
 
  186    void setHueInterval( 
int hue1, 
int hue2 ); 
 
  187    void setSaturation( 
int saturation );
 
  188    void setValue( 
int value );
 
  189    void setAlpha( 
int alpha );
 
  193    int saturation() 
const;
 
  198        double value ) 
const QWT_OVERRIDE;
 
 
  220    void setHue( 
int hue );
 
  221    void setSaturationInterval( 
int sat1, 
int sat2 );
 
  222    void setValueInterval( 
int value1, 
int value2 );
 
  223    void setAlpha( 
int alpha );
 
  226    int saturation1() 
const;
 
  227    int saturation2() 
const;
 
  233        double value ) 
const QWT_OVERRIDE;
 
 
  250    return QColor::fromRgba( 
rgb( interval, value ) );
 
 
QwtAlphaColorMap varies the alpha value of a color.
QwtColorMap is used to map values into colors.
QColor color(const QwtInterval &, double value) const
@ RGB
The map is intended to map into RGB values.
virtual QRgb rgb(const QwtInterval &interval, double value) const =0
QwtHueColorMap varies the hue value of the HSV color model.
A class representing an interval.
QwtLinearColorMap builds a color map from color stops.
@ FixedColors
Return the color from the next lower color stop.
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.