OpenCurves  0.9
PlotPanner Class Reference

Extension of QwtPlotPanner to expose moveCanvas() for synchronised panning. More...

#include <plotpanner.h>

Inheritance diagram for PlotPanner:

Public Types

typedef QwtPlotPanner Super
 Alias for the parent class.
 

Public Slots

void syncPan (int dx, int dy)
 Synchronised panning event. More...
 

Public Member Functions

 PlotPanner (QWidget *parent=nullptr)
 Constructor. More...
 

Protected Member Functions

void moveCanvas (int dx, int dy) override
 Override to mark ignoring of syncPan() events. More...
 

Detailed Description

Extension of QwtPlotPanner to expose moveCanvas() for synchronised panning.

Constructor & Destructor Documentation

PlotPanner::PlotPanner ( QWidget *  parent = nullptr)
explicit

Constructor.

Parameters
parentThe panner parent (generally a QwtPlotCanvas).

Member Function Documentation

void PlotPanner::moveCanvas ( int  dx,
int  dy 
)
overrideprotected

Override to mark ignoring of syncPan() events.

Parameters
dxPan change along X.
dyPan change along Y.
void PlotPanner::syncPan ( int  dx,
int  dy 
)
slot

Synchronised panning event.

Calls through to moveCanvas().

Note that moveCanvas() if the event hasn't originated from the moveCanvas() event in the first place. However, this only works when using direct signalling.

Parameters
dxPan change along X.
dyPan change along Y.

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