27#ifndef QWT_COLOR_MAP_H
28#define QWT_COLOR_MAP_H
30#include "qwt_global.h"
35#if QT_VERSION < 0x060000
90 void setFormat(Format);
91 Format format()
const;
96 virtual uint colorIndex(
int numColors,
const QwtInterval& interval,
double value)
const;
98 QColor color(
const QwtInterval&,
double value)
const;
146 void setColorInterval(
const QColor& color1,
const QColor& color2);
147 void addColorStop(
double value,
const QColor&);
150 QColor color1()
const;
151 QColor color2()
const;
153 virtual QRgb rgb(
const QwtInterval&,
double value)
const override;
155 virtual uint colorIndex(
int numColors,
const QwtInterval&,
double value)
const override;
178 void setAlphaInterval(
int alpha1,
int alpha2);
183 void setColor(
const QColor&);
184 QColor color()
const;
186 virtual QRgb rgb(
const QwtInterval&,
double value)
const override;
216 void setHueInterval(
int hue1,
int hue2);
217 void setSaturation(
int saturation);
218 void setValue(
int value);
219 void setAlpha(
int alpha);
223 int saturation()
const;
227 virtual QRgb rgb(
const QwtInterval&,
double value)
const override;
252 void setHue(
int hue);
253 void setSaturationInterval(
int sat1,
int sat2);
254 void setValueInterval(
int value1,
int value2);
255 void setAlpha(
int alpha);
258 int saturation1()
const;
259 int saturation2()
const;
264 virtual QRgb rgb(
const QwtInterval&,
double value)
const override;
272 inline QColor QwtColorMap::color(
const QwtInterval& interval,
double value)
const
274 return QColor::fromRgba(
rgb(interval, value));
Definition qwt_clipper.h:40
QwtAlphaColorMap 改变颜色的透明度值。
Definition qwt_color_map.h:173
QwtColorMap 用于将数值映射为颜色。
Definition qwt_color_map.h:62
Format
Format for color mapping
Definition qwt_color_map.h:70
@ RGB
The map is intended to map into RGB values.
Definition qwt_color_map.h:72
virtual QRgb rgb(const QwtInterval &interval, double value) const =0
Map a value of a given interval into a RGB value.
QwtHueColorMap 改变 HSV 颜色模型中的色调值。
Definition qwt_color_map.h:211
表示区间的类
Definition qwt_interval.h:45
QwtLinearColorMap 从颜色停止点构建颜色映射。
Definition qwt_color_map.h:122
Mode
Mode of color map
Definition qwt_color_map.h:129
@ FixedColors
Return the color from the next lower color stop
Definition qwt_color_map.h:131
QwtSaturationValueColorMap 改变 HSV 颜色模型中给定色调的饱和度和/或明度值。
Definition qwt_color_map.h:247