|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
带标题的自动缩放坐标轴 更多...
#include <qwt3d_axis.h>
Public 成员函数 | |
| Axis () | |
| 默认构造函数 | |
| Axis (Qwt3D::Triple beg, Qwt3D::Triple end) | |
| 构造具有指定起点和终点位置的坐标轴 | |
| virtual | ~Axis () |
| 析构函数 | |
| virtual void | draw () |
| 绘制坐标轴,包括基线、刻度线和标签 | |
| void | setPosition (const Qwt3D::Triple &beg, const Qwt3D::Triple &end) |
| 设置坐标轴位置 | |
| void | position (Qwt3D::Triple &beg, Qwt3D::Triple &end) const |
| Qwt3D::Triple | begin () const |
| Qwt3D::Triple | end () const |
| double | length () const |
| void | setTicLength (double majorl, double minorl) |
| 设置刻度线长度 | |
| void | ticLength (double &majorl, double &minorl) const |
| void | setTicOrientation (double tx, double ty, double tz) |
| 从各分量设置刻度线方向 | |
| void | setTicOrientation (const Qwt3D::Triple &val) |
| 从三元组向量设置刻度线方向 | |
| Qwt3D::Triple | ticOrientation () const |
| void | setSymmetricTics (bool b) |
| void | setLabelFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
| 设置坐标轴标签的字体 | |
| void | setLabelFont (QFont const &font) |
| 设置坐标轴标签的字体 | |
| QFont const & | labelFont () const |
| void | setLabelString (QString const &name) |
| 设置坐标轴标签字符串 | |
| void | setLabelPosition (const Qwt3D::Triple &pos, Qwt3D::ANCHOR) |
| 结合锚定策略设置标签位置 | |
| void | setLabelColor (Qwt3D::RGBA col) |
| 设置坐标轴标签的颜色 | |
| void | setLabel (bool d) |
| void | adjustLabel (int val) |
| void | setScaling (bool d) |
| bool | scaling () const |
| void | setScale (Qwt3D::SCALETYPE) |
| 设置预定义的刻度类型之一 | |
| void | setScale (Scale *item) |
| 设置用户自定义的刻度对象 | |
| void | setNumbers (bool d) |
| bool | numbers () const |
| void | setNumberColor (Qwt3D::RGBA col) |
| 设置坐标轴数字的颜色 | |
| Qwt3D::RGBA | numberColor () const |
| void | setNumberFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
| 设置坐标轴数字的字体 | |
| void | setNumberFont (QFont const &) |
| 设置坐标轴数字的字体 | |
| QFont const & | numberFont () const |
| void | setNumberAnchor (Qwt3D::ANCHOR a) |
| void | adjustNumbers (int val) |
| void | setAutoScale (bool val=true) |
| bool | autoScale () const |
| void | setMajors (int val) |
| 设置主刻度区间数 | |
| void | setMinors (int val) |
| 设置次刻度区间数 | |
| int | majors () const |
| int | minors () const |
| Qwt3D::TripleField const & | majorPositions () const |
| Qwt3D::TripleField const & | minorPositions () const |
| void | setLineWidth (double val, double majfac=0.9, double minfac=0.5) |
| 设置坐标轴和刻度线的线宽 | |
| double | lineWidth () const |
| double | majLineWidth () const |
| double | minLineWidth () const |
| void | setLimits (double start, double stop) |
| void | limits (double &start, double &stop) const |
| void | recalculateTics () |
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) |
| 从相对视口位置计算世界坐标 | |
额外继承的成员函数 | |
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] |
带标题的自动缩放坐标轴
| Axis::Axis | ( | ) |
默认构造函数
| Axis::Axis | ( | Qwt3D::Triple | beg, |
| Qwt3D::Triple | end | ||
| ) |
构造具有指定起点和终点位置的坐标轴
|
virtual |
析构函数
|
virtual |
绘制坐标轴,包括基线、刻度线和标签
重载 Qwt3D::Drawable .
| void Axis::setLabelColor | ( | Qwt3D::RGBA | col | ) |
设置坐标轴标签的颜色
| void Axis::setLabelFont | ( | QFont const & | font | ) |
设置坐标轴标签的字体
| void Axis::setLabelFont | ( | QString const & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
设置坐标轴标签的字体
| void Axis::setLabelPosition | ( | const Qwt3D::Triple & | pos, |
| Qwt3D::ANCHOR | an | ||
| ) |
结合锚定策略设置标签位置
| void Axis::setLabelString | ( | QString const & | name | ) |
设置坐标轴标签字符串
| void Axis::setLineWidth | ( | double | val, |
| double | majfac = 0.9, |
||
| double | minfac = 0.5 |
||
| ) |
设置坐标轴和刻度线的线宽
| void Axis::setMajors | ( | int | val | ) |
设置主刻度区间数
| void Axis::setMinors | ( | int | val | ) |
设置次刻度区间数
| void Axis::setNumberColor | ( | Qwt3D::RGBA | col | ) |
设置坐标轴数字的颜色
| void Axis::setNumberFont | ( | QFont const & | font | ) |
设置坐标轴数字的字体
| void Axis::setNumberFont | ( | QString const & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
设置坐标轴数字的字体
| void Axis::setPosition | ( | const Qwt3D::Triple & | beg, |
| const Qwt3D::Triple & | end | ||
| ) |
设置坐标轴位置
| void Axis::setScale | ( | Qwt3D::SCALETYPE | val | ) |
设置预定义的刻度类型之一
| void Axis::setScale | ( | Scale * | val | ) |
设置用户自定义的刻度对象
| void Axis::setTicLength | ( | double | majorl, |
| double | minorl | ||
| ) |
设置刻度线长度
| void Axis::setTicOrientation | ( | const Qwt3D::Triple & | val | ) |
从三元组向量设置刻度线方向
| void Axis::setTicOrientation | ( | double | tx, |
| double | ty, | ||
| double | tz | ||
| ) |
从各分量设置刻度线方向