10 #ifndef QWT_COLOR_MAP_H 11 #define QWT_COLOR_MAP_H 17 template <
typename T>
class QVector;
74 double value )
const = 0;
76 virtual uint colorIndex(
int numColors,
118 void setMode(
Mode );
121 void setColorInterval(
const QColor &color1,
const QColor &color2 );
122 void addColorStop(
double value,
const QColor& );
125 QColor color1()
const;
126 QColor color2()
const;
131 virtual uint colorIndex(
int numColors,
150 void setAlphaInterval(
int alpha1,
int alpha2 );
155 void setColor(
const QColor & );
156 QColor
color()
const;
183 void setHueInterval(
int hue1,
int hue2 );
184 void setSaturation(
int saturation );
185 void setValue(
int value );
186 void setAlpha(
int alpha );
190 int saturation()
const;
217 void setHue(
int hue );
218 void setSaturationInterval(
int sat1,
int sat2 );
219 void setValueInterval(
int value1,
int value2 );
220 void setAlpha(
int alpha );
223 int saturation1()
const;
224 int saturation2()
const;
248 return QColor::fromRgba(
rgb( interval, value ) );
enum MQTTPropertyCodes value
FMT_INLINE std::basic_string< Char > format(const S &format_str, Args &&...args)
A class representing an interval.
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.
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