|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
QwtPolarCachePanner 提供极坐标绘图画布的平移功能 更多...
#include <qwt_polar_cache_panner.h>
Public 槽 | |
| virtual void | movePlot (int dx, int dy) |
| Move the plot | |
Public 成员函数 | |
| QwtPolarCachePanner (QwtPolarCanvas *) | |
| Constructor | |
| virtual | ~QwtPolarCachePanner () |
| Destructor | |
| QwtPolarPlot * | plot () |
| Get the plot | |
| const QwtPolarPlot * | plot () const |
| Get the plot (const version) | |
| QwtPolarCanvas * | canvas () |
| Get the canvas | |
| const QwtPolarCanvas * | canvas () const |
| Get the canvas (const version) | |
Public 成员函数 继承自 QwtCachePanner | |
| QwtCachePanner (QWidget *parent) | |
| 创建一个启用左键鼠标按钮的平移器 | |
| virtual | ~QwtCachePanner () |
| 析构函数 | |
| void | setEnabled (bool) |
| 启用/禁用平移器 | |
| bool | isEnabled () const |
| 返回平移器是否启用 | |
| void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| 更改用于平移的鼠标按钮和修饰键 | |
| void | getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const |
| 获取用于平移的鼠标按钮和修饰键 | |
| void | setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| 更改中止键 | |
| void | getAbortKey (int &key, Qt::KeyboardModifiers &) const |
| 获取中止键和修饰键 | |
| void | setCursor (const QCursor &) |
| 更改平移时激活的光标 | |
| const QCursor | cursor () const |
| 返回平移时激活的光标 | |
| void | setOrientations (Qt::Orientations) |
| 设置启用平移的方向 | |
| Qt::Orientations | orientations () const |
| 返回启用平移的方向 | |
| bool | isOrientationEnabled (Qt::Orientation) const |
| 检查某个方向是否启用 | |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| 事件过滤器 | |
Protected 成员函数 | |
| virtual void | widgetMousePressEvent (QMouseEvent *) override |
| Handle mouse press events | |
Protected 成员函数 继承自 QwtCachePanner | |
| virtual void | widgetMouseReleaseEvent (QMouseEvent *) |
| Handle a mouse release event for the observed widget. | |
| virtual void | widgetMouseMoveEvent (QMouseEvent *) |
| Handle a mouse move event for the observed widget. | |
| virtual void | widgetKeyPressEvent (QKeyEvent *) |
| Handle a key press event for the observed widget. | |
| virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
| Handle a key release event for the observed widget. | |
| virtual void | paintEvent (QPaintEvent *) override |
| 绘制事件 | |
| virtual QBitmap | contentsMask () const |
| 计算平移控件内容的遮罩 | |
| virtual QPixmap | grab () const |
| 将控件捕获到 pixmap 中 | |
额外继承的成员函数 | |
信号 继承自 QwtCachePanner | |
| void | panned (int dx, int dy) |
| 平移完成时发出的信号 | |
| void | moved (int dx, int dy) |
| 控件移动但平移未完成时发出的信号 | |
QwtPolarCachePanner 提供极坐标绘图画布的平移功能
|
explicit |
Constructor
为极坐标绘图画布创建绘图平移器
|
virtual |
Destructor
析构函数
| QwtPolarCanvas * QwtPolarCachePanner::canvas | ( | ) |
Get the canvas
获取观察的绘图画布
| const QwtPolarCanvas * QwtPolarCachePanner::canvas | ( | ) | const |
Get the canvas (const version)
获取观察的绘图画布(常量版本)
|
virtualslot |
Move the plot
根据 dx/dy 调整缩放区域
| QwtPolarPlot * QwtPolarCachePanner::plot | ( | ) |
Get the plot
获取观察的绘图
| const QwtPolarPlot * QwtPolarCachePanner::plot | ( | ) | const |
Get the plot (const version)
获取观察的绘图(常量版本)
|
overrideprotectedvirtual |
Handle mouse press events
Block panning when the plot zoom factor is >= 1.0.
| event | Mouse event |
重载 QwtCachePanner .