|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
QwtPolarCachePanner provides panning of a polar plot canvas. More...
#include <qwt_polar_cache_panner.h>
Public Slots | |
| virtual void | movePlot (int dx, int dy) |
| Move the plot. | |
Public Member Functions | |
| QwtPolarCachePanner (QwtPolarCanvas *) | |
| Constructor. | |
| virtual | ~QwtPolarCachePanner () |
| Destructor. | |
| QwtPolarPlot * | plot () |
| Get the plot. | |
| const QwtPolarPlot * | plot () const |
| Get the plot (const version) | |
| QwtPolarCanvas * | canvas () |
| Get the canvas. | |
| const QwtPolarCanvas * | canvas () const |
| Get the canvas (const version) | |
Public Member Functions inherited from QwtCachePanner | |
| QwtCachePanner (QWidget *parent) | |
| Creates a panner that is enabled for the left mouse button. | |
| virtual | ~QwtCachePanner () |
| Destructor . | |
| void | setEnabled (bool) |
| En/disable the panner. | |
| bool | isEnabled () const |
| Return whether the panner is enabled. | |
| void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| Change the mouse button and modifiers used for panning. | |
| 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. | |
| 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. | |
| const QCursor | cursor () const |
| Return the cursor that is active while panning. | |
| void | setOrientations (Qt::Orientations) |
| Set the orientations where panning is enabled. | |
| Qt::Orientations | orientations () const |
| Return the orientation where panning is enabled. | |
| bool | isOrientationEnabled (Qt::Orientation) const |
| Check if an orientation is enabled. | |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| Event filter. | |
Protected Member Functions | |
| virtual void | widgetMousePressEvent (QMouseEvent *) override |
| Handle mouse press events. | |
Protected Member Functions inherited from QwtCachePanner | |
| 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 *) 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. | |
Additional Inherited Members | |
Signals inherited from QwtCachePanner | |
| 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. | |
QwtPolarCachePanner provides panning of a polar plot canvas.
|
explicit |
Constructor.
Create a plot panner for a polar plot canvas.
|
virtual |
Destructor.
Destructor
.
| QwtPolarCanvas * QwtPolarCachePanner::canvas | ( | ) |
Get the canvas.
Get the observed plot canvas.
| const QwtPolarCanvas * QwtPolarCachePanner::canvas | ( | ) | const |
Get the canvas (const version)
Get the observed plot canvas (const version)
|
virtualslot |
Move the plot.
Adjust the zoomed area according to dx/dy.
| QwtPolarPlot * QwtPolarCachePanner::plot | ( | ) |
Get the plot.
Get the observed plot.
| const QwtPolarPlot * QwtPolarCachePanner::plot | ( | ) | const |
Get the plot (const version)
Get the observed plot (const version)
|
overrideprotectedvirtual |
Handle mouse press events.
Block panning when the plot zoom factor is >= 1.0.
| event | Mouse event |
Reimplemented from QwtCachePanner.