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: QwtPlotMagnifier 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>QwtPlotMagnifier Class Reference</h1><!-- doxytag: class="QwtPlotMagnifier" --><!-- doxytag: inherits="QwtMagnifier" -->Inheritance diagram for QwtPlotMagnifier:<p><center><img src="class_qwt_plot_magnifier__inherit__graph.png" border="0" usemap="#_qwt_plot_magnifier__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_magnifier__inherit__map">
24
<area href="class_qwt_magnifier.html" shape="rect" coords="19,8,120,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotMagnifier:<p><center><img src="class_qwt_plot_magnifier__coll__graph.png" border="0" usemap="#_qwt_plot_magnifier__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_plot_magnifier__coll__map">
28
<area href="class_qwt_magnifier.html" shape="rect" coords="19,8,120,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_magnifier-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
<a class="el" href="class_qwt_plot_magnifier.html">QwtPlotMagnifier</a> provides zooming, by magnifying in steps.
33
Using <a class="el" href="class_qwt_plot_magnifier.html">QwtPlotMagnifier</a> a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.<p>
34
Together with <a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a> and <a class="el" href="class_qwt_plot_panner.html">QwtPlotPanner</a> it is possible to implement individual and powerful navigation of the plot canvas.<p>
35
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a>, <a class="el" href="class_qwt_plot_panner.html">QwtPlotPanner</a>, <a class="el" href="class_qwt_plot.html">QwtPlot</a> </dd></dl>
40
Definition at line <a class="el" href="qwt__plot__magnifier_8h-source.html#l00030">30</a> of file <a class="el" href="qwt__plot__magnifier_8h-source.html">qwt_plot_magnifier.h</a>.<table border="0" cellpadding="0" cellspacing="0">
42
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#b60fc56ac5a3f2e9ab879f0a9be0fdb9">QwtPlotMagnifier</a> (<a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *)</td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#38c0508241885ea49542cc0f11c740df">~QwtPlotMagnifier</a> ()</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#c8806df408b5ed9eac79cd38e5fc1508">setAxisEnabled</a> (int axis, bool on)</td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#25c94f642d6787bdf08465a471350cb2">isAxisEnabled</a> (int axis) const</td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#947d94f9517bb096851738b5c2bf4b7d">canvas</a> ()</td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#b67dd70e43c246934b7b4c352febd467">canvas</a> () const</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#e0197fb4f393e149585ff62f8e29cea6">plot</a> ()</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#1ec990fe14c37b005f68a75122908b52">plot</a> () const</td></tr>
59
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#271ae5ad42c3dd12812246d2dee687ea">rescale</a> (double factor)</td></tr>
63
<hr><h2>Constructor & Destructor Documentation</h2>
64
<a class="anchor" name="b60fc56ac5a3f2e9ab879f0a9be0fdb9"></a><!-- doxytag: member="QwtPlotMagnifier::QwtPlotMagnifier" ref="b60fc56ac5a3f2e9ab879f0a9be0fdb9" args="(QwtPlotCanvas *)" -->
66
<div class="memproto">
67
<table class="memname">
69
<td class="memname">QwtPlotMagnifier::QwtPlotMagnifier </td>
71
<td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td>
72
<td class="paramname"> <em>canvas</em> </td>
73
<td> ) </td>
74
<td width="100%"><code> [explicit]</code></td>
81
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
82
<table border="0" cellspacing="2" cellpadding="0">
83
<tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to be magnified </td></tr>
88
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00035">35</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
91
<a class="anchor" name="38c0508241885ea49542cc0f11c740df"></a><!-- doxytag: member="QwtPlotMagnifier::~QwtPlotMagnifier" ref="38c0508241885ea49542cc0f11c740df" args="()" -->
93
<div class="memproto">
94
<table class="memname">
96
<td class="memname">QwtPlotMagnifier::~QwtPlotMagnifier </td>
98
<td class="paramname"> </td>
99
<td> ) </td>
100
<td width="100%"><code> [virtual]</code></td>
111
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00042">42</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
114
<hr><h2>Member Function Documentation</h2>
115
<a class="anchor" name="c8806df408b5ed9eac79cd38e5fc1508"></a><!-- doxytag: member="QwtPlotMagnifier::setAxisEnabled" ref="c8806df408b5ed9eac79cd38e5fc1508" args="(int axis, bool on)" -->
116
<div class="memitem">
117
<div class="memproto">
118
<table class="memname">
120
<td class="memname">void QwtPlotMagnifier::setAxisEnabled </td>
122
<td class="paramtype">int </td>
123
<td class="paramname"> <em>axis</em>, </td>
126
<td class="paramkey"></td>
128
<td class="paramtype">bool </td>
129
<td class="paramname"> <em>on</em></td><td> </td>
134
<td></td><td></td><td width="100%"></td>
143
Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.<p>
144
<dl compact><dt><b>Parameters:</b></dt><dd>
145
<table border="0" cellspacing="2" cellpadding="0">
146
<tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr>
147
<tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr>
150
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_magnifier.html#25c94f642d6787bdf08465a471350cb2">isAxisEnabled</a> </dd></dl>
153
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00058">58</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
156
<a class="anchor" name="25c94f642d6787bdf08465a471350cb2"></a><!-- doxytag: member="QwtPlotMagnifier::isAxisEnabled" ref="25c94f642d6787bdf08465a471350cb2" args="(int axis) const" -->
157
<div class="memitem">
158
<div class="memproto">
159
<table class="memname">
161
<td class="memname">bool QwtPlotMagnifier::isAxisEnabled </td>
163
<td class="paramtype">int </td>
164
<td class="paramname"> <em>axis</em> </td>
165
<td> ) </td>
166
<td width="100%"> const</td>
173
Test if an axis is enabled<p>
174
<dl compact><dt><b>Parameters:</b></dt><dd>
175
<table border="0" cellspacing="2" cellpadding="0">
176
<tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr>
179
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True, if the axis is enabled</dd></dl>
180
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_magnifier.html#c8806df408b5ed9eac79cd38e5fc1508">setAxisEnabled</a> </dd></dl>
183
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00072">72</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
185
Referenced by <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00120">rescale()</a>.
188
<a class="anchor" name="947d94f9517bb096851738b5c2bf4b7d"></a><!-- doxytag: member="QwtPlotMagnifier::canvas" ref="947d94f9517bb096851738b5c2bf4b7d" args="()" -->
189
<div class="memitem">
190
<div class="memproto">
191
<table class="memname">
193
<td class="memname"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotMagnifier::canvas </td>
195
<td class="paramname"> </td>
196
<td> ) </td>
197
<td width="100%"></td>
204
Return observed plot canvas.
208
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00081">81</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
210
Referenced by <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00097">plot()</a>.
213
<a class="anchor" name="b67dd70e43c246934b7b4c352febd467"></a><!-- doxytag: member="QwtPlotMagnifier::canvas" ref="b67dd70e43c246934b7b4c352febd467" args="() const" -->
214
<div class="memitem">
215
<div class="memproto">
216
<table class="memname">
218
<td class="memname">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotMagnifier::canvas </td>
220
<td class="paramname"> </td>
221
<td> ) </td>
222
<td width="100%"> const</td>
229
Return Observed plot canvas.
233
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00091">91</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
236
<a class="anchor" name="e0197fb4f393e149585ff62f8e29cea6"></a><!-- doxytag: member="QwtPlotMagnifier::plot" ref="e0197fb4f393e149585ff62f8e29cea6" args="()" -->
237
<div class="memitem">
238
<div class="memproto">
239
<table class="memname">
241
<td class="memname"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotMagnifier::plot </td>
243
<td class="paramname"> </td>
244
<td> ) </td>
245
<td width="100%"></td>
252
Return plot widget, containing the observed plot canvas.
256
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00097">97</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
258
References <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00081">canvas()</a>.
260
Referenced by <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00120">rescale()</a>.
263
<a class="anchor" name="1ec990fe14c37b005f68a75122908b52"></a><!-- doxytag: member="QwtPlotMagnifier::plot" ref="1ec990fe14c37b005f68a75122908b52" args="() const" -->
264
<div class="memitem">
265
<div class="memproto">
266
<table class="memname">
268
<td class="memname">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotMagnifier::plot </td>
270
<td class="paramname"> </td>
271
<td> ) </td>
272
<td width="100%"> const</td>
279
Return plot widget, containing the observed plot canvas.
283
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00111">111</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
286
<a class="anchor" name="271ae5ad42c3dd12812246d2dee687ea"></a><!-- doxytag: member="QwtPlotMagnifier::rescale" ref="271ae5ad42c3dd12812246d2dee687ea" args="(double factor)" -->
287
<div class="memitem">
288
<div class="memproto">
289
<table class="memname">
291
<td class="memname">void QwtPlotMagnifier::rescale </td>
293
<td class="paramtype">double </td>
294
<td class="paramname"> <em>factor</em> </td>
295
<td> ) </td>
296
<td width="100%"><code> [protected, virtual]</code></td>
303
Zoom in/out the axes scales <dl compact><dt><b>Parameters:</b></dt><dd>
304
<table border="0" cellspacing="2" cellpadding="0">
305
<tr><td valign="top"></td><td valign="top"><em>factor</em> </td><td>A value < 1.0 zooms in, a value > 1.0 zooms out. </td></tr>
310
Implements <a class="el" href="class_qwt_magnifier.html">QwtMagnifier</a>.
312
Definition at line <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00120">120</a> of file <a class="el" href="qwt__plot__magnifier_8cpp-source.html">qwt_plot_magnifier.cpp</a>.
314
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__plot__magnifier_8cpp-source.html#l00072">isAxisEnabled()</a>, <a class="el" href="qwt__scale__div_8h-source.html#l00102">QwtScaleDiv::lBound()</a>, <a class="el" href="qwt__plot__magnifier_8cpp-source.html#l00097">plot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00363">QwtPlot::replot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00184">QwtPlot::setAutoReplot()</a>, and <a class="el" href="qwt__plot__axis_8cpp-source.html#l00414">QwtPlot::setAxisScale()</a>.
317
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:55:01 2009 for Qwt User's Guide by
318
<a href="http://www.doxygen.org/index.html">
319
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>