QwtPolarPanner provides panning of a polar plot canvas. More...
#include <qwt_polar_panner.h>
Public Slots | |
virtual void | movePlot (int dx, int dy) |
Public Member Functions | |
QwtPolarCanvas * | canvas () |
const QwtPolarCanvas * | canvas () const |
QwtPolarPlot * | plot () |
const QwtPolarPlot * | plot () const |
QwtPolarPanner (QwtPolarCanvas *) | |
Create a plot panner for a polar plot canvas. More... | |
virtual | ~QwtPolarPanner () |
Destructor. More... | |
Public Member Functions inherited from QwtPanner | |
const QCursor | cursor () const |
virtual bool | eventFilter (QObject *, QEvent *) QWT_OVERRIDE |
Event filter. More... | |
void | getAbortKey (int &key, Qt::KeyboardModifiers &) const |
Get the abort key and modifiers. More... | |
void | getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const |
Get mouse button and modifiers used for panning. More... | |
bool | isEnabled () const |
bool | isOrientationEnabled (Qt::Orientation) const |
Qt::Orientations | orientations () const |
Return the orientation, where panning is enabled. More... | |
QwtPanner (QWidget *parent) | |
void | setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
void | setCursor (const QCursor &) |
void | setEnabled (bool) |
En/disable the panner. More... | |
void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
void | setOrientations (Qt::Orientations) |
virtual | ~QwtPanner () |
Destructor. More... | |
Protected Member Functions | |
virtual void | widgetMousePressEvent (QMouseEvent *) QWT_OVERRIDE |
Protected Member Functions inherited from QwtPanner | |
virtual QBitmap | contentsMask () const |
Calculate a mask for the contents of the panned widget. More... | |
virtual QPixmap | grab () const |
virtual void | paintEvent (QPaintEvent *) QWT_OVERRIDE |
Paint event. More... | |
virtual void | widgetKeyPressEvent (QKeyEvent *) |
virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
virtual void | widgetMouseMoveEvent (QMouseEvent *) |
virtual void | widgetMouseReleaseEvent (QMouseEvent *) |
Additional Inherited Members | |
Signals inherited from QwtPanner | |
void | moved (int dx, int dy) |
void | panned (int dx, int dy) |
QwtPolarPanner provides panning of a polar plot canvas.
QwtPolarPanner is a panner for a QwtPolarCanvas, that adjusts the visible area after dropping the canvas on its new position.
Together with QwtPolarMagnifier individual ways of navigating on a QwtPolarPlot widget can be implemented easily.
Definition at line 30 of file qwt_polar_panner.h.
|
explicit |
Create a plot panner for a polar plot canvas.
Definition at line 16 of file qwt_polar_panner.cpp.
|
virtual |
Destructor.
Definition at line 24 of file qwt_polar_panner.cpp.
const QwtPolarCanvas * QwtPolarPanner::canvas | ( | ) |
Definition at line 29 of file qwt_polar_panner.cpp.
const QwtPolarCanvas* QwtPolarPanner::canvas | ( | ) | const |
|
virtualslot |
Adjust the zoomed area according to dx/dy
dx | Pixel offset in x direction |
dy | Pixel offset in y direction |
Definition at line 68 of file qwt_polar_panner.cpp.
const QwtPolarPlot * QwtPolarPanner::plot | ( | ) |
Definition at line 41 of file qwt_polar_panner.cpp.
const QwtPolarPlot* QwtPolarPanner::plot | ( | ) | const |
|
protectedvirtual |
Block panning when the plot zoom factor is >= 1.0.
event | Mouse event |
Reimplemented from QwtPanner.
Definition at line 108 of file qwt_polar_panner.cpp.