QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt_colormap_preset.h
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef QWT_COLORMAP_PRESET_H
11#define QWT_COLORMAP_PRESET_H
12
13#include "qwtcore_global.h"
14#include "qwt_colormap.h"
15
16#include <qcolor.h>
17#include <qstring.h>
18#include <qstringlist.h>
19#include <qpair.h>
20#include <qvector.h>
21
22#include <memory>
23
41class QWTCORE_EXPORT QwtColorMapPreset
42{
43public:
47 enum Preset
48 {
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99
102
105
108
111
113 Spectral
114 };
115
117 static std::unique_ptr< QwtLinearColorMap > create(Preset preset);
118
120 static std::unique_ptr< QwtLinearColorMap > create(const QString& name);
121
123 static QStringList availablePresets();
124
126 static QVector< QPair< double, QColor > > colorStops(Preset preset);
127
129 static QString presetName(Preset preset);
130
132 static Preset presetFromName(const QString& name);
133};
134
135#endif
Definition qwt_clipper.h:41
Registry of named color map presets for scientific visualization.
Definition qwt_colormap_preset.h:42
Preset
Built-in colormap presets
Definition qwt_colormap_preset.h:48
@ Hsv
Full HSV cycle
Definition qwt_colormap_preset.h:98
@ Rainbow
Red-yellow-green-cyan-blue-magenta-red
Definition qwt_colormap_preset.h:95
@ Hot
Black-red-yellow-white
Definition qwt_colormap_preset.h:68
@ RdYlBu
Red-yellow-blue diverging
Definition qwt_colormap_preset.h:107
@ Copper
Black-copper
Definition qwt_colormap_preset.h:92
@ Plasma
Perceptually uniform purple-orange-yellow
Definition qwt_colormap_preset.h:53
@ Inferno
Perceptually uniform black-red-orange-yellow
Definition qwt_colormap_preset.h:56
@ Cividis
Perceptually uniform blue-gray-yellow (colorblind-friendly)
Definition qwt_colormap_preset.h:62
@ Turbo
Improved rainbow (Google's turbo)
Definition qwt_colormap_preset.h:101
@ Summer
Green-white
Definition qwt_colormap_preset.h:77
@ Winter
Blue-white
Definition qwt_colormap_preset.h:83
@ Gray
Black-white grayscale
Definition qwt_colormap_preset.h:86
@ Jet
Blue-cyan-green-yellow-red (MATLAB default)
Definition qwt_colormap_preset.h:65
@ Autumn
Red-yellow-white
Definition qwt_colormap_preset.h:80
@ Viridis
Perceptually uniform purple-green-yellow (matplotlib default)
Definition qwt_colormap_preset.h:50
@ Spring
Magenta-yellow
Definition qwt_colormap_preset.h:74
@ CoolWarm
Blue-white-red diverging
Definition qwt_colormap_preset.h:104
@ Bone
Black-gray-white with blue tint
Definition qwt_colormap_preset.h:89
@ Cool
Cyan-white
Definition qwt_colormap_preset.h:71
@ Magma
Perceptually uniform black-purple-orange-yellow
Definition qwt_colormap_preset.h:59
@ RdYlGn
Red-yellow-green diverging
Definition qwt_colormap_preset.h:110