QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 槽 | Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtPlotScaleEventDispatcher类 参考

针对寄生绘图的事件过滤器,主要处理坐标轴动作 更多...

#include <qwt_plot_scale_event_dispatcher.h>

类 QwtPlotScaleEventDispatcher 继承关系图:

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)
 
QwtScaleWidgetfindTargetOnScale (const QPoint &pos)
 

详细描述

针对寄生绘图的事件过滤器,主要处理坐标轴动作

构造及析构函数说明

◆ QwtPlotScaleEventDispatcher()

QwtPlotScaleEventDispatcher::QwtPlotScaleEventDispatcher ( QwtPlot plot,
QObject *  par = nullptr 
)
explicit

Constructor

构造函数

成员函数说明

◆ findAxisIdByScaleWidget()

QwtAxisId QwtPlotScaleEventDispatcher::findAxisIdByScaleWidget ( const QwtPlot plot,
const QwtScaleWidget scaleWidget 
)
static

Find axis ID corresponding to QwtScaleWidget

获取 QwtScaleWidget 对应的轴 ID

◆ isEnable()

bool QwtPlotScaleEventDispatcher::isEnable ( ) const

Check if enabled

检查是否启用

◆ setEnable

void QwtPlotScaleEventDispatcher::setEnable ( bool  on = true)
slot

Set enabled state

设置可用状态

◆ updateCache

void QwtPlotScaleEventDispatcher::updateCache ( )
slot

Update cache

更新缓存,必要时会调用 rebuildCache 进行重建


该类的文档由以下文件生成: