~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt/doc/html/class_qwt_plot_zoomer.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2011-06-10 11:22:47 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110610112247-0i1019vvmzaq6p86
Tags: 6.0.0-1
* New upstream release (Closes: #624107):
  - drop Qt3 support. (Closes: #604379, #626868)
* Register documentation with doc-base. (Closes: #626567)
* Drop patches:
  - 01_makefiles.diff
  - 02_add_missing_warnings.diff
  - 03_qwt_branch_pull_r544.diff
* Add qwt_install_paths.patch to fix the hardcoded installation paths.
* Update debian/control:
  - drop libqt3-mt-dev build dependency.
  - bump Standards-Version to 3.9.2 (no changes).
  - drop Qt3 related packages.
  - due to bump soname (and as we dropper Qt3 support):
    - libqwt5-qt4-dev -> libqwt-dev
    - libqwt5-qt4 -> libqwt6
    - libqwt5-doc -> libqwt-doc
* Update debian/copyright file.
* Update debian/rules: drop Qt3 packages support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
 
<title>Qwt User&#39;s Guide: QwtPlotZoomer Class Reference</title>
4
 
<link href="tabs.css" rel="stylesheet" type="text/css">
5
 
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.5.8 -->
8
 
<div class="navigation" id="top">
9
 
  <div class="tabs">
10
 
    <ul>
11
 
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
 
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
 
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
14
 
      <li><a href="files.html"><span>Files</span></a></li>
15
 
    </ul>
16
 
  </div>
17
 
  <div class="tabs">
18
 
    <ul>
19
 
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
 
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
21
 
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22
 
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23
 
    </ul>
24
 
  </div>
25
 
</div>
26
 
<div class="contents">
27
 
<h1>QwtPlotZoomer Class Reference</h1><!-- doxytag: class="QwtPlotZoomer" --><!-- doxytag: inherits="QwtPlotPicker" --><a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> provides stacked zooming for a plot widget.  
28
 
<a href="#_details">More...</a>
29
 
<p>
30
 
<code>#include &lt;<a class="el" href="qwt__plot__zoomer_8h-source.html">qwt_plot_zoomer.h</a>&gt;</code>
31
 
<p>
32
 
<div class="dynheader">
33
 
Inheritance diagram for QwtPlotZoomer:</div>
34
 
<div class="dynsection">
35
 
<p><center><img src="class_qwt_plot_zoomer__inherit__graph.png" border="0" usemap="#_qwt_plot_zoomer__inherit__map" alt="Inheritance graph"></center>
36
 
<map name="_qwt_plot_zoomer__inherit__map">
37
 
<area shape="rect" href="class_qwt_plot_picker.html" title="QwtPlotPicker provides selections on a plot canvas." alt="" coords="15,157,121,181"><area shape="rect" href="class_qwt_picker.html" title="QwtPicker provides selections on a widget." alt="" coords="27,83,109,107"><area shape="rect" href="class_qwt_event_pattern.html" title="A collection of event patterns." alt="" coords="7,8,129,32"></map>
38
 
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
39
 
 
40
 
<p>
41
 
<a href="class_qwt_plot_zoomer-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
42
 
<tr><td></td></tr>
43
 
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
44
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c66b3eac03db212812198637f4e233ca">moveBy</a> (double x, double y)</td></tr>
45
 
 
46
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#6bfbb67129b1220df65685858c9d882c">move</a> (double x, double y)</td></tr>
47
 
 
48
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#eeed51dfa01136f00961e679dcbb9d9d">zoom</a> (const QwtDoubleRect &amp;)</td></tr>
49
 
 
50
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#0cee73f15c5791553cb52c4e7b3e881e">zoom</a> (int up)</td></tr>
51
 
 
52
 
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
53
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#e4e9b90ccfb97f4eae54c667f79644ff">zoomed</a> (const QwtDoubleRect &amp;rect)</td></tr>
54
 
 
55
 
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
56
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#07f5135e421d2aab3f06542ff1320ece">QwtPlotZoomer</a> (<a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *, bool doReplot=true)</td></tr>
57
 
 
58
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#b64adf928b11ec8f441098a551e437b4">QwtPlotZoomer</a> (int xAxis, int yAxis, <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *, bool doReplot=true)</td></tr>
59
 
 
60
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c94a73ec32fcfee08edf14d1a3021cd5">QwtPlotZoomer</a> (int xAxis, int yAxis, int selectionFlags, <a class="el" href="class_qwt_picker.html#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode, <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *, bool doReplot=true)</td></tr>
61
 
 
62
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase</a> (bool doReplot=true)</td></tr>
63
 
 
64
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#80e1f91cf51b88aa11f2d976f01b4a3f">setZoomBase</a> (const QwtDoubleRect &amp;)</td></tr>
65
 
 
66
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoubleRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase</a> () const </td></tr>
67
 
 
68
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoubleRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#ef67ca3d673cbd6063f0574621c808ae">zoomRect</a> () const </td></tr>
69
 
 
70
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#6cb755e06b83e50e8353dd706f7fb6f0">setAxis</a> (int xAxis, int yAxis)</td></tr>
71
 
 
72
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#3965591944793790407ba91d6de3a882">setMaxStackDepth</a> (int)</td></tr>
73
 
 
74
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth</a> () const </td></tr>
75
 
 
76
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QStack&lt; QwtDoubleRect &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#bbd7fe8750c177a82f80ea91611909fd">zoomStack</a> () const </td></tr>
77
 
 
78
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9364232f7725a2ec3c65784a0100e19f"></a><!-- doxytag: member="QwtPlotZoomer::setZoomStack" ref="9364232f7725a2ec3c65784a0100e19f" args="(const QStack&lt; QwtDoubleRect &gt; &amp;, int zoomRectIndex=&#45;1)" -->
79
 
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setZoomStack</b> (const QStack&lt; QwtDoubleRect &gt; &amp;, int zoomRectIndex=-1)</td></tr>
80
 
 
81
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#63797aa3b9e540a2c5f539fa34a05fbc">zoomRectIndex</a> () const </td></tr>
82
 
 
83
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c9d52dbddc9e79e7ce8ebd545e855e89">setSelectionFlags</a> (int)</td></tr>
84
 
 
85
 
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
86
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#0d0f90bbd5fe99d5231b3cee00fffabe">rescale</a> ()</td></tr>
87
 
 
88
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QwtDoubleSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836">minZoomSize</a> () const </td></tr>
89
 
 
90
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#abded662ecb3555b3a29cf3daacf79de">widgetMouseReleaseEvent</a> (QMouseEvent *)</td></tr>
91
 
 
92
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#a44e42dcf37547a6b93d04a593f140c6">widgetKeyPressEvent</a> (QKeyEvent *)</td></tr>
93
 
 
94
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#a54bb05797c0468c0f8de4217dce24dd">begin</a> ()</td></tr>
95
 
 
96
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c7d10eb27858ccfebebecab5d69ecbb3">end</a> (bool ok=true)</td></tr>
97
 
 
98
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#86898c6696ee0706a3ac6b61018a112e">accept</a> (QwtPolygon &amp;) const </td></tr>
99
 
 
100
 
</table>
101
 
<hr><a name="_details"></a><h2>Detailed Description</h2>
102
 
<a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> provides stacked zooming for a plot widget. 
103
 
<p>
104
 
<a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> 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 <a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> or <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836" title="Limit zooming by a minimum rectangle.">minZoomSize()</a>. Each rectangle is pushed on a stack.<p>
105
 
Zoom rectangles can be selected depending on <a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a> using the mouse or keyboard (<a class="el" href="class_qwt_event_pattern.html" title="A collection of event patterns.">QwtEventPattern</a>, <a class="el" href="class_qwt_picker_machine.html" title="A state machine for QwtPicker selections.">QwtPickerMachine</a>). QwtEventPattern::MouseSelect3/QwtEventPatternKeyUndo, or QwtEventPattern::MouseSelect6/QwtEventPatternKeyRedo walk up and down the zoom stack. QwtEventPattern::MouseSelect2 or QwtEventPattern::KeyHome unzoom to the initial size.<p>
106
 
<a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> is tailored for plots with one x and y axis, but it is allowed to attach a second <a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> for the other axes.<p>
107
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The realtime example includes an derived zoomer class that adds scrollbars to the plot canvas. </dd></dl>
108
 
<hr><h2>Constructor &amp; Destructor Documentation</h2>
109
 
<a class="anchor" name="07f5135e421d2aab3f06542ff1320ece"></a><!-- doxytag: member="QwtPlotZoomer::QwtPlotZoomer" ref="07f5135e421d2aab3f06542ff1320ece" args="(QwtPlotCanvas *, bool doReplot=true)" -->
110
 
<div class="memitem">
111
 
<div class="memproto">
112
 
      <table class="memname">
113
 
        <tr>
114
 
          <td class="memname">QwtPlotZoomer::QwtPlotZoomer           </td>
115
 
          <td>(</td>
116
 
          <td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *&nbsp;</td>
117
 
          <td class="paramname"> <em>canvas</em>, </td>
118
 
        </tr>
119
 
        <tr>
120
 
          <td class="paramkey"></td>
121
 
          <td></td>
122
 
          <td class="paramtype">bool&nbsp;</td>
123
 
          <td class="paramname"> <em>doReplot</em> = <code>true</code></td><td>&nbsp;</td>
124
 
        </tr>
125
 
        <tr>
126
 
          <td></td>
127
 
          <td>)</td>
128
 
          <td></td><td></td><td><code> [explicit]</code></td>
129
 
        </tr>
130
 
      </table>
131
 
</div>
132
 
<div class="memdoc">
133
 
 
134
 
<p>
135
 
Create a zoomer for a plot canvas. 
136
 
<p>
137
 
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.<p>
138
 
The <a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a> are set to QwtPicker::RectSelection &amp; QwtPicker::ClickSelection, the tracker mode to QwtPicker::ActiveOnly.<p>
139
 
<dl compact><dt><b>Parameters:</b></dt><dd>
140
 
  <table border="0" cellspacing="2" cellpadding="0">
141
 
    <tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td>Plot canvas to observe, also the parent object </td></tr>
142
 
    <tr><td valign="top"></td><td valign="top"><em>doReplot</em>&nbsp;</td><td>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.</td></tr>
143
 
  </table>
144
 
</dl>
145
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b" title="Redraw the plot.">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
146
 
 
147
 
</div>
148
 
</div><p>
149
 
<a class="anchor" name="b64adf928b11ec8f441098a551e437b4"></a><!-- doxytag: member="QwtPlotZoomer::QwtPlotZoomer" ref="b64adf928b11ec8f441098a551e437b4" args="(int xAxis, int yAxis, QwtPlotCanvas *, bool doReplot=true)" -->
150
 
<div class="memitem">
151
 
<div class="memproto">
152
 
      <table class="memname">
153
 
        <tr>
154
 
          <td class="memname">QwtPlotZoomer::QwtPlotZoomer           </td>
155
 
          <td>(</td>
156
 
          <td class="paramtype">int&nbsp;</td>
157
 
          <td class="paramname"> <em>xAxis</em>, </td>
158
 
        </tr>
159
 
        <tr>
160
 
          <td class="paramkey"></td>
161
 
          <td></td>
162
 
          <td class="paramtype">int&nbsp;</td>
163
 
          <td class="paramname"> <em>yAxis</em>, </td>
164
 
        </tr>
165
 
        <tr>
166
 
          <td class="paramkey"></td>
167
 
          <td></td>
168
 
          <td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *&nbsp;</td>
169
 
          <td class="paramname"> <em>canvas</em>, </td>
170
 
        </tr>
171
 
        <tr>
172
 
          <td class="paramkey"></td>
173
 
          <td></td>
174
 
          <td class="paramtype">bool&nbsp;</td>
175
 
          <td class="paramname"> <em>doReplot</em> = <code>true</code></td><td>&nbsp;</td>
176
 
        </tr>
177
 
        <tr>
178
 
          <td></td>
179
 
          <td>)</td>
180
 
          <td></td><td></td><td><code> [explicit]</code></td>
181
 
        </tr>
182
 
      </table>
183
 
</div>
184
 
<div class="memdoc">
185
 
 
186
 
<p>
187
 
Create a zoomer for a plot canvas. 
188
 
<p>
189
 
The <a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a> are set to QwtPicker::RectSelection &amp; QwtPicker::ClickSelection, the tracker mode to QwtPicker::ActiveOnly.<p>
190
 
<dl compact><dt><b>Parameters:</b></dt><dd>
191
 
  <table border="0" cellspacing="2" cellpadding="0">
192
 
    <tr><td valign="top"></td><td valign="top"><em>xAxis</em>&nbsp;</td><td>X axis of the zoomer </td></tr>
193
 
    <tr><td valign="top"></td><td valign="top"><em>yAxis</em>&nbsp;</td><td>Y axis of the zoomer </td></tr>
194
 
    <tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td>Plot canvas to observe, also the parent object </td></tr>
195
 
    <tr><td valign="top"></td><td valign="top"><em>doReplot</em>&nbsp;</td><td>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.</td></tr>
196
 
  </table>
197
 
</dl>
198
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b" title="Redraw the plot.">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
199
 
 
200
 
</div>
201
 
</div><p>
202
 
<a class="anchor" name="c94a73ec32fcfee08edf14d1a3021cd5"></a><!-- doxytag: member="QwtPlotZoomer::QwtPlotZoomer" ref="c94a73ec32fcfee08edf14d1a3021cd5" args="(int xAxis, int yAxis, int selectionFlags, DisplayMode trackerMode, QwtPlotCanvas *, bool doReplot=true)" -->
203
 
<div class="memitem">
204
 
<div class="memproto">
205
 
      <table class="memname">
206
 
        <tr>
207
 
          <td class="memname">QwtPlotZoomer::QwtPlotZoomer           </td>
208
 
          <td>(</td>
209
 
          <td class="paramtype">int&nbsp;</td>
210
 
          <td class="paramname"> <em>xAxis</em>, </td>
211
 
        </tr>
212
 
        <tr>
213
 
          <td class="paramkey"></td>
214
 
          <td></td>
215
 
          <td class="paramtype">int&nbsp;</td>
216
 
          <td class="paramname"> <em>yAxis</em>, </td>
217
 
        </tr>
218
 
        <tr>
219
 
          <td class="paramkey"></td>
220
 
          <td></td>
221
 
          <td class="paramtype">int&nbsp;</td>
222
 
          <td class="paramname"> <em>selectionFlags</em>, </td>
223
 
        </tr>
224
 
        <tr>
225
 
          <td class="paramkey"></td>
226
 
          <td></td>
227
 
          <td class="paramtype"><a class="el" href="class_qwt_picker.html#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a>&nbsp;</td>
228
 
          <td class="paramname"> <em>trackerMode</em>, </td>
229
 
        </tr>
230
 
        <tr>
231
 
          <td class="paramkey"></td>
232
 
          <td></td>
233
 
          <td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *&nbsp;</td>
234
 
          <td class="paramname"> <em>canvas</em>, </td>
235
 
        </tr>
236
 
        <tr>
237
 
          <td class="paramkey"></td>
238
 
          <td></td>
239
 
          <td class="paramtype">bool&nbsp;</td>
240
 
          <td class="paramname"> <em>doReplot</em> = <code>true</code></td><td>&nbsp;</td>
241
 
        </tr>
242
 
        <tr>
243
 
          <td></td>
244
 
          <td>)</td>
245
 
          <td></td><td></td><td><code> [explicit]</code></td>
246
 
        </tr>
247
 
      </table>
248
 
</div>
249
 
<div class="memdoc">
250
 
 
251
 
<p>
252
 
Create a zoomer for a plot canvas.<p>
253
 
<dl compact><dt><b>Parameters:</b></dt><dd>
254
 
  <table border="0" cellspacing="2" cellpadding="0">
255
 
    <tr><td valign="top"></td><td valign="top"><em>xAxis</em>&nbsp;</td><td>X axis of the zoomer </td></tr>
256
 
    <tr><td valign="top"></td><td valign="top"><em>yAxis</em>&nbsp;</td><td>Y axis of the zoomer </td></tr>
257
 
    <tr><td valign="top"></td><td valign="top"><em>selectionFlags</em>&nbsp;</td><td>Or'd value of <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c" title="Selection subtype for RectSelection This enum type describes the type of rectangle...">QwtPicker::RectSelectionType</a> and <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">QwtPicker::SelectionMode</a>. QwtPicker::RectSelection will be auto added. </td></tr>
258
 
    <tr><td valign="top"></td><td valign="top"><em>trackerMode</em>&nbsp;</td><td>Tracker mode </td></tr>
259
 
    <tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td>Plot canvas to observe, also the parent object </td></tr>
260
 
    <tr><td valign="top"></td><td valign="top"><em>doReplot</em>&nbsp;</td><td>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.</td></tr>
261
 
  </table>
262
 
</dl>
263
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html" title="QwtPicker provides selections on a widget.">QwtPicker</a>, <a class="el" href="class_qwt_picker.html#e93fe995c8c581ac33a9f3445ea5e7b9">QwtPicker::setSelectionFlags()</a>, <a class="el" href="class_qwt_picker.html#83096bad2662e02e4914a7b40241c351">QwtPicker::setRubberBand()</a>, <a class="el" href="class_qwt_picker.html#94fc60c7223cdc470ae63156f6446d6f" title="Set the display mode of the tracker.">QwtPicker::setTrackerMode()</a><p>
264
 
<a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b" title="Redraw the plot.">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
265
 
 
266
 
</div>
267
 
</div><p>
268
 
<hr><h2>Member Function Documentation</h2>
269
 
<a class="anchor" name="86898c6696ee0706a3ac6b61018a112e"></a><!-- doxytag: member="QwtPlotZoomer::accept" ref="86898c6696ee0706a3ac6b61018a112e" args="(QwtPolygon &amp;) const " -->
270
 
<div class="memitem">
271
 
<div class="memproto">
272
 
      <table class="memname">
273
 
        <tr>
274
 
          <td class="memname">bool QwtPlotZoomer::accept           </td>
275
 
          <td>(</td>
276
 
          <td class="paramtype">QwtPolygon &amp;&nbsp;</td>
277
 
          <td class="paramname"> <em>pa</em>          </td>
278
 
          <td>&nbsp;)&nbsp;</td>
279
 
          <td> const<code> [protected, virtual]</code></td>
280
 
        </tr>
281
 
      </table>
282
 
</div>
283
 
<div class="memdoc">
284
 
 
285
 
<p>
286
 
Check and correct a selected rectangle. 
287
 
<p>
288
 
Reject rectangles with a hight or width &lt; 2, otherwise expand the selected rectangle to a minimum size of 11x11 and accept it.<p>
289
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true If rect is accepted, or has been changed to a accepted rectangle. </dd></dl>
290
 
 
291
 
<p>Reimplemented from <a class="el" href="class_qwt_picker.html#c59b7fde6b198f76ea91b4b1a4015af5">QwtPicker</a>.</p>
292
 
 
293
 
</div>
294
 
</div><p>
295
 
<a class="anchor" name="a54bb05797c0468c0f8de4217dce24dd"></a><!-- doxytag: member="QwtPlotZoomer::begin" ref="a54bb05797c0468c0f8de4217dce24dd" args="()" -->
296
 
<div class="memitem">
297
 
<div class="memproto">
298
 
      <table class="memname">
299
 
        <tr>
300
 
          <td class="memname">void QwtPlotZoomer::begin           </td>
301
 
          <td>(</td>
302
 
          <td class="paramname">          </td>
303
 
          <td>&nbsp;)&nbsp;</td>
304
 
          <td><code> [protected, virtual]</code></td>
305
 
        </tr>
306
 
      </table>
307
 
</div>
308
 
<div class="memdoc">
309
 
 
310
 
<p>
311
 
Rejects selections, when the stack depth is too deep, or the zoomed rectangle is <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836" title="Limit zooming by a minimum rectangle.">minZoomSize()</a>.<p>
312
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836" title="Limit zooming by a minimum rectangle.">minZoomSize()</a>, <a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> </dd></dl>
313
 
 
314
 
<p>Reimplemented from <a class="el" href="class_qwt_picker.html#49cb19aea451e275c5d376235e5a1d83">QwtPicker</a>.</p>
315
 
 
316
 
</div>
317
 
</div><p>
318
 
<a class="anchor" name="c7d10eb27858ccfebebecab5d69ecbb3"></a><!-- doxytag: member="QwtPlotZoomer::end" ref="c7d10eb27858ccfebebecab5d69ecbb3" args="(bool ok=true)" -->
319
 
<div class="memitem">
320
 
<div class="memproto">
321
 
      <table class="memname">
322
 
        <tr>
323
 
          <td class="memname">bool QwtPlotZoomer::end           </td>
324
 
          <td>(</td>
325
 
          <td class="paramtype">bool&nbsp;</td>
326
 
          <td class="paramname"> <em>ok</em> = <code>true</code>          </td>
327
 
          <td>&nbsp;)&nbsp;</td>
328
 
          <td><code> [protected, virtual]</code></td>
329
 
        </tr>
330
 
      </table>
331
 
</div>
332
 
<div class="memdoc">
333
 
 
334
 
<p>
335
 
Expand the selected rectangle to <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836" title="Limit zooming by a minimum rectangle.">minZoomSize()</a> and zoom in if accepted.<p>
336
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#86898c6696ee0706a3ac6b61018a112e" title="Check and correct a selected rectangle.">accept()</a>, <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836" title="Limit zooming by a minimum rectangle.">minZoomSize()</a> </dd></dl>
337
 
 
338
 
<p>Reimplemented from <a class="el" href="class_qwt_plot_picker.html#9fceb663542b6f9b0a358e9419406423">QwtPlotPicker</a>.</p>
339
 
 
340
 
</div>
341
 
</div><p>
342
 
<a class="anchor" name="c0d39d53af224cbeda37e0417d084dab"></a><!-- doxytag: member="QwtPlotZoomer::maxStackDepth" ref="c0d39d53af224cbeda37e0417d084dab" args="() const " -->
343
 
<div class="memitem">
344
 
<div class="memproto">
345
 
      <table class="memname">
346
 
        <tr>
347
 
          <td class="memname">int QwtPlotZoomer::maxStackDepth           </td>
348
 
          <td>(</td>
349
 
          <td class="paramname">          </td>
350
 
          <td>&nbsp;)&nbsp;</td>
351
 
          <td> const</td>
352
 
        </tr>
353
 
      </table>
354
 
</div>
355
 
<div class="memdoc">
356
 
 
357
 
<p>
358
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Maximal depth of the zoom stack. </dd></dl>
359
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#3965591944793790407ba91d6de3a882" title="Limit the number of recursive zoom operations to depth.">setMaxStackDepth()</a> </dd></dl>
360
 
 
361
 
</div>
362
 
</div><p>
363
 
<a class="anchor" name="e25e8193ae6ad9c1e244f175db173836"></a><!-- doxytag: member="QwtPlotZoomer::minZoomSize" ref="e25e8193ae6ad9c1e244f175db173836" args="() const " -->
364
 
<div class="memitem">
365
 
<div class="memproto">
366
 
      <table class="memname">
367
 
        <tr>
368
 
          <td class="memname">QwtDoubleSize QwtPlotZoomer::minZoomSize           </td>
369
 
          <td>(</td>
370
 
          <td class="paramname">          </td>
371
 
          <td>&nbsp;)&nbsp;</td>
372
 
          <td> const<code> [protected, virtual]</code></td>
373
 
        </tr>
374
 
      </table>
375
 
</div>
376
 
<div class="memdoc">
377
 
 
378
 
<p>
379
 
Limit zooming by a minimum rectangle. 
380
 
<p>
381
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>.width() / 10e4, <a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>.height() / 10e4 </dd></dl>
382
 
 
383
 
</div>
384
 
</div><p>
385
 
<a class="anchor" name="6bfbb67129b1220df65685858c9d882c"></a><!-- doxytag: member="QwtPlotZoomer::move" ref="6bfbb67129b1220df65685858c9d882c" args="(double x, double y)" -->
386
 
<div class="memitem">
387
 
<div class="memproto">
388
 
      <table class="memname">
389
 
        <tr>
390
 
          <td class="memname">void QwtPlotZoomer::move           </td>
391
 
          <td>(</td>
392
 
          <td class="paramtype">double&nbsp;</td>
393
 
          <td class="paramname"> <em>x</em>, </td>
394
 
        </tr>
395
 
        <tr>
396
 
          <td class="paramkey"></td>
397
 
          <td></td>
398
 
          <td class="paramtype">double&nbsp;</td>
399
 
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
400
 
        </tr>
401
 
        <tr>
402
 
          <td></td>
403
 
          <td>)</td>
404
 
          <td></td><td></td><td><code> [virtual, slot]</code></td>
405
 
        </tr>
406
 
      </table>
407
 
</div>
408
 
<div class="memdoc">
409
 
 
410
 
<p>
411
 
Move the the current zoom rectangle.<p>
412
 
<dl compact><dt><b>Parameters:</b></dt><dd>
413
 
  <table border="0" cellspacing="2" cellpadding="0">
414
 
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X value </td></tr>
415
 
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y value</td></tr>
416
 
  </table>
417
 
</dl>
418
 
<dl class="see" compact><dt><b>See also:</b></dt><dd>QwtDoubleRect::move() </dd></dl>
419
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The changed rectangle is limited by the zoom base </dd></dl>
420
 
 
421
 
</div>
422
 
</div><p>
423
 
<a class="anchor" name="c66b3eac03db212812198637f4e233ca"></a><!-- doxytag: member="QwtPlotZoomer::moveBy" ref="c66b3eac03db212812198637f4e233ca" args="(double x, double y)" -->
424
 
<div class="memitem">
425
 
<div class="memproto">
426
 
      <table class="memname">
427
 
        <tr>
428
 
          <td class="memname">void QwtPlotZoomer::moveBy           </td>
429
 
          <td>(</td>
430
 
          <td class="paramtype">double&nbsp;</td>
431
 
          <td class="paramname"> <em>dx</em>, </td>
432
 
        </tr>
433
 
        <tr>
434
 
          <td class="paramkey"></td>
435
 
          <td></td>
436
 
          <td class="paramtype">double&nbsp;</td>
437
 
          <td class="paramname"> <em>dy</em></td><td>&nbsp;</td>
438
 
        </tr>
439
 
        <tr>
440
 
          <td></td>
441
 
          <td>)</td>
442
 
          <td></td><td></td><td><code> [slot]</code></td>
443
 
        </tr>
444
 
      </table>
445
 
</div>
446
 
<div class="memdoc">
447
 
 
448
 
<p>
449
 
Move the current zoom rectangle.<p>
450
 
<dl compact><dt><b>Parameters:</b></dt><dd>
451
 
  <table border="0" cellspacing="2" cellpadding="0">
452
 
    <tr><td valign="top"></td><td valign="top"><em>dx</em>&nbsp;</td><td>X offset </td></tr>
453
 
    <tr><td valign="top"></td><td valign="top"><em>dy</em>&nbsp;</td><td>Y offset</td></tr>
454
 
  </table>
455
 
</dl>
456
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The changed rectangle is limited by the zoom base </dd></dl>
457
 
 
458
 
</div>
459
 
</div><p>
460
 
<a class="anchor" name="0d0f90bbd5fe99d5231b3cee00fffabe"></a><!-- doxytag: member="QwtPlotZoomer::rescale" ref="0d0f90bbd5fe99d5231b3cee00fffabe" args="()" -->
461
 
<div class="memitem">
462
 
<div class="memproto">
463
 
      <table class="memname">
464
 
        <tr>
465
 
          <td class="memname">void QwtPlotZoomer::rescale           </td>
466
 
          <td>(</td>
467
 
          <td class="paramname">          </td>
468
 
          <td>&nbsp;)&nbsp;</td>
469
 
          <td><code> [protected, virtual]</code></td>
470
 
        </tr>
471
 
      </table>
472
 
</div>
473
 
<div class="memdoc">
474
 
 
475
 
<p>
476
 
Adjust the observed plot to <a class="el" href="class_qwt_plot_zoomer.html#ef67ca3d673cbd6063f0574621c808ae">zoomRect()</a><p>
477
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>Initiates <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b" title="Redraw the plot.">QwtPlot::replot</a> </dd></dl>
478
 
 
479
 
</div>
480
 
</div><p>
481
 
<a class="anchor" name="6cb755e06b83e50e8353dd706f7fb6f0"></a><!-- doxytag: member="QwtPlotZoomer::setAxis" ref="6cb755e06b83e50e8353dd706f7fb6f0" args="(int xAxis, int yAxis)" -->
482
 
<div class="memitem">
483
 
<div class="memproto">
484
 
      <table class="memname">
485
 
        <tr>
486
 
          <td class="memname">void QwtPlotZoomer::setAxis           </td>
487
 
          <td>(</td>
488
 
          <td class="paramtype">int&nbsp;</td>
489
 
          <td class="paramname"> <em>xAxis</em>, </td>
490
 
        </tr>
491
 
        <tr>
492
 
          <td class="paramkey"></td>
493
 
          <td></td>
494
 
          <td class="paramtype">int&nbsp;</td>
495
 
          <td class="paramname"> <em>yAxis</em></td><td>&nbsp;</td>
496
 
        </tr>
497
 
        <tr>
498
 
          <td></td>
499
 
          <td>)</td>
500
 
          <td></td><td></td><td><code> [virtual]</code></td>
501
 
        </tr>
502
 
      </table>
503
 
</div>
504
 
<div class="memdoc">
505
 
 
506
 
<p>
507
 
Reinitialize the axes, and set the zoom base to their scales.<p>
508
 
<dl compact><dt><b>Parameters:</b></dt><dd>
509
 
  <table border="0" cellspacing="2" cellpadding="0">
510
 
    <tr><td valign="top"></td><td valign="top"><em>xAxis</em>&nbsp;</td><td>X axis </td></tr>
511
 
    <tr><td valign="top"></td><td valign="top"><em>yAxis</em>&nbsp;</td><td>Y axis </td></tr>
512
 
  </table>
513
 
</dl>
514
 
 
515
 
<p>Reimplemented from <a class="el" href="class_qwt_plot_picker.html#a901c86543585c7056133a5cb6652e3d">QwtPlotPicker</a>.</p>
516
 
 
517
 
</div>
518
 
</div><p>
519
 
<a class="anchor" name="3965591944793790407ba91d6de3a882"></a><!-- doxytag: member="QwtPlotZoomer::setMaxStackDepth" ref="3965591944793790407ba91d6de3a882" args="(int)" -->
520
 
<div class="memitem">
521
 
<div class="memproto">
522
 
      <table class="memname">
523
 
        <tr>
524
 
          <td class="memname">void QwtPlotZoomer::setMaxStackDepth           </td>
525
 
          <td>(</td>
526
 
          <td class="paramtype">int&nbsp;</td>
527
 
          <td class="paramname"> <em>depth</em>          </td>
528
 
          <td>&nbsp;)&nbsp;</td>
529
 
          <td></td>
530
 
        </tr>
531
 
      </table>
532
 
</div>
533
 
<div class="memdoc">
534
 
 
535
 
<p>
536
 
Limit the number of recursive zoom operations to depth. 
537
 
<p>
538
 
A value of -1 set the depth to unlimited, 0 disables zooming. If the current zoom rectangle is below depth, the plot is unzoomed.<p>
539
 
<dl compact><dt><b>Parameters:</b></dt><dd>
540
 
  <table border="0" cellspacing="2" cellpadding="0">
541
 
    <tr><td valign="top"></td><td valign="top"><em>depth</em>&nbsp;</td><td>Maximum for the stack depth </td></tr>
542
 
  </table>
543
 
</dl>
544
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> </dd></dl>
545
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>depth doesn't include the zoom base, so <a class="el" href="class_qwt_plot_zoomer.html#bbd7fe8750c177a82f80ea91611909fd">zoomStack()</a>.count() might be <a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> + 1. </dd></dl>
546
 
 
547
 
</div>
548
 
</div><p>
549
 
<a class="anchor" name="c9d52dbddc9e79e7ce8ebd545e855e89"></a><!-- doxytag: member="QwtPlotZoomer::setSelectionFlags" ref="c9d52dbddc9e79e7ce8ebd545e855e89" args="(int)" -->
550
 
<div class="memitem">
551
 
<div class="memproto">
552
 
      <table class="memname">
553
 
        <tr>
554
 
          <td class="memname">void QwtPlotZoomer::setSelectionFlags           </td>
555
 
          <td>(</td>
556
 
          <td class="paramtype">int&nbsp;</td>
557
 
          <td class="paramname"> <em>flags</em>          </td>
558
 
          <td>&nbsp;)&nbsp;</td>
559
 
          <td><code> [virtual]</code></td>
560
 
        </tr>
561
 
      </table>
562
 
</div>
563
 
<div class="memdoc">
564
 
 
565
 
<p>
566
 
Set the selection flags<p>
567
 
<dl compact><dt><b>Parameters:</b></dt><dd>
568
 
  <table border="0" cellspacing="2" cellpadding="0">
569
 
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>Or'd value of <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c" title="Selection subtype for RectSelection This enum type describes the type of rectangle...">QwtPicker::RectSelectionType</a> and <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">QwtPicker::SelectionMode</a>. The default value is QwtPicker::RectSelection &amp; QwtPicker::ClickSelection.</td></tr>
570
 
  </table>
571
 
</dl>
572
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a>, <a class="el" href="class_qwt_picker.html#446d9f87a6796d62949c62d77c51e3eb">SelectionType</a>, <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c" title="Selection subtype for RectSelection This enum type describes the type of rectangle...">RectSelectionType</a>, <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">SelectionMode</a> </dd></dl>
573
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>QwtPicker::RectSelection will be auto added. </dd></dl>
574
 
 
575
 
<p>Reimplemented from <a class="el" href="class_qwt_picker.html#e93fe995c8c581ac33a9f3445ea5e7b9">QwtPicker</a>.</p>
576
 
 
577
 
</div>
578
 
</div><p>
579
 
<a class="anchor" name="80e1f91cf51b88aa11f2d976f01b4a3f"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="80e1f91cf51b88aa11f2d976f01b4a3f" args="(const QwtDoubleRect &amp;)" -->
580
 
<div class="memitem">
581
 
<div class="memproto">
582
 
      <table class="memname">
583
 
        <tr>
584
 
          <td class="memname">void QwtPlotZoomer::setZoomBase           </td>
585
 
          <td>(</td>
586
 
          <td class="paramtype">const QwtDoubleRect &amp;&nbsp;</td>
587
 
          <td class="paramname"> <em>base</em>          </td>
588
 
          <td>&nbsp;)&nbsp;</td>
589
 
          <td><code> [virtual]</code></td>
590
 
        </tr>
591
 
      </table>
592
 
</div>
593
 
<div class="memdoc">
594
 
 
595
 
<p>
596
 
Set the initial size of the zoomer. 
597
 
<p>
598
 
base is united with the current <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> and the zoom stack is reinitalized with it as zoom base. plot is zoomed to <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a>.<p>
599
 
<dl compact><dt><b>Parameters:</b></dt><dd>
600
 
  <table border="0" cellspacing="2" cellpadding="0">
601
 
    <tr><td valign="top"></td><td valign="top"><em>base</em>&nbsp;</td><td>Zoom base</td></tr>
602
 
  </table>
603
 
</dl>
604
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> </dd></dl>
605
 
 
606
 
</div>
607
 
</div><p>
608
 
<a class="anchor" name="7ee4f2a0606df6e85258c52f0b5c7bc2"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="7ee4f2a0606df6e85258c52f0b5c7bc2" args="(bool doReplot=true)" -->
609
 
<div class="memitem">
610
 
<div class="memproto">
611
 
      <table class="memname">
612
 
        <tr>
613
 
          <td class="memname">void QwtPlotZoomer::setZoomBase           </td>
614
 
          <td>(</td>
615
 
          <td class="paramtype">bool&nbsp;</td>
616
 
          <td class="paramname"> <em>doReplot</em> = <code>true</code>          </td>
617
 
          <td>&nbsp;)&nbsp;</td>
618
 
          <td><code> [virtual]</code></td>
619
 
        </tr>
620
 
      </table>
621
 
</div>
622
 
<div class="memdoc">
623
 
 
624
 
<p>
625
 
Reinitialized the zoom stack with <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> as base.<p>
626
 
<dl compact><dt><b>Parameters:</b></dt><dd>
627
 
  <table border="0" cellspacing="2" cellpadding="0">
628
 
    <tr><td valign="top"></td><td valign="top"><em>doReplot</em>&nbsp;</td><td>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.</td></tr>
629
 
  </table>
630
 
</dl>
631
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> <a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b" title="Redraw the plot.">QwtPlot::replot()</a>. </dd></dl>
632
 
 
633
 
</div>
634
 
</div><p>
635
 
<a class="anchor" name="a44e42dcf37547a6b93d04a593f140c6"></a><!-- doxytag: member="QwtPlotZoomer::widgetKeyPressEvent" ref="a44e42dcf37547a6b93d04a593f140c6" args="(QKeyEvent *)" -->
636
 
<div class="memitem">
637
 
<div class="memproto">
638
 
      <table class="memname">
639
 
        <tr>
640
 
          <td class="memname">void QwtPlotZoomer::widgetKeyPressEvent           </td>
641
 
          <td>(</td>
642
 
          <td class="paramtype">QKeyEvent *&nbsp;</td>
643
 
          <td class="paramname"> <em>ke</em>          </td>
644
 
          <td>&nbsp;)&nbsp;</td>
645
 
          <td><code> [protected, virtual]</code></td>
646
 
        </tr>
647
 
      </table>
648
 
</div>
649
 
<div class="memdoc">
650
 
 
651
 
<p>
652
 
Qt::Key_Plus zooms out, Qt::Key_Minus zooms in one position on the zoom stack, Qt::Key_Escape zooms out to the zoom base.<p>
653
 
Changes the current position on the stack, but doesn't pop any rectangle.<p>
654
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The keys codes can be changed, using <a class="el" href="class_qwt_event_pattern.html#2c3b52e4f470086fb6b883ff1f48b711">QwtEventPattern::setKeyPattern</a>: 3, 4, 5 </dd></dl>
655
 
 
656
 
<p>Reimplemented from <a class="el" href="class_qwt_picker.html#f5bc441b2fc143363563922a3b3c70ae">QwtPicker</a>.</p>
657
 
 
658
 
</div>
659
 
</div><p>
660
 
<a class="anchor" name="abded662ecb3555b3a29cf3daacf79de"></a><!-- doxytag: member="QwtPlotZoomer::widgetMouseReleaseEvent" ref="abded662ecb3555b3a29cf3daacf79de" args="(QMouseEvent *)" -->
661
 
<div class="memitem">
662
 
<div class="memproto">
663
 
      <table class="memname">
664
 
        <tr>
665
 
          <td class="memname">void QwtPlotZoomer::widgetMouseReleaseEvent           </td>
666
 
          <td>(</td>
667
 
          <td class="paramtype">QMouseEvent *&nbsp;</td>
668
 
          <td class="paramname"> <em>me</em>          </td>
669
 
          <td>&nbsp;)&nbsp;</td>
670
 
          <td><code> [protected, virtual]</code></td>
671
 
        </tr>
672
 
      </table>
673
 
</div>
674
 
<div class="memdoc">
675
 
 
676
 
<p>
677
 
Qt::MidButton zooms out one position on the zoom stack, Qt::RightButton to the zoom base.<p>
678
 
Changes the current position on the stack, but doesn't pop any rectangle.<p>
679
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The mouse events can be changed, using <a class="el" href="class_qwt_event_pattern.html#c63fb935c777421794d669aa63faec68">QwtEventPattern::setMousePattern</a>: 2, 1 </dd></dl>
680
 
 
681
 
<p>Reimplemented from <a class="el" href="class_qwt_picker.html#c009633e005b6290e07b902f2a58e45e">QwtPicker</a>.</p>
682
 
 
683
 
</div>
684
 
</div><p>
685
 
<a class="anchor" name="0cee73f15c5791553cb52c4e7b3e881e"></a><!-- doxytag: member="QwtPlotZoomer::zoom" ref="0cee73f15c5791553cb52c4e7b3e881e" args="(int up)" -->
686
 
<div class="memitem">
687
 
<div class="memproto">
688
 
      <table class="memname">
689
 
        <tr>
690
 
          <td class="memname">void QwtPlotZoomer::zoom           </td>
691
 
          <td>(</td>
692
 
          <td class="paramtype">int&nbsp;</td>
693
 
          <td class="paramname"> <em>offset</em>          </td>
694
 
          <td>&nbsp;)&nbsp;</td>
695
 
          <td><code> [virtual, slot]</code></td>
696
 
        </tr>
697
 
      </table>
698
 
</div>
699
 
<div class="memdoc">
700
 
 
701
 
<p>
702
 
Zoom in or out. 
703
 
<p>
704
 
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.<p>
705
 
<dl compact><dt><b>Parameters:</b></dt><dd>
706
 
  <table border="0" cellspacing="2" cellpadding="0">
707
 
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>Offset relative to the current position of the zoom stack. </td></tr>
708
 
  </table>
709
 
</dl>
710
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>The zoomed signal is emitted. </dd></dl>
711
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#63797aa3b9e540a2c5f539fa34a05fbc">zoomRectIndex()</a> </dd></dl>
712
 
 
713
 
</div>
714
 
</div><p>
715
 
<a class="anchor" name="eeed51dfa01136f00961e679dcbb9d9d"></a><!-- doxytag: member="QwtPlotZoomer::zoom" ref="eeed51dfa01136f00961e679dcbb9d9d" args="(const QwtDoubleRect &amp;)" -->
716
 
<div class="memitem">
717
 
<div class="memproto">
718
 
      <table class="memname">
719
 
        <tr>
720
 
          <td class="memname">void QwtPlotZoomer::zoom           </td>
721
 
          <td>(</td>
722
 
          <td class="paramtype">const QwtDoubleRect &amp;&nbsp;</td>
723
 
          <td class="paramname"> <em>rect</em>          </td>
724
 
          <td>&nbsp;)&nbsp;</td>
725
 
          <td><code> [virtual, slot]</code></td>
726
 
        </tr>
727
 
      </table>
728
 
</div>
729
 
<div class="memdoc">
730
 
 
731
 
<p>
732
 
Zoom in. 
733
 
<p>
734
 
Clears all rectangles above the current position of the zoom stack and pushs the intersection of <a class="el" href="class_qwt_plot_zoomer.html#ef67ca3d673cbd6063f0574621c808ae">zoomRect()</a> and the normalized rect on it.<p>
735
 
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the maximal stack depth is reached, zoom is ignored. <p>
736
 
The zoomed signal is emitted. </dd></dl>
737
 
 
738
 
</div>
739
 
</div><p>
740
 
<a class="anchor" name="ec745fbace2e6d1e69e7d9be0368bd8e"></a><!-- doxytag: member="QwtPlotZoomer::zoomBase" ref="ec745fbace2e6d1e69e7d9be0368bd8e" args="() const " -->
741
 
<div class="memitem">
742
 
<div class="memproto">
743
 
      <table class="memname">
744
 
        <tr>
745
 
          <td class="memname">QwtDoubleRect QwtPlotZoomer::zoomBase           </td>
746
 
          <td>(</td>
747
 
          <td class="paramname">          </td>
748
 
          <td>&nbsp;)&nbsp;</td>
749
 
          <td> const</td>
750
 
        </tr>
751
 
      </table>
752
 
</div>
753
 
<div class="memdoc">
754
 
 
755
 
<p>
756
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Initial rectangle of the zoomer </dd></dl>
757
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a>, <a class="el" href="class_qwt_plot_zoomer.html#ef67ca3d673cbd6063f0574621c808ae">zoomRect()</a> </dd></dl>
758
 
 
759
 
</div>
760
 
</div><p>
761
 
<a class="anchor" name="e4e9b90ccfb97f4eae54c667f79644ff"></a><!-- doxytag: member="QwtPlotZoomer::zoomed" ref="e4e9b90ccfb97f4eae54c667f79644ff" args="(const QwtDoubleRect &amp;rect)" -->
762
 
<div class="memitem">
763
 
<div class="memproto">
764
 
      <table class="memname">
765
 
        <tr>
766
 
          <td class="memname">void QwtPlotZoomer::zoomed           </td>
767
 
          <td>(</td>
768
 
          <td class="paramtype">const QwtDoubleRect &amp;&nbsp;</td>
769
 
          <td class="paramname"> <em>rect</em>          </td>
770
 
          <td>&nbsp;)&nbsp;</td>
771
 
          <td><code> [signal]</code></td>
772
 
        </tr>
773
 
      </table>
774
 
</div>
775
 
<div class="memdoc">
776
 
 
777
 
<p>
778
 
A signal emitting the <a class="el" href="class_qwt_plot_zoomer.html#ef67ca3d673cbd6063f0574621c808ae">zoomRect()</a>, when the plot has been zoomed in or out.<p>
779
 
<dl compact><dt><b>Parameters:</b></dt><dd>
780
 
  <table border="0" cellspacing="2" cellpadding="0">
781
 
    <tr><td valign="top"></td><td valign="top"><em>rect</em>&nbsp;</td><td>Current zoom rectangle. </td></tr>
782
 
  </table>
783
 
</dl>
784
 
 
785
 
</div>
786
 
</div><p>
787
 
<a class="anchor" name="ef67ca3d673cbd6063f0574621c808ae"></a><!-- doxytag: member="QwtPlotZoomer::zoomRect" ref="ef67ca3d673cbd6063f0574621c808ae" args="() const " -->
788
 
<div class="memitem">
789
 
<div class="memproto">
790
 
      <table class="memname">
791
 
        <tr>
792
 
          <td class="memname">QwtDoubleRect QwtPlotZoomer::zoomRect           </td>
793
 
          <td>(</td>
794
 
          <td class="paramname">          </td>
795
 
          <td>&nbsp;)&nbsp;</td>
796
 
          <td> const</td>
797
 
        </tr>
798
 
      </table>
799
 
</div>
800
 
<div class="memdoc">
801
 
 
802
 
<p>
803
 
Rectangle at the current position on the zoom stack.<p>
804
 
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#63797aa3b9e540a2c5f539fa34a05fbc">zoomRectIndex()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a>. </dd></dl>
805
 
 
806
 
</div>
807
 
</div><p>
808
 
<a class="anchor" name="63797aa3b9e540a2c5f539fa34a05fbc"></a><!-- doxytag: member="QwtPlotZoomer::zoomRectIndex" ref="63797aa3b9e540a2c5f539fa34a05fbc" args="() const " -->
809
 
<div class="memitem">
810
 
<div class="memproto">
811
 
      <table class="memname">
812
 
        <tr>
813
 
          <td class="memname">uint QwtPlotZoomer::zoomRectIndex           </td>
814
 
          <td>(</td>
815
 
          <td class="paramname">          </td>
816
 
          <td>&nbsp;)&nbsp;</td>
817
 
          <td> const</td>
818
 
        </tr>
819
 
      </table>
820
 
</div>
821
 
<div class="memdoc">
822
 
 
823
 
<p>
824
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Index of current position of zoom stack. </dd></dl>
825
 
 
826
 
</div>
827
 
</div><p>
828
 
<a class="anchor" name="bbd7fe8750c177a82f80ea91611909fd"></a><!-- doxytag: member="QwtPlotZoomer::zoomStack" ref="bbd7fe8750c177a82f80ea91611909fd" args="() const " -->
829
 
<div class="memitem">
830
 
<div class="memproto">
831
 
      <table class="memname">
832
 
        <tr>
833
 
          <td class="memname">const QwtZoomStack &amp; QwtPlotZoomer::zoomStack           </td>
834
 
          <td>(</td>
835
 
          <td class="paramname">          </td>
836
 
          <td>&nbsp;)&nbsp;</td>
837
 
          <td> const</td>
838
 
        </tr>
839
 
      </table>
840
 
</div>
841
 
<div class="memdoc">
842
 
 
843
 
<p>
844
 
Return the zoom stack. <a class="el" href="class_qwt_plot_zoomer.html#bbd7fe8750c177a82f80ea91611909fd">zoomStack()</a>[0] is the zoom base, <a class="el" href="class_qwt_plot_zoomer.html#bbd7fe8750c177a82f80ea91611909fd">zoomStack()</a>[1] the first zoomed rectangle.<p>
845
 
<dl class="see" compact><dt><b>See also:</b></dt><dd>setZoomStack(), <a class="el" href="class_qwt_plot_zoomer.html#63797aa3b9e540a2c5f539fa34a05fbc">zoomRectIndex()</a> </dd></dl>
846
 
 
847
 
</div>
848
 
</div><p>
849
 
</div>
850
 
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Mar 22 16:41:26 2009 for Qwt User's Guide by&nbsp;
851
 
<a href="http://www.doxygen.org/index.html">
852
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
853
 
</body>
854
 
</html>