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: QwtLinearScaleEngine 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>QwtLinearScaleEngine Class Reference</h1><!-- doxytag: class="QwtLinearScaleEngine" --><!-- doxytag: inherits="QwtScaleEngine" -->Inheritance diagram for QwtLinearScaleEngine:<p><center><img src="class_qwt_linear_scale_engine__inherit__graph.png" border="0" usemap="#_qwt_linear_scale_engine__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_linear_scale_engine__inherit__map">
24
<area href="class_qwt_scale_engine.html" shape="rect" coords="26,8,146,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtLinearScaleEngine:<p><center><img src="class_qwt_linear_scale_engine__coll__graph.png" border="0" usemap="#_qwt_linear_scale_engine__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_linear_scale_engine__coll__map">
28
<area href="class_qwt_scale_engine.html" shape="rect" coords="26,8,146,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_linear_scale_engine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
A scale engine for linear scales.
33
The step size will fit into the pattern <img class="formulaInl" alt="$\left\{ 1,2,5\right\} \cdot 10^{n}$" src="form_1.png">, where n is an integer.
37
Definition at line <a class="el" href="qwt__scale__engine_8h-source.html#l00126">126</a> of file <a class="el" href="qwt__scale__engine_8h-source.html">qwt_scale_engine.h</a>.<table border="0" cellpadding="0" cellspacing="0">
39
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#2b59d0b1b40d476f01b5b693ceac30ed">autoScale</a> (int maxSteps, double &x1, double &x2, double &stepSize) const</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#9f74287e61d1abfc2096cc88222c132a">divideScale</a> (double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) const</td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#def184ed0c1febe7611d4f91bb09f5d7">transformation</a> () const</td></tr>
46
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#426436e31a379ed26c7d0d976e3ca0a2">align</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double stepSize) const</td></tr>
50
<hr><h2>Member Function Documentation</h2>
51
<a class="anchor" name="2b59d0b1b40d476f01b5b693ceac30ed"></a><!-- doxytag: member="QwtLinearScaleEngine::autoScale" ref="2b59d0b1b40d476f01b5b693ceac30ed" args="(int maxSteps, double &x1, double &x2, double &stepSize) const" -->
53
<div class="memproto">
54
<table class="memname">
56
<td class="memname">void QwtLinearScaleEngine::autoScale </td>
58
<td class="paramtype">int </td>
59
<td class="paramname"> <em>maxNumSteps</em>, </td>
62
<td class="paramkey"></td>
64
<td class="paramtype">double & </td>
65
<td class="paramname"> <em>x1</em>, </td>
68
<td class="paramkey"></td>
70
<td class="paramtype">double & </td>
71
<td class="paramname"> <em>x2</em>, </td>
74
<td class="paramkey"></td>
76
<td class="paramtype">double & </td>
77
<td class="paramname"> <em>stepSize</em></td><td> </td>
82
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
89
Align and divide an interval<p>
90
<dl compact><dt><b>Parameters:</b></dt><dd>
91
<table border="0" cellspacing="2" cellpadding="0">
92
<tr><td valign="top"></td><td valign="top"><em>maxNumSteps</em> </td><td>Max. number of steps </td></tr>
93
<tr><td valign="top"></td><td valign="top"><em>x1</em> </td><td>First limit of the interval (In/Out) </td></tr>
94
<tr><td valign="top"></td><td valign="top"><em>x2</em> </td><td>Second limit of the interval (In/Out) </td></tr>
95
<tr><td valign="top"></td><td valign="top"><em>stepSize</em> </td><td>Step size (Out)</td></tr>
98
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#cf02a88f6e778edbc9e005960f35b3b7">QwtLinearScaleEngine::setAttribute</a> </dd></dl>
101
Implements <a class="el" href="class_qwt_scale_engine.html#a27323d6d9d5348bd253a61b45e4785b">QwtScaleEngine</a>.
103
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">416</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
105
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00600">align()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00309">QwtScaleEngine::buildInterval()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00233">QwtScaleEngine::divideInterval()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00185">QwtDoubleInterval::extend()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00198">QwtScaleEngine::hiMargin()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00187">QwtScaleEngine::loMargin()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00134">QwtDoubleInterval::maxValue()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00128">QwtDoubleInterval::minValue()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00028">QwtDoubleInterval::normalized()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00393">QwtScaleEngine::reference()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00122">QwtDoubleInterval::setMaxValue()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00112">QwtDoubleInterval::setMinValue()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00140">QwtDoubleInterval::symmetrize()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00353">QwtScaleEngine::testAttribute()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>.
108
<a class="anchor" name="9f74287e61d1abfc2096cc88222c132a"></a><!-- doxytag: member="QwtLinearScaleEngine::divideScale" ref="9f74287e61d1abfc2096cc88222c132a" args="(double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) const" -->
109
<div class="memitem">
110
<div class="memproto">
111
<table class="memname">
113
<td class="memname"><a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> QwtLinearScaleEngine::divideScale </td>
115
<td class="paramtype">double </td>
116
<td class="paramname"> <em>x1</em>, </td>
119
<td class="paramkey"></td>
121
<td class="paramtype">double </td>
122
<td class="paramname"> <em>x2</em>, </td>
125
<td class="paramkey"></td>
127
<td class="paramtype">int </td>
128
<td class="paramname"> <em>maxMajSteps</em>, </td>
131
<td class="paramkey"></td>
133
<td class="paramtype">int </td>
134
<td class="paramname"> <em>maxMinSteps</em>, </td>
137
<td class="paramkey"></td>
139
<td class="paramtype">double </td>
140
<td class="paramname"> <em>stepSize</em> = <code>0.0</code></td><td> </td>
145
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
152
Calculate a scale division.
154
<dl compact><dt><b>Parameters:</b></dt><dd>
155
<table border="0" cellspacing="2" cellpadding="0">
156
<tr><td valign="top"></td><td valign="top"><em>x1</em> </td><td>First interval limit </td></tr>
157
<tr><td valign="top"></td><td valign="top"><em>x2</em> </td><td>Second interval limit </td></tr>
158
<tr><td valign="top"></td><td valign="top"><em>maxMajSteps</em> </td><td>Maximum for the number of major steps </td></tr>
159
<tr><td valign="top"></td><td valign="top"><em>maxMinSteps</em> </td><td>Maximum number of minor steps </td></tr>
160
<tr><td valign="top"></td><td valign="top"><em>stepSize</em> </td><td>Step size. If stepSize == 0, the scaleEngine calculates one.</td></tr>
163
<dl class="see" compact><dt><b>See also:</b></dt><dd>QwtScaleEngine::stepSize, QwtScaleEngine::subDivide </dd></dl>
166
Implements <a class="el" href="class_qwt_scale_engine.html#9e788f29baf63184297f55350dd58e30">QwtScaleEngine</a>.
168
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00461">461</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
170
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00233">QwtScaleEngine::divideInterval()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>.
172
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00811">QwtDial::updateScale()</a>.
175
<a class="anchor" name="def184ed0c1febe7611d4f91bb09f5d7"></a><!-- doxytag: member="QwtLinearScaleEngine::transformation" ref="def184ed0c1febe7611d4f91bb09f5d7" args="() const" -->
176
<div class="memitem">
177
<div class="memproto">
178
<table class="memname">
180
<td class="memname"><a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a> * QwtLinearScaleEngine::transformation </td>
182
<td class="paramname"> </td>
183
<td> ) </td>
184
<td width="100%"> const<code> [virtual]</code></td>
191
Return a transformation, for linear scales
193
Implements <a class="el" href="class_qwt_scale_engine.html#8219578551ce5fd1ab8cccd657afdc71">QwtScaleEngine</a>.
195
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00401">401</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
197
Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l00811">QwtDial::updateScale()</a>.
200
<a class="anchor" name="426436e31a379ed26c7d0d976e3ca0a2"></a><!-- doxytag: member="QwtLinearScaleEngine::align" ref="426436e31a379ed26c7d0d976e3ca0a2" args="(const QwtDoubleInterval &, double stepSize) const" -->
201
<div class="memitem">
202
<div class="memproto">
203
<table class="memname">
205
<td class="memname"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> QwtLinearScaleEngine::align </td>
207
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
208
<td class="paramname"> <em>interval</em>, </td>
211
<td class="paramkey"></td>
213
<td class="paramtype">double </td>
214
<td class="paramname"> <em>stepSize</em></td><td> </td>
219
<td></td><td></td><td width="100%"> const<code> [protected]</code></td>
226
Align an interval to a step size.
228
The limits of an interval are aligned that both are integer multiples of the step size.<p>
229
<dl compact><dt><b>Parameters:</b></dt><dd>
230
<table border="0" cellspacing="2" cellpadding="0">
231
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Interval </td></tr>
232
<tr><td valign="top"></td><td valign="top"><em>stepSize</em> </td><td>Step size</td></tr>
235
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Aligned interval </dd></dl>
238
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00600">600</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
240
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00050">QwtScaleArithmetic::ceilEps()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00067">QwtScaleArithmetic::floorEps()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00134">QwtDoubleInterval::maxValue()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00128">QwtDoubleInterval::minValue()</a>.
242
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">autoScale()</a>.
245
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:18 2008 for Qwt User's Guide by
246
<a href="http://www.doxygen.org/index.html">
247
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>