1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPlotPanner Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.4.6 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtPlotPanner Class Reference</h1><!-- doxytag: class="QwtPlotPanner" --><!-- doxytag: inherits="QwtPanner" -->Inheritance diagram for QwtPlotPanner:<p><center><img src="class_qwt_plot_panner__inherit__graph.png" border="0" usemap="#_qwt_plot_panner__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_panner__inherit__map">
24
<area href="class_qwt_panner.html" shape="rect" coords="19,8,107,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotPanner:<p><center><img src="class_qwt_plot_panner__coll__graph.png" border="0" usemap="#_qwt_plot_panner__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_plot_panner__coll__map">
28
<area href="class_qwt_panner.html" shape="rect" coords="19,8,107,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_panner-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
<a class="el" href="class_qwt_plot_panner.html">QwtPlotPanner</a> provides panning of a plot canvas.
33
<a class="el" href="class_qwt_plot_panner.html">QwtPlotPanner</a> is a panner for a <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a>, that adjusts the scales of the axes after dropping the canvas on its new position.<p>
34
Together with <a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a> and <a class="el" href="class_qwt_plot_magnifier.html">QwtPlotMagnifier</a> powerful ways of navigating on a <a class="el" href="class_qwt_plot.html">QwtPlot</a> widget can be implemented easily.<p>
35
<dl compact><dt><b>Note:</b></dt><dd>The axes are not updated, while dragging the canvas </dd></dl>
36
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a>, <a class="el" href="class_qwt_plot_magnifier.html">QwtPlotMagnifier</a> </dd></dl>
41
Definition at line <a class="el" href="qwt__plot__panner_8h-source.html#l00032">32</a> of file <a class="el" href="qwt__plot__panner_8h-source.html">qwt_plot_panner.h</a>.<table border="0" cellpadding="0" cellspacing="0">
43
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#a9dbbfbfaf99eabdada6757211365098">QwtPlotPanner</a> (<a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *)</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#a72bb8323d5a8eb46900f978bf1e3623">~QwtPlotPanner</a> ()</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#624eef57c43bc465d6702a0c4e8027bd">canvas</a> ()</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#ff4e32abdfc272edc85bba43d142946f">canvas</a> () const </td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#e52375921bfacc3e17d3db45858b1485">plot</a> ()</td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#2401ae1ff1e40b1ee4c7a997a895d2be">plot</a> () const </td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#cbd5d67684c5a20ea0115e66f69540e4">setAxisEnabled</a> (int axis, bool on)</td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#30fc7de4bede9f191a96df42f86e704b">isAxisEnabled</a> (int axis) const </td></tr>
60
<tr><td colspan="2"><br><h2>Protected Slots</h2></td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_panner.html#ab045140de3e38d316593388da9231bd">moveCanvas</a> (int dx, int dy)</td></tr>
64
<hr><h2>Constructor & Destructor Documentation</h2>
65
<a class="anchor" name="a9dbbfbfaf99eabdada6757211365098"></a><!-- doxytag: member="QwtPlotPanner::QwtPlotPanner" ref="a9dbbfbfaf99eabdada6757211365098" args="(QwtPlotCanvas *)" --><p>
66
<table class="mdTable" cellpadding="2" cellspacing="0">
69
<table cellpadding="0" cellspacing="0" border="0">
71
<td class="md" nowrap valign="top">QwtPlotPanner::QwtPlotPanner </td>
72
<td class="md" valign="top">( </td>
73
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td>
74
<td class="mdname1" valign="top" nowrap> <em>canvas</em> </td>
75
<td class="md" valign="top"> ) </td>
76
<td class="md" nowrap><code> [explicit]</code></td>
82
<table cellspacing="5" cellpadding="0" border="0">
92
The panner is enabled for all axes<p>
93
<dl compact><dt><b>Parameters:</b></dt><dd>
94
<table border="0" cellspacing="2" cellpadding="0">
95
<tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to pan, also the parent object</td></tr>
98
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_panner.html#cbd5d67684c5a20ea0115e66f69540e4">setAxisEnabled</a> </dd></dl>
101
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00038">38</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>.
103
References <a class="el" href="qwt__plot__panner_8cpp-source.html#l00130">moveCanvas()</a>, and <a class="el" href="class_qwt_panner.html#e9ce78e6f9ae73317af29b2dc5df7372">QwtPanner::panned()</a>. </td>
106
<a class="anchor" name="a72bb8323d5a8eb46900f978bf1e3623"></a><!-- doxytag: member="QwtPlotPanner::~QwtPlotPanner" ref="a72bb8323d5a8eb46900f978bf1e3623" args="()" --><p>
107
<table class="mdTable" cellpadding="2" cellspacing="0">
110
<table cellpadding="0" cellspacing="0" border="0">
112
<td class="md" nowrap valign="top">QwtPlotPanner::~QwtPlotPanner </td>
113
<td class="md" valign="top">( </td>
114
<td class="mdname1" valign="top" nowrap> </td>
115
<td class="md" valign="top"> ) </td>
116
<td class="md" nowrap><code> [virtual]</code></td>
122
<table cellspacing="5" cellpadding="0" border="0">
134
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00048">48</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>. </td>
137
<hr><h2>Member Function Documentation</h2>
138
<a class="anchor" name="ff4e32abdfc272edc85bba43d142946f"></a><!-- doxytag: member="QwtPlotPanner::canvas" ref="ff4e32abdfc272edc85bba43d142946f" args="() const " --><p>
139
<table class="mdTable" cellpadding="2" cellspacing="0">
142
<table cellpadding="0" cellspacing="0" border="0">
144
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotPanner::canvas </td>
145
<td class="md" valign="top">( </td>
146
<td class="mdname1" valign="top" nowrap> </td>
147
<td class="md" valign="top"> ) </td>
148
<td class="md" nowrap> const</td>
154
<table cellspacing="5" cellpadding="0" border="0">
162
Return Observed plot canvas.
166
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00097">97</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>. </td>
169
<a class="anchor" name="624eef57c43bc465d6702a0c4e8027bd"></a><!-- doxytag: member="QwtPlotPanner::canvas" ref="624eef57c43bc465d6702a0c4e8027bd" args="()" --><p>
170
<table class="mdTable" cellpadding="2" cellspacing="0">
173
<table cellpadding="0" cellspacing="0" border="0">
175
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotPanner::canvas </td>
176
<td class="md" valign="top">( </td>
177
<td class="mdname1" valign="top" nowrap> </td>
178
<td class="md" valign="top"> ) </td>
179
<td class="md" nowrap></td>
185
<table cellspacing="5" cellpadding="0" border="0">
193
Return observed plot canvas.
197
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00087">87</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>.
199
Referenced by <a class="el" href="qwt__plot__panner_8cpp-source.html#l00103">plot()</a>. </td>
202
<a class="anchor" name="30fc7de4bede9f191a96df42f86e704b"></a><!-- doxytag: member="QwtPlotPanner::isAxisEnabled" ref="30fc7de4bede9f191a96df42f86e704b" args="(int axis) const " --><p>
203
<table class="mdTable" cellpadding="2" cellspacing="0">
206
<table cellpadding="0" cellspacing="0" border="0">
208
<td class="md" nowrap valign="top">bool QwtPlotPanner::isAxisEnabled </td>
209
<td class="md" valign="top">( </td>
210
<td class="md" nowrap valign="top">int </td>
211
<td class="mdname1" valign="top" nowrap> <em>axis</em> </td>
212
<td class="md" valign="top"> ) </td>
213
<td class="md" nowrap> const</td>
219
<table cellspacing="5" cellpadding="0" border="0">
227
Test if an axis is enabled<p>
228
<dl compact><dt><b>Parameters:</b></dt><dd>
229
<table border="0" cellspacing="2" cellpadding="0">
230
<tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr>
233
<dl compact><dt><b>Returns:</b></dt><dd>True, if the axis is enabled</dd></dl>
234
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_panner.html#cbd5d67684c5a20ea0115e66f69540e4">setAxisEnabled</a>, <a class="el" href="class_qwt_plot_panner.html#ab045140de3e38d316593388da9231bd">moveCanvas</a> </dd></dl>
237
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00078">78</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>. </td>
240
<a class="anchor" name="ab045140de3e38d316593388da9231bd"></a><!-- doxytag: member="QwtPlotPanner::moveCanvas" ref="ab045140de3e38d316593388da9231bd" args="(int dx, int dy)" --><p>
241
<table class="mdTable" cellpadding="2" cellspacing="0">
244
<table cellpadding="0" cellspacing="0" border="0">
246
<td class="md" nowrap valign="top">void QwtPlotPanner::moveCanvas </td>
247
<td class="md" valign="top">( </td>
248
<td class="md" nowrap valign="top">int </td>
249
<td class="mdname" nowrap> <em>dx</em>, </td>
252
<td class="md" nowrap align="right"></td>
254
<td class="md" nowrap>int </td>
255
<td class="mdname" nowrap> <em>dy</em></td>
259
<td class="md">) </td>
260
<td class="md" colspan="2"><code> [protected, virtual, slot]</code></td>
266
<table cellspacing="5" cellpadding="0" border="0">
274
Adjust the enabled axes according to dx/dy<p>
275
<dl compact><dt><b>Parameters:</b></dt><dd>
276
<table border="0" cellspacing="2" cellpadding="0">
277
<tr><td valign="top"></td><td valign="top"><em>dx</em> </td><td>Pixel offset in x direction </td></tr>
278
<tr><td valign="top"></td><td valign="top"><em>dy</em> </td><td>Pixel offset in y direction</td></tr>
281
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_panner.html#e9ce78e6f9ae73317af29b2dc5df7372">QwtPanner::panned</a> </dd></dl>
284
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00130">130</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>.
286
References <a class="el" href="qwt__plot_8cpp-source.html#l00195">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00223">QwtPlot::axisScaleDiv()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00626">QwtPlot::canvasMap()</a>, <a class="el" href="qwt__scale__div_8h-source.html#l00086">QwtScaleDiv::hBound()</a>, <a class="el" href="qwt__scale__div_8h-source.html#l00077">QwtScaleDiv::lBound()</a>, <a class="el" href="qwt__plot__panner_8cpp-source.html#l00103">plot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00187">QwtPlot::setAutoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00384">QwtPlot::setAxisScale()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.
288
Referenced by <a class="el" href="qwt__plot__panner_8cpp-source.html#l00038">QwtPlotPanner()</a>. </td>
291
<a class="anchor" name="2401ae1ff1e40b1ee4c7a997a895d2be"></a><!-- doxytag: member="QwtPlotPanner::plot" ref="2401ae1ff1e40b1ee4c7a997a895d2be" args="() const " --><p>
292
<table class="mdTable" cellpadding="2" cellspacing="0">
295
<table cellpadding="0" cellspacing="0" border="0">
297
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotPanner::plot </td>
298
<td class="md" valign="top">( </td>
299
<td class="mdname1" valign="top" nowrap> </td>
300
<td class="md" valign="top"> ) </td>
301
<td class="md" nowrap> const</td>
307
<table cellspacing="5" cellpadding="0" border="0">
315
Return plot widget, containing the observed plot canvas.
319
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00117">117</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>. </td>
322
<a class="anchor" name="e52375921bfacc3e17d3db45858b1485"></a><!-- doxytag: member="QwtPlotPanner::plot" ref="e52375921bfacc3e17d3db45858b1485" args="()" --><p>
323
<table class="mdTable" cellpadding="2" cellspacing="0">
326
<table cellpadding="0" cellspacing="0" border="0">
328
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotPanner::plot </td>
329
<td class="md" valign="top">( </td>
330
<td class="mdname1" valign="top" nowrap> </td>
331
<td class="md" valign="top"> ) </td>
332
<td class="md" nowrap></td>
338
<table cellspacing="5" cellpadding="0" border="0">
346
Return plot widget, containing the observed plot canvas.
350
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00103">103</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>.
352
References <a class="el" href="qwt__plot__panner_8cpp-source.html#l00087">canvas()</a>.
354
Referenced by <a class="el" href="qwt__plot__panner_8cpp-source.html#l00130">moveCanvas()</a>. </td>
357
<a class="anchor" name="cbd5d67684c5a20ea0115e66f69540e4"></a><!-- doxytag: member="QwtPlotPanner::setAxisEnabled" ref="cbd5d67684c5a20ea0115e66f69540e4" args="(int axis, bool on)" --><p>
358
<table class="mdTable" cellpadding="2" cellspacing="0">
361
<table cellpadding="0" cellspacing="0" border="0">
363
<td class="md" nowrap valign="top">void QwtPlotPanner::setAxisEnabled </td>
364
<td class="md" valign="top">( </td>
365
<td class="md" nowrap valign="top">int </td>
366
<td class="mdname" nowrap> <em>axis</em>, </td>
369
<td class="md" nowrap align="right"></td>
371
<td class="md" nowrap>bool </td>
372
<td class="mdname" nowrap> <em>on</em></td>
376
<td class="md">) </td>
377
<td class="md" colspan="2"></td>
383
<table cellspacing="5" cellpadding="0" border="0">
393
Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.<p>
394
<dl compact><dt><b>Parameters:</b></dt><dd>
395
<table border="0" cellspacing="2" cellpadding="0">
396
<tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr>
397
<tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr>
400
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_panner.html#30fc7de4bede9f191a96df42f86e704b">isAxisEnabled</a>, <a class="el" href="class_qwt_plot_panner.html#ab045140de3e38d316593388da9231bd">moveCanvas</a> </dd></dl>
403
Definition at line <a class="el" href="qwt__plot__panner_8cpp-source.html#l00064">64</a> of file <a class="el" href="qwt__plot__panner_8cpp-source.html">qwt_plot_panner.cpp</a>. </td>
406
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:12 2007 for Qwt User's Guide by
407
<a href="http://www.doxygen.org/index.html">
408
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>