QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
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) override
 Rescale the plot.
 
void unzoom ()
 Unzoom the plot.
 

Public Member Functions

 QwtPolarMagnifier (QwtPolarCanvas *)
 Constructor.
 
virtual ~QwtPolarMagnifier ()
 Destructor.
 
void setUnzoomKey (int key, int modifiers)
 Set the unzoom key.
 
void getUnzoomKey (int &key, int &modifiers) const
 Get the unzoom key.
 
QwtPolarPlotplot ()
 Get the plot.
 
const QwtPolarPlotplot () const
 Get the plot (const version)
 
QwtPolarCanvascanvas ()
 Get the canvas.
 
const QwtPolarCanvascanvas () const
 Get the canvas (const version)
 
- Public Member Functions inherited from QwtMagnifier
 QwtMagnifier (QWidget *)
 Constructor.
 
virtual ~QwtMagnifier ()
 Destructor .
 
QWidget * parentWidget ()
 Return the parent widget where the rescaling happens.
 
const QWidget * parentWidget () const
 Return the parent widget where the rescaling happens.
 
void setEnabled (bool)
 En/disable the magnifier.
 
bool isEnabled () const
 Return whether the magnifier is enabled.
 
void setMouseFactor (double)
 Change the mouse factor.
 
double mouseFactor () const
 Return the mouse factor.
 
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
 Get the mouse button and modifiers used for zooming.
 
void setWheelFactor (double)
 Change the wheel factor.
 
double wheelFactor () const
 Return the wheel factor.
 
void setWheelModifiers (Qt::KeyboardModifiers)
 Assign keyboard modifiers for zooming in/out using the wheel.
 
Qt::KeyboardModifiers wheelModifiers () const
 Return the wheel modifiers.
 
void setKeyFactor (double)
 Change the key factor.
 
double keyFactor () const
 Return the key factor.
 
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 *) override
 Event filter.
 

Protected Member Functions

virtual void widgetKeyPressEvent (QKeyEvent *) override
 Handle key press events.
 
- 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.

Constructor & Destructor Documentation

◆ QwtPolarMagnifier()

QwtPolarMagnifier::QwtPolarMagnifier ( QwtPolarCanvas canvas)
explicit

Constructor.

◆ ~QwtPolarMagnifier()

QwtPolarMagnifier::~QwtPolarMagnifier ( )
virtual

Destructor.

Destructor

.

Member Function Documentation

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarMagnifier::canvas ( )

Get the canvas.

Get the observed plot canvas.

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarMagnifier::canvas ( ) const

Get the canvas (const version)

Get the observed plot canvas (const version)

◆ getUnzoomKey()

void QwtPolarMagnifier::getUnzoomKey ( int &  key,
int &  modifiers 
) const

Get the unzoom key.

Get the key and modifiers that are used for unzooming.

◆ plot() [1/2]

QwtPolarPlot * QwtPolarMagnifier::plot ( )

Get the plot.

Get the observed plot.

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarMagnifier::plot ( ) const

Get the plot (const version)

Get the observed plot (const version)

◆ rescale

void QwtPolarMagnifier::rescale ( double  factor)
overridevirtualslot

Rescale the plot.

Zoom in/out the zoomed area.

◆ setUnzoomKey()

void QwtPolarMagnifier::setUnzoomKey ( int  key,
int  modifiers 
)

Set the unzoom key.

Assign key and modifiers that are used for unzooming.

◆ unzoom

void QwtPolarMagnifier::unzoom ( )
slot

Unzoom the plot.

Unzoom the plot widget

.

◆ widgetKeyPressEvent()

void QwtPolarMagnifier::widgetKeyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Handle key press events.

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: