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

平面颜色图例 更多...

#include <qwt3d_colorlegend.h>

类 Qwt3D::ColorLegend 继承关系图:
Qwt3D::Drawable

Public 类型

enum  SCALEPOSITION { Top , Bottom , Left , Right }
 
enum  ORIENTATION { BottomTop , LeftRight }
 

Public 成员函数

 ColorLegend ()
 构造左侧带有坐标轴的图例对象
 
void draw ()
 绘制颜色图例
 
void setRelPosition (Qwt3D::Tuple relMin, Qwt3D::Tuple relMax)
 设置图例在绘图区域内的相对位置
 
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 (Qwt3D::Scale *scale)
 设置用户自定义刻度对象
 
void setScale (Qwt3D::SCALETYPE)
 设置预定义刻度类型
 
void setTitleString (QString const &s)
 设置图例标题字符串
 
void setTitleFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 设置图例标题字体
 
- Public 成员函数 继承自 Qwt3D::Drawable
virtual void saveGLState ()
 
virtual void restoreGLState ()
 
void attach (Drawable *)
 
void detach (Drawable *)
 
void detachAll ()
 
virtual void setColor (double r, double g, double b, double a=1)
 
virtual void setColor (Qwt3D::RGBA rgba)
 
Qwt3D::Triple relativePosition (Qwt3D::Triple rel)
 从相对视口位置计算世界坐标
 

Public 属性

Qwt3D::ColorVector colors
 

额外继承的成员函数

- Protected 成员函数 继承自 Qwt3D::Drawable
void Enable (GLenum what, GLboolean val)
 
Qwt3D::Triple ViewPort2World (Qwt3D::Triple win, bool *err=0)
 将视口坐标转换为世界坐标(glUnProject)
 
Qwt3D::Triple World2ViewPort (Qwt3D::Triple obj, bool *err=0)
 将世界坐标转换为视口坐标(glProject)
 
- Protected 属性 继承自 Qwt3D::Drawable
Qwt3D::RGBA color
 
GLdouble modelMatrix [16]
 
GLdouble projMatrix [16]
 
GLint viewport [4]
 

详细描述

平面颜色图例

构造及析构函数说明

◆ ColorLegend()

ColorLegend::ColorLegend ( )

构造左侧带有坐标轴的图例对象

成员函数说明

◆ draw()

void ColorLegend::draw ( )
virtual

绘制颜色图例

重载 Qwt3D::Drawable .

◆ setAutoScale()

void ColorLegend::setAutoScale ( bool  val)

启用或禁用自动缩放

◆ setLimits()

void ColorLegend::setLimits ( double  start,
double  stop 
)

设置坐标轴刻度范围

◆ setMajors()

void ColorLegend::setMajors ( int  majors)

设置主刻度区间数

◆ setMinors()

void ColorLegend::setMinors ( int  minors)

设置次刻度区间数

◆ setOrientation()

void ColorLegend::setOrientation ( ORIENTATION  orientation,
SCALEPOSITION  pos 
)

设置图例方向和坐标轴刻度位置

◆ setRelPosition()

void ColorLegend::setRelPosition ( Qwt3D::Tuple  relMin,
Qwt3D::Tuple  relMax 
)

设置图例在绘图区域内的相对位置

◆ setScale() [1/2]

void ColorLegend::setScale ( Qwt3D::Scale scale)

设置用户自定义刻度对象

◆ setScale() [2/2]

void ColorLegend::setScale ( Qwt3D::SCALETYPE  val)

设置预定义刻度类型

◆ setTitleFont()

void ColorLegend::setTitleFont ( QString const &  family,
int  pointSize,
int  weight = QFont::Normal,
bool  italic = false 
)

设置图例标题字体

◆ setTitleString()

void ColorLegend::setTitleString ( QString const &  s)

设置图例标题字符串


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