QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
Qwt3DColor类 参考abstract

Abstract base class for color functors 更多...

#include <qwt3d_color.h>

类 Qwt3DColor 继承关系图:
Qwt3DColorMapColor Qwt3DStandardColor

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.

成员函数说明

◆ createVector()

virtual ColorVector & Qwt3DColor::createVector ( ColorVector &  vec)
inlinevirtual

Qwt3DStandardColor 重载.

◆ operator()()

virtual RGBA Qwt3DColor::operator() ( double  x,
double  y,
double  z 
) const
pure virtual

Qwt3DStandardColor 内被实现.


该类的文档由以下文件生成: