QwtMagnifier(3) | Qwt User's Guide | QwtMagnifier(3) |
NAME¶
QwtMagnifier -
SYNOPSIS¶
#include <qwt_magnifier.h>
Inherited by QwtPlotMagnifier.
Public Member Functions¶
QwtMagnifier (QWidget *)
virtual ~QwtMagnifier ()
virtual bool eventFilter (QObject *, QEvent *)
void getMouseButton (int &button, int &buttonState) const
void getZoomInKey (int &key, int &modifiers) const
void getZoomOutKey (int &key, int &modifiers) const
bool isEnabled () const
double keyFactor () const
double mouseFactor () const
QWidget * parentWidget ()
const QWidget * parentWidget () const
void setEnabled (bool)
void setKeyFactor (double)
void setMouseButton (int button, int buttonState=Qt::NoButton)
void setMouseFactor (double)
void setWheelButtonState (int buttonState)
void setWheelFactor (double)
void setZoomInKey (int key, int modifiers)
void setZoomOutKey (int key, int modifiers)
int wheelButtonState () const
double wheelFactor () const
Protected Member Functions¶
virtual void rescale (double factor)=0
virtual void widgetKeyPressEvent (QKeyEvent *)
virtual void widgetKeyReleaseEvent (QKeyEvent *)
virtual void widgetMouseMoveEvent (QMouseEvent *)
virtual void widgetMousePressEvent (QMouseEvent *)
virtual void widgetMouseReleaseEvent (QMouseEvent *)
virtual void widgetWheelEvent (QWheelEvent *)
Detailed Description¶
QwtMagnifier provides zooming, by magnifying in steps.
Using QwtMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.
Constructor & Destructor Documentation¶
QwtMagnifier::QwtMagnifier (QWidget *parent) [explicit]¶
Constructor
Parameters:
Member Function Documentation¶
bool QwtMagnifier::eventFilter (QObject *o, QEvent *e) [virtual]¶
Event filter. When isEnabled() the mouse events of the observed widget are filtered.
See also:
void QwtMagnifier::getMouseButton (int &button, int &buttonState) const¶
See also:
void QwtMagnifier::getZoomInKey (int &key, int &modifiers) const¶
See also:
void QwtMagnifier::getZoomOutKey (int &key, int &modifiers) const¶
See also:
bool QwtMagnifier::isEnabled () const¶
Returns:
See also:
double QwtMagnifier::keyFactor () const¶
Returns:
See also:
double QwtMagnifier::mouseFactor () const¶
Returns:
See also:
QWidget * QwtMagnifier::parentWidget ()¶
Returns:
const QWidget * QwtMagnifier::parentWidget () const¶
Returns:
virtual void QwtMagnifier::rescale (doublefactor) [protected], [pure virtual]¶
Rescale the parent widget
Parameters:
Implemented in QwtPlotMagnifier.
void QwtMagnifier::setEnabled (boolon)¶
En/disable the magnifier. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.
Parameters:
See also:
void QwtMagnifier::setKeyFactor (doublefactor)¶
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.
Parameters:
See also:
void QwtMagnifier::setMouseButton (intbutton, intbuttonState = Qt::NoButton)¶
Assign the mouse button, that is used for zooming in/out. The default value is Qt::RightButton.
Parameters:
buttonState Button state
See also:
void QwtMagnifier::setMouseFactor (doublefactor)¶
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.
Parameters:
See also:
void QwtMagnifier::setWheelButtonState (intbuttonState)¶
Assign a mandatory button state for zooming in/out using the wheel. The default button state is Qt::NoButton.
Parameters:
See also:
void QwtMagnifier::setWheelFactor (doublefactor)¶
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.
Parameters:
See also:
void QwtMagnifier::setZoomInKey (intkey, intmodifiers)¶
Assign the key, that is used for zooming in. The default combination is Qt::Key_Plus + Qt::NoModifier.
Parameters:
modifiers
See also:
void QwtMagnifier::setZoomOutKey (intkey, intmodifiers)¶
Assign the key, that is used for zooming out. The default combination is Qt::Key_Minus + Qt::NoModifier.
Parameters:
modifiers
See also:
int QwtMagnifier::wheelButtonState () const¶
Returns:
See also:
double QwtMagnifier::wheelFactor () const¶
Returns:
See also:
void QwtMagnifier::widgetKeyPressEvent (QKeyEvent *ke) [protected], [virtual]¶
Handle a key press event for the observed widget.
Parameters:
See also:
void QwtMagnifier::widgetKeyReleaseEvent (QKeyEvent *) [protected], [virtual]¶
Handle a key release event for the observed widget.
Parameters:
See also:
void QwtMagnifier::widgetMouseMoveEvent (QMouseEvent *me) [protected], [virtual]¶
Handle a mouse move event for the observed widget.
Parameters:
See also:
void QwtMagnifier::widgetMousePressEvent (QMouseEvent *me) [protected], [virtual]¶
Handle a mouse press event for the observed widget.
Parameters:
See also:
void QwtMagnifier::widgetMouseReleaseEvent (QMouseEvent *) [protected], [virtual]¶
Handle a mouse release event for the observed widget.
See also:
void QwtMagnifier::widgetWheelEvent (QWheelEvent *we) [protected], [virtual]¶
Handle a wheel event for the observed widget.
Parameters:
See also:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |