|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
Qt 字符串或输出设备依赖的字符串 更多...
#include <qwt3d_label.h>
Public 成员函数 | |
| Label () | |
| 默认构造函数 | |
| Label (const QString &family, int pointSize, int weight=QFont::Normal, bool italic=false) | |
| 构造具有指定字体参数的标签 | |
| void | setFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
| 设置标签字体 | |
| void | adjust (int gap) |
| 向锚点添加额外偏移 | |
| double | gap () const |
| void | setPosition (Qwt3D::Triple pos, ANCHOR a=BottomLeft) |
| 设置标签位置和锚点 | |
| void | setRelPosition (Tuple rpos, ANCHOR a) |
| 设置标签相对于视口的位置 | |
| Qwt3D::Triple | first () const |
| Qwt3D::Triple | second () const |
| ANCHOR | anchor () const |
| virtual void | setColor (double r, double g, double b, double a=1) |
| 从 RGBA 分量设置标签颜色 | |
| virtual void | setColor (Qwt3D::RGBA rgba) |
| 从 RGBA 对象设置标签颜色 | |
| void | setString (QString const &s) |
| 设置标签文本字符串 | |
| void | draw () |
| 绘制标签 | |
Public 成员函数 继承自 Qwt3D::Drawable | |
| virtual void | saveGLState () |
| virtual void | restoreGLState () |
| void | attach (Drawable *) |
| void | detach (Drawable *) |
| void | detachAll () |
| Qwt3D::Triple | relativePosition (Qwt3D::Triple rel) |
| 从相对视口位置计算世界坐标 | |
静态 Public 成员函数 | |
| static void | useDeviceFonts (bool val) |
| 启用或禁用所有标签的设备字体渲染 | |
额外继承的成员函数 | |
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] |
Qt 字符串或输出设备依赖的字符串
| Label::Label | ( | ) |
默认构造函数
| Label::Label | ( | const QString & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
构造具有指定字体参数的标签
| void Label::adjust | ( | int | gap | ) |
向锚点添加额外偏移
|
virtual |
绘制标签
重载 Qwt3D::Drawable .
|
virtual |
从 RGBA 分量设置标签颜色
重载 Qwt3D::Drawable .
|
virtual |
从 RGBA 对象设置标签颜色
重载 Qwt3D::Drawable .
| void Label::setFont | ( | QString const & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
设置标签字体
| void Label::setPosition | ( | Qwt3D::Triple | pos, |
| ANCHOR | a = BottomLeft |
||
| ) |
设置标签位置和锚点
| void Label::setRelPosition | ( | Tuple | rpos, |
| ANCHOR | a | ||
| ) |
设置标签相对于视口的位置
| void Label::setString | ( | QString const & | s | ) |
设置标签文本字符串
|
static |
启用或禁用所有标签的设备字体渲染