QWT 7.0.1
Loading...
Searching...
No Matches
Classes | Public Slots | 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:
QwtMagnifier

Classes

class  PrivateData
 

Public Slots

virtual void rescale (double factor) QWT_OVERRIDE
 Zoom in/out the zoomed area.
 
void unzoom ()
 Unzoom the plot widget.
 

Public Member Functions

 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
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
QwtPolarCanvascanvas ()
 
const QwtPolarCanvascanvas () const
 
- Public Member Functions inherited from QwtMagnifier
 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.
 

Protected Member Functions

virtual void widgetKeyPressEvent (QKeyEvent *) QWT_OVERRIDE
 Handle a key press event for the observed widget.
 
- Protected Member Functions inherited from QwtMagnifier
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.
 

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::QwtPolarMagnifier ( QwtPolarCanvas canvas)
explicit

Constructor.

Parameters
canvasPlot canvas to be magnified

Member Function Documentation

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarMagnifier::canvas ( )
Returns
Observed plot canvas

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarMagnifier::canvas ( ) const
Returns
Observed plot canvas

◆ getUnzoomKey()

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()

◆ plot() [1/2]

QwtPolarPlot * QwtPolarMagnifier::plot ( )
Returns
Observed plot

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarMagnifier::plot ( ) const
Returns
observed plot

◆ rescale

void QwtPolarMagnifier::rescale ( double  factor)
virtualslot

Zoom in/out the zoomed area.

Parameters
factorA 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
keyKey code
modifiersModifiers
See also
getUnzoomKey(), QwtPolarPlot::unzoom()

◆ widgetKeyPressEvent()

void QwtPolarMagnifier::widgetKeyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle a key press event for the observed widget.

Parameters
eventKey event

Reimplemented from QwtMagnifier.


The documentation for this class was generated from the following files: