QwtPolarMagnifier provides zooming, by magnifying in steps.
More...
#include <qwt_polar_magnifier.h>
|
| virtual void | rescale (double factor) QWT_OVERRIDE |
| | Zoom in/out the zoomed area.
|
| |
|
void | unzoom () |
| | Unzoom the plot widget.
|
| |
|
| | QwtPolarMagnifier (QwtPolarCanvas *) |
| | Constructor.
|
| |
|
virtual | ~QwtPolarMagnifier () |
| | Destructor.
|
| |
| void | setUnzoomKey (int key, int modifiers) |
| | Assign key and modifiers, that are used for unzooming The default combination is Qt::Key_Home + Qt::NoModifier.
|
| |
| void | getUnzoomKey (int &key, int &modifiers) const |
| |
| QwtPolarPlot * | plot () |
| |
| const QwtPolarPlot * | plot () const |
| |
| QwtPolarCanvas * | canvas () |
| |
| const QwtPolarCanvas * | canvas () const |
| |
| | QwtMagnifier (QWidget *) |
| | Constructor.
|
| |
|
virtual | ~QwtMagnifier () |
| | Destructor.
|
| |
| QWidget * | parentWidget () |
| |
| const QWidget * | parentWidget () const |
| |
| void | setEnabled (bool) |
| | En/disable the magnifier.
|
| |
| bool | isEnabled () const |
| |
| void | setMouseFactor (double) |
| | Change the mouse factor.
|
| |
| double | mouseFactor () const |
| |
| void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Assign the mouse button, that is used for zooming in/out.
|
| |
| void | getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const |
| |
| void | setWheelFactor (double) |
| | Change the wheel factor.
|
| |
| double | wheelFactor () const |
| |
| void | setWheelModifiers (Qt::KeyboardModifiers) |
| | Assign keyboard modifiers for zooming in/out using the wheel.
|
| |
| Qt::KeyboardModifiers | wheelModifiers () const |
| |
| void | setKeyFactor (double) |
| | Change the key factor.
|
| |
| double | keyFactor () const |
| |
| void | setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Assign the key, that is used for zooming in.
|
| |
| void | getZoomInKey (int &key, Qt::KeyboardModifiers &) const |
| | Retrieve the settings of the zoom in key.
|
| |
| void | setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Assign the key, that is used for zooming out.
|
| |
| void | getZoomOutKey (int &key, Qt::KeyboardModifiers &) const |
| | Retrieve the settings of the zoom out key.
|
| |
| virtual bool | eventFilter (QObject *, QEvent *) QWT_OVERRIDE |
| | Event filter.
|
| |
|
| virtual void | widgetKeyPressEvent (QKeyEvent *) QWT_OVERRIDE |
| | Handle a key press event for the observed widget.
|
| |
| virtual void | rescale (double factor)=0 |
| | Rescale the parent widget.
|
| |
| virtual void | widgetMousePressEvent (QMouseEvent *) |
| | Handle a mouse press event for the observed widget.
|
| |
| 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 | widgetWheelEvent (QWheelEvent *) |
| | Handle a wheel event for the observed widget.
|
| |
| virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
| | Handle a key release event for the observed widget.
|
| |
QwtPolarMagnifier provides zooming, by magnifying in steps.
Using QwtPlotMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.
Together with QwtPolarPanner it is possible to implement an individual navigation of the plot canvas.
- See also
- QwtPolarPanner, QwtPolarPlot, QwtPolarCanvas
◆ QwtPolarMagnifier()
Constructor.
- Parameters
-
| canvas | Plot canvas to be magnified |
◆ canvas() [1/2]
- Returns
- Observed plot canvas
◆ canvas() [2/2]
- Returns
- Observed plot canvas
◆ getUnzoomKey()
| void QwtPolarMagnifier::getUnzoomKey |
( |
int & |
key, |
|
|
int & |
modifiers |
|
) |
| const |
◆ plot() [1/2]
◆ plot() [2/2]
◆ rescale
| void QwtPolarMagnifier::rescale |
( |
double |
factor | ) |
|
|
virtualslot |
Zoom in/out the zoomed area.
- Parameters
-
| factor | A value < 1.0 zooms in, a value > 1.0 zooms out. |
◆ setUnzoomKey()
| void QwtPolarMagnifier::setUnzoomKey |
( |
int |
key, |
|
|
int |
modifiers |
|
) |
| |
Assign key and modifiers, that are used for unzooming The default combination is Qt::Key_Home + Qt::NoModifier.
- Parameters
-
| key | Key code |
| modifiers | Modifiers |
- See also
- getUnzoomKey(), QwtPolarPlot::unzoom()
◆ widgetKeyPressEvent()
| void QwtPolarMagnifier::widgetKeyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Handle a key press event for the observed widget.
- Parameters
-
Reimplemented from QwtMagnifier.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/qwt_polar_magnifier.h
- /home/runner/work/QWT/QWT/src/qwt_polar_magnifier.cpp