QwtPolarPanner provides panning of a polar plot canvas.
More...
#include <qwt_polar_cache_panner.h>
|
| virtual void | movePlot (int dx, int dy) |
| | Adjust the zoomed area according to dx/dy.
|
| |
|
|
| QwtPolarCachePanner (QwtPolarCanvas *) |
| | Create a plot panner for a polar plot canvas.
|
| |
|
virtual | ~QwtPolarCachePanner () |
| | Destructor.
|
| |
| QwtPolarPlot * | plot () |
| |
| const QwtPolarPlot * | plot () const |
| |
| QwtPolarCanvas * | canvas () |
| |
| const QwtPolarCanvas * | canvas () const |
| |
| | QwtCachePanner (QWidget *parent) |
| | Creates an panner that is enabled for the left mouse button.
|
| |
|
virtual | ~QwtCachePanner () |
| | Destructor.
|
| |
| void | setEnabled (bool) |
| | En/disable the panner.
|
| |
| bool | isEnabled () const |
| |
|
void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Change the mouse button and modifiers used for panning The defaults are Qt::LeftButton and 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) |
| | Change the abort key The defaults are Qt::Key_Escape and Qt::NoModifiers.
|
| |
|
void | getAbortKey (int &key, Qt::KeyboardModifiers &) const |
| | Get the abort key and modifiers.
|
| |
| void | setCursor (const QCursor &) |
| | Change the cursor, that is active while panning The default is the cursor of the parent widget.
|
| |
| const QCursor | cursor () const |
| |
| void | setOrientations (Qt::Orientations) |
| | Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal | Qt::Vertical.
|
| |
|
Qt::Orientations | orientations () const |
| | Return the orientation, where panning is enabled.
|
| |
| bool | isOrientationEnabled (Qt::Orientation) const |
| |
| virtual bool | eventFilter (QObject *, QEvent *) QWT_OVERRIDE |
| | Event filter.
|
| |
|
| virtual void | widgetMousePressEvent (QMouseEvent *) QWT_OVERRIDE |
| | Block panning when the plot zoom factor is >= 1.0.
|
| |
| virtual void | widgetMouseReleaseEvent (QMouseEvent *) |
| | Handle a mouse release event for the observed widget.
|
| |
| virtual void | widgetMouseMoveEvent (QMouseEvent *) |
| | Handle a mouse move event for the observed widget.
|
| |
| virtual void | widgetKeyPressEvent (QKeyEvent *) |
| | Handle a key press event for the observed widget.
|
| |
| virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
| | Handle a key release event for the observed widget.
|
| |
| virtual void | paintEvent (QPaintEvent *) QWT_OVERRIDE |
| | Paint event.
|
| |
| virtual QBitmap | contentsMask () const |
| | Calculate a mask for the contents of the panned widget.
|
| |
| virtual QPixmap | grab () const |
| | Grab the widget into a pixmap.
|
| |
|
| void | panned (int dx, int dy) |
| | Signal emitted, when panning is done.
|
| |
| void | moved (int dx, int dy) |
| | Signal emitted, while the widget moved, but panning is not finished.
|
| |
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
◆ canvas() [1/2]
- Returns
- observed plot canvas
◆ canvas() [2/2]
- Returns
- observed plot canvas
◆ movePlot
| void QwtPolarCachePanner::movePlot |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
virtualslot |
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()
◆ plot() [1/2]
◆ plot() [2/2]
◆ widgetMousePressEvent()
| void QwtPolarCachePanner::widgetMousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Block panning when the plot zoom factor is >= 1.0.
- Parameters
-
Reimplemented from QwtCachePanner.
The documentation for this class was generated from the following files: