1
.TH "QwtPlotPanner" 3 "22 Mar 2009" "Qwt User's Guide" \" -*- nroff -*-
5
QwtPlotPanner \- \fBQwtPlotPanner\fP provides panning of a plot canvas.
11
\fC#include <qwt_plot_panner.h>\fP
13
Inherits \fBQwtPanner\fP.
15
.SS "Public Member Functions"
19
.RI "\fBQwtPlotPanner\fP (\fBQwtPlotCanvas\fP *)"
22
.RI "virtual \fB~QwtPlotPanner\fP ()"
25
.RI "\fBQwtPlotCanvas\fP * \fBcanvas\fP ()"
28
.RI "const \fBQwtPlotCanvas\fP * \fBcanvas\fP () const "
31
.RI "\fBQwtPlot\fP * \fBplot\fP ()"
34
.RI "const \fBQwtPlot\fP * \fBplot\fP () const "
37
.RI "void \fBsetAxisEnabled\fP (int axis, bool on)"
40
.RI "bool \fBisAxisEnabled\fP (int axis) const "
47
.RI "virtual void \fBmoveCanvas\fP (int dx, int dy)"
50
.SH "Detailed Description"
52
\fBQwtPlotPanner\fP provides panning of a plot canvas.
54
\fBQwtPlotPanner\fP is a panner for a \fBQwtPlotCanvas\fP, that adjusts the scales of the axes after dropping the canvas on its new position.
56
Together with \fBQwtPlotZoomer\fP and \fBQwtPlotMagnifier\fP powerful ways of navigating on a \fBQwtPlot\fP widget can be implemented easily.
60
The axes are not updated, while dragging the canvas
65
\fBQwtPlotZoomer\fP, \fBQwtPlotMagnifier\fP
69
.SH "Constructor & Destructor Documentation"
71
.SS "QwtPlotPanner::QwtPlotPanner (\fBQwtPlotCanvas\fP * canvas)\fC [explicit]\fP"
75
The panner is enabled for all axes
79
\fIcanvas\fP Plot canvas to pan, also the parent object
84
\fBsetAxisEnabled()\fP
88
.SS "QwtPlotPanner::~QwtPlotPanner ()\fC [virtual]\fP"
92
.SH "Member Function Documentation"
94
.SS "const \fBQwtPlotCanvas\fP * QwtPlotPanner::canvas () const"
96
Return Observed plot canvas.
98
.SS "\fBQwtPlotCanvas\fP * QwtPlotPanner::canvas ()"
100
Return observed plot canvas.
102
.SS "bool QwtPlotPanner::isAxisEnabled (int axis) const"
104
Test if an axis is enabled
108
\fIaxis\fP Axis, see \fBQwtPlot::Axis\fP
113
True, if the axis is enabled
118
\fBsetAxisEnabled()\fP, \fBmoveCanvas()\fP
122
.SS "void QwtPlotPanner::moveCanvas (int dx, int dy)\fC [protected, virtual, slot]\fP"
124
Adjust the enabled axes according to dx/dy
128
\fIdx\fP Pixel offset in x direction
130
\fIdy\fP Pixel offset in y direction
135
\fBQwtPanner::panned()\fP
139
.SS "const \fBQwtPlot\fP * QwtPlotPanner::plot () const"
141
Return plot widget, containing the observed plot canvas.
143
.SS "\fBQwtPlot\fP * QwtPlotPanner::plot ()"
145
Return plot widget, containing the observed plot canvas.
147
.SS "void QwtPlotPanner::setAxisEnabled (int axis, bool on)"
151
Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.
155
\fIaxis\fP Axis, see \fBQwtPlot::Axis\fP
162
\fBisAxisEnabled()\fP, \fBmoveCanvas()\fP
169
Generated automatically by Doxygen for Qwt User's Guide from the source code.