QwtPlotMagnifier - QwtPlotMagnifier provides zooming, by magnifying in steps.
Contents
Constructor & Destructor Documentation
QwtPlotMagnifier::QwtPlotMagnifier(QWidget*canvas)[explicit]
Constructor
Parameters:canvas Plot canvas to be magnified
Detailed Description
QwtPlotMagnifier provides zooming, by magnifying in steps.
Using QwtPlotMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse
button in vertical direction.
Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement individual and powerful
navigation of the plot canvas.
Seealso:QwtPlotZoomer, QwtPlotPanner, QwtPlotMember Function Documentation
boolQwtPlotMagnifier::isAxisEnabled(intaxis)const
Test if an axis is enabled
Parameters:axis Axis, see QwtPlot::AxisReturns:
True, if the axis is enabled
Seealso:setAxisEnabled()voidQwtPlotMagnifier::rescale(doublefactor)[protected],[virtual]
Zoom in/out the axes scales
Parameters:factor A value < 1.0 zooms in, a value > 1.0 zooms out.
Implements QwtMagnifier.
voidQwtPlotMagnifier::setAxisEnabled(intaxis,boolon)
En/Disable an axis. Only Axes that are enabled will be zoomed. All other axes will remain unchanged.
Parameters:axis Axis, see QwtPlot::Axison On/Off
Seealso:isAxisEnabled()Name
QwtPlotMagnifier - QwtPlotMagnifier provides zooming, by magnifying in steps.
Synopsis
#include <qwt_plot_magnifier.h>
Inherits QwtMagnifier.
PublicMemberFunctionsQwtPlotMagnifier (QWidget *)
virtual ~QwtPlotMagnifier ()
Destructor.
void setAxisEnabled (int axis, bool on)
En/Disable an axis.
bool isAxisEnabled (int axis) const
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.
ProtectedMemberFunctions
virtual void rescale (double factor)
