|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
QwtPolarMagnifier 通过逐步放大提供缩放功能 更多...
#include <qwt_polar_magnifier.h>
类 | |
| class | PrivateData |
Public 槽 | |
| virtual void | rescale (double factor) override |
| Rescale the plot | |
| void | unzoom () |
| Unzoom the plot | |
Public 成员函数 | |
| QwtPolarMagnifier (QwtPolarCanvas *) | |
| Constructor | |
| virtual | ~QwtPolarMagnifier () |
| Destructor | |
| void | setUnzoomKey (int key, int modifiers) |
| Set the unzoom key | |
| void | getUnzoomKey (int &key, int &modifiers) const |
| Get the unzoom key | |
| 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 成员函数 继承自 QwtMagnifier | |
| QwtMagnifier (QWidget *) | |
| 构造函数 | |
| virtual | ~QwtMagnifier () |
| 析构函数 | |
| QWidget * | parentWidget () |
| 返回发生重新缩放的父控件 | |
| const QWidget * | parentWidget () const |
| 返回发生重新缩放的父控件 | |
| void | setEnabled (bool) |
| 启用/禁用放大器 | |
| bool | isEnabled () const |
| 返回放大器是否启用 | |
| void | setMouseFactor (double) |
| 更改鼠标因子 | |
| double | mouseFactor () const |
| 返回鼠标因子 | |
| void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| 设置用于放大/缩小的鼠标按钮 | |
| void | getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const |
| 获取用于放大/缩小的鼠标按钮和修饰键 | |
| void | setWheelFactor (double) |
| 更改滚轮因子 | |
| double | wheelFactor () const |
| 返回滚轮因子 | |
| void | setWheelModifiers (Qt::KeyboardModifiers) |
| 设置使用滚轮放大/缩小时的键盘修饰键 | |
| Qt::KeyboardModifiers | wheelModifiers () const |
| 返回滚轮修饰键 | |
| void | setKeyFactor (double) |
| 更改按键因子 | |
| double | keyFactor () const |
| 返回按键因子 | |
| void | setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| 设置用于放大的按键 | |
| void | getZoomInKey (int &key, Qt::KeyboardModifiers &) const |
| 获取放大键的设置 | |
| void | setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| 设置用于缩小的按键 | |
| void | getZoomOutKey (int &key, Qt::KeyboardModifiers &) const |
| 获取缩小键的设置 | |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| 事件过滤器 | |
Protected 成员函数 | |
| virtual void | widgetKeyPressEvent (QKeyEvent *) override |
| Handle key press events | |
Protected 成员函数 继承自 QwtMagnifier | |
| virtual void | rescale (double factor)=0 |
| 重新缩放父控件 | |
| virtual void | widgetMousePressEvent (QMouseEvent *) |
| Handle a mouse press event for the observed widget. | |
| 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 | widgetWheelEvent (QWheelEvent *) |
| Handle a wheel event for the observed widget. | |
| virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
| Handle a key release event for the observed widget. | |
QwtPolarMagnifier 通过逐步放大提供缩放功能
|
explicit |
Constructor
构造函数
|
virtual |
Destructor
析构函数
| QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) |
Get the canvas
获取观察的绘图画布
| const QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) | const |
Get the canvas (const version)
获取观察的绘图画布(常量版本)
| void QwtPolarMagnifier::getUnzoomKey | ( | int & | key, |
| int & | modifiers | ||
| ) | const |
Get the unzoom key
获取用于取消缩放的按键和修饰键
| QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) |
Get the plot
获取观察的绘图
| const QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) | const |
Get the plot (const version)
获取观察的绘图(常量版本)
|
overridevirtualslot |
Rescale the plot
放大/缩小缩放区域
| void QwtPolarMagnifier::setUnzoomKey | ( | int | key, |
| int | modifiers | ||
| ) |
Set the unzoom key
设置用于取消缩放的按键和修饰键
|
slot |
Unzoom the plot
取消绘图控件的缩放
|
overrideprotectedvirtual |
Handle key press events
Handle a key press event for the observed widget.
| event | Key event |
重载 QwtMagnifier .