QwtPlotPanner(3)
π QwtPlotPanner π
okay bestie, we're in the Qwt User's Guide, and this right here is section 3 of the manual β the panner page. it's giving "small class, big main character energy." let's go π
NAME β¨
QwtPlotPanner β and honestly? that's the whole name section. Doxygen left the little description after the dash completely blank. no cap, it's just vibes and a hyphen. but don't worry, we get the full tea in the Detailed Description below π«Ά
SYNOPSIS πΈ
#include <qwt_plot_panner.h>
Inherits QwtPanner. so yeah, it's a glow-up of QwtPanner, not a fresh start β¨
Public Member Functions π
QwtPlotPanner (QwtPlotCanvas *)
virtual ~QwtPlotPanner ()
QwtPlotCanvas * canvas ()
const QwtPlotCanvas * canvas () const
bool isAxisEnabled (int axis) const
QwtPlot * plot ()
const QwtPlot * plot () const
void setAxisEnabled (int axis, bool on)
look at that overloaded canvas() and plot() β const version and non-const version, iconic behavior, we love a class that respects const-correctness π
Protected Slots π
virtual void moveCanvas (int dx, int dy)
protected, virtual, and a slot. triple threat. she contains multitudes.
Additional Inherited Members π
there's a whole pile of extra members it inherits from QwtPanner too β this page isn't gonna list them all, so if you need the full family tree you know where to look.
Detailed Description π
QwtPlotPanner provides panning of a plot canvas. that's the whole job, and she does it gorgeously π
here's the actual mechanics: QwtPlotPanner is a panner for a QwtPlotCanvas, and what makes it special is that it adjusts the scales of the axes after dropping the canvas on its new position. so you drag, you let go, and then the axes catch up. not during. after. remember that, it comes back in the note π
and the fun part β together with QwtPlotZoomer and QwtPlotMagnifier, you can implement powerful ways of navigating on a QwtPlot widget, easily. like, that's the whole squad right there. assemble them and suddenly your plot is fully interactive, no cap π₯
β οΈ Note: The axes are not updated, while dragging the canvas. so while your finger's down, the axes are just chillin. they sync up when you drop it. don't come for me when you notice it, it's literally documented.
See also: QwtPlotZoomer, QwtPlotMagnifier
Constructor & Destructor Documentation π¦
QwtPlotPanner::QwtPlotPanner (QwtPlotCanvas *canvas) β [explicit]
Create a plot panner. The panner is enabled for all axes. every single one, out of the box, no extra steps π
Parameters:
canvasβ Plot canvas to pan, also the parent object. yes bestie, it's both the thing you pan and the parent. two jobs, one pointer, she's efficient.
See also: setAxisEnabled()
Member Function Documentation β
bool QwtPlotPanner::isAxisEnabled (int axis) const
Test if an axis is enabled. that's it, that's the function. a little vibe check for your axes β¨
Parameters:
axisβ Axis, seeQwtPlot::Axis
Returns: True, if the axis is enabled.
See also: setAxisEnabled(), moveCanvas()
void QwtPlotPanner::moveCanvas (int dx, int dy) β [protected], [virtual], [slot]
Adjust the enabled axes according to dx/dy. this is the little engine underneath the panning π§
Parameters:
dxβ Pixel offset in x directiondyβ Pixel offset in y direction
See also: QwtPanner::panned()
void QwtPlotPanner::setAxisEnabled (int axis, bool on)
En/Disable an axis. here's the important part, read it twice: Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged. so you pick your faves, they pan with you, everybody else stays exactly where they are. selective participation, honestly iconic π
Parameters:
axisβ Axis, seeQwtPlot::Axisonβ On/Off
See also: isAxisEnabled(), moveCanvas()
Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so like, don't @ me, @ Doxygen π«Ά
and that's the page, bestie!! mwah π this was Version 5.2.3, dated Tue Nov 20 2012, from QwtPlotPanner(3) β periodt. go forth and pan responsibly β¨π
π¦ 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