10#ifndef QWT_COLOR_MAP_H
11#define QWT_COLOR_MAP_H
13#include "qwtcore_global.h"
16#if QT_VERSION < 0x060000
61 void setFormat(Format);
62 Format format()
const;
65 virtual QRgb
rgb(
double vMin,
double vMax,
double value)
const = 0;
67 virtual uint colorIndex(
int numColors,
double vMin,
double vMax,
double value)
const;
69 QColor color(
double vMin,
double vMax,
double value)
const;
111 void setColorInterval(
const QColor& color1,
const QColor& color2);
112 void addColorStop(
double value,
const QColor&);
115 QColor color1()
const;
116 QColor color2()
const;
118 virtual QRgb rgb(
double vMin,
double vMax,
double value)
const override;
120 virtual uint colorIndex(
int numColors,
double vMin,
double vMax,
double value)
const override;
137 void setAlphaInterval(
int alpha1,
int alpha2);
142 void setColor(
const QColor&);
143 QColor color()
const;
145 virtual QRgb rgb(
double vMin,
double vMax,
double value)
const override;
165 void setHueInterval(
int hue1,
int hue2);
166 void setSaturation(
int saturation);
167 void setValue(
int value);
168 void setAlpha(
int alpha);
172 int saturation()
const;
176 virtual QRgb rgb(
double vMin,
double vMax,
double value)
const override;
193 void setHue(
int hue);
194 void setSaturationInterval(
int sat1,
int sat2);
195 void setValueInterval(
int value1,
int value2);
196 void setAlpha(
int alpha);
199 int saturation1()
const;
200 int saturation2()
const;
205 virtual QRgb rgb(
double vMin,
double vMax,
double value)
const override;
212inline QColor QwtColorMap::color(
double vMin,
double vMax,
double value)
const
214 return QColor::fromRgba(
rgb(vMin, vMax, value));
Definition qwt_clipper.h:41
QwtAlphaColorMap varies the alpha value of a color.
Definition qwt_colormap.h:132
QwtColorMap is used to map values into colors.
Definition qwt_colormap.h:33
virtual QRgb rgb(double vMin, double vMax, double value) const =0
Map a value of a given interval into a RGB value.
Format
Format for color mapping
Definition qwt_colormap.h:41
@ RGB
The map is intended to map into RGB values.
Definition qwt_colormap.h:43
QwtHueColorMap varies the hue value of the HSV color model.
Definition qwt_colormap.h:160
QwtLinearColorMap builds a color map from color stops.
Definition qwt_colormap.h:87
Mode
Mode of color map
Definition qwt_colormap.h:94
@ FixedColors
Return the color from the next lower color stop
Definition qwt_colormap.h:96
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
Definition qwt_colormap.h:188