.TH "QwtPlotMagnifier" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtPlotMagnifier \- .PP \fBQwtPlotMagnifier\fP provides zooming, by magnifying in steps. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtMagnifier\fP. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBQwtPlotCanvas\fP * \fBcanvas\fP ()" .br .ti -1c .RI "const \fBQwtPlotCanvas\fP * \fBcanvas\fP () const " .br .ti -1c .RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)" .br .ti -1c .RI "void \fBgetMouseButton\fP (int &button, int &buttonState) const " .br .ti -1c .RI "void \fBgetZoomInKey\fP (int &key, int &modifiers) const " .br .ti -1c .RI "void \fBgetZoomOutKey\fP (int &key, int &modifiers) const " .br .ti -1c .RI "bool \fBisAxisEnabled\fP (int axis) const " .br .ti -1c .RI "bool \fBisEnabled\fP () const " .br .ti -1c .RI "double \fBkeyFactor\fP () const " .br .ti -1c .RI "double \fBmouseFactor\fP () const " .br .ti -1c .RI "QWidget * \fBparentWidget\fP ()" .br .ti -1c .RI "const QWidget * \fBparentWidget\fP () const " .br .ti -1c .RI "const \fBQwtPlot\fP * \fBplot\fP () const " .br .ti -1c .RI "\fBQwtPlot\fP * \fBplot\fP ()" .br .ti -1c .RI "\fBQwtPlotMagnifier\fP (\fBQwtPlotCanvas\fP *)" .br .ti -1c .RI "void \fBsetAxisEnabled\fP (int axis, bool on)" .br .ti -1c .RI "void \fBsetEnabled\fP (bool)" .br .ti -1c .RI "void \fBsetKeyFactor\fP (double)" .br .ti -1c .RI "void \fBsetMouseButton\fP (int button, int buttonState=Qt::NoButton)" .br .ti -1c .RI "void \fBsetMouseFactor\fP (double)" .br .ti -1c .RI "void \fBsetWheelButtonState\fP (int buttonState)" .br .ti -1c .RI "void \fBsetWheelFactor\fP (double)" .br .ti -1c .RI "void \fBsetZoomInKey\fP (int key, int modifiers)" .br .ti -1c .RI "void \fBsetZoomOutKey\fP (int key, int modifiers)" .br .ti -1c .RI "int \fBwheelButtonState\fP () const " .br .ti -1c .RI "double \fBwheelFactor\fP () const " .br .ti -1c .RI "virtual \fB~QwtPlotMagnifier\fP ()" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBrescale\fP (double factor)" .br .ti -1c .RI "virtual void \fBwidgetKeyPressEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetKeyReleaseEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMouseMoveEvent\fP (QMouseEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMousePressEvent\fP (QMouseEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMouseReleaseEvent\fP (QMouseEvent *)" .br .ti -1c .RI "virtual void \fBwidgetWheelEvent\fP (QWheelEvent *)" .br .in -1c .SH "Detailed Description" .PP \fBQwtPlotMagnifier\fP provides zooming, by magnifying in steps. Using \fBQwtPlotMagnifier\fP a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction. .PP Together with \fBQwtPlotZoomer\fP and \fBQwtPlotPanner\fP it is possible to implement individual and powerful navigation of the plot canvas. .PP \fBSee also:\fP .RS 4 \fBQwtPlotZoomer\fP, \fBQwtPlotPanner\fP, \fBQwtPlot\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtPlotMagnifier::QwtPlotMagnifier (\fBQwtPlotCanvas\fP *canvas)\fC [explicit]\fP"Constructor .PP \fBParameters:\fP .RS 4 \fIcanvas\fP Plot canvas to be magnified .RE .PP .SS "QwtPlotMagnifier::~QwtPlotMagnifier ()\fC [virtual]\fP" .PP Destructor. .SH "Member Function Documentation" .PP .SS "\fBQwtPlotCanvas\fP * QwtPlotMagnifier::canvas ()" .PP Return observed plot canvas. .SS "const \fBQwtPlotCanvas\fP * QwtPlotMagnifier::canvas () const" .PP Return Observed plot canvas. .SS "bool QwtMagnifier::eventFilter (QObject *o, QEvent *e)\fC [virtual, inherited]\fP" .PP Event filter. When \fBisEnabled()\fP the mouse events of the observed widget are filtered. .PP \fBSee also:\fP .RS 4 \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtMagnifier::getMouseButton (int &button, int &buttonState) const\fC [inherited]\fP"\fBSee also:\fP .RS 4 \fBsetMouseButton()\fP .RE .PP .SS "void QwtMagnifier::getZoomInKey (int &key, int &modifiers) const\fC [inherited]\fP"\fBSee also:\fP .RS 4 \fBsetZoomInKey()\fP .RE .PP .SS "void QwtMagnifier::getZoomOutKey (int &key, int &modifiers) const\fC [inherited]\fP"\fBSee also:\fP .RS 4 \fBsetZoomOutKey()\fP .RE .PP .SS "bool QwtPlotMagnifier::isAxisEnabled (intaxis) const"Test if an axis is enabled .PP \fBParameters:\fP .RS 4 \fIaxis\fP Axis, see \fBQwtPlot::Axis\fP .RE .PP \fBReturns:\fP .RS 4 True, if the axis is enabled .RE .PP \fBSee also:\fP .RS 4 \fBsetAxisEnabled()\fP .RE .PP .SS "bool QwtMagnifier::isEnabled () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 true when enabled, false otherwise .RE .PP \fBSee also:\fP .RS 4 \fBsetEnabled()\fP, \fBeventFilter()\fP .RE .PP .SS "double QwtMagnifier::keyFactor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Key factor .RE .PP \fBSee also:\fP .RS 4 \fBsetKeyFactor()\fP .RE .PP .SS "double QwtMagnifier::mouseFactor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Mouse factor .RE .PP \fBSee also:\fP .RS 4 \fBsetMouseFactor()\fP .RE .PP .SS "QWidget * QwtMagnifier::parentWidget ()\fC [inherited]\fP"\fBReturns:\fP .RS 4 Parent widget, where the rescaling happens .RE .PP .SS "const QWidget * QwtMagnifier::parentWidget () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Parent widget, where the rescaling happens .RE .PP .SS "\fBQwtPlot\fP * QwtPlotMagnifier::plot ()" .PP Return plot widget, containing the observed plot canvas. .SS "const \fBQwtPlot\fP * QwtPlotMagnifier::plot () const" .PP Return plot widget, containing the observed plot canvas. .SS "void QwtPlotMagnifier::rescale (doublefactor)\fC [protected, virtual]\fP"Zoom in/out the axes scales .PP \fBParameters:\fP .RS 4 \fIfactor\fP A value < 1.0 zooms in, a value > 1.0 zooms out. .RE .PP .PP Implements \fBQwtMagnifier\fP. .SS "void QwtPlotMagnifier::setAxisEnabled (intaxis, boolon)" .PP En/Disable an axis. Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged. .PP \fBParameters:\fP .RS 4 \fIaxis\fP Axis, see \fBQwtPlot::Axis\fP .br \fIon\fP On/Off .RE .PP \fBSee also:\fP .RS 4 \fBisAxisEnabled()\fP .RE .PP .SS "void QwtMagnifier::setEnabled (boolon)\fC [inherited]\fP" .PP En/disable the magnifier. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed. .PP \fBParameters:\fP .RS 4 \fIon\fP true or false .RE .PP \fBSee also:\fP .RS 4 \fBisEnabled()\fP, \fBeventFilter()\fP .RE .PP .SS "void QwtMagnifier::setKeyFactor (doublefactor)\fC [inherited]\fP" .PP Change the key factor. The key factor defines the ratio between the current range on the parent widget and the zoomed range for each key press of the zoom in/out keys. The default value is 0.9. .PP \fBParameters:\fP .RS 4 \fIfactor\fP Key factor .RE .PP \fBSee also:\fP .RS 4 \fBkeyFactor()\fP, \fBsetZoomInKey()\fP, \fBsetZoomOutKey()\fP, \fBsetWheelFactor\fP, \fBsetMouseFactor()\fP .RE .PP .SS "void QwtMagnifier::setMouseButton (intbutton, intbuttonState = \fCQt::NoButton\fP)\fC [inherited]\fP"Assign the mouse button, that is used for zooming in/out. The default value is Qt::RightButton. .PP \fBParameters:\fP .RS 4 \fIbutton\fP Button .br \fIbuttonState\fP Button state .RE .PP \fBSee also:\fP .RS 4 \fBgetMouseButton()\fP .RE .PP .SS "void QwtMagnifier::setMouseFactor (doublefactor)\fC [inherited]\fP" .PP Change the mouse factor. The mouse factor defines the ratio between the current range on the parent widget and the zoomed range for each vertical mouse movement. The default value is 0.95. .PP \fBParameters:\fP .RS 4 \fIfactor\fP Wheel factor .RE .PP \fBSee also:\fP .RS 4 \fBmouseFactor()\fP, \fBsetMouseButton()\fP, \fBsetWheelFactor()\fP, \fBsetKeyFactor()\fP .RE .PP .SS "void QwtMagnifier::setWheelButtonState (intbuttonState)\fC [inherited]\fP"Assign a mandatory button state for zooming in/out using the wheel. The default button state is Qt::NoButton. .PP \fBParameters:\fP .RS 4 \fIbuttonState\fP Button state .RE .PP \fBSee also:\fP .RS 4 \fBwheelButtonState()\fP .RE .PP .SS "void QwtMagnifier::setWheelFactor (doublefactor)\fC [inherited]\fP" .PP Change the wheel factor. The wheel factor defines the ratio between the current range on the parent widget and the zoomed range for each step of the wheel. The default value is 0.9. .PP \fBParameters:\fP .RS 4 \fIfactor\fP Wheel factor .RE .PP \fBSee also:\fP .RS 4 \fBwheelFactor()\fP, \fBsetWheelButtonState()\fP, \fBsetMouseFactor()\fP, \fBsetKeyFactor()\fP .RE .PP .SS "void QwtMagnifier::setZoomInKey (intkey, intmodifiers)\fC [inherited]\fP"Assign the key, that is used for zooming in. The default combination is Qt::Key_Plus + Qt::NoModifier. .PP \fBParameters:\fP .RS 4 \fIkey\fP .br \fImodifiers\fP .RE .PP \fBSee also:\fP .RS 4 \fBgetZoomInKey()\fP, \fBsetZoomOutKey()\fP .RE .PP .SS "void QwtMagnifier::setZoomOutKey (intkey, intmodifiers)\fC [inherited]\fP"Assign the key, that is used for zooming out. The default combination is Qt::Key_Minus + Qt::NoModifier. .PP \fBParameters:\fP .RS 4 \fIkey\fP .br \fImodifiers\fP .RE .PP \fBSee also:\fP .RS 4 \fBgetZoomOutKey()\fP, \fBsetZoomOutKey()\fP .RE .PP .SS "int QwtMagnifier::wheelButtonState () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Wheel button state .RE .PP \fBSee also:\fP .RS 4 \fBsetWheelButtonState()\fP .RE .PP .SS "double QwtMagnifier::wheelFactor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Wheel factor .RE .PP \fBSee also:\fP .RS 4 \fBsetWheelFactor()\fP .RE .PP .SS "void QwtMagnifier::widgetKeyPressEvent (QKeyEvent *ke)\fC [protected, virtual, inherited]\fP"Handle a key press event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIke\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtMagnifier::widgetKeyReleaseEvent (QKeyEvent *)\fC [protected, virtual, inherited]\fP"Handle a key release event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIke\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtMagnifier::widgetMouseMoveEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle a mouse move event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIme\fP Mouse event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, .RE .PP .SS "void QwtMagnifier::widgetMousePressEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle a mouse press event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIme\fP Mouse event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP .RE .PP .SS "void QwtMagnifier::widgetMouseReleaseEvent (QMouseEvent *)\fC [protected, virtual, inherited]\fP"Handle a mouse release event for the observed widget. .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseMoveEvent()\fP, .RE .PP .SS "void QwtMagnifier::widgetWheelEvent (QWheelEvent *we)\fC [protected, virtual, inherited]\fP"Handle a wheel event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIwe\fP Wheel event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.