27#ifndef QWT_COLOR_MAP_H
28#define QWT_COLOR_MAP_H
30#include "qwt_global.h"
35#if QT_VERSION < 0x060000
84 void setFormat(Format);
85 Format format()
const;
96 virtual uint colorIndex(
int numColors,
const QwtInterval& interval,
double value)
const;
98 QColor color(
const QwtInterval&,
double value)
const;
140 void setColorInterval(
const QColor& color1,
const QColor& color2);
141 void addColorStop(
double value,
const QColor&);
144 QColor color1()
const;
145 QColor color2()
const;
147 virtual QRgb rgb(
const QwtInterval&,
double value)
const QWT_OVERRIDE;
149 virtual uint colorIndex(
int numColors,
const QwtInterval&,
double value)
const QWT_OVERRIDE;
167 void setAlphaInterval(
int alpha1,
int alpha2);
172 void setColor(
const QColor&);
173 QColor color()
const;
175 virtual QRgb rgb(
const QwtInterval&,
double value)
const QWT_OVERRIDE;
199 void setHueInterval(
int hue1,
int hue2);
200 void setSaturation(
int saturation);
201 void setValue(
int value);
202 void setAlpha(
int alpha);
206 int saturation()
const;
210 virtual QRgb rgb(
const QwtInterval&,
double value)
const QWT_OVERRIDE;
232 void setHue(
int hue);
233 void setSaturationInterval(
int sat1,
int sat2);
234 void setValueInterval(
int value1,
int value2);
235 void setAlpha(
int alpha);
238 int saturation1()
const;
239 int saturation2()
const;
244 virtual QRgb rgb(
const QwtInterval&,
double value)
const QWT_OVERRIDE;
261 return QColor::fromRgba(
rgb(interval, value));
Definition qwt_clipper.h:40
QwtAlphaColorMap varies the alpha value of a color.
Definition qwt_color_map.h:162
QwtColorMap is used to map values into colors.
Definition qwt_color_map.h:56
Format format() const
Definition qwt_color_map.h:268
QColor color(const QwtInterval &, double value) const
Map a value into a color.
Definition qwt_color_map.h:259
Format
Format for color mapping.
Definition qwt_color_map.h:64
@ RGB
The map is intended to map into RGB values.
Definition qwt_color_map.h:66
virtual QRgb rgb(const QwtInterval &interval, double value) const =0
Map a value of a given interval into a RGB value.
QwtHueColorMap varies the hue value of the HSV color model.
Definition qwt_color_map.h:194
A class representing an interval.
Definition qwt_interval.h:40
QwtLinearColorMap builds a color map from color stops.
Definition qwt_color_map.h:116
Mode
Mode of color map.
Definition qwt_color_map.h:123
@ FixedColors
Return the color from the next lower color stop.
Definition qwt_color_map.h:125
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
Definition qwt_color_map.h:227