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

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/html/class_qwt_linear_scale_engine.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

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=iso-8859-1">
 
3
<title>Qwt User&apos;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">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.5.0 -->
 
8
<div class="tabs">
 
9
  <ul>
 
10
    <li><a href="index.html"><span>Main&nbsp;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&nbsp;Pages</span></a></li>
 
14
  </ul></div>
 
15
<div class="tabs">
 
16
  <ul>
 
17
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
 
18
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
19
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
20
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
21
  </ul></div>
 
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="">
 
25
</map>
 
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="">
 
29
</map>
 
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. 
 
32
<p>
 
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. 
 
34
<p>
 
35
 
 
36
<p>
 
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">
 
38
<tr><td></td></tr>
 
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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#2b59d0b1b40d476f01b5b693ceac30ed">autoScale</a> (int maxSteps, double &amp;x1, double &amp;x2, double &amp;stepSize) const</td></tr>
 
41
 
 
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a>&nbsp;</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>
 
43
 
 
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_scale_engine.html#def184ed0c1febe7611d4f91bb09f5d7">transformation</a> () const</td></tr>
 
45
 
 
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>&nbsp;</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> &amp;, double stepSize) const</td></tr>
 
48
 
 
49
</table>
 
50
<hr><h2>Member Function Documentation</h2>
 
51
<a class="anchor" name="2b59d0b1b40d476f01b5b693ceac30ed"></a><!-- doxytag: member="QwtLinearScaleEngine::autoScale" ref="2b59d0b1b40d476f01b5b693ceac30ed" args="(int maxSteps, double &amp;x1, double &amp;x2, double &amp;stepSize) const" -->
 
52
<div class="memitem">
 
53
<div class="memproto">
 
54
      <table class="memname">
 
55
        <tr>
 
56
          <td class="memname">void QwtLinearScaleEngine::autoScale           </td>
 
57
          <td>(</td>
 
58
          <td class="paramtype">int&nbsp;</td>
 
59
          <td class="paramname"> <em>maxNumSteps</em>, </td>
 
60
        </tr>
 
61
        <tr>
 
62
          <td class="paramkey"></td>
 
63
          <td></td>
 
64
          <td class="paramtype">double &amp;&nbsp;</td>
 
65
          <td class="paramname"> <em>x1</em>, </td>
 
66
        </tr>
 
67
        <tr>
 
68
          <td class="paramkey"></td>
 
69
          <td></td>
 
70
          <td class="paramtype">double &amp;&nbsp;</td>
 
71
          <td class="paramname"> <em>x2</em>, </td>
 
72
        </tr>
 
73
        <tr>
 
74
          <td class="paramkey"></td>
 
75
          <td></td>
 
76
          <td class="paramtype">double &amp;&nbsp;</td>
 
77
          <td class="paramname"> <em>stepSize</em></td><td>&nbsp;</td>
 
78
        </tr>
 
79
        <tr>
 
80
          <td></td>
 
81
          <td>)</td>
 
82
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
 
83
        </tr>
 
84
      </table>
 
85
</div>
 
86
<div class="memdoc">
 
87
 
 
88
<p>
 
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>&nbsp;</td><td>Max. number of steps </td></tr>
 
93
    <tr><td valign="top"></td><td valign="top"><em>x1</em>&nbsp;</td><td>First limit of the interval (In/Out) </td></tr>
 
94
    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>Second limit of the interval (In/Out) </td></tr>
 
95
    <tr><td valign="top"></td><td valign="top"><em>stepSize</em>&nbsp;</td><td>Step size (Out)</td></tr>
 
96
  </table>
 
97
</dl>
 
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>
 
99
 
 
100
<p>
 
101
Implements <a class="el" href="class_qwt_scale_engine.html#a27323d6d9d5348bd253a61b45e4785b">QwtScaleEngine</a>.
 
102
<p>
 
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>.
 
104
<p>
 
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>.
 
106
</div>
 
107
</div><p>
 
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">
 
112
        <tr>
 
113
          <td class="memname"><a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> QwtLinearScaleEngine::divideScale           </td>
 
114
          <td>(</td>
 
115
          <td class="paramtype">double&nbsp;</td>
 
116
          <td class="paramname"> <em>x1</em>, </td>
 
117
        </tr>
 
118
        <tr>
 
119
          <td class="paramkey"></td>
 
120
          <td></td>
 
121
          <td class="paramtype">double&nbsp;</td>
 
122
          <td class="paramname"> <em>x2</em>, </td>
 
123
        </tr>
 
124
        <tr>
 
125
          <td class="paramkey"></td>
 
126
          <td></td>
 
127
          <td class="paramtype">int&nbsp;</td>
 
128
          <td class="paramname"> <em>maxMajSteps</em>, </td>
 
129
        </tr>
 
130
        <tr>
 
131
          <td class="paramkey"></td>
 
132
          <td></td>
 
133
          <td class="paramtype">int&nbsp;</td>
 
134
          <td class="paramname"> <em>maxMinSteps</em>, </td>
 
135
        </tr>
 
136
        <tr>
 
137
          <td class="paramkey"></td>
 
138
          <td></td>
 
139
          <td class="paramtype">double&nbsp;</td>
 
140
          <td class="paramname"> <em>stepSize</em> = <code>0.0</code></td><td>&nbsp;</td>
 
141
        </tr>
 
142
        <tr>
 
143
          <td></td>
 
144
          <td>)</td>
 
145
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
 
146
        </tr>
 
147
      </table>
 
148
</div>
 
149
<div class="memdoc">
 
150
 
 
151
<p>
 
152
Calculate a scale division. 
 
153
<p>
 
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>&nbsp;</td><td>First interval limit </td></tr>
 
157
    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>Second interval limit </td></tr>
 
158
    <tr><td valign="top"></td><td valign="top"><em>maxMajSteps</em>&nbsp;</td><td>Maximum for the number of major steps </td></tr>
 
159
    <tr><td valign="top"></td><td valign="top"><em>maxMinSteps</em>&nbsp;</td><td>Maximum number of minor steps </td></tr>
 
160
    <tr><td valign="top"></td><td valign="top"><em>stepSize</em>&nbsp;</td><td>Step size. If stepSize == 0, the scaleEngine calculates one.</td></tr>
 
161
  </table>
 
162
</dl>
 
163
<dl class="see" compact><dt><b>See also:</b></dt><dd>QwtScaleEngine::stepSize, QwtScaleEngine::subDivide </dd></dl>
 
164
 
 
165
<p>
 
166
Implements <a class="el" href="class_qwt_scale_engine.html#9e788f29baf63184297f55350dd58e30">QwtScaleEngine</a>.
 
167
<p>
 
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>.
 
169
<p>
 
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>.
 
171
<p>
 
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#l00796">QwtDial::updateScale()</a>.
 
173
</div>
 
174
</div><p>
 
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">
 
179
        <tr>
 
180
          <td class="memname"><a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a> * QwtLinearScaleEngine::transformation           </td>
 
181
          <td>(</td>
 
182
          <td class="paramname">          </td>
 
183
          <td>&nbsp;)&nbsp;</td>
 
184
          <td width="100%"> const<code> [virtual]</code></td>
 
185
        </tr>
 
186
      </table>
 
187
</div>
 
188
<div class="memdoc">
 
189
 
 
190
<p>
 
191
Return a transformation, for linear scales 
 
192
<p>
 
193
Implements <a class="el" href="class_qwt_scale_engine.html#8219578551ce5fd1ab8cccd657afdc71">QwtScaleEngine</a>.
 
194
<p>
 
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>.
 
196
<p>
 
197
Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l00796">QwtDial::updateScale()</a>.
 
198
</div>
 
199
</div><p>
 
200
<a class="anchor" name="426436e31a379ed26c7d0d976e3ca0a2"></a><!-- doxytag: member="QwtLinearScaleEngine::align" ref="426436e31a379ed26c7d0d976e3ca0a2" args="(const QwtDoubleInterval &amp;, double stepSize) const" -->
 
201
<div class="memitem">
 
202
<div class="memproto">
 
203
      <table class="memname">
 
204
        <tr>
 
205
          <td class="memname"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> QwtLinearScaleEngine::align           </td>
 
206
          <td>(</td>
 
207
          <td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td>
 
208
          <td class="paramname"> <em>interval</em>, </td>
 
209
        </tr>
 
210
        <tr>
 
211
          <td class="paramkey"></td>
 
212
          <td></td>
 
213
          <td class="paramtype">double&nbsp;</td>
 
214
          <td class="paramname"> <em>stepSize</em></td><td>&nbsp;</td>
 
215
        </tr>
 
216
        <tr>
 
217
          <td></td>
 
218
          <td>)</td>
 
219
          <td></td><td></td><td width="100%"> const<code> [protected]</code></td>
 
220
        </tr>
 
221
      </table>
 
222
</div>
 
223
<div class="memdoc">
 
224
 
 
225
<p>
 
226
Align an interval to a step size. 
 
227
<p>
 
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>&nbsp;</td><td>Interval </td></tr>
 
232
    <tr><td valign="top"></td><td valign="top"><em>stepSize</em>&nbsp;</td><td>Step size</td></tr>
 
233
  </table>
 
234
</dl>
 
235
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Aligned interval </dd></dl>
 
236
 
 
237
<p>
 
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>.
 
239
<p>
 
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>.
 
241
<p>
 
242
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">autoScale()</a>.
 
243
</div>
 
244
</div><p>
 
245
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:39 2009 for Qwt User's Guide by&nbsp;
 
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>
 
248
</body>
 
249
</html>