QwtPolarMagnifier(3)
π QwtPolarMagnifier(3) β like, the whole entire manual page, bestie
okay so first things first: this is a page from the Library Functions Manual, and it's all about QwtPolarMagnifier π β the little icon that lets you zoom a polar plot by magnifying in steps. Yes. Steps. Not vibes. Steps.
β¨ NAME β¨
QwtPolarMagnifier β QwtPolarMagnifier provides zooming, by magnifying in steps.
Like, that's literally it. That's the whole assignment. π
πΈ SYNOPSIS πΈ
#include <qwt_polar_magnifier.h>
Inherits QwtMagnifier. Family tree, but make it fashion. π
π«Ά Public Slots
virtual void rescale (double factor) overrideβ the zooming happens here, bestie.void unzoom ()β Unzoom the plot widget. One tap and we're back, no cap.
π Public Member Functions
QwtPolarMagnifier (QwtPolarCanvas *)β constructor, we'll get to it.virtual ~QwtPolarMagnifier ()β Destructor. RIP to her, she did her job.void setUnzoomKey (int key, int modifiers)β set the unzoom key combo.void getUnzoomKey (int &key, int &modifiers) constβ read back that unzoom key combo.QwtPolarPlot * plot ()β grab the plot.const QwtPolarPlot * plot () constβ grab the plot, but const. Same energy, different wrapper.QwtPolarCanvas * canvas ()β grab the canvas.const QwtPolarCanvas * canvas () constβ grab the canvas, const edition.
π Public Member Functions inherited from QwtMagnifier
QwtMagnifier (QWidget *)β constructor of the parent class.virtual ~QwtMagnifier ()β Destructor. Again. Everybody gets one.QWidget * parentWidget ()β the parent widget, non-const.const QWidget * parentWidget () constβ the parent widget, const.void setEnabled (bool)β En/disable the magnifier. On or off, no in-between.bool isEnabled () constβ is it enabled? enquiring minds.void setMouseFactor (double)β Change the mouse factor. πdouble mouseFactor () constβ read the mouse factor back.void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)β pick the mouse button (and, optionally, modifiers β default isQt::NoModifier).void getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) constβ read the mouse button settings back out.void setWheelFactor (double)β Change the wheel factor.double wheelFactor () constβ read the wheel factor back.void setWheelModifiers (Qt::KeyboardModifiers)β set the modifiers for the wheel.Qt::KeyboardModifiers wheelModifiers () constβ read the wheel modifiers back.void setKeyFactor (double)β Change the key factor.double keyFactor () constβ read the key factor back.void setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)β set the zoom-in key (modifiers default toQt::NoModifier).void getZoomInKey (int &key, Qt::KeyboardModifiers &) constβ Retrieve the settings of the zoom in key.void setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)β set the zoom-out key (modifiers default toQt::NoModifier).void getZoomOutKey (int &key, Qt::KeyboardModifiers &) constβ Retrieve the settings of the zoom out key.virtual bool eventFilter (QObject *, QEvent *) overrideβ Event filter. She's watching. π
π¦ Protected Member Functions
virtual void widgetKeyPressEvent (QKeyEvent *) overrideβ handle key presses on the observed widget.
π Protected Member Functions inherited from QwtMagnifier
virtual void rescale (double factor)=0β pure virtual, you must implement it. no skipping.virtual void widgetMousePressEvent (QMouseEvent *)β mouse press handler.virtual void widgetMouseReleaseEvent (QMouseEvent *)β mouse release handler.virtual void widgetMouseMoveEvent (QMouseEvent *)β mouse move handler.virtual void widgetWheelEvent (QWheelEvent *)β wheel handler.virtual void widgetKeyReleaseEvent (QKeyEvent *)β key release handler.
π§ Detailed Description π§
QwtPolarMagnifier provides zooming, by magnifying in steps.
So like β using QwtPlotMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction. Three whole ways, pick your fighter. β
Together with QwtPolarPanner it is possible to implement an individual navigation of the plot canvas. Cute duo, honestly. Main character energy from both of them. π«Ά
See also: QwtPolarPanner, QwtPolarPlot, QwtPolarCanvas
Definition at line 30 of file qwt_polar_magnifier.h.
π₯ Constructor & Destructor Documentation π₯
QwtPolarMagnifier::QwtPolarMagnifier (QwtPolarCanvas * canvas) [explicit]
Constructor. She's born. π
Parameters:
- canvas β Plot canvas to be magnified
Definition at line 34 of file qwt_polar_magnifier.cpp.
QwtPolarMagnifier::~QwtPolarMagnifier () [virtual]
Destructor. Saying goodbye. π
Definition at line 41 of file qwt_polar_magnifier.cpp.
π Member Function Documentation π
QwtPolarCanvas * QwtPolarMagnifier::canvas ()
Returns: Observed plot canvas
Definition at line 74 of file qwt_polar_magnifier.cpp.
const QwtPolarCanvas * QwtPolarMagnifier::canvas () const
Returns: Observed plot canvas
Definition at line 80 of file qwt_polar_magnifier.cpp.
void QwtPolarMagnifier::getUnzoomKey (int & key, int & modifiers) const
Return key, and modifiers that are used for unzooming. π
Parameters:
- key β Key code
- modifiers β Modifiers
See also: setUnzoomKey(), QwtPolarPlot::unzoom()
Definition at line 67 of file qwt_polar_magnifier.cpp.
QwtPolarPlot * QwtPolarMagnifier::plot ()
Returns: Observed plot
Definition at line 86 of file qwt_polar_magnifier.cpp.
const QwtPolarPlot * QwtPolarMagnifier::plot () const
Returns: observed plot
Definition at line 96 of file qwt_polar_magnifier.cpp.
void QwtPolarMagnifier::rescale (double factor) [override], [virtual], [slot]
Zoom in/out the zoomed area. πβ¨
Parameters:
- factor β A value <
1.0zooms in, a value >1.0zooms out.
ok so this is the important one: small number = zoom IN, big number = zoom OUT. Do not flip these, bestie, I am begging. π
Definition at line 129 of file qwt_polar_magnifier.cpp.
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()
Definition at line 54 of file qwt_polar_magnifier.cpp.
void QwtPolarMagnifier::unzoom () [slot]
Unzoom the plot widget. Snap back to reality, ope there goes gravity. π
Definition at line 157 of file qwt_polar_magnifier.cpp.
void QwtPolarMagnifier::widgetKeyPressEvent (QKeyEvent * event) [override], [protected], [virtual]
Handle a key press event for the observed widget. β¨οΈ
Parameters:
- event β Key event
Reimplemented from QwtMagnifier.
Definition at line 110 of file qwt_polar_magnifier.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human, not a vibe, just Doxygen doing its little thing. π€π
<div align="center">β π β</div>
and that's the whole page, bestie! sign-off time: this lil masterpiece came from the Qwt User's Guide docs, page QwtPolarMagnifier(3), born from the source code by way of Doxygen. slay, read it, use it, periodt. π
β¨π¦
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms