QwtPlotPanner(3)
π
QwtPlotPanner(3) β Library Functions Manual β¨
okay bestie, buckle up π«Ά this is the QwtPlotPanner(3) page, and itβs lowkey iconic for anyone who wants to pan around a plot canvas like a main character.
πΈ NAME πΈ
QwtPlotPanner β QwtPlotPanner provides panning of a plot canvas.
β¨ SYNOPSIS β¨
#include <qwt_plot_panner.h>
Inherits QwtPanner.
π Public Slots π
virtual void moveCanvas (int dx, int dy)β public slot signature; the full tea is in themoveCanvasdocs below π
π Public Member Functions π
QwtPlotPanner (QWidget *)β A panner for the canvas of aQwtPlot.virtual ~QwtPlotPanner ()β Destructor.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.void setAxisEnabled (QwtAxisId axisId, bool on)β En/Disable an axis.bool isAxisEnabled (QwtAxisId) constβ signature only in the source, no extra one-liner here.
π Public Member Functions inherited from QwtPanner π
QwtPanner (QWidget *parent)β constructor signature; the source doesnβt add an extra description.virtual ~QwtPanner ()β Destructor.void setEnabled (bool)β En/disable the panner.bool isEnabled () constβ signature only in the source.void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)β signature only in the source.void getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) constβ Get mouse button and modifiers used for panning.void setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)β signature only in the source.void getAbortKey (int &key, Qt::KeyboardModifiers &) constβ Get the abort key and modifiers.void setCursor (const QCursor &)β signature only in the source.const QCursor cursor () constβ signature only in the source.void setOrientations (Qt::Orientations)β signature only in the source.Qt::Orientations orientations () constβ Return the orientation, where panning is enabled.bool isOrientationEnabled (Qt::Orientation) constβ signature only in the source.virtual bool eventFilter (QObject *, QEvent *) overrideβ Event filter.
π‘οΈ Protected Member Functions π‘οΈ
virtual QBitmap contentsMask () const overrideβ protected override signature.virtual QPixmap grab () const overrideβ protected override signature.
π Protected Member Functions inherited from QwtPanner π
virtual void widgetMousePressEvent (QMouseEvent *)β signature only in the source.virtual void widgetMouseReleaseEvent (QMouseEvent *)β signature only in the source.virtual void widgetMouseMoveEvent (QMouseEvent *)β signature only in the source.virtual void widgetKeyPressEvent (QKeyEvent *)β signature only in the source.virtual void widgetKeyReleaseEvent (QKeyEvent *)β signature only in the source.virtual void paintEvent (QPaintEvent *) overrideβ Paint event.
π Additional Inherited Members π
π‘ Signals inherited from QwtPanner π‘
void panned (int dx, int dy)β signal signature.void moved (int dx, int dy)β signal signature.
π Detailed Description π
QwtPlotPanner provides panning of a plot canvas.
QwtPlotPanner is a panner for a plot canvas that adjusts the scales of the axes after dropping the canvas on its new position. yes bestie, itβs doing the glow-up math for you β¨
Together with QwtPlotZoomer and QwtPlotMagnifier, powerful ways of navigating on a QwtPlot widget can be implemented easily. team-up energy fr fr π«Ά
β οΈ Note: The axes are not updated, while dragging the canvas.
See also: QwtPlotZoomer, QwtPlotMagnifier
Definition at line 32 of file qwt_plot_panner.h.
π Constructor & Destructor Documentation π
QwtPlotPanner::QwtPlotPanner (QWidget * canvas) [explicit]
A panner for the canvas of a QwtPlot. The panner is enabled for all axes.
Parameters
canvasβ Plot canvas to pan, also the parent object.
See also: setAxisEnabled()
Definition at line 128 of file qwt_plot_panner.cpp.
QwtPlotPanner::~QwtPlotPanner () [virtual]
Destructor.
Definition at line 138 of file qwt_plot_panner.cpp.
π Member Function Documentation π
QWidget * QwtPlotPanner::canvas ()
Return observed plot canvas.
Definition at line 177 of file qwt_plot_panner.cpp.
const QWidget * QwtPlotPanner::canvas () const
Return Observed plot canvas.
Definition at line 183 of file qwt_plot_panner.cpp.
QBitmap QwtPlotPanner::contentsMask () const [override], [protected], [virtual]
Calculate a mask from the border path of the canvas.
Returns: Mask as bitmap.
See also: QwtPlotCanvas::borderPath()
Reimplemented from: QwtPanner.
Definition at line 267 of file qwt_plot_panner.cpp.
QPixmap QwtPlotPanner::grab () const [override], [protected], [virtual]
Returns: Pixmap with the content of the canvas.
Reimplemented from: QwtPanner.
Definition at line 278 of file qwt_plot_panner.cpp.
bool QwtPlotPanner::isAxisEnabled (QwtAxisId axisId) const
Test if an axis is enabled.
Parameters
axisIdβ Axis.
Returns: True, if the axis is enabled.
See also: setAxisEnabled(), moveCanvas()
Definition at line 168 of file qwt_plot_panner.cpp.
void QwtPlotPanner::moveCanvas (int dx, int dy) [virtual], [slot]
Adjust the enabled axes according to dx/dy.
Parameters
dxβ Pixel offset in x direction.dyβ Pixel offset in y direction.
See also: QwtPanner::panned()
Definition at line 216 of file qwt_plot_panner.cpp.
QwtPlot * QwtPlotPanner::plot ()
Return plot widget, containing the observed plot canvas.
Definition at line 189 of file qwt_plot_panner.cpp.
const QwtPlot * QwtPlotPanner::plot () const
Return plot widget, containing the observed plot canvas.
Definition at line 199 of file qwt_plot_panner.cpp.
void QwtPlotPanner::setAxisEnabled (QwtAxisId axisId, bool on)
En/Disable an axis. Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.
Parameters
axisIdβ Axis id.onβ On/Off.
See also: isAxisEnabled(), moveCanvas()
Definition at line 154 of file qwt_plot_panner.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
mwah π thatβs the whole page, bestie β the footer gives source/version <purple>Qwt User's Guide</purple> and page tag <pink>QwtPlotPanner(3)</pink> (no date in this footer, just those bits). 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