QwtPolarPanner − QwtPolarPanner provides panning of a polar plot canvas.
#include <qwt_polar_panner.h>
Inherits QwtPanner.
virtual void movePlot (int dx, int dy)
QwtPolarPanner
(QwtPolarCanvas *)
Create a plot panner for a polar plot canvas.
virtual ˜QwtPolarPanner ()
Destructor.
QwtPolarPlot * plot ()
const QwtPolarPlot * plot () const
QwtPolarCanvas * canvas ()
const QwtPolarCanvas * canvas () const
Public Member Functions inherited from QwtPanner
QwtPanner (QWidget
*parent)
virtual ˜QwtPanner ()
Destructor.
void setEnabled (bool)
En/disable the panner.
bool isEnabled () const
void setMouseButton (Qt::MouseButton,
Qt::KeyboardModifiers=Qt::NoModifier)
void getMouseButton (Qt::MouseButton &button,
Qt::KeyboardModifiers &) const
Get mouse button and modifiers used for panning.
void setAbortKey (int key,
Qt::KeyboardModifiers=Qt::NoModifier)
void getAbortKey (int &key, Qt::KeyboardModifiers
&) const
Get the abort key and modifiers.
void setCursor (const QCursor &)
const QCursor cursor () const
void setOrientations (Qt::Orientations)
Qt::Orientations orientations () const
Return the orientation, where panning is enabled.
bool isOrientationEnabled (Qt::Orientation) const
virtual bool eventFilter (QObject *, QEvent *)
override
Event filter.
virtual void widgetMousePressEvent (QMouseEvent *) override
Protected Member Functions inherited from QwtPanner
virtual void
widgetMouseReleaseEvent (QMouseEvent *)
virtual void widgetMouseMoveEvent (QMouseEvent *)
virtual void widgetKeyPressEvent (QKeyEvent *)
virtual void widgetKeyReleaseEvent (QKeyEvent *)
virtual void paintEvent (QPaintEvent *) override
Paint event.
virtual QBitmap contentsMask () const
Calculate a mask for the contents of the panned widget.
virtual QPixmap grab () const
Signals inherited from QwtPanner
void panned (int dx, int
dy)
void moved (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.
See also
QwtPolarMagnifier
Definition at line 30 of file qwt_polar_panner.h.
Create a plot panner for a polar plot canvas.
Definition at line 16 of file qwt_polar_panner.cpp.
Destructor.
Definition at line 24 of file qwt_polar_panner.cpp.
Returns
observed plot canvas
Definition at line 29 of file qwt_polar_panner.cpp.
Returns
observed plot canvas
Definition at line 35 of file qwt_polar_panner.cpp.
Adjust the zoomed area according to dx/dy
Parameters
dx Pixel offset in x
direction
dy Pixel offset in y direction
See also
QwtPanner::panned(), QwtPolarPlot::zoom()
Definition at line 68 of file qwt_polar_panner.cpp.
Returns
observed plot
Definition at line 41 of file qwt_polar_panner.cpp.
Returns
observed plot
Definition at line 51 of file qwt_polar_panner.cpp.
Block panning when the plot zoom factor is >= 1.0.
Parameters
event Mouse event
Reimplemented from QwtPanner.
Definition at line 108 of file qwt_polar_panner.cpp.
Generated automatically by Doxygen for Qwt User’s Guide from the source code.