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

A flat color legend 更多...

#include <qwt3d_colorlegend.h>

类 Qwt3DColorLegend 继承关系图:
Qwt3DDrawable

class  PrivateData
 

Public 类型

enum  SCALEPOSITION { Top , Bottom , Left , Right }
 
enum  ORIENTATION { BottomTop , LeftRight }
 
enum  Position {
  PosTopLeft , PosTopCenter , PosTopRight , PosLeftCenter ,
  PosCenter , PosRightCenter , PosBottomLeft , PosBottomCenter ,
  PosBottomRight , PosCustom
}
 

Public 成员函数

void draw (const Qwt3DRenderContext &ctx) override
 Draws the color legend using VBO + polygon/line shaders
 
void setRelPosition (Tuple relMin, Tuple relMax)
 
void setPosition (Position pos)
 
void setAbsolutePosition (const QRectF &pixelRect)
 
Position position () const
 
QRectF absolutePosition () const
 返回绝对像素位置
 
bool useAbsolutePosition () const
 返回是否使用绝对定位
 
ORIENTATION orientation () const
 返回图例方向
 
SCALEPOSITION scalePosition () const
 返回刻度位置
 
bool drawScale () const
 返回是否绘制刻度
 
void limits (double &start, double &stop) const
 返回刻度范围
 
int majors () const
 返回主刻度数
 
int minors () const
 返回次刻度数
 
QString titleString () const
 返回图例标题文本
 
void setOrientation (ORIENTATION, SCALEPOSITION)
 
void setLimits (double start, double stop)
 
void setMajors (int)
 
void setMinors (int)
 
void drawScale (bool val)
 
void drawNumbers (bool val)
 
void setAutoScale (bool val)
 
void setScale (Qwt3DScale *scale)
 
void setScale (SCALETYPE)
 
void setTitleString (QString const &s)
 
void setTitleFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
- Public 成员函数 继承自 Qwt3DDrawable
void attach (Qwt3DDrawable *)
 
void detach (Qwt3DDrawable *)
 
void detachAll ()
 
virtual void setColor (double r, double g, double b, double a=1)
 
virtual void setColor (RGBA rgba)
 
RGBA color () const
 Returns the drawable's color
 

Public 属性

ColorVector colors
 

额外继承的成员函数

- Protected 成员函数 继承自 Qwt3DDrawable
 Qwt3DDrawable (Qwt3DDrawable &&other) noexcept
 
Qwt3DDrawableoperator= (Qwt3DDrawable &&other) noexcept
 
- Protected 属性 继承自 Qwt3DDrawable
RGBA m_color
 

详细描述

A flat color legend

The class visualizes a ColorVector together with a scale (axis) and a caption. ColorLegends are vertical or horizontal.

成员函数说明

◆ absolutePosition()

QRectF Qwt3DColorLegend::absolutePosition ( ) const

返回绝对像素位置

返回
绝对像素矩形

◆ draw()

void Qwt3DColorLegend::draw ( const Qwt3DRenderContext ctx)
overridevirtual

Draws the color legend using VBO + polygon/line shaders

参数
ctxRender context providing shaders, matrices, and coordinate conversion

Renders the color bar as a set of quads using VBO + polygon shader, the border outline using VBO + line shader, then delegates axis and caption drawing to their respective draw() methods.

重载 Qwt3DDrawable .

◆ drawScale()

bool Qwt3DColorLegend::drawScale ( ) const

返回是否绘制刻度

返回
true 如果绘制刻度

◆ limits()

void Qwt3DColorLegend::limits ( double &  start,
double &  stop 
) const

返回刻度范围

参数
[out]start起始值
[out]stop终止值

◆ majors()

int Qwt3DColorLegend::majors ( ) const

返回主刻度数

返回
主刻度数

◆ minors()

int Qwt3DColorLegend::minors ( ) const

返回次刻度数

返回
次刻度数

◆ orientation()

Qwt3DColorLegend::ORIENTATION Qwt3DColorLegend::orientation ( ) const

返回图例方向

返回
ORIENTATION 枚举值

◆ scalePosition()

Qwt3DColorLegend::SCALEPOSITION Qwt3DColorLegend::scalePosition ( ) const

返回刻度位置

返回
SCALEPOSITION 枚举值

◆ titleString()

QString Qwt3DColorLegend::titleString ( ) const

返回图例标题文本

返回
标题字符串

◆ useAbsolutePosition()

bool Qwt3DColorLegend::useAbsolutePosition ( ) const

返回是否使用绝对定位

返回
true 如果使用绝对像素坐标定位

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