Download Qwt User's Guide Reference Manual

Transcript
6.36
QwtMagnifier Class Reference
•
•
•
•
•
•
•
•
•
•
•
142
void setWheelFactor (double)
double wheelFactor () const
void setWheelButtonState (int buttonState)
int wheelButtonState () const
void setKeyFactor (double)
double keyFactor () const
void setZoomInKey (int key, int modifiers)
void getZoomInKey (int &key, int &modifiers) const
void setZoomOutKey (int key, int modifiers)
void getZoomOutKey (int &key, int &modifiers) const
virtual bool eventFilter (QObject ∗, QEvent ∗)
Protected Member Functions
•
•
•
•
•
•
•
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 ∗)
6.36.1
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.
6.36.2
Constructor & Destructor Documentation
QwtMagnifier::QwtMagnifier (QWidget ∗ parent) [explicit]
6.36.2.1
Constructor
Parameters:
parent Widget to be magnified
6.36.2.2
QwtMagnifier::∼QwtMagnifier () [virtual]
Destructor.
6.36.3
Member Function Documentation
6.36.3.1
QWidget ∗ QwtMagnifier::parentWidget ()
Returns:
Parent widget, where the rescaling happens
Generated on Sun Mar 22 16:44:05 2009 for Qwt User’s Guide by Doxygen