Qwt Polar User's Guide  1.1.1
 All Classes Functions Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | List of all members
QwtPolarMagnifier Class Reference

QwtPolarMagnifier provides zooming, by magnifying in steps. More...

#include <qwt_polar_magnifier.h>

Inheritance diagram for QwtPolarMagnifier:
Inheritance graph
[legend]

Public Member Functions

 QwtPolarMagnifier (QwtPolarCanvas *)
 
virtual ~QwtPolarMagnifier ()
 Destructor.
 
void setUnzoomKey (int key, int modifiers)
 
void getUnzoomKey (int &key, int &modifiers) const
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
QwtPolarCanvascanvas ()
 
const QwtPolarCanvascanvas () const
 

Protected Member Functions

virtual void rescale (double factor)
 
void unzoom ()
 Unzoom the plot widget.
 
virtual void widgetKeyPressEvent (QKeyEvent *)
 

Detailed Description

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 & Destructor Documentation

QwtPolarMagnifier::QwtPolarMagnifier ( QwtPolarCanvas canvas)
explicit

Constructor

Parameters
canvasPlot canvas to be magnified

Member Function Documentation

QwtPolarCanvas * QwtPolarMagnifier::canvas ( )
Returns
Observed plot canvas
const QwtPolarCanvas * QwtPolarMagnifier::canvas ( ) const
Returns
Observed plot canvas
void QwtPolarMagnifier::getUnzoomKey ( int &  key,
int &  modifiers 
) const
Returns
Key, and modifiers that are used for unzooming
Parameters
keyKey code
modifiersModifiers
See Also
setUnzoomKey(), QwtPolarPlot::unzoom()
QwtPolarPlot * QwtPolarMagnifier::plot ( )
Returns
Observed plot
const QwtPolarPlot * QwtPolarMagnifier::plot ( ) const
Returns
observed plot
void QwtPolarMagnifier::rescale ( double  factor)
protectedvirtual

Zoom in/out the zoomed area

Parameters
factorA 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
keyKey code
modifiersModifiers
See Also
getUnzoomKey(), QwtPolarPlot::unzoom()
void QwtPolarMagnifier::widgetKeyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle a key press event for the observed widget.

Parameters
eventKey event