QwtPlotMagnifier(3)
QwtPlotMagnifier(3) π β Library Functions Manual β¨
πΈ NAME πΈ
QwtPlotMagnifier β QwtPlotMagnifier provides zooming, by magnifying in steps. Bestie, it's giving "zoom in/out in cute little steps" energy π
β¨ SYNOPSIS β¨
Okay so first, the include vibe:
#include <qwt_plot_magnifier.h>
Inherits QwtMagnifier.
π Public Slots π
virtual void rescale (double factor) overrideβ the public slot that rescales stuff; details are lower down, iykyk.
π Public Member Functions π
QwtPlotMagnifier (QWidget *)β constructor. Canvas incoming β¨virtual ~QwtPlotMagnifier ()β destructor.void setAxisEnabled (QwtAxisId, bool on)β en/disable an axis.bool isAxisEnabled (QwtAxisId) constβ checks whether an axis is enabled.QWidget * canvas ()β return observed plot canvas.const QWidget * canvas () constβ return Observed plot canvas.QwtPlot * plot ()β return plot widget, containing the observed plot canvas.const QwtPlot * plot () constβ return plot widget, containing the observed plot canvas.
π§ Public Member Functions inherited from QwtMagnifier π§
QwtMagnifier (QWidget *)virtual ~QwtMagnifier ()β destructor.QWidget * parentWidget ()const QWidget * parentWidget () constvoid setEnabled (bool)β en/disable the magnifier.bool isEnabled () constvoid setMouseFactor (double)β change the mouse factor.double mouseFactor () constvoid setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)void getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) constvoid setWheelFactor (double)β change the wheel factor.double wheelFactor () constvoid setWheelModifiers (Qt::KeyboardModifiers)Qt::KeyboardModifiers wheelModifiers () constvoid setKeyFactor (double)β change the key factor.double keyFactor () constvoid setZoomInKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)void getZoomInKey (int &key, Qt::KeyboardModifiers &) constβ retrieve the settings of the zoom in key.void setZoomOutKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)void getZoomOutKey (int &key, Qt::KeyboardModifiers &) constβ retrieve the settings of the zoom out key.virtual bool eventFilter (QObject *, QEvent *) overrideβ event filter.
π Additional Inherited Members π
π‘οΈ Protected Member Functions inherited from QwtMagnifier π‘οΈ
virtual void rescale (double factor)=0virtual void widgetMousePressEvent (QMouseEvent *)virtual void widgetMouseReleaseEvent (QMouseEvent *)virtual void widgetMouseMoveEvent (QMouseEvent *)virtual void widgetWheelEvent (QWheelEvent *)virtual void widgetKeyPressEvent (QKeyEvent *)virtual void widgetKeyReleaseEvent (QKeyEvent *)
π Detailed Description π
Okay so QwtPlotMagnifier provides zooming, by magnifying in steps. Literally its whole main character moment π
Using QwtPlotMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction. No cap, that's the vibe check.
Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement individual and powerful navigation of the plot canvas. Obsessed with the plot navigation potential, fr fr π¦
π« See also π«
QwtPlotZoomerQwtPlotPannerQwtPlot
Definition at line 30 of file qwt_plot_magnifier.h.
π Constructor & Destructor Documentation π
QwtPlotMagnifier::QwtPlotMagnifier (QWidget * canvas) [explicit]
Constructor energy β¨
Parameters
- canvas β Plot canvas to be magnified
Definition at line 30 of file qwt_plot_magnifier.cpp.
QwtPlotMagnifier::~QwtPlotMagnifier () [virtual]
Destructor. Bye bestie π
Definition at line 37 of file qwt_plot_magnifier.cpp.
π¦ Member Function Documentation π¦
QWidget * QwtPlotMagnifier::canvas ()
Return observed plot canvas.
Definition at line 76 of file qwt_plot_magnifier.cpp.
const QWidget * QwtPlotMagnifier::canvas () const
Return Observed plot canvas.
Definition at line 82 of file qwt_plot_magnifier.cpp.
bool QwtPlotMagnifier::isAxisEnabled (QwtAxisId axisId) const
Test if an axis is enabled.
Parameters
- axisId β Axis
Returns
- True, if the axis is enabled
See also: setAxisEnabled()
Definition at line 67 of file qwt_plot_magnifier.cpp.
QwtPlot * QwtPlotMagnifier::plot ()
Return plot widget, containing the observed plot canvas.
Definition at line 88 of file qwt_plot_magnifier.cpp.
const QwtPlot * QwtPlotMagnifier::plot () const
Return plot widget, containing the observed plot canvas.
Definition at line 98 of file qwt_plot_magnifier.cpp.
void QwtPlotMagnifier::rescale (double factor) [override], [virtual], [slot]
Zoom in/out the axes scales.
Parameters
- factor β A value < 1.0 zooms in, a value > 1.0 zooms out.
Definition at line 111 of file qwt_plot_magnifier.cpp.
void QwtPlotMagnifier::setAxisEnabled (QwtAxisId axisId, bool on)
En/Disable an axis. Only Axes that are enabled will be zoomed. All other axes will remain unchanged.
Heads up bestie: only the enabled axes get the zoom treatment β the rest stay exactly where they are, periodt π
Parameters
- axisId β Axis
- on β On/Off
See also: isAxisEnabled()
Definition at line 53 of file qwt_plot_magnifier.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Doxygen ate, honestly β¨
Source/version: Qwt User's Guide; footer stamp: QwtPlotMagnifier(3); date: not shown on this page, bestie ππ 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