.TH "QwtPlotZoomer" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtPlotZoomer \- .PP \fBQwtPlotZoomer\fP provides stacked zooming for a plot widget. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtPlotPicker\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBDisplayMode\fP { \fBAlwaysOff\fP, \fBAlwaysOn\fP, \fBActiveOnly\fP }" .br .ti -1c .RI "enum \fBKeyPatternCode\fP { \fBKeySelect1\fP, \fBKeySelect2\fP, \fBKeyAbort\fP, \fBKeyLeft\fP, \fBKeyRight\fP, \fBKeyUp\fP, \fBKeyDown\fP, \fBKeyRedo\fP, \fBKeyUndo\fP, \fBKeyHome\fP, \fBKeyPatternCount\fP }" .br .ti -1c .RI "enum \fBMousePatternCode\fP { \fBMouseSelect1\fP, \fBMouseSelect2\fP, \fBMouseSelect3\fP, \fBMouseSelect4\fP, \fBMouseSelect5\fP, \fBMouseSelect6\fP, \fBMousePatternCount\fP }" .br .ti -1c .RI "enum \fBRectSelectionType\fP { \fBCornerToCorner\fP = 64, \fBCenterToCorner\fP = 128, \fBCenterToRadius\fP = 256 }" .br .ti -1c .RI "enum \fBResizeMode\fP { \fBStretch\fP, \fBKeepSize\fP }" .br .ti -1c .RI "enum \fBRubberBand\fP { \fBNoRubberBand\fP = 0, \fBHLineRubberBand\fP, \fBVLineRubberBand\fP, \fBCrossRubberBand\fP, \fBRectRubberBand\fP, \fBEllipseRubberBand\fP, \fBPolygonRubberBand\fP, \fBUserRubberBand\fP = 100 }" .br .ti -1c .RI "enum \fBSelectionMode\fP { \fBClickSelection\fP = 1024, \fBDragSelection\fP = 2048 }" .br .ti -1c .RI "enum \fBSelectionType\fP { \fBNoSelection\fP = 0, \fBPointSelection\fP = 1, \fBRectSelection\fP = 2, \fBPolygonSelection\fP = 4 }" .br .in -1c .SS "Public Slots" .in +1c .ti -1c .RI "virtual void \fBmove\fP (double x, double y)" .br .ti -1c .RI "void \fBmoveBy\fP (double x, double y)" .br .ti -1c .RI "virtual void \fBzoom\fP (const QwtDoubleRect &)" .br .ti -1c .RI "virtual void \fBzoom\fP (int up)" .br .in -1c .SS "Signals" .in +1c .ti -1c .RI "void \fBappended\fP (const QwtDoublePoint &pos)" .br .ti -1c .RI "void \fBappended\fP (const QPoint &pos)" .br .ti -1c .RI "void \fBchanged\fP (const QwtPolygon &pa)" .br .ti -1c .RI "void \fBmoved\fP (const QPoint &pos)" .br .ti -1c .RI "void \fBmoved\fP (const QwtDoublePoint &pos)" .br .ti -1c .RI "void \fBselected\fP (const QwtDoubleRect &rect)" .br .ti -1c .RI "void \fBselected\fP (const QwtDoublePoint &pos)" .br .ti -1c .RI "void \fBselected\fP (const QwtArray< QwtDoublePoint > &pa)" .br .ti -1c .RI "void \fBselected\fP (const QwtPolygon &pa)" .br .ti -1c .RI "void \fBzoomed\fP (const QwtDoubleRect &rect)" .br .in -1c .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 void \fBdrawRubberBand\fP (QPainter *) const " .br .ti -1c .RI "virtual void \fBdrawTracker\fP (QPainter *) const " .br .ti -1c .RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)" .br .ti -1c .RI "void \fBinitKeyPattern\fP ()" .br .ti -1c .RI "void \fBinitMousePattern\fP (int numButtons)" .br .ti -1c .RI "bool \fBisActive\fP () const " .br .ti -1c .RI "bool \fBisEnabled\fP () const " .br .ti -1c .RI "bool \fBkeyMatch\fP (uint pattern, const QKeyEvent *) const " .br .ti -1c .RI "const QwtArray< \fBKeyPattern\fP > & \fBkeyPattern\fP () const " .br .ti -1c .RI "QwtArray< \fBKeyPattern\fP > & \fBkeyPattern\fP ()" .br .ti -1c .RI "int \fBmaxStackDepth\fP () const " .br .ti -1c .RI "bool \fBmouseMatch\fP (uint pattern, const QMouseEvent *) const " .br .ti -1c .RI "const QwtArray< \fBMousePattern\fP > & \fBmousePattern\fP () const " .br .ti -1c .RI "QwtArray< \fBMousePattern\fP > & \fBmousePattern\fP ()" .br .ti -1c .RI "QWidget * \fBparentWidget\fP ()" .br .ti -1c .RI "const QWidget * \fBparentWidget\fP () const " .br .ti -1c .RI "virtual QRect \fBpickRect\fP () const " .br .ti -1c .RI "const \fBQwtPlot\fP * \fBplot\fP () const " .br .ti -1c .RI "\fBQwtPlot\fP * \fBplot\fP ()" .br .ti -1c .RI "\fBQwtPlotZoomer\fP (\fBQwtPlotCanvas\fP *, bool doReplot=true)" .br .ti -1c .RI "\fBQwtPlotZoomer\fP (int xAxis, int yAxis, \fBQwtPlotCanvas\fP *, bool doReplot=true)" .br .ti -1c .RI "\fBQwtPlotZoomer\fP (int xAxis, int yAxis, int selectionFlags, \fBDisplayMode\fP trackerMode, \fBQwtPlotCanvas\fP *, bool doReplot=true)" .br .ti -1c .RI "\fBResizeMode\fP \fBresizeMode\fP () const " .br .ti -1c .RI "\fBRubberBand\fP \fBrubberBand\fP () const " .br .ti -1c .RI "QPen \fBrubberBandPen\fP () const " .br .ti -1c .RI "const QwtPolygon & \fBselection\fP () const " .br .ti -1c .RI "int \fBselectionFlags\fP () const " .br .ti -1c .RI "virtual void \fBsetAxis\fP (int xAxis, int yAxis)" .br .ti -1c .RI "virtual void \fBsetEnabled\fP (bool)" .br .ti -1c .RI "void \fBsetKeyPattern\fP (uint pattern, int key, int state=Qt::NoButton)" .br .ti -1c .RI "void \fBsetKeyPattern\fP (const QwtArray< \fBKeyPattern\fP > &)" .br .ti -1c .RI "void \fBsetMaxStackDepth\fP (int)" .br .ti -1c .RI "void \fBsetMousePattern\fP (const QwtArray< \fBMousePattern\fP > &)" .br .ti -1c .RI "void \fBsetMousePattern\fP (uint pattern, int button, int state=Qt::NoButton)" .br .ti -1c .RI "virtual void \fBsetResizeMode\fP (\fBResizeMode\fP)" .br .ti -1c .RI "virtual void \fBsetRubberBand\fP (\fBRubberBand\fP)" .br .ti -1c .RI "virtual void \fBsetRubberBandPen\fP (const QPen &)" .br .ti -1c .RI "virtual void \fBsetSelectionFlags\fP (int)" .br .ti -1c .RI "virtual void \fBsetTrackerFont\fP (const QFont &)" .br .ti -1c .RI "virtual void \fBsetTrackerMode\fP (\fBDisplayMode\fP)" .br .ti -1c .RI "virtual void \fBsetTrackerPen\fP (const QPen &)" .br .ti -1c .RI "virtual void \fBsetZoomBase\fP (bool doReplot=true)" .br .ti -1c .RI "virtual void \fBsetZoomBase\fP (const QwtDoubleRect &)" .br .ti -1c .RI "void \fBsetZoomStack\fP (const QStack< QwtDoubleRect > &, int zoomRectIndex=-1)" .br .ti -1c .RI "QFont \fBtrackerFont\fP () const " .br .ti -1c .RI "\fBDisplayMode\fP \fBtrackerMode\fP () const " .br .ti -1c .RI "QPen \fBtrackerPen\fP () const " .br .ti -1c .RI "QPoint \fBtrackerPosition\fP () const " .br .ti -1c .RI "QRect \fBtrackerRect\fP (const QFont &) const " .br .ti -1c .RI "int \fBxAxis\fP () const " .br .ti -1c .RI "int \fByAxis\fP () const " .br .ti -1c .RI "QwtDoubleRect \fBzoomBase\fP () const " .br .ti -1c .RI "QwtDoubleRect \fBzoomRect\fP () const " .br .ti -1c .RI "uint \fBzoomRectIndex\fP () const " .br .ti -1c .RI "const QStack< QwtDoubleRect > & \fBzoomStack\fP () const " .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual bool \fBaccept\fP (QwtPolygon &) const " .br .ti -1c .RI "virtual void \fBappend\fP (const QPoint &)" .br .ti -1c .RI "virtual void \fBbegin\fP ()" .br .ti -1c .RI "virtual bool \fBend\fP (bool ok=true)" .br .ti -1c .RI "QwtDoubleRect \fBinvTransform\fP (const QRect &) const " .br .ti -1c .RI "QwtDoublePoint \fBinvTransform\fP (const QPoint &) const " .br .ti -1c .RI "virtual bool \fBkeyMatch\fP (const \fBKeyPattern\fP &, const QKeyEvent *) const " .br .ti -1c .RI "virtual QwtDoubleSize \fBminZoomSize\fP () const " .br .ti -1c .RI "virtual bool \fBmouseMatch\fP (const \fBMousePattern\fP &, const QMouseEvent *) const " .br .ti -1c .RI "virtual void \fBmove\fP (const QPoint &)" .br .ti -1c .RI "virtual void \fBrescale\fP ()" .br .ti -1c .RI "virtual void \fBreset\fP ()" .br .ti -1c .RI "const QWidget * \fBrubberBandWidget\fP () const " .br .ti -1c .RI "QwtDoubleRect \fBscaleRect\fP () const " .br .ti -1c .RI "virtual \fBQwtPickerMachine\fP * \fBstateMachine\fP (int) const " .br .ti -1c .RI "virtual void \fBstretchSelection\fP (const QSize &oldSize, const QSize &newSize)" .br .ti -1c .RI "virtual \fBQwtText\fP \fBtrackerText\fP (const QwtDoublePoint &) const " .br .ti -1c .RI "virtual \fBQwtText\fP \fBtrackerText\fP (const QPoint &) const " .br .ti -1c .RI "const QWidget * \fBtrackerWidget\fP () const " .br .ti -1c .RI "QRect \fBtransform\fP (const QwtDoubleRect &) const " .br .ti -1c .RI "QPoint \fBtransform\fP (const QwtDoublePoint &) const " .br .ti -1c .RI "virtual void \fBtransition\fP (const QEvent *)" .br .ti -1c .RI "virtual void \fBupdateDisplay\fP ()" .br .ti -1c .RI "virtual void \fBwidgetKeyPressEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetKeyReleaseEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetLeaveEvent\fP (QEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMouseDoubleClickEvent\fP (QMouseEvent *)" .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 \fBQwtPlotZoomer\fP provides stacked zooming for a plot widget. \fBQwtPlotZoomer\fP offers rubberband selections on the plot canvas, translating the selected rectangles into plot coordinates and adjusting the axes to them. Zooming can repeated as often as possible, limited only by \fBmaxStackDepth()\fP or \fBminZoomSize()\fP. Each rectangle is pushed on a stack. .PP Zoom rectangles can be selected depending on \fBselectionFlags()\fP using the mouse or keyboard (\fBQwtEventPattern\fP, \fBQwtPickerMachine\fP). QwtEventPattern::MouseSelect3/QwtEventPattern::KeyUndo, or QwtEventPattern::MouseSelect6/QwtEventPattern::KeyRedo walk up and down the zoom stack. QwtEventPattern::MouseSelect2 or QwtEventPattern::KeyHome unzoom to the initial size. .PP \fBQwtPlotZoomer\fP is tailored for plots with one x and y axis, but it is allowed to attach a second \fBQwtPlotZoomer\fP for the other axes. .PP \fBNote:\fP .RS 4 The realtime example includes an derived zoomer class that adds scrollbars to the plot canvas. .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtPicker::DisplayMode\fP\fC [inherited]\fP".IP "\(bu" 2 AlwaysOff .br Display never. .IP "\(bu" 2 AlwaysOn .br Display always. .IP "\(bu" 2 ActiveOnly .br Display only when the selection is active. .PP .PP \fBSee also:\fP .RS 4 \fBQwtPicker::setTrackerMode()\fP, \fBQwtPicker::trackerMode()\fP, \fBQwtPicker::isActive()\fP .RE .PP .SS "enum \fBQwtEventPattern::KeyPatternCode\fP\fC [inherited]\fP" .PP Symbolic keyboard input codes. Default initialization: .IP "\(bu" 2 KeySelect1 .br Qt::Key_Return .IP "\(bu" 2 KeySelect2 .br Qt::Key_Space .IP "\(bu" 2 KeyAbort .br Qt::Key_Escape .PP .PP .IP "\(bu" 2 KeyLeft .br Qt::Key_Left .IP "\(bu" 2 KeyRight .br Qt::Key_Right .IP "\(bu" 2 KeyUp .br Qt::Key_Up .IP "\(bu" 2 KeyDown .br Qt::Key_Down .PP .PP .IP "\(bu" 2 KeyUndo .br Qt::Key_Minus .IP "\(bu" 2 KeyRedo .br Qt::Key_Plus .IP "\(bu" 2 KeyHome .br Qt::Key_Escape .PP .SS "enum \fBQwtEventPattern::MousePatternCode\fP\fC [inherited]\fP" .PP Symbolic mouse input codes. The default initialization for 3 button mice is: .IP "\(bu" 2 MouseSelect1 .br Qt::LeftButton .IP "\(bu" 2 MouseSelect2 .br Qt::RightButton .IP "\(bu" 2 MouseSelect3 .br Qt::MidButton .IP "\(bu" 2 MouseSelect4 .br Qt::LeftButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect5 .br Qt::RightButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect6 .br Qt::MidButton + Qt::ShiftButton .PP .PP The default initialization for 2 button mice is: .IP "\(bu" 2 MouseSelect1 .br Qt::LeftButton .IP "\(bu" 2 MouseSelect2 .br Qt::RightButton .IP "\(bu" 2 MouseSelect3 .br Qt::LeftButton + Qt::AltButton .IP "\(bu" 2 MouseSelect4 .br Qt::LeftButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect5 .br Qt::RightButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect6 .br Qt::LeftButton + Qt::AltButton + Qt::ShiftButton .PP .PP The default initialization for 1 button mice is: .IP "\(bu" 2 MouseSelect1 .br Qt::LeftButton .IP "\(bu" 2 MouseSelect2 .br Qt::LeftButton + Qt::ControlButton .IP "\(bu" 2 MouseSelect3 .br Qt::LeftButton + Qt::AltButton .IP "\(bu" 2 MouseSelect4 .br Qt::LeftButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect5 .br Qt::LeftButton + Qt::ControlButton + Qt::ShiftButton .IP "\(bu" 2 MouseSelect6 .br Qt::LeftButton + Qt::AltButton + Qt::ShiftButton .PP .PP \fBSee also:\fP .RS 4 \fBinitMousePattern()\fP .RE .PP .SS "enum \fBQwtPicker::RectSelectionType\fP\fC [inherited]\fP" .PP Selection subtype for RectSelection This enum type describes the type of rectangle selections. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP. .IP "\(bu" 2 CornerToCorner .br The first and the second selected point are the corners of the rectangle. .IP "\(bu" 2 CenterToCorner .br The first point is the center, the second a corner of the rectangle. .IP "\(bu" 2 CenterToRadius .br The first point is the center of a quadrat, calculated by the maximum of the x- and y-distance. .PP The default value is CornerToCorner. .PP \fBSee also:\fP .RS 4 \fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP .RE .PP .SS "enum \fBQwtPicker::ResizeMode\fP\fC [inherited]\fP"Controls what to do with the selected points of an active selection when the observed widget is resized. .IP "\(bu" 2 Stretch .br All points are scaled according to the new size, .IP "\(bu" 2 KeepSize .br All points remain unchanged. .PP .PP The default value is Stretch. .PP \fBSee also:\fP .RS 4 \fBQwtPicker::setResizeMode()\fP, QwtPicker::resize() .RE .PP .SS "enum \fBQwtPicker::RubberBand\fP\fC [inherited]\fP"Rubberband style .IP "\(bu" 2 NoRubberBand .br No rubberband. .IP "\(bu" 2 HLineRubberBand & PointSelection .br A horizontal line. .IP "\(bu" 2 VLineRubberBand & PointSelection .br A vertical line. .IP "\(bu" 2 CrossRubberBand & PointSelection .br A horizontal and a vertical line. .IP "\(bu" 2 RectRubberBand & RectSelection .br A rectangle. .IP "\(bu" 2 EllipseRubberBand & RectSelection .br An ellipse. .IP "\(bu" 2 PolygonRubberBand &PolygonSelection .br A polygon. .IP "\(bu" 2 UserRubberBand .br Values >= UserRubberBand can be used to define additional rubber bands. .PP .PP The default value is NoRubberBand. .PP \fBSee also:\fP .RS 4 \fBQwtPicker::setRubberBand()\fP, \fBQwtPicker::rubberBand()\fP .RE .PP .SS "enum \fBQwtPicker::SelectionMode\fP\fC [inherited]\fP"Values of this enum type or'd together with a SelectionType value identifies which state machine should be used for the selection. .PP The default value is ClickSelection. .PP \fBSee also:\fP .RS 4 \fBstateMachine()\fP .RE .PP .SS "enum \fBQwtPicker::SelectionType\fP\fC [inherited]\fP"This enum type describes the type of a selection. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP .IP "\(bu" 2 NoSelection .br Selection is disabled. Note this is different to the disabled state, as you might have a tracker. .IP "\(bu" 2 PointSelection .br Select a single point. .IP "\(bu" 2 RectSelection .br Select a rectangle. .IP "\(bu" 2 PolygonSelection .br Select a polygon. .PP .PP The default value is NoSelection. .PP \fBSee also:\fP .RS 4 \fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtPlotZoomer::QwtPlotZoomer (\fBQwtPlotCanvas\fP *canvas, booldoReplot = \fCtrue\fP)\fC [explicit]\fP" .PP Create a zoomer for a plot canvas. The zoomer is set to those x- and y-axis of the parent plot of the canvas that are enabled. If both or no x-axis are enabled, the picker is set to QwtPlot::xBottom. If both or no y-axis are enabled, it is set to QwtPlot::yLeft. .PP The \fBselectionFlags()\fP are set to QwtPicker::RectSelection | QwtPicker::ClickSelection, the tracker mode to QwtPicker::ActiveOnly. .PP \fBParameters:\fP .RS 4 \fIcanvas\fP Plot canvas to observe, also the parent object .br \fIdoReplot\fP Call replot for the attached plot before initializing the zoomer with its scales. This might be necessary, when the plot is in a state with pending scale changes. .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBsetZoomBase()\fP .RE .PP .SS "QwtPlotZoomer::QwtPlotZoomer (intxAxis, intyAxis, \fBQwtPlotCanvas\fP *canvas, booldoReplot = \fCtrue\fP)\fC [explicit]\fP" .PP Create a zoomer for a plot canvas. The \fBselectionFlags()\fP are set to QwtPicker::RectSelection | QwtPicker::ClickSelection, the tracker mode to QwtPicker::ActiveOnly. .PP \fBParameters:\fP .RS 4 \fIxAxis\fP X axis of the zoomer .br \fIyAxis\fP Y axis of the zoomer .br \fIcanvas\fP Plot canvas to observe, also the parent object .br \fIdoReplot\fP Call replot for the attached plot before initializing the zoomer with its scales. This might be necessary, when the plot is in a state with pending scale changes. .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBsetZoomBase()\fP .RE .PP .SS "QwtPlotZoomer::QwtPlotZoomer (intxAxis, intyAxis, intselectionFlags, \fBDisplayMode\fPtrackerMode, \fBQwtPlotCanvas\fP *canvas, booldoReplot = \fCtrue\fP)\fC [explicit]\fP"Create a zoomer for a plot canvas. .PP \fBParameters:\fP .RS 4 \fIxAxis\fP X axis of the zoomer .br \fIyAxis\fP Y axis of the zoomer .br \fIselectionFlags\fP Or'd value of \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP. QwtPicker::RectSelection will be auto added. .br \fItrackerMode\fP Tracker mode .br \fIcanvas\fP Plot canvas to observe, also the parent object .br \fIdoReplot\fP Call replot for the attached plot before initializing the zoomer with its scales. This might be necessary, when the plot is in a state with pending scale changes. .RE .PP \fBSee also:\fP .RS 4 \fBQwtPicker\fP, \fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::setRubberBand()\fP, \fBQwtPicker::setTrackerMode()\fP .PP \fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBsetZoomBase()\fP .RE .PP .SH "Member Function Documentation" .PP .SS "bool QwtPlotZoomer::accept (QwtPolygon &pa) const\fC [protected, virtual]\fP" .PP Check and correct a selected rectangle. Reject rectangles with a hight or width < 2, otherwise expand the selected rectangle to a minimum size of 11x11 and accept it. .PP \fBReturns:\fP .RS 4 true If rect is accepted, or has been changed to a accepted rectangle. .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPlotPicker::append (const QPoint &pos)\fC [protected, virtual, inherited]\fP"Append a point to the selection and update rubberband and tracker. .PP \fBParameters:\fP .RS 4 \fIpos\fP Additional point .RE .PP \fBSee also:\fP .RS 4 \fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBmove()\fP, \fBappended()\fP .RE .PP \fBNote:\fP .RS 4 The \fBappended(const QPoint &)\fP, appended(const QDoublePoint &) signals are emitted. .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPicker::appended (const QPoint &pos)\fC [signal, inherited]\fP"A signal emitted when a point has been appended to the selection .PP \fBParameters:\fP .RS 4 \fIpos\fP Position of the appended point. .RE .PP \fBSee also:\fP .RS 4 \fBappend()\fP. \fBmoved()\fP .RE .PP .SS "void QwtPlotPicker::appended (const QwtDoublePoint &pos)\fC [signal, inherited]\fP"A signal emitted when a point has been appended to the selection .PP \fBParameters:\fP .RS 4 \fIpos\fP Position of the appended point. .RE .PP \fBSee also:\fP .RS 4 \fBappend()\fP. \fBmoved()\fP .RE .PP .SS "void QwtPlotZoomer::begin ()\fC [protected, virtual]\fP"Rejects selections, when the stack depth is too deep, or the zoomed rectangle is \fBminZoomSize()\fP. .PP \fBSee also:\fP .RS 4 \fBminZoomSize()\fP, \fBmaxStackDepth()\fP .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "\fBQwtPlotCanvas\fP * QwtPlotPicker::canvas ()\fC [inherited]\fP" .PP Return observed plot canvas. .SS "const \fBQwtPlotCanvas\fP * QwtPlotPicker::canvas () const\fC [inherited]\fP" .PP Return Observed plot canvas. .SS "void QwtPicker::changed (const QwtPolygon &pa)\fC [signal, inherited]\fP"A signal emitted when the active selection has been changed. This might happen when the observed widget is resized. .PP \fBParameters:\fP .RS 4 \fIpa\fP Changed selection .RE .PP \fBSee also:\fP .RS 4 \fBstretchSelection()\fP .RE .PP .SS "void QwtPicker::drawRubberBand (QPainter *painter) const\fC [virtual, inherited]\fP"Draw a rubberband , depending on \fBrubberBand()\fP and \fBselectionFlags()\fP .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter, initialized with clip rect .RE .PP \fBSee also:\fP .RS 4 \fBrubberBand()\fP, \fBRubberBand\fP, \fBselectionFlags()\fP .RE .PP .SS "void QwtPicker::drawTracker (QPainter *painter) const\fC [virtual, inherited]\fP"Draw the tracker .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .RE .PP \fBSee also:\fP .RS 4 \fBtrackerRect()\fP, \fBtrackerText()\fP .RE .PP .SS "bool QwtPlotZoomer::end (boolok = \fCtrue\fP)\fC [protected, virtual]\fP"Expand the selected rectangle to \fBminZoomSize()\fP and zoom in if accepted. .PP \fBSee also:\fP .RS 4 \fBaccept()\fP, \fBminZoomSize()\fP .RE .PP .PP Reimplemented from \fBQwtPlotPicker\fP. .SS "bool QwtPicker::eventFilter (QObject *o, QEvent *e)\fC [virtual, inherited]\fP" .PP Event filter. When \fBisEnabled()\fP == true all events of the observed widget are filtered. Mouse and keyboard events are translated into widgetMouse- and widgetKey- and widgetWheel-events. Paint and Resize events are handled to keep rubberband and tracker up to date. .PP \fBSee also:\fP .RS 4 event(), \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtEventPattern::initKeyPattern ()\fC [inherited]\fP"Set default mouse patterns. .PP \fBSee also:\fP .RS 4 \fBKeyPatternCode\fP .RE .PP .SS "void QwtEventPattern::initMousePattern (intnumButtons)\fC [inherited]\fP"Set default mouse patterns, depending on the number of mouse buttons .PP \fBParameters:\fP .RS 4 \fInumButtons\fP Number of mouse buttons ( <= 3 ) .RE .PP \fBSee also:\fP .RS 4 \fBMousePatternCode\fP .RE .PP .SS "QwtDoubleRect QwtPlotPicker::invTransform (const QRect &rect) const\fC [protected, inherited]\fP"Translate a rectangle from pixel into plot coordinates .PP \fBReturns:\fP .RS 4 Rectangle in plot coordinates .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlotPicker::transform()\fP .RE .PP .SS "QwtDoublePoint QwtPlotPicker::invTransform (const QPoint &pos) const\fC [protected, inherited]\fP"Translate a point from pixel into plot coordinates .PP \fBReturns:\fP .RS 4 Point in plot coordinates .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlotPicker::transform()\fP .RE .PP .SS "bool QwtPicker::isActive () const\fC [inherited]\fP"A picker is active between \fBbegin()\fP and \fBend()\fP. .PP \fBReturns:\fP .RS 4 true if the selection is active. .RE .PP .SS "bool QwtPicker::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 "bool QwtEventPattern::keyMatch (uintpattern, const QKeyEvent *e) const\fC [inherited]\fP" .PP Compare a key event with an event pattern. A key event matches the pattern when both have the same key value and in the state value the same key flags (Qt::KeyButtonMask) are set. .PP \fBParameters:\fP .RS 4 \fIpattern\fP Index of the event pattern .br \fIe\fP Key event .RE .PP \fBReturns:\fP .RS 4 true if matches .RE .PP \fBSee also:\fP .RS 4 \fBmouseMatch()\fP .RE .PP .SS "bool QwtEventPattern::keyMatch (const \fBKeyPattern\fP &pattern, const QKeyEvent *e) const\fC [protected, virtual, inherited]\fP" .PP Compare a key event with an event pattern. A key event matches the pattern when both have the same key value and in the state value the same key flags (Qt::KeyButtonMask) are set. .PP \fBParameters:\fP .RS 4 \fIpattern\fP Key event pattern .br \fIe\fP Key event .RE .PP \fBReturns:\fP .RS 4 true if matches .RE .PP \fBSee also:\fP .RS 4 \fBmouseMatch()\fP .RE .PP .SS "const QwtArray< \fBQwtEventPattern::KeyPattern\fP > & QwtEventPattern::keyPattern () const\fC [inherited]\fP" .PP Return key patterns. .SS "QwtArray< \fBQwtEventPattern::KeyPattern\fP > & QwtEventPattern::keyPattern ()\fC [inherited]\fP" .PP Return Key patterns. .SS "int QwtPlotZoomer::maxStackDepth () const"\fBReturns:\fP .RS 4 Maximal depth of the zoom stack. .RE .PP \fBSee also:\fP .RS 4 \fBsetMaxStackDepth()\fP .RE .PP .SS "QwtDoubleSize QwtPlotZoomer::minZoomSize () const\fC [protected, virtual]\fP" .PP Limit zooming by a minimum rectangle. \fBReturns:\fP .RS 4 \fBzoomBase()\fP.width() / 10e4, \fBzoomBase()\fP.height() / 10e4 .RE .PP .SS "bool QwtEventPattern::mouseMatch (uintpattern, const QMouseEvent *e) const\fC [inherited]\fP" .PP Compare a mouse event with an event pattern. A mouse event matches the pattern when both have the same button value and in the state value the same key flags(Qt::KeyButtonMask) are set. .PP \fBParameters:\fP .RS 4 \fIpattern\fP Index of the event pattern .br \fIe\fP Mouse event .RE .PP \fBReturns:\fP .RS 4 true if matches .RE .PP \fBSee also:\fP .RS 4 \fBkeyMatch()\fP .RE .PP .SS "bool QwtEventPattern::mouseMatch (const \fBMousePattern\fP &pattern, const QMouseEvent *e) const\fC [protected, virtual, inherited]\fP" .PP Compare a mouse event with an event pattern. A mouse event matches the pattern when both have the same button value and in the state value the same key flags(Qt::KeyButtonMask) are set. .PP \fBParameters:\fP .RS 4 \fIpattern\fP Mouse event pattern .br \fIe\fP Mouse event .RE .PP \fBReturns:\fP .RS 4 true if matches .RE .PP \fBSee also:\fP .RS 4 \fBkeyMatch()\fP .RE .PP .SS "QwtArray< \fBQwtEventPattern::MousePattern\fP > & QwtEventPattern::mousePattern ()\fC [inherited]\fP" .PP Return ,ouse patterns. .SS "const QwtArray< \fBQwtEventPattern::MousePattern\fP > & QwtEventPattern::mousePattern () const\fC [inherited]\fP" .PP Return mouse patterns. .SS "void QwtPlotPicker::move (const QPoint &pos)\fC [protected, virtual, inherited]\fP"Move the last point of the selection .PP \fBParameters:\fP .RS 4 \fIpos\fP New position .RE .PP \fBSee also:\fP .RS 4 \fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBappend()\fP .RE .PP \fBNote:\fP .RS 4 The \fBmoved(const QPoint &)\fP, moved(const QDoublePoint &) signals are emitted. .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPlotZoomer::move (doublex, doubley)\fC [virtual, slot]\fP"Move the the current zoom rectangle. .PP \fBParameters:\fP .RS 4 \fIx\fP X value .br \fIy\fP Y value .RE .PP \fBSee also:\fP .RS 4 QwtDoubleRect::move() .RE .PP \fBNote:\fP .RS 4 The changed rectangle is limited by the zoom base .RE .PP .SS "void QwtPlotZoomer::moveBy (doubledx, doubledy)\fC [slot]\fP"Move the current zoom rectangle. .PP \fBParameters:\fP .RS 4 \fIdx\fP X offset .br \fIdy\fP Y offset .RE .PP \fBNote:\fP .RS 4 The changed rectangle is limited by the zoom base .RE .PP .SS "void QwtPicker::moved (const QPoint &pos)\fC [signal, inherited]\fP"A signal emitted whenever the last appended point of the selection has been moved. .PP \fBParameters:\fP .RS 4 \fIpos\fP Position of the moved last point of the selection. .RE .PP \fBSee also:\fP .RS 4 \fBmove()\fP, \fBappended()\fP .RE .PP .SS "void QwtPlotPicker::moved (const QwtDoublePoint &pos)\fC [signal, inherited]\fP"A signal emitted whenever the last appended point of the selection has been moved. .PP \fBParameters:\fP .RS 4 \fIpos\fP Position of the moved last point of the selection. .RE .PP \fBSee also:\fP .RS 4 \fBmove()\fP, \fBappended()\fP .RE .PP .SS "QWidget * QwtPicker::parentWidget ()\fC [inherited]\fP" .PP Return the parent widget, where the selection happens. .SS "const QWidget * QwtPicker::parentWidget () const\fC [inherited]\fP" .PP Return the parent widget, where the selection happens. .SS "QRect QwtPicker::pickRect () const\fC [virtual, inherited]\fP"Find the area of the observed widget, where selection might happen. .PP \fBReturns:\fP .RS 4 QFrame::contentsRect() if it is a QFrame, QWidget::rect() otherwise. .RE .PP .SS "\fBQwtPlot\fP * QwtPlotPicker::plot ()\fC [inherited]\fP" .PP Return plot widget, containing the observed plot canvas. .SS "const \fBQwtPlot\fP * QwtPlotPicker::plot () const\fC [inherited]\fP" .PP Return plot widget, containing the observed plot canvas. .SS "void QwtPlotZoomer::rescale ()\fC [protected, virtual]\fP"Adjust the observed plot to \fBzoomRect()\fP .PP \fBNote:\fP .RS 4 Initiates \fBQwtPlot::replot\fP .RE .PP .SS "void QwtPicker::reset ()\fC [protected, virtual, inherited]\fP"Reset the state machine and terminate (end(false)) the selection .SS "\fBQwtPicker::ResizeMode\fP QwtPicker::resizeMode () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Resize mode .RE .PP \fBSee also:\fP .RS 4 \fBsetResizeMode()\fP, \fBResizeMode\fP .RE .PP .SS "\fBQwtPicker::RubberBand\fP QwtPicker::rubberBand () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Rubberband style .RE .PP \fBSee also:\fP .RS 4 \fBsetRubberBand()\fP, \fBRubberBand\fP, \fBrubberBandPen()\fP .RE .PP .SS "QPen QwtPicker::rubberBandPen () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Rubberband pen .RE .PP \fBSee also:\fP .RS 4 \fBsetRubberBandPen()\fP, \fBrubberBand()\fP .RE .PP .SS "const QWidget * QwtPicker::rubberBandWidget () const\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Widget displaying the rubberband .RE .PP .SS "QwtDoubleRect QwtPlotPicker::scaleRect () const\fC [protected, inherited]\fP"Return normalized bounding rect of the axes .PP \fBSee also:\fP .RS 4 \fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP. .RE .PP .SS "void QwtPicker::selected (const QwtPolygon &pa)\fC [signal, inherited]\fP"A signal emitting the selected points, at the end of a selection. .PP \fBParameters:\fP .RS 4 \fIpa\fP Selected points .RE .PP .SS "void QwtPlotPicker::selected (const QwtArray< QwtDoublePoint > &pa)\fC [signal, inherited]\fP"A signal emitting the selected points, at the end of a selection. .PP \fBParameters:\fP .RS 4 \fIpa\fP Selected points .RE .PP .SS "void QwtPlotPicker::selected (const QwtDoublePoint &pos)\fC [signal, inherited]\fP"A signal emitted in case of \fBselectionFlags()\fP & PointSelection. .PP \fBParameters:\fP .RS 4 \fIpos\fP Selected point .RE .PP .SS "void QwtPlotPicker::selected (const QwtDoubleRect &rect)\fC [signal, inherited]\fP"A signal emitted in case of \fBselectionFlags()\fP & RectSelection. .PP \fBParameters:\fP .RS 4 \fIrect\fP Selected rectangle .RE .PP .SS "const QwtPolygon & QwtPicker::selection () const\fC [inherited]\fP" .PP Return Selected points. .SS "int QwtPicker::selectionFlags () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Selection flags, an Or'd value of SelectionType, RectSelectionType and SelectionMode. .RE .PP \fBSee also:\fP .RS 4 \fBsetSelectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP .RE .PP .SS "void QwtPlotZoomer::setAxis (intxAxis, intyAxis)\fC [virtual]\fP"Reinitialize the axes, and set the zoom base to their scales. .PP \fBParameters:\fP .RS 4 \fIxAxis\fP X axis .br \fIyAxis\fP Y axis .RE .PP .PP Reimplemented from \fBQwtPlotPicker\fP. .SS "void QwtPicker::setEnabled (boolenabled)\fC [virtual, inherited]\fP" .PP En/disable the picker. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed. .PP \fBParameters:\fP .RS 4 \fIenabled\fP true or false .RE .PP \fBSee also:\fP .RS 4 \fBisEnabled()\fP, \fBeventFilter()\fP .RE .PP .SS "void QwtEventPattern::setKeyPattern (const QwtArray< \fBKeyPattern\fP > &pattern)\fC [inherited]\fP" .PP Change the key event patterns. .SS "void QwtEventPattern::setKeyPattern (uintpattern, intkey, intstate = \fCQt::NoButton\fP)\fC [inherited]\fP"Change one key pattern .PP \fBParameters:\fP .RS 4 \fIpattern\fP Index of the pattern .br \fIkey\fP Key .br \fIstate\fP State .RE .PP \fBSee also:\fP .RS 4 QKeyEvent .RE .PP .SS "void QwtPlotZoomer::setMaxStackDepth (intdepth)" .PP Limit the number of recursive zoom operations to depth. A value of \-1 set the depth to unlimited, 0 disables zooming. If the current zoom rectangle is below depth, the plot is unzoomed. .PP \fBParameters:\fP .RS 4 \fIdepth\fP Maximum for the stack depth .RE .PP \fBSee also:\fP .RS 4 \fBmaxStackDepth()\fP .RE .PP \fBNote:\fP .RS 4 depth doesn't include the zoom base, so \fBzoomStack()\fP.count() might be \fBmaxStackDepth()\fP + 1. .RE .PP .SS "void QwtEventPattern::setMousePattern (const QwtArray< \fBMousePattern\fP > &pattern)\fC [inherited]\fP" .PP Change the mouse event patterns. .SS "void QwtEventPattern::setMousePattern (uintpattern, intbutton, intstate = \fCQt::NoButton\fP)\fC [inherited]\fP"Change one mouse pattern .PP \fBParameters:\fP .RS 4 \fIpattern\fP Index of the pattern .br \fIbutton\fP Button .br \fIstate\fP State .RE .PP \fBSee also:\fP .RS 4 QMouseEvent .RE .PP .SS "void QwtPicker::setResizeMode (\fBResizeMode\fPmode)\fC [virtual, inherited]\fP" .PP Set the resize mode. The resize mode controls what to do with the selected points of an active selection when the observed widget is resized. .PP Stretch means the points are scaled according to the new size, KeepSize means the points remain unchanged. .PP The default mode is Stretch. .PP \fBParameters:\fP .RS 4 \fImode\fP Resize mode .RE .PP \fBSee also:\fP .RS 4 \fBresizeMode()\fP, \fBResizeMode\fP .RE .PP .SS "void QwtPicker::setRubberBand (\fBRubberBand\fPrubberBand)\fC [virtual, inherited]\fP"Set the rubberband style .PP \fBParameters:\fP .RS 4 \fIrubberBand\fP Rubberband style The default value is NoRubberBand. .RE .PP \fBSee also:\fP .RS 4 \fBrubberBand()\fP, \fBRubberBand\fP, \fBsetRubberBandPen()\fP .RE .PP .SS "void QwtPicker::setRubberBandPen (const QPen &pen)\fC [virtual, inherited]\fP"Set the pen for the rubberband .PP \fBParameters:\fP .RS 4 \fIpen\fP Rubberband pen .RE .PP \fBSee also:\fP .RS 4 \fBrubberBandPen()\fP, \fBsetRubberBand()\fP .RE .PP .SS "void QwtPlotZoomer::setSelectionFlags (intflags)\fC [virtual]\fP"Set the selection flags .PP \fBParameters:\fP .RS 4 \fIflags\fP Or'd value of \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP. The default value is QwtPicker::RectSelection & QwtPicker::ClickSelection. .RE .PP \fBSee also:\fP .RS 4 \fBselectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP .RE .PP \fBNote:\fP .RS 4 QwtPicker::RectSelection will be auto added. .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPicker::setTrackerFont (const QFont &font)\fC [virtual, inherited]\fP"Set the font for the tracker .PP \fBParameters:\fP .RS 4 \fIfont\fP Tracker font .RE .PP \fBSee also:\fP .RS 4 \fBtrackerFont()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerPen()\fP .RE .PP .SS "void QwtPicker::setTrackerMode (\fBDisplayMode\fPmode)\fC [virtual, inherited]\fP" .PP Set the display mode of the tracker. A tracker displays information about current position of the cursor as a string. The display mode controls if the tracker has to be displayed whenever the observed widget has focus and cursor (AlwaysOn), never (AlwaysOff), or only when the selection is active (ActiveOnly). .PP \fBParameters:\fP .RS 4 \fImode\fP Tracker display mode .RE .PP \fBWarning:\fP .RS 4 In case of AlwaysOn, mouseTracking will be enabled for the observed widget. .RE .PP \fBSee also:\fP .RS 4 \fBtrackerMode()\fP, \fBDisplayMode\fP .RE .PP .SS "void QwtPicker::setTrackerPen (const QPen &pen)\fC [virtual, inherited]\fP"Set the pen for the tracker .PP \fBParameters:\fP .RS 4 \fIpen\fP Tracker pen .RE .PP \fBSee also:\fP .RS 4 \fBtrackerPen()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerFont()\fP .RE .PP .SS "void QwtPlotZoomer::setZoomBase (booldoReplot = \fCtrue\fP)\fC [virtual]\fP"Reinitialized the zoom stack with \fBscaleRect()\fP as base. .PP \fBParameters:\fP .RS 4 \fIdoReplot\fP Call replot for the attached plot before initializing the zoomer with its scales. This might be necessary, when the plot is in a state with pending scale changes. .RE .PP \fBSee also:\fP .RS 4 \fBzoomBase()\fP, \fBscaleRect()\fP \fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP. .RE .PP .SS "void QwtPlotZoomer::setZoomBase (const QwtDoubleRect &base)\fC [virtual]\fP" .PP Set the initial size of the zoomer. base is united with the current \fBscaleRect()\fP and the zoom stack is reinitalized with it as zoom base. plot is zoomed to \fBscaleRect()\fP. .PP \fBParameters:\fP .RS 4 \fIbase\fP Zoom base .RE .PP \fBSee also:\fP .RS 4 \fBzoomBase()\fP, \fBscaleRect()\fP .RE .PP .SS "void QwtPlotZoomer::setZoomStack (const QStack< QwtDoubleRect > &, intzoomRectIndex = \fC-1\fP)" .PP Assign a zoom stack. In combination with other types of navigation it might be useful to modify to manipulate the complete zoom stack. .PP \fBParameters:\fP .RS 4 \fIzoomStack\fP New zoom stack .br \fIzoomRectIndex\fP Index of the current position of zoom stack. In case of \-1 the current position is at the top of the stack. .RE .PP \fBNote:\fP .RS 4 The zoomed signal might be emitted. .RE .PP \fBSee also:\fP .RS 4 \fBzoomStack()\fP, \fBzoomRectIndex()\fP .RE .PP .SS "\fBQwtPickerMachine\fP * QwtPicker::stateMachine (intflags) const\fC [protected, virtual, inherited]\fP"Create a state machine depending on the selection flags. .PP .IP "\(bu" 2 PointSelection | ClickSelection .br QwtPickerClickPointMachine() .IP "\(bu" 2 PointSelection | DragSelection .br QwtPickerDragPointMachine() .IP "\(bu" 2 RectSelection | ClickSelection .br QwtPickerClickRectMachine() .IP "\(bu" 2 RectSelection | DragSelection .br QwtPickerDragRectMachine() .IP "\(bu" 2 PolygonSelection .br QwtPickerPolygonMachine() .PP .PP \fBSee also:\fP .RS 4 \fBsetSelectionFlags()\fP .RE .PP .SS "void QwtPicker::stretchSelection (const QSize &oldSize, const QSize &newSize)\fC [protected, virtual, inherited]\fP"Scale the selection by the ratios of oldSize and newSize The \fBchanged()\fP signal is emitted. .PP \fBParameters:\fP .RS 4 \fIoldSize\fP Previous size .br \fInewSize\fP Current size .RE .PP \fBSee also:\fP .RS 4 \fBResizeMode\fP, \fBsetResizeMode()\fP, \fBresizeMode()\fP .RE .PP .SS "QFont QwtPicker::trackerFont () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Tracker font .RE .PP \fBSee also:\fP .RS 4 \fBsetTrackerFont()\fP, \fBtrackerMode()\fP, \fBtrackerPen()\fP .RE .PP .SS "\fBQwtPicker::DisplayMode\fP QwtPicker::trackerMode () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Tracker display mode .RE .PP \fBSee also:\fP .RS 4 \fBsetTrackerMode()\fP, \fBDisplayMode\fP .RE .PP .SS "QPen QwtPicker::trackerPen () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Tracker pen .RE .PP \fBSee also:\fP .RS 4 \fBsetTrackerPen()\fP, \fBtrackerMode()\fP, \fBtrackerFont()\fP .RE .PP .SS "QPoint QwtPicker::trackerPosition () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Current position of the tracker .RE .PP .SS "QRect QwtPicker::trackerRect (const QFont &font) const\fC [inherited]\fP"Calculate the bounding rectangle for the tracker text from the current position of the tracker .PP \fBParameters:\fP .RS 4 \fIfont\fP Font of the tracker text .RE .PP \fBReturns:\fP .RS 4 Bounding rectangle of the tracker text .RE .PP \fBSee also:\fP .RS 4 \fBtrackerPosition()\fP .RE .PP .SS "\fBQwtText\fP QwtPlotPicker::trackerText (const QwtDoublePoint &pos) const\fC [protected, virtual, inherited]\fP" .PP Translate a position into a position string. In case of HLineRubberBand the label is the value of the y position, in case of VLineRubberBand the value of the x position. Otherwise the label contains x and y position separated by a ',' . .PP The format for the double to string conversion is '%.4f'. .PP \fBParameters:\fP .RS 4 \fIpos\fP Position .RE .PP \fBReturns:\fP .RS 4 Position string .RE .PP .SS "\fBQwtText\fP QwtPlotPicker::trackerText (const QPoint &pos) const\fC [protected, virtual, inherited]\fP"Translate a pixel position into a position string .PP \fBParameters:\fP .RS 4 \fIpos\fP Position in pixel coordinates .RE .PP \fBReturns:\fP .RS 4 Position string .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "const QWidget * QwtPicker::trackerWidget () const\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Widget displaying the tracker text .RE .PP .SS "QPoint QwtPlotPicker::transform (const QwtDoublePoint &pos) const\fC [protected, inherited]\fP"Translate a point from plot into pixel coordinates .PP \fBReturns:\fP .RS 4 Point in pixel coordinates .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlotPicker::invTransform()\fP .RE .PP .SS "QRect QwtPlotPicker::transform (const QwtDoubleRect &rect) const\fC [protected, inherited]\fP"Translate a rectangle from plot into pixel coordinates .PP \fBReturns:\fP .RS 4 Rectangle in pixel coordinates .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlotPicker::invTransform()\fP .RE .PP .SS "void QwtPicker::transition (const QEvent *e)\fC [protected, virtual, inherited]\fP"Passes an event to the state machine and executes the resulting commands. Append and Move commands use the current position of the cursor (QCursor::pos()). .PP \fBParameters:\fP .RS 4 \fIe\fP Event .RE .PP .SS "void QwtPicker::updateDisplay ()\fC [protected, virtual, inherited]\fP" .PP Update the state of rubberband and tracker label. .SS "void QwtPlotZoomer::widgetKeyPressEvent (QKeyEvent *ke)\fC [protected, virtual]\fP"Qt::Key_Plus zooms in, Qt::Key_Minus zooms out one position on the zoom stack, Qt::Key_Escape zooms out to the zoom base. .PP Changes the current position on the stack, but doesn't pop any rectangle. .PP \fBNote:\fP .RS 4 The keys codes can be changed, using \fBQwtEventPattern::setKeyPattern\fP: 3, 4, 5 .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPicker::widgetKeyReleaseEvent (QKeyEvent *ke)\fC [protected, virtual, inherited]\fP"Handle a key release event for the observed widget. .PP Passes the event to the state machine. .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBstateMachine()\fP .RE .PP .SS "void QwtPicker::widgetLeaveEvent (QEvent *)\fC [protected, virtual, inherited]\fP"Handle a leave event for the observed widget. .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPicker::widgetMouseDoubleClickEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle mouse double click event for the observed widget. .PP Empty implementation, does nothing. .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPicker::widgetMouseMoveEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Handle a mouse move event for the observed widget. .PP Move the last point of the selection in case of \fBisActive()\fP == true .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPicker::widgetMousePressEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Handle a mouse press event for the observed widget. .PP Begin and/or end a selection depending on the selection flags. .PP \fBSee also:\fP .RS 4 \fBQwtPicker\fP, \fBselectionFlags()\fP .PP \fBeventFilter()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPlotZoomer::widgetMouseReleaseEvent (QMouseEvent *me)\fC [protected, virtual]\fP"Qt::MidButton zooms out one position on the zoom stack, Qt::RightButton to the zoom base. .PP Changes the current position on the stack, but doesn't pop any rectangle. .PP \fBNote:\fP .RS 4 The mouse events can be changed, using \fBQwtEventPattern::setMousePattern\fP: 2, 1 .RE .PP .PP Reimplemented from \fBQwtPicker\fP. .SS "void QwtPicker::widgetWheelEvent (QWheelEvent *e)\fC [protected, virtual, inherited]\fP"Handle a wheel event for the observed widget. .PP Move the last point of the selection in case of \fBisActive()\fP == true .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "int QwtPlotPicker::xAxis () const\fC [inherited]\fP" .PP Return x axis. .SS "int QwtPlotPicker::yAxis () const\fC [inherited]\fP" .PP Return y axis. .SS "void QwtPlotZoomer::zoom (intoffset)\fC [virtual, slot]\fP" .PP Zoom in or out. Activate a rectangle on the zoom stack with an offset relative to the current position. Negative values of offest will zoom out, positive zoom in. A value of 0 zooms out to the zoom base. .PP \fBParameters:\fP .RS 4 \fIoffset\fP Offset relative to the current position of the zoom stack. .RE .PP \fBNote:\fP .RS 4 The zoomed signal is emitted. .RE .PP \fBSee also:\fP .RS 4 \fBzoomRectIndex()\fP .RE .PP .SS "void QwtPlotZoomer::zoom (const QwtDoubleRect &rect)\fC [virtual, slot]\fP" .PP Zoom in. Clears all rectangles above the current position of the zoom stack and pushs the intersection of \fBzoomRect()\fP and the normalized rect on it. .PP \fBNote:\fP .RS 4 If the maximal stack depth is reached, zoom is ignored. .PP The zoomed signal is emitted. .RE .PP .SS "QwtDoubleRect QwtPlotZoomer::zoomBase () const"\fBReturns:\fP .RS 4 Initial rectangle of the zoomer .RE .PP \fBSee also:\fP .RS 4 \fBsetZoomBase()\fP, \fBzoomRect()\fP .RE .PP .SS "void QwtPlotZoomer::zoomed (const QwtDoubleRect &rect)\fC [signal]\fP"A signal emitting the \fBzoomRect()\fP, when the plot has been zoomed in or out. .PP \fBParameters:\fP .RS 4 \fIrect\fP Current zoom rectangle. .RE .PP .SS "QwtDoubleRect QwtPlotZoomer::zoomRect () const"Rectangle at the current position on the zoom stack. .PP \fBSee also:\fP .RS 4 \fBzoomRectIndex()\fP, \fBscaleRect()\fP. .RE .PP .SS "uint QwtPlotZoomer::zoomRectIndex () const"\fBReturns:\fP .RS 4 Index of current position of zoom stack. .RE .PP .SS "const QwtZoomStack & QwtPlotZoomer::zoomStack () const"Return the zoom stack. \fBzoomStack()\fP[0] is the zoom base, \fBzoomStack()\fP[1] the first zoomed rectangle. .PP \fBSee also:\fP .RS 4 \fBsetZoomStack()\fP, \fBzoomRectIndex()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.