10 #ifndef QWT_COLOR_MAP_H 11 #define QWT_COLOR_MAP_H 73 double value )
const = 0;
75 virtual uint colorIndex(
int numColors,
78 QColor color(
const QwtInterval &,
double value )
const;
79 virtual QVector<QRgb> colorTable(
int numColors )
const;
80 virtual QVector<QRgb> colorTable256()
const;
117 void setMode(
Mode );
120 void setColorInterval(
const QColor &color1,
const QColor &color2 );
121 void addColorStop(
double value,
const QColor& );
122 QVector<double> colorStops()
const;
124 QColor color1()
const;
125 QColor color2()
const;
127 virtual QRgb rgb(
const QwtInterval &,
double value )
const;
128 virtual uint colorIndex(
int numColors,
147 void setAlphaInterval(
int alpha1,
int alpha2 );
152 void setColor(
const QColor & );
153 QColor
color()
const;
179 void setHueInterval(
int hue1,
int hue2 );
180 void setSaturation(
int saturation );
182 void setAlpha(
int alpha );
186 int saturation()
const;
212 void setHue(
int hue );
213 void setSaturationInterval(
int sat1,
int sat2 );
215 void setAlpha(
int alpha );
218 int saturation1()
const;
219 int saturation2()
const;
242 return QColor::fromRgba(
rgb( interval, value ) );
A class representing an interval.
TFSIMD_FORCE_INLINE void setValue(const tfScalar &x, const tfScalar &y, const tfScalar &z)
Return the color from the next lower color stop.
QwtAlphaColorMap varies the alpha value of a color.
QwtColorMap is used to map values into colors.
std::string format(const std::string &, const time_point< seconds > &, const femtoseconds &, const time_zone &)
QColor color(const QwtInterval &, double value) const
QwtLinearColorMap builds a color map from color stops.
The map is intended to map into RGB values.
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model...
QwtHueColorMap varies the hue value of the HSV color model.
virtual QRgb rgb(const QwtInterval &interval, double value) const =0