|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
针对寄生绘图的事件过滤器,主要处理坐标轴动作 更多...
#include <qwt_plot_scale_event_dispatcher.h>
类 | |
| class | PrivateData |
Public 槽 | |
| void | updateCache () |
| Update cache | |
| void | setEnable (bool on=true) |
| Set enabled state | |
Public 成员函数 | |
| QwtPlotScaleEventDispatcher (QwtPlot *plot, QObject *par=nullptr) | |
| Constructor | |
| ~QwtPlotScaleEventDispatcher () | |
| Destructor | |
| bool | isEnable () const |
| Check if enabled | |
静态 Public 成员函数 | |
| static QwtAxisId | findAxisIdByScaleWidget (const QwtPlot *plot, const QwtScaleWidget *scaleWidget) |
| Find axis ID corresponding to QwtScaleWidget | |
Protected 成员函数 | |
| virtual bool | eventFilter (QObject *obj, QEvent *e) override |
| void | rebuildCache () |
| 重建所有缓存数据,在有新的寄生绘图添加时,都需要调用此函数,把绘图的坐标轴缓存 | |
| virtual bool | handleMousePress (QwtPlot *bindPlot, QMouseEvent *e) |
| virtual bool | handleMouseMove (QwtPlot *bindPlot, QMouseEvent *e) |
| virtual bool | handleMouseRelease (QwtPlot *bindPlot, QMouseEvent *e) |
| virtual bool | handleWheelEvent (QwtPlot *bindPlot, QWheelEvent *e) |
| QwtScaleWidget * | findTargetOnScale (const QPoint &pos) |
针对寄生绘图的事件过滤器,主要处理坐标轴动作
|
explicit |
Constructor
构造函数
|
static |
Find axis ID corresponding to QwtScaleWidget
获取 QwtScaleWidget 对应的轴 ID
| bool QwtPlotScaleEventDispatcher::isEnable | ( | ) | const |
Check if enabled
检查是否启用
|
slot |
Set enabled state
设置可用状态
|
slot |
Update cache
更新缓存,必要时会调用 rebuildCache 进行重建