|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Abstract base class for color functors 更多...
#include <qwt3d_color.h>
Public 成员函数 | |
| virtual RGBA | operator() (double x, double y, double z) const =0 |
| virtual RGBA | operator() (Triple const &t) const |
| virtual ColorVector & | createVector (ColorVector &vec) |
| 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) | |
Protected 成员函数 | |
| 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) | |
Abstract base class for color functors
Use your own color model by providing an implementation of operator()(double x, double y, double z). Colors destructor has been declared protected, in order to use only heap based objects. Plot3D will handle the objects destruction. See Qwt3DStandardColor for an example.
Qwt3DColor is a pure value object: it holds no back-pointer to its owner and never notifies anyone when its state mutates. The owning Qwt3DPlotItem is responsible for triggering a rebuild after an in-place mutation (see Qwt3DSurface::invalidateColors). The active z-range used for color normalization is pushed in by the owner via setActiveRange() before the functor is queried. This mirrors the 2D module, where QwtColorMap is a silent value object and QwtPlotSpectrogram::setColorMap() drives the notification.
|
inlinevirtual |
被 Qwt3DStandardColor 重载.
|
pure virtual |
在 Qwt3DStandardColor 内被实现.