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: QwtPlotZoomer 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.5.0 -->
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>QwtPlotZoomer Class Reference</h1><!-- doxytag: class="QwtPlotZoomer" --><!-- doxytag: inherits="QwtPlotPicker" -->Inheritance diagram for QwtPlotZoomer:<p><center><img src="class_qwt_plot_zoomer__inherit__graph.png" border="0" usemap="#_qwt_plot_zoomer__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_zoomer__inherit__map">
24
<area href="class_qwt_plot_picker.html" shape="rect" coords="15,157,121,181" alt="">
25
<area href="class_qwt_picker.html" shape="rect" coords="27,83,109,107" alt="">
26
<area href="class_qwt_event_pattern.html" shape="rect" coords="7,8,129,32" alt="">
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotZoomer:<p><center><img src="class_qwt_plot_zoomer__coll__graph.png" border="0" usemap="#_qwt_plot_zoomer__coll__map" alt="Collaboration graph"></center>
29
<map name="_qwt_plot_zoomer__coll__map">
30
<area href="class_qwt_plot_picker.html" shape="rect" coords="15,157,121,181" alt="">
31
<area href="class_qwt_picker.html" shape="rect" coords="27,83,109,107" alt="">
32
<area href="class_qwt_event_pattern.html" shape="rect" coords="7,8,129,32" alt="">
34
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_zoomer-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
35
<a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a> provides stacked zooming for a plot widget.
37
<a class="el" href="class_qwt_plot_zoomer.html">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#b541148fa7d57b8102d3d70ab9daccc4">maxStackDepth()</a> or <a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">minZoomSize()</a>. Each rectangle is pushed on a stack.<p>
38
Zoom rectangles can be selected depending on <a class="el" href="class_qwt_picker.html#a42f0efb5aa8bcf4f2097a49fb96f886">selectionFlags()</a> using the mouse or keyboard (<a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a>, <a class="el" href="class_qwt_picker_machine.html">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>
39
<a class="el" href="class_qwt_plot_zoomer.html">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">QwtPlotZoomer</a> for the other axes.<p>
40
<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>
45
Definition at line <a class="el" href="qwt__plot__zoomer_8h-source.html#l00049">49</a> of file <a class="el" href="qwt__plot__zoomer_8h-source.html">qwt_plot_zoomer.h</a>.<table border="0" cellpadding="0" cellspacing="0">
47
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c66b3eac03db212812198637f4e233ca">moveBy</a> (double x, double y)</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#6bfbb67129b1220df65685858c9d882c">move</a> (double x, double y)</td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#eeed51dfa01136f00961e679dcbb9d9d">zoom</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &)</td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#0cee73f15c5791553cb52c4e7b3e881e">zoom</a> (int up)</td></tr>
56
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#e4e9b90ccfb97f4eae54c667f79644ff">zoomed</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &rect)</td></tr>
59
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3af28fe93e0098ce8d09222a7976f254"></a><!-- doxytag: member="QwtPlotZoomer::~QwtPlotZoomer" ref="3af28fe93e0098ce8d09222a7976f254" args="()" -->
67
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#3af28fe93e0098ce8d09222a7976f254">~QwtPlotZoomer</a> ()</td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase</a> (bool doReplot=true)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#80e1f91cf51b88aa11f2d976f01b4a3f">setZoomBase</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &)</td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#dee8a101b06a37ec778038c789518e28">zoomBase</a> () const</td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#261d13f67af6e02ba48a64b36f7b5aef">zoomRect</a> () const</td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#6cb755e06b83e50e8353dd706f7fb6f0">setAxis</a> (int xAxis, int yAxis)</td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#3965591944793790407ba91d6de3a882">setMaxStackDepth</a> (int)</td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#b541148fa7d57b8102d3d70ab9daccc4">maxStackDepth</a> () const</td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QStack< <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#0befad8b95d8cb651e993e85d51acb06">zoomStack</a> () const</td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9364232f7725a2ec3c65784a0100e19f"></a><!-- doxytag: member="QwtPlotZoomer::setZoomStack" ref="9364232f7725a2ec3c65784a0100e19f" args="(const QStack< QwtDoubleRect > &, int zoomRectIndex=-1)" -->
86
void </td><td class="memItemRight" valign="bottom"><b>setZoomStack</b> (const QStack< <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> > &, int zoomRectIndex=-1)</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#b2a8af282a7052976e9c18b2d0c59db9">zoomRectIndex</a> () const</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c9d52dbddc9e79e7ce8ebd545e855e89">setSelectionFlags</a> (int)</td></tr>
92
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#0d0f90bbd5fe99d5231b3cee00fffabe">rescale</a> ()</td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="qwt__double__rect_8h.html#b86c0b8b4728646331f12743013c5b43">QwtDoubleSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">minZoomSize</a> () const</td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#abded662ecb3555b3a29cf3daacf79de">widgetMouseReleaseEvent</a> (QMouseEvent *)</td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#a44e42dcf37547a6b93d04a593f140c6">widgetKeyPressEvent</a> (QKeyEvent *)</td></tr>
101
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#a54bb05797c0468c0f8de4217dce24dd">begin</a> ()</td></tr>
103
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#c7d10eb27858ccfebebecab5d69ecbb3">end</a> (bool ok=true)</td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_zoomer.html#86898c6696ee0706a3ac6b61018a112e">accept</a> (QwtPolygon &) const </td></tr>
108
<hr><h2>Constructor & 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">
114
<td class="memname">QwtPlotZoomer::QwtPlotZoomer </td>
116
<td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td>
117
<td class="paramname"> <em>canvas</em>, </td>
120
<td class="paramkey"></td>
122
<td class="paramtype">bool </td>
123
<td class="paramname"> <em>doReplot</em> = <code>true</code></td><td> </td>
128
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
135
Create a zoomer for a plot canvas.
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#a42f0efb5aa8bcf4f2097a49fb96f886">selectionFlags()</a> are set to QwtPicker::RectSelection & 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> </td><td>Plot canvas to observe, also the parent object </td></tr>
142
<tr><td valign="top"></td><td valign="top"><em>doReplot</em> </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>
145
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#3a639850b65bc4dbf22b3f3170d61804">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
148
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00051">51</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
150
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00103">QwtPlotPicker::canvas()</a>.
153
<a class="anchor" name="b64adf928b11ec8f441098a551e437b4"></a><!-- doxytag: member="QwtPlotZoomer::QwtPlotZoomer" ref="b64adf928b11ec8f441098a551e437b4" args="(int xAxis, int yAxis, QwtPlotCanvas *, bool doReplot=true)" -->
154
<div class="memitem">
155
<div class="memproto">
156
<table class="memname">
158
<td class="memname">QwtPlotZoomer::QwtPlotZoomer </td>
160
<td class="paramtype">int </td>
161
<td class="paramname"> <em>xAxis</em>, </td>
164
<td class="paramkey"></td>
166
<td class="paramtype">int </td>
167
<td class="paramname"> <em>yAxis</em>, </td>
170
<td class="paramkey"></td>
172
<td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td>
173
<td class="paramname"> <em>canvas</em>, </td>
176
<td class="paramkey"></td>
178
<td class="paramtype">bool </td>
179
<td class="paramname"> <em>doReplot</em> = <code>true</code></td><td> </td>
184
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
191
Create a zoomer for a plot canvas.
193
The <a class="el" href="class_qwt_picker.html#a42f0efb5aa8bcf4f2097a49fb96f886">selectionFlags()</a> are set to QwtPicker::RectSelection & QwtPicker::ClickSelection, the tracker mode to QwtPicker::ActiveOnly.<p>
194
<dl compact><dt><b>Parameters:</b></dt><dd>
195
<table border="0" cellspacing="2" cellpadding="0">
196
<tr><td valign="top"></td><td valign="top"><em>xAxis</em> </td><td>X axis of the zoomer </td></tr>
197
<tr><td valign="top"></td><td valign="top"><em>yAxis</em> </td><td>Y axis of the zoomer </td></tr>
198
<tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to observe, also the parent object </td></tr>
199
<tr><td valign="top"></td><td valign="top"><em>doReplot</em> </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>
202
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#3a639850b65bc4dbf22b3f3170d61804">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
205
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00075">75</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
207
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00103">QwtPlotPicker::canvas()</a>.
210
<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)" -->
211
<div class="memitem">
212
<div class="memproto">
213
<table class="memname">
215
<td class="memname">QwtPlotZoomer::QwtPlotZoomer </td>
217
<td class="paramtype">int </td>
218
<td class="paramname"> <em>xAxis</em>, </td>
221
<td class="paramkey"></td>
223
<td class="paramtype">int </td>
224
<td class="paramname"> <em>yAxis</em>, </td>
227
<td class="paramkey"></td>
229
<td class="paramtype">int </td>
230
<td class="paramname"> <em>selectionFlags</em>, </td>
233
<td class="paramkey"></td>
235
<td class="paramtype"><a class="el" href="class_qwt_picker.html#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> </td>
236
<td class="paramname"> <em>trackerMode</em>, </td>
239
<td class="paramkey"></td>
241
<td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td>
242
<td class="paramname"> <em>canvas</em>, </td>
245
<td class="paramkey"></td>
247
<td class="paramtype">bool </td>
248
<td class="paramname"> <em>doReplot</em> = <code>true</code></td><td> </td>
253
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
260
Create a zoomer for a plot canvas.<p>
261
<dl compact><dt><b>Parameters:</b></dt><dd>
262
<table border="0" cellspacing="2" cellpadding="0">
263
<tr><td valign="top"></td><td valign="top"><em>xAxis</em> </td><td>X axis of the zoomer </td></tr>
264
<tr><td valign="top"></td><td valign="top"><em>yAxis</em> </td><td>Y axis of the zoomer </td></tr>
265
<tr><td valign="top"></td><td valign="top"><em>selectionFlags</em> </td><td>Or'd value of <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c">QwtPicker::RectSelectionType</a> and <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">QwtPicker::SelectionMode</a>. QwtPicker::RectSelection will be auto added. </td></tr>
266
<tr><td valign="top"></td><td valign="top"><em>trackerMode</em> </td><td>Tracker mode </td></tr>
267
<tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to observe, also the parent object </td></tr>
268
<tr><td valign="top"></td><td valign="top"><em>doReplot</em> </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>
271
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html">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">QwtPicker::setTrackerMode</a><p>
272
<a class="el" href="class_qwt_plot.html#3a639850b65bc4dbf22b3f3170d61804">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_zoomer.html#7ee4f2a0606df6e85258c52f0b5c7bc2">setZoomBase()</a> </dd></dl>
275
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00103">103</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
277
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00103">QwtPlotPicker::canvas()</a>.
280
<hr><h2>Member Function Documentation</h2>
281
<a class="anchor" name="7ee4f2a0606df6e85258c52f0b5c7bc2"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="7ee4f2a0606df6e85258c52f0b5c7bc2" args="(bool doReplot=true)" -->
282
<div class="memitem">
283
<div class="memproto">
284
<table class="memname">
286
<td class="memname">void QwtPlotZoomer::setZoomBase </td>
288
<td class="paramtype">bool </td>
289
<td class="paramname"> <em>doReplot</em> = <code>true</code> </td>
290
<td> ) </td>
291
<td width="100%"><code> [virtual]</code></td>
298
Reinitialized the zoom stack with <a class="el" href="class_qwt_plot_picker.html#96e73f28d02d49cb80ff2d3b607fccc5">scaleRect()</a> as base.<p>
299
<dl compact><dt><b>Parameters:</b></dt><dd>
300
<table border="0" cellspacing="2" cellpadding="0">
301
<tr><td valign="top"></td><td valign="top"><em>doReplot</em> </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>
304
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#dee8a101b06a37ec778038c789518e28">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#96e73f28d02d49cb80ff2d3b607fccc5">scaleRect()</a> <a class="el" href="class_qwt_plot.html#3a639850b65bc4dbf22b3f3170d61804">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>. </dd></dl>
307
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00206">206</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
309
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00363">QwtPlot::replot()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">rescale()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>.
311
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00423">setAxis()</a>.
314
<a class="anchor" name="80e1f91cf51b88aa11f2d976f01b4a3f"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="80e1f91cf51b88aa11f2d976f01b4a3f" args="(const QwtDoubleRect &)" -->
315
<div class="memitem">
316
<div class="memproto">
317
<table class="memname">
319
<td class="memname">void QwtPlotZoomer::setZoomBase </td>
321
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
322
<td class="paramname"> <em>base</em> </td>
323
<td> ) </td>
324
<td width="100%"><code> [virtual]</code></td>
331
Set the initial size of the zoomer.
333
base is united with the current <a class="el" href="class_qwt_plot_picker.html#96e73f28d02d49cb80ff2d3b607fccc5">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#96e73f28d02d49cb80ff2d3b607fccc5">scaleRect()</a>.<p>
334
<dl compact><dt><b>Parameters:</b></dt><dd>
335
<table border="0" cellspacing="2" cellpadding="0">
336
<tr><td valign="top"></td><td valign="top"><em>base</em> </td><td>Zoom base</td></tr>
339
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#dee8a101b06a37ec778038c789518e28">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#96e73f28d02d49cb80ff2d3b607fccc5">scaleRect()</a> </dd></dl>
342
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00232">232</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
344
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">rescale()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>.
347
<a class="anchor" name="dee8a101b06a37ec778038c789518e28"></a><!-- doxytag: member="QwtPlotZoomer::zoomBase" ref="dee8a101b06a37ec778038c789518e28" args="() const" -->
348
<div class="memitem">
349
<div class="memproto">
350
<table class="memname">
352
<td class="memname"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> QwtPlotZoomer::zoomBase </td>
354
<td class="paramname"> </td>
355
<td> ) </td>
356
<td width="100%"> const</td>
363
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Initial rectangle of the zoomer </dd></dl>
364
<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#261d13f67af6e02ba48a64b36f7b5aef">zoomRect()</a> </dd></dl>
367
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00192">192</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
369
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00503">move()</a>.
372
<a class="anchor" name="261d13f67af6e02ba48a64b36f7b5aef"></a><!-- doxytag: member="QwtPlotZoomer::zoomRect" ref="261d13f67af6e02ba48a64b36f7b5aef" args="() const" -->
373
<div class="memitem">
374
<div class="memproto">
375
<table class="memname">
377
<td class="memname"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> QwtPlotZoomer::zoomRect </td>
379
<td class="paramname"> </td>
380
<td> ) </td>
381
<td width="100%"> const</td>
388
Rectangle at the current position on the zoom stack.<p>
389
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#b2a8af282a7052976e9c18b2d0c59db9">zoomRectIndex()</a>, <a class="el" href="class_qwt_plot_picker.html#96e73f28d02d49cb80ff2d3b607fccc5">scaleRect()</a>. </dd></dl>
392
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00259">259</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
394
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00611">end()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00503">move()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
397
<a class="anchor" name="6cb755e06b83e50e8353dd706f7fb6f0"></a><!-- doxytag: member="QwtPlotZoomer::setAxis" ref="6cb755e06b83e50e8353dd706f7fb6f0" args="(int xAxis, int yAxis)" -->
398
<div class="memitem">
399
<div class="memproto">
400
<table class="memname">
402
<td class="memname">void QwtPlotZoomer::setAxis </td>
404
<td class="paramtype">int </td>
405
<td class="paramname"> <em>xAxis</em>, </td>
408
<td class="paramkey"></td>
410
<td class="paramtype">int </td>
411
<td class="paramname"> <em>yAxis</em></td><td> </td>
416
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
423
Reinitialize the axes, and set the zoom base to their scales.<p>
424
<dl compact><dt><b>Parameters:</b></dt><dd>
425
<table border="0" cellspacing="2" cellpadding="0">
426
<tr><td valign="top"></td><td valign="top"><em>xAxis</em> </td><td>X axis </td></tr>
427
<tr><td valign="top"></td><td valign="top"><em>yAxis</em> </td><td>Y axis </td></tr>
432
Reimplemented from <a class="el" href="class_qwt_plot_picker.html#a901c86543585c7056133a5cb6652e3d">QwtPlotPicker</a>.
434
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00423">423</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
436
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00169">QwtPlotPicker::setAxis()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00206">setZoomBase()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00183">QwtPlotPicker::xAxis()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00189">QwtPlotPicker::yAxis()</a>.
439
<a class="anchor" name="3965591944793790407ba91d6de3a882"></a><!-- doxytag: member="QwtPlotZoomer::setMaxStackDepth" ref="3965591944793790407ba91d6de3a882" args="(int)" -->
440
<div class="memitem">
441
<div class="memproto">
442
<table class="memname">
444
<td class="memname">void QwtPlotZoomer::setMaxStackDepth </td>
446
<td class="paramtype">int </td>
447
<td class="paramname"> <em>depth</em> </td>
448
<td> ) </td>
449
<td width="100%"></td>
456
Limit the number of recursive zoom operations to depth.
458
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>
459
<dl compact><dt><b>Parameters:</b></dt><dd>
460
<table border="0" cellspacing="2" cellpadding="0">
461
<tr><td valign="top"></td><td valign="top"><em>depth</em> </td><td>Maximum for the stack depth </td></tr>
464
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#b541148fa7d57b8102d3d70ab9daccc4">maxStackDepth()</a> </dd></dl>
465
<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#0befad8b95d8cb651e993e85d51acb06">zoomStack()</a>.count() might be <a class="el" href="class_qwt_plot_zoomer.html#b541148fa7d57b8102d3d70ab9daccc4">maxStackDepth()</a> + 1. </dd></dl>
468
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00145">145</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
470
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
473
<a class="anchor" name="b541148fa7d57b8102d3d70ab9daccc4"></a><!-- doxytag: member="QwtPlotZoomer::maxStackDepth" ref="b541148fa7d57b8102d3d70ab9daccc4" args="() const" -->
474
<div class="memitem">
475
<div class="memproto">
476
<table class="memname">
478
<td class="memname">int QwtPlotZoomer::maxStackDepth </td>
480
<td class="paramname"> </td>
481
<td> ) </td>
482
<td width="100%"> const</td>
489
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Maximal depth of the zoom stack. </dd></dl>
490
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#3965591944793790407ba91d6de3a882">setMaxStackDepth()</a> </dd></dl>
493
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00172">172</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
496
<a class="anchor" name="0befad8b95d8cb651e993e85d51acb06"></a><!-- doxytag: member="QwtPlotZoomer::zoomStack" ref="0befad8b95d8cb651e993e85d51acb06" args="() const" -->
497
<div class="memitem">
498
<div class="memproto">
499
<table class="memname">
501
<td class="memname">const QwtZoomStack & QwtPlotZoomer::zoomStack </td>
503
<td class="paramname"> </td>
504
<td> ) </td>
505
<td width="100%"> const</td>
512
Return the zoom stack. <a class="el" href="class_qwt_plot_zoomer.html#0befad8b95d8cb651e993e85d51acb06">zoomStack()</a>[0] is the zoom base, <a class="el" href="class_qwt_plot_zoomer.html#0befad8b95d8cb651e993e85d51acb06">zoomStack()</a>[1] the first zoomed rectangle.<p>
513
<dl class="see" compact><dt><b>See also:</b></dt><dd>setZoomStack(), <a class="el" href="class_qwt_plot_zoomer.html#b2a8af282a7052976e9c18b2d0c59db9">zoomRectIndex()</a> </dd></dl>
516
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00183">183</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
519
<a class="anchor" name="b2a8af282a7052976e9c18b2d0c59db9"></a><!-- doxytag: member="QwtPlotZoomer::zoomRectIndex" ref="b2a8af282a7052976e9c18b2d0c59db9" args="() const" -->
520
<div class="memitem">
521
<div class="memproto">
522
<table class="memname">
524
<td class="memname">uint QwtPlotZoomer::zoomRectIndex </td>
526
<td class="paramname"> </td>
527
<td> ) </td>
528
<td width="100%"> const</td>
535
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Index of current position of zoom stack. </dd></dl>
538
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00267">267</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
541
<a class="anchor" name="c9d52dbddc9e79e7ce8ebd545e855e89"></a><!-- doxytag: member="QwtPlotZoomer::setSelectionFlags" ref="c9d52dbddc9e79e7ce8ebd545e855e89" args="(int)" -->
542
<div class="memitem">
543
<div class="memproto">
544
<table class="memname">
546
<td class="memname">void QwtPlotZoomer::setSelectionFlags </td>
548
<td class="paramtype">int </td>
549
<td class="paramname"> <em>flags</em> </td>
550
<td> ) </td>
551
<td width="100%"><code> [virtual]</code></td>
558
Set the selection flags<p>
559
<dl compact><dt><b>Parameters:</b></dt><dd>
560
<table border="0" cellspacing="2" cellpadding="0">
561
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Or'd value of <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c">QwtPicker::RectSelectionType</a> and <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">QwtPicker::SelectionMode</a>. The default value is QwtPicker::RectSelection & QwtPicker::ClickSelection.</td></tr>
564
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#a42f0efb5aa8bcf4f2097a49fb96f886">selectionFlags()</a>, <a class="el" href="class_qwt_picker.html#446d9f87a6796d62949c62d77c51e3eb">SelectionType</a>, <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c">RectSelectionType</a>, <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">SelectionMode</a> </dd></dl>
565
<dl class="note" compact><dt><b>Note:</b></dt><dd>QwtPicker::RectSelection will be auto added. </dd></dl>
568
Reimplemented from <a class="el" href="class_qwt_picker.html#e93fe995c8c581ac33a9f3445ea5e7b9">QwtPicker</a>.
570
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00655">655</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
572
References <a class="el" href="qwt__picker_8cpp-source.html#l00401">QwtPicker::setSelectionFlags()</a>.
575
<a class="anchor" name="c66b3eac03db212812198637f4e233ca"></a><!-- doxytag: member="QwtPlotZoomer::moveBy" ref="c66b3eac03db212812198637f4e233ca" args="(double x, double y)" -->
576
<div class="memitem">
577
<div class="memproto">
578
<table class="memname">
580
<td class="memname">void QwtPlotZoomer::moveBy </td>
582
<td class="paramtype">double </td>
583
<td class="paramname"> <em>dx</em>, </td>
586
<td class="paramkey"></td>
588
<td class="paramtype">double </td>
589
<td class="paramname"> <em>dy</em></td><td> </td>
594
<td></td><td></td><td width="100%"><code> [slot]</code></td>
601
Move the current zoom rectangle.<p>
602
<dl compact><dt><b>Parameters:</b></dt><dd>
603
<table border="0" cellspacing="2" cellpadding="0">
604
<tr><td valign="top"></td><td valign="top"><em>dx</em> </td><td>X offset </td></tr>
605
<tr><td valign="top"></td><td valign="top"><em>dy</em> </td><td>Y offset</td></tr>
608
<dl class="note" compact><dt><b>Note:</b></dt><dd>The changed rectangle is limited by the zoom base </dd></dl>
611
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00488">488</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
613
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00503">move()</a>.
616
<a class="anchor" name="6bfbb67129b1220df65685858c9d882c"></a><!-- doxytag: member="QwtPlotZoomer::move" ref="6bfbb67129b1220df65685858c9d882c" args="(double x, double y)" -->
617
<div class="memitem">
618
<div class="memproto">
619
<table class="memname">
621
<td class="memname">void QwtPlotZoomer::move </td>
623
<td class="paramtype">double </td>
624
<td class="paramname"> <em>x</em>, </td>
627
<td class="paramkey"></td>
629
<td class="paramtype">double </td>
630
<td class="paramname"> <em>y</em></td><td> </td>
635
<td></td><td></td><td width="100%"><code> [virtual, slot]</code></td>
642
Move the the current zoom rectangle.<p>
643
<dl compact><dt><b>Parameters:</b></dt><dd>
644
<table border="0" cellspacing="2" cellpadding="0">
645
<tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>X value </td></tr>
646
<tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>Y value</td></tr>
649
<dl class="see" compact><dt><b>See also:</b></dt><dd>QwtDoubleRect::move </dd></dl>
650
<dl class="note" compact><dt><b>Note:</b></dt><dd>The changed rectangle is limited by the zoom base </dd></dl>
653
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00503">503</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
655
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">rescale()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00192">zoomBase()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00259">zoomRect()</a>.
657
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00488">moveBy()</a>.
660
<a class="anchor" name="eeed51dfa01136f00961e679dcbb9d9d"></a><!-- doxytag: member="QwtPlotZoomer::zoom" ref="eeed51dfa01136f00961e679dcbb9d9d" args="(const QwtDoubleRect &)" -->
661
<div class="memitem">
662
<div class="memproto">
663
<table class="memname">
665
<td class="memname">void QwtPlotZoomer::zoom </td>
667
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
668
<td class="paramname"> <em>rect</em> </td>
669
<td> ) </td>
670
<td width="100%"><code> [virtual, slot]</code></td>
679
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#261d13f67af6e02ba48a64b36f7b5aef">zoomRect()</a> and the normalized rect on it.<p>
680
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the maximal stack depth is reached, zoom is ignored. <p>
681
The zoomed signal is emitted. </dd></dl>
684
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">283</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
686
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">rescale()</a>, <a class="el" href="class_qwt_plot_zoomer.html#e4e9b90ccfb97f4eae54c667f79644ff">zoomed()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00259">zoomRect()</a>.
688
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00611">end()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00145">setMaxStackDepth()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00465">widgetKeyPressEvent()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00442">widgetMouseReleaseEvent()</a>.
691
<a class="anchor" name="0cee73f15c5791553cb52c4e7b3e881e"></a><!-- doxytag: member="QwtPlotZoomer::zoom" ref="0cee73f15c5791553cb52c4e7b3e881e" args="(int up)" -->
692
<div class="memitem">
693
<div class="memproto">
694
<table class="memname">
696
<td class="memname">void QwtPlotZoomer::zoom </td>
698
<td class="paramtype">int </td>
699
<td class="paramname"> <em>offset</em> </td>
700
<td> ) </td>
701
<td width="100%"><code> [virtual, slot]</code></td>
710
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>
711
<dl compact><dt><b>Parameters:</b></dt><dd>
712
<table border="0" cellspacing="2" cellpadding="0">
713
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>Offset relative to the current position of the zoom stack. </td></tr>
716
<dl class="note" compact><dt><b>Note:</b></dt><dd>The zoomed signal is emitted. </dd></dl>
717
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#b2a8af282a7052976e9c18b2d0c59db9">zoomRectIndex()</a> </dd></dl>
720
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00320">320</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
722
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">rescale()</a>, <a class="el" href="class_qwt_plot_zoomer.html#e4e9b90ccfb97f4eae54c667f79644ff">zoomed()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00259">zoomRect()</a>.
725
<a class="anchor" name="e4e9b90ccfb97f4eae54c667f79644ff"></a><!-- doxytag: member="QwtPlotZoomer::zoomed" ref="e4e9b90ccfb97f4eae54c667f79644ff" args="(const QwtDoubleRect &rect)" -->
726
<div class="memitem">
727
<div class="memproto">
728
<table class="memname">
730
<td class="memname">void QwtPlotZoomer::zoomed </td>
732
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
733
<td class="paramname"> <em>rect</em> </td>
734
<td> ) </td>
735
<td width="100%"><code> [signal]</code></td>
742
A signal emitting the <a class="el" href="class_qwt_plot_zoomer.html#261d13f67af6e02ba48a64b36f7b5aef">zoomRect()</a>, when the plot has been zoomed in or out.<p>
743
<dl compact><dt><b>Parameters:</b></dt><dd>
744
<table border="0" cellspacing="2" cellpadding="0">
745
<tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Current zoom rectangle. </td></tr>
750
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
753
<a class="anchor" name="0d0f90bbd5fe99d5231b3cee00fffabe"></a><!-- doxytag: member="QwtPlotZoomer::rescale" ref="0d0f90bbd5fe99d5231b3cee00fffabe" args="()" -->
754
<div class="memitem">
755
<div class="memproto">
756
<table class="memname">
758
<td class="memname">void QwtPlotZoomer::rescale </td>
760
<td class="paramname"> </td>
761
<td> ) </td>
762
<td width="100%"><code> [protected, virtual]</code></td>
769
Adjust the observed plot to <a class="el" href="class_qwt_plot_zoomer.html#261d13f67af6e02ba48a64b36f7b5aef">zoomRect()</a><p>
770
<dl class="note" compact><dt><b>Note:</b></dt><dd>Initiates <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot</a> </dd></dl>
773
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00379">379</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
775
References <a class="el" href="qwt__plot_8cpp-source.html#l00190">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00235">QwtPlot::axisScaleDiv()</a>, <a class="el" href="qwt__scale__div_8h-source.html#l00111">QwtScaleDiv::hBound()</a>, <a class="el" href="qwt__scale__div_8h-source.html#l00102">QwtScaleDiv::lBound()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00363">QwtPlot::replot()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00184">QwtPlot::setAutoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00414">QwtPlot::setAxisScale()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00183">QwtPlotPicker::xAxis()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00189">QwtPlotPicker::yAxis()</a>.
777
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00503">move()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00206">setZoomBase()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
780
<a class="anchor" name="27bb8d7911ef686f2a66bbc88df7e8d1"></a><!-- doxytag: member="QwtPlotZoomer::minZoomSize" ref="27bb8d7911ef686f2a66bbc88df7e8d1" args="() const" -->
781
<div class="memitem">
782
<div class="memproto">
783
<table class="memname">
785
<td class="memname"><a class="el" href="qwt__double__rect_8h.html#b86c0b8b4728646331f12743013c5b43">QwtDoubleSize</a> QwtPlotZoomer::minZoomSize </td>
787
<td class="paramname"> </td>
788
<td> ) </td>
789
<td width="100%"> const<code> [protected, virtual]</code></td>
796
Limit zooming by a minimum rectangle.
798
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#dee8a101b06a37ec778038c789518e28">zoomBase()</a>.width() / 10e4, <a class="el" href="class_qwt_plot_zoomer.html#dee8a101b06a37ec778038c789518e28">zoomBase()</a>.height() / 10e4 </dd></dl>
801
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00567">567</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
803
Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00533">accept()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00581">begin()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00611">end()</a>.
806
<a class="anchor" name="abded662ecb3555b3a29cf3daacf79de"></a><!-- doxytag: member="QwtPlotZoomer::widgetMouseReleaseEvent" ref="abded662ecb3555b3a29cf3daacf79de" args="(QMouseEvent *)" -->
807
<div class="memitem">
808
<div class="memproto">
809
<table class="memname">
811
<td class="memname">void QwtPlotZoomer::widgetMouseReleaseEvent </td>
813
<td class="paramtype">QMouseEvent * </td>
814
<td class="paramname"> <em>me</em> </td>
815
<td> ) </td>
816
<td width="100%"><code> [protected, virtual]</code></td>
823
Qt::MidButton zooms out one position on the zoom stack, Qt::RightButton to the zoom base.<p>
824
Changes the current position on the stack, but doesn't pop any rectangle.<p>
825
<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>
828
Reimplemented from <a class="el" href="class_qwt_picker.html#c009633e005b6290e07b902f2a58e45e">QwtPicker</a>.
830
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00442">442</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
832
References <a class="el" href="qwt__event__pattern_8cpp-source.html#l00193">QwtEventPattern::mouseMatch()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00961">QwtPicker::widgetMouseReleaseEvent()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
835
<a class="anchor" name="a44e42dcf37547a6b93d04a593f140c6"></a><!-- doxytag: member="QwtPlotZoomer::widgetKeyPressEvent" ref="a44e42dcf37547a6b93d04a593f140c6" args="(QKeyEvent *)" -->
836
<div class="memitem">
837
<div class="memproto">
838
<table class="memname">
840
<td class="memname">void QwtPlotZoomer::widgetKeyPressEvent </td>
842
<td class="paramtype">QKeyEvent * </td>
843
<td class="paramname"> <em>ke</em> </td>
844
<td> ) </td>
845
<td width="100%"><code> [protected, virtual]</code></td>
852
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>
853
Changes the current position on the stack, but doesn't pop any rectangle.<p>
854
<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>
857
Reimplemented from <a class="el" href="class_qwt_picker.html#f5bc441b2fc143363563922a3b3c70ae">QwtPicker</a>.
859
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00465">465</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
861
References <a class="el" href="qwt__picker_8cpp-source.html#l01263">QwtPicker::isActive()</a>, <a class="el" href="qwt__event__pattern_8cpp-source.html#l00248">QwtEventPattern::keyMatch()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01015">QwtPicker::widgetKeyPressEvent()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>.
864
<a class="anchor" name="a54bb05797c0468c0f8de4217dce24dd"></a><!-- doxytag: member="QwtPlotZoomer::begin" ref="a54bb05797c0468c0f8de4217dce24dd" args="()" -->
865
<div class="memitem">
866
<div class="memproto">
867
<table class="memname">
869
<td class="memname">void QwtPlotZoomer::begin </td>
871
<td class="paramname"> </td>
872
<td> ) </td>
873
<td width="100%"><code> [protected, virtual]</code></td>
880
Rejects selections, when the stack depth is too deep, or the zoomed rectangle is <a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">minZoomSize()</a>.<p>
881
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">minZoomSize()</a>, <a class="el" href="class_qwt_plot_zoomer.html#b541148fa7d57b8102d3d70ab9daccc4">maxStackDepth()</a> </dd></dl>
884
Reimplemented from <a class="el" href="class_qwt_picker.html#49cb19aea451e275c5d376235e5a1d83">QwtPicker</a>.
886
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00581">581</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
888
References <a class="el" href="qwt__picker_8cpp-source.html#l01134">QwtPicker::begin()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00567">minZoomSize()</a>.
891
<a class="anchor" name="c7d10eb27858ccfebebecab5d69ecbb3"></a><!-- doxytag: member="QwtPlotZoomer::end" ref="c7d10eb27858ccfebebecab5d69ecbb3" args="(bool ok=true)" -->
892
<div class="memitem">
893
<div class="memproto">
894
<table class="memname">
896
<td class="memname">bool QwtPlotZoomer::end </td>
898
<td class="paramtype">bool </td>
899
<td class="paramname"> <em>ok</em> = <code>true</code> </td>
900
<td> ) </td>
901
<td width="100%"><code> [protected, virtual]</code></td>
908
Expand the selected rectangle to <a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">minZoomSize()</a> and zoom in if accepted.<p>
909
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#86898c6696ee0706a3ac6b61018a112e">QwtPlotZoomer::accept()</a>a, <a class="el" href="class_qwt_plot_zoomer.html#27bb8d7911ef686f2a66bbc88df7e8d1">QwtPlotZoomer::minZoomSize()</a> </dd></dl>
912
Reimplemented from <a class="el" href="class_qwt_plot_picker.html#9fceb663542b6f9b0a358e9419406423">QwtPlotPicker</a>.
914
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00611">611</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
916
References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00273">QwtPlotPicker::end()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00332">QwtPlotPicker::invTransform()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00567">minZoomSize()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01269">QwtPicker::selection()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00283">zoom()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00259">zoomRect()</a>.
919
<a class="anchor" name="86898c6696ee0706a3ac6b61018a112e"></a><!-- doxytag: member="QwtPlotZoomer::accept" ref="86898c6696ee0706a3ac6b61018a112e" args="(QwtPolygon &) const " -->
920
<div class="memitem">
921
<div class="memproto">
922
<table class="memname">
924
<td class="memname">bool QwtPlotZoomer::accept </td>
926
<td class="paramtype">QwtPolygon & </td>
927
<td class="paramname"> <em>pa</em> </td>
928
<td> ) </td>
929
<td width="100%"> const<code> [protected, virtual]</code></td>
936
Check and correct a selected rectangle.
938
Reject rectangles with a hight or width < 2, otherwise expand the selected rectangle to a minimum size of 11x11 and accept it.<p>
939
<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>
942
Reimplemented from <a class="el" href="class_qwt_picker.html#726e38a25659db96218888e4625dffba">QwtPicker</a>.
944
Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00533">533</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.
946
References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00567">minZoomSize()</a>.
949
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:57 2008 for Qwt User's Guide by
950
<a href="http://www.doxygen.org/index.html">
951
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>