Qwt User's Guide 6.3.0
|
QwtPolarMagnifier provides zooming, by magnifying in steps. More...
#include <qwt_polar_magnifier.h>
Public Slots | |
virtual void | rescale (double factor) override |
void | unzoom () |
Unzoom the plot widget. | |
Public Member Functions | |
QwtPolarMagnifier (QwtPolarCanvas *) | |
virtual | ~QwtPolarMagnifier () |
Destructor. | |
void | setUnzoomKey (int key, int modifiers) |
void | getUnzoomKey (int &key, int &modifiers) const |
QwtPolarPlot * | plot () |
const QwtPolarPlot * | plot () const |
QwtPolarCanvas * | canvas () |
const QwtPolarCanvas * | canvas () const |
Public Member Functions inherited from QwtMagnifier | |
QwtMagnifier (QWidget *) | |
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) |
void | getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const |
void | setWheelFactor (double) |
Change the wheel factor. | |
double | wheelFactor () const |
void | setWheelModifiers (Qt::KeyboardModifiers) |
Qt::KeyboardModifiers | wheelModifiers () const |
void | setKeyFactor (double) |
Change the key factor. | |
double | keyFactor () const |
void | setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
void | getZoomInKey (int &key, Qt::KeyboardModifiers &) const |
Retrieve the settings of the zoom in key. | |
void | setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
void | getZoomOutKey (int &key, Qt::KeyboardModifiers &) const |
Retrieve the settings of the zoom out key. | |
virtual bool | eventFilter (QObject *, QEvent *) override |
Event filter. | |
Protected Member Functions | |
virtual void | widgetKeyPressEvent (QKeyEvent *) override |
Protected Member Functions inherited from QwtMagnifier | |
virtual void | rescale (double factor)=0 |
virtual void | widgetMousePressEvent (QMouseEvent *) |
virtual void | widgetMouseReleaseEvent (QMouseEvent *) |
virtual void | widgetMouseMoveEvent (QMouseEvent *) |
virtual void | widgetWheelEvent (QWheelEvent *) |
virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
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.
Definition at line 30 of file qwt_polar_magnifier.h.
|
explicit |
Constructor
canvas | Plot canvas to be magnified |
Definition at line 34 of file qwt_polar_magnifier.cpp.
|
virtual |
Destructor.
Definition at line 41 of file qwt_polar_magnifier.cpp.
QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) |
Definition at line 74 of file qwt_polar_magnifier.cpp.
const QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) | const |
Definition at line 80 of file qwt_polar_magnifier.cpp.
void QwtPolarMagnifier::getUnzoomKey | ( | int & | key, |
int & | modifiers ) const |
Return key, and modifiers that are used for unzooming
key | Key code |
modifiers | Modifiers |
Definition at line 67 of file qwt_polar_magnifier.cpp.
QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) |
Definition at line 86 of file qwt_polar_magnifier.cpp.
const QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) | const |
Definition at line 96 of file qwt_polar_magnifier.cpp.
|
overridevirtualslot |
Zoom in/out the zoomed area
factor | A value < 1.0 zooms in, a value > 1.0 zooms out. |
Definition at line 129 of file qwt_polar_magnifier.cpp.
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.
key | Key code |
modifiers | Modifiers |
Definition at line 54 of file qwt_polar_magnifier.cpp.
|
slot |
Unzoom the plot widget.
Definition at line 157 of file qwt_polar_magnifier.cpp.
|
overrideprotectedvirtual |
Handle a key press event for the observed widget.
event | Key event |
Reimplemented from QwtMagnifier.
Definition at line 110 of file qwt_polar_magnifier.cpp.