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 () const
  • void setEnabled (bool) β€” en/disable the magnifier.
  • bool isEnabled () const
  • void setMouseFactor (double) β€” change the mouse factor.
  • double mouseFactor () const
  • void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
  • void getMouseButton (Qt::MouseButton &, Qt::KeyboardModifiers &) const
  • void setWheelFactor (double) β€” change the wheel factor.
  • double wheelFactor () const
  • void setWheelModifiers (Qt::KeyboardModifiers)
  • Qt::KeyboardModifiers wheelModifiers () const
  • void setKeyFactor (double) β€” change the key factor.
  • double keyFactor () const
  • void 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)=0
  • virtual 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 πŸ’«

  • QwtPlotZoomer
  • QwtPlotPanner
  • QwtPlot

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