QwtPolarMagnifier provides zooming, by magnifying in steps.
More...
#include <qwt_polar_magnifier.h>
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
Constructor
- Parameters
-
canvas | Plot canvas to be magnified |
- Returns
- Observed plot canvas
- Returns
- Observed plot canvas
void QwtPolarMagnifier::getUnzoomKey |
( |
int & |
key, |
|
|
int & |
modifiers |
|
) |
| const |
void QwtPolarMagnifier::rescale |
( |
double |
factor | ) |
|
|
protectedvirtual |
Zoom in/out the zoomed area
- Parameters
-
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.
- Parameters
-
key | Key code |
modifiers | Modifiers |
- See Also
- getUnzoomKey(), QwtPolarPlot::unzoom()
void QwtPolarMagnifier::widgetKeyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Handle a key press event for the observed widget.
- Parameters
-