10 #ifndef QWT_COLOR_MAP_H 
   11 #define QWT_COLOR_MAP_H 
   15 #if QT_VERSION < 0x040000 
   16 #include <qvaluevector.h> 
   20 #include "qwt_array.h" 
   21 #include "qwt_double_interval.h" 
   23 #if defined(QWT_TEMPLATEDLL) 
   25 template class QWT_EXPORT QwtArray<double>;
 
   66     Format format() 
const;
 
   86     virtual unsigned char colorIndex(
 
   90 #if QT_VERSION < 0x040000 
  139     void setColorInterval(
const QColor &color1, 
const QColor &color2);
 
  140     void addColorStop(
double value, 
const QColor&);
 
  141     QwtArray<double> colorStops() 
const;
 
  143     QColor color1() 
const;
 
  144     QColor color2() 
const;
 
  147     virtual unsigned char colorIndex(
 
  172     void setColor(
const QColor &);
 
  173     QColor color() 
const;
 
  178     virtual unsigned char colorIndex(
 
  201     if ( d_format == RGB )
 
  203         return QColor( 
rgb(interval, value) );
 
  207         const unsigned int index = 
colorIndex(interval, value);