|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Registry of named color map presets for scientific visualization. 更多...
#include <qwt_colormap_preset.h>
Public 类型 | |
| enum | Preset { Viridis , Plasma , Inferno , Magma , Cividis , Jet , Hot , Cool , Spring , Summer , Autumn , Winter , Gray , Bone , Copper , Rainbow , Hsv , Turbo , CoolWarm , RdYlBu , RdYlGn , Spectral } |
| Built-in colormap presets 更多... | |
静态 Public 成员函数 | |
| static std::unique_ptr< QwtLinearColorMap > | create (Preset preset) |
| Create a QwtLinearColorMap from a preset enum | |
| static std::unique_ptr< QwtLinearColorMap > | create (const QString &name) |
| Create a QwtLinearColorMap from a preset name (case-insensitive) | |
| static QStringList | availablePresets () |
| Get a list of all available preset names | |
| static QVector< QPair< double, QColor > > | colorStops (Preset preset) |
| Get the color stops for a preset (position, color pairs) | |
| static QString | presetName (Preset preset) |
| Convert a preset enum to its string name | |
| static Preset | presetFromName (const QString &name) |
| Convert a string name to a preset enum (returns -1 if not found) | |
Registry of named color map presets for scientific visualization.
QwtColorMapPreset provides factory methods to create QwtLinearColorMap instances from well-known colormap names used in scientific computing and data visualization (matplotlib, MATLAB, etc.).
Each preset is defined by a set of color stops at specific positions in the [0.0, 1.0] range, enabling smooth multi-stop gradient interpolation.
Built-in colormap presets
|
static |
Get a list of all available preset names
Get the color stops for a preset (position, color pairs)
Get the color stops for a preset
| preset | Preset selector |
|
static |
Create a QwtLinearColorMap from a preset name (case-insensitive)
| name | Preset name string |
|
static |
Create a QwtLinearColorMap from a preset enum
Create a QwtLinearColorMap from a preset
| preset | Preset selector |
|
static |
Convert a string name to a preset enum (returns -1 if not found)
Convert a string name to a preset enum
| name | Case-insensitive preset name |
|
static |
Convert a preset enum to its string name
| preset | Preset selector |