|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
Adapts a QwtColorMap (from qwt::core) for use as a Qwt3DColor. More...
#include <qwt3d_colormap_color.h>
Public Member Functions | |
| Qwt3DColorMapColor (const QString &presetName=QString("viridis"), unsigned size=256) | |
| Qwt3DColorMapColor (::QwtColorMap *colorMap, unsigned size=256) | |
| RGBA | operator() (double x, double y, double z) const override |
| ColorVector & | createVector (ColorVector &vec) override |
| void | setColorMap (::QwtColorMap *map) |
| const ::QwtColorMap * | colorMap () const |
| void | setInterval (double min, double max) |
| void | reset (unsigned size=256) |
| void | setAlpha (double a) |
| QString | presetName () const |
| 返回构造时传入的 preset 名称 | |
| unsigned | colorCount () const |
| 返回颜色向量中的颜色数量 | |
| double | alpha () const |
| 返回 alpha 值 | |
| bool | useManualInterval () const |
| 返回是否使用了手动区间 | |
| double | manualMin () const |
| 返回手动区间的最小值 | |
| double | manualMax () const |
| 返回手动区间的最大值 | |
Public Member Functions inherited from Qwt3DColor | |
| virtual RGBA | operator() (Triple const &t) const |
| void | destroy () const |
| void | setActiveRange (double zMin, double zMax) |
| Sets the active z-range used for color normalization (pushed by the owning Qwt3DPlotItem before VBO/legend build) | |
Additional Inherited Members | |
Protected Member Functions inherited from Qwt3DColor | |
| double | activeZMin () const |
| Lower bound of the active z-range (default 0.0) | |
| double | activeZMax () const |
| Upper bound of the active z-range (default 1.0) | |
Adapts a QwtColorMap (from qwt::core) for use as a Qwt3DColor.
Bridges the 2D colormap infrastructure into the 3D color functor system.
| double Qwt3DColorMapColor::alpha | ( | ) | const |
返回 alpha 值
| unsigned Qwt3DColorMapColor::colorCount | ( | ) | const |
返回颜色向量中的颜色数量
|
overridevirtual |
Reimplemented from Qwt3DColor.
| double Qwt3DColorMapColor::manualMax | ( | ) | const |
返回手动区间的最大值
| double Qwt3DColorMapColor::manualMin | ( | ) | const |
返回手动区间的最小值
|
overridevirtual |
Implements Qwt3DColor.
| QString Qwt3DColorMapColor::presetName | ( | ) | const |
返回构造时传入的 preset 名称
| bool Qwt3DColorMapColor::useManualInterval | ( | ) | const |
返回是否使用了手动区间