|
Qwt Polar User's Guide
1.0.1
|
#include <qwt_polar_magnifier.h>
Public Member Functions | |
| QwtPolarMagnifier (QwtPolarCanvas *) | |
| virtual | ~QwtPolarMagnifier () |
| 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 |
Protected Member Functions | |
| virtual void | rescale (double factor) |
| void | unzoom () |
| virtual void | widgetKeyPressEvent (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.
| QwtPolarMagnifier::QwtPolarMagnifier | ( | QwtPolarCanvas * | canvas | ) | [explicit] |
Constructor
| canvas | Plot canvas to be magnified |
| QwtPolarMagnifier::~QwtPolarMagnifier | ( | ) | [virtual] |
Destructor.
| QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) |
| const QwtPolarCanvas * QwtPolarMagnifier::canvas | ( | ) | const |
| void QwtPolarMagnifier::getUnzoomKey | ( | int & | key, |
| int & | modifiers | ||
| ) | const |
| key | Key code |
| modifiers | Modifiers |
| QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) |
| const QwtPolarPlot * QwtPolarMagnifier::plot | ( | ) | const |
| void QwtPolarMagnifier::rescale | ( | double | factor | ) | [protected, virtual] |
Zoom in/out the zoomed area
| factor | A value < 1.0 zooms in, a value > 1.0 zooms out. |
| 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 |
| void QwtPolarMagnifier::unzoom | ( | ) | [protected] |
Unzoom the plot widget.
| void QwtPolarMagnifier::widgetKeyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Handle a key press event for the observed widget.
| event | Key event |
1.7.5.1