QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
QwtPlotScaleEventDispatcher Class Reference

Event filter for parasitic plots, handling axis interactions. More...

#include <qwt_plot_scale_event_dispatcher.h>

Inheritance diagram for QwtPlotScaleEventDispatcher:

Classes

class  PrivateData
 

Public Slots

void updateCache ()
 Update cache.
 
void setEnable (bool on=true)
 Set enabled state.
 

Public Member Functions

 QwtPlotScaleEventDispatcher (QwtPlot *plot, QObject *par=nullptr)
 Constructor.
 
 ~QwtPlotScaleEventDispatcher ()
 Destructor.
 
bool isEnable () const
 Check if enabled.
 

Static Public Member Functions

static QwtAxisId findAxisIdByScaleWidget (const QwtPlot *plot, const QwtScaleWidget *scaleWidget)
 Find axis ID corresponding to QwtScaleWidget.
 

Protected Member Functions

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)
 

Detailed Description

Event filter for parasitic plots, handling axis interactions.

Constructor & Destructor Documentation

◆ QwtPlotScaleEventDispatcher()

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

Constructor.

Member Function Documentation

◆ findAxisIdByScaleWidget()

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

Find axis ID corresponding to QwtScaleWidget.

◆ 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.

Update cache, rebuild if necessary.


The documentation for this class was generated from the following files: