Classes | Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | 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]

Classes

class  PrivateData
 

Public Slots

virtual void rescale (double factor) QWT_OVERRIDE
 
void unzoom ()
 Unzoom the plot widget. More...
 

Public Member Functions

QwtPolarCanvascanvas ()
 
const QwtPolarCanvascanvas () const
 
void getUnzoomKey (int &key, int &modifiers) const
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
 QwtPolarMagnifier (QwtPolarCanvas *)
 
void setUnzoomKey (int key, int modifiers)
 
virtual ~QwtPolarMagnifier ()
 Destructor. More...
 
- Public Member Functions inherited from QwtMagnifier
virtual bool eventFilter (QObject *, QEvent *) QWT_OVERRIDE
 Event filter. More...
 
void getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const
 
void getZoomInKey (int &key, Qt::KeyboardModifiers &) const
 Retrieve the settings of the zoom in key. More...
 
void getZoomOutKey (int &key, Qt::KeyboardModifiers &) const
 Retrieve the settings of the zoom out key. More...
 
bool isEnabled () const
 
double keyFactor () const
 
double mouseFactor () const
 
QWidget * parentWidget ()
 
const QWidget * parentWidget () const
 
 QwtMagnifier (QWidget *)
 
void setEnabled (bool)
 En/disable the magnifier. More...
 
void setKeyFactor (double)
 Change the key factor. More...
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 
void setMouseFactor (double)
 Change the mouse factor. More...
 
void setWheelFactor (double)
 Change the wheel factor. More...
 
void setWheelModifiers (Qt::KeyboardModifiers)
 
void setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 
void setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 
double wheelFactor () const
 
Qt::KeyboardModifiers wheelModifiers () const
 
virtual ~QwtMagnifier ()
 Destructor. More...
 

Protected Member Functions

virtual void widgetKeyPressEvent (QKeyEvent *) QWT_OVERRIDE
 
- Protected Member Functions inherited from QwtMagnifier
virtual void rescale (double factor)=0
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 
virtual void widgetMouseMoveEvent (QMouseEvent *)
 
virtual void widgetMousePressEvent (QMouseEvent *)
 
virtual void widgetMouseReleaseEvent (QMouseEvent *)
 
virtual void widgetWheelEvent (QWheelEvent *)
 

Private Attributes

PrivateDatam_data
 

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

Definition at line 30 of file qwt_polar_magnifier.h.

Constructor & Destructor Documentation

◆ QwtPolarMagnifier()

QwtPolarMagnifier::QwtPolarMagnifier ( QwtPolarCanvas canvas)
explicit

Constructor

Parameters
canvasPlot canvas to be magnified

Definition at line 34 of file qwt_polar_magnifier.cpp.

◆ ~QwtPolarMagnifier()

QwtPolarMagnifier::~QwtPolarMagnifier ( )
virtual

Destructor.

Definition at line 41 of file qwt_polar_magnifier.cpp.

Member Function Documentation

◆ canvas() [1/2]

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

Definition at line 74 of file qwt_polar_magnifier.cpp.

◆ canvas() [2/2]

const QwtPolarCanvas* QwtPolarMagnifier::canvas ( ) const

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

Definition at line 67 of file qwt_polar_magnifier.cpp.

◆ plot() [1/2]

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

Definition at line 86 of file qwt_polar_magnifier.cpp.

◆ plot() [2/2]

const QwtPolarPlot* QwtPolarMagnifier::plot ( ) const

◆ 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.

Definition at line 129 of file qwt_polar_magnifier.cpp.

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

Definition at line 54 of file qwt_polar_magnifier.cpp.

◆ unzoom

void QwtPolarMagnifier::unzoom ( )
slot

Unzoom the plot widget.

Definition at line 157 of file qwt_polar_magnifier.cpp.

◆ widgetKeyPressEvent()

void QwtPolarMagnifier::widgetKeyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle a key press event for the observed widget.

Parameters
eventKey event

Reimplemented from QwtMagnifier.

Definition at line 110 of file qwt_polar_magnifier.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtPolarMagnifier::m_data
private

Definition at line 55 of file qwt_polar_magnifier.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51