QwtPlotMagnifier(3)
π QwtPlotMagnifier π
okay bestie, buckle up β this one's from the Qwt User's Guide and it's genuinely one of the cutest little classes in the whole toolkit π
β¨ NAME β¨
QwtPlotMagnifier β the zoom-in-steps icon of the Qwt family, no cap π
πΈ SYNOPSIS πΈ
#include <qwt_plot_magnifier.h>
Inherits QwtMagnifier. That's the whole family tree, she's a simple girl π¦
π«Ά Public Member Functions π«Ά
Here's every single one, and yes we're listing all of them because that's the vibe:
QwtPlotMagnifier (QwtPlotCanvas *)β the constructor, she's born from a canvas π«virtual ~QwtPlotMagnifier ()β the destructor, virtual, she leaves the group chat gracefully πQwtPlotCanvas * canvas ()β hands you the canvas (non-const version) π¨const QwtPlotCanvas * canvas () constβ same canvas but const, she's on her calm behavior π§bool isAxisEnabled (int axis) constβ asks "is this axis enabled?" returns aboolπQwtPlot * plot ()β gives you the plot back πconst QwtPlot * plot () constβ the const plot, still iconic β¨void setAxisEnabled (int axis, bool on)β flips an axis on or off, returns nothing ποΈ
π Protected Member Functions π
virtual void rescale (double factor)β the protected, virtual zooming brain of the whole operation π§ π₯
π Detailed Description π
QwtPlotMagnifier provides zooming, by magnifying in steps. That's it, that's her whole job, and she ate. π
So 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 to do the thing, main character energy fr fr π
And the way that she pairs? Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement individual and powerful navigation of the plot canvas. That trio is a girl group and they're on tour π«Άβ¨
See also:QwtPlotZoomer,QwtPlotPanner,QwtPlot
π Constructor & Destructor Documentation π
QwtPlotMagnifier::QwtPlotMagnifier (QwtPlotCanvas *canvas) [explicit]
Constructor, bestie. She exists now. π¦
Parameters:
canvasβ Plot canvas to be magnified π
π Member Function Documentation π
bool QwtPlotMagnifier::isAxisEnabled (intaxis) const
Test if an axis is enabled. Just a lil vibe check for your axis, ngl π§
Parameters:
axisβ Axis, seeQwtPlot::Axis
Returns:
- True, if the axis is enabled β
See also:
setAxisEnabled()
void QwtPlotMagnifier::rescale (doublefactor) [protected], [virtual]
Zoom in/out the axes scales. This is where the actual magic happens, and she's protected about it π
Parameters:
factorβ A value < 1.0 zooms in, a value > 1.0 zooms out. Read that twice bestie, it's backwards from what your gut says π
Implements QwtMagnifier.
void QwtPlotMagnifier::setAxisEnabled (intaxis, boolon)
En/Disable an axis. Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged. So the enabled ones follow along and the rest are minding their own business πΆβοΈβ¨
Parameters:
axisβ Axis, seeQwtPlot::Axisonβ On/Off ποΈ
See also:
isAxisEnabled()
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human, just a robot doing her lil thing π€π
and that's the whole page, bestie β Version 5.2.3, dated Tue Nov 20 2012, periodt π β¨
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms