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: QwtScaleEngine 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.4.6 -->
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>QwtScaleEngine Class Reference</h1><!-- doxytag: class="QwtScaleEngine" -->Inheritance diagram for QwtScaleEngine:<p><center><img src="class_qwt_scale_engine__inherit__graph.png" border="0" usemap="#_qwt_scale_engine__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_scale_engine__inherit__map">
24
<area href="class_qwt_linear_scale_engine.html" shape="rect" coords="7,83,164,107" alt="">
25
<area href="class_qwt_log10_scale_engine.html" shape="rect" coords="188,83,343,107" alt="">
27
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_scale_engine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
28
Base class for scale engines.
30
A scale engine trys to find "reasonable" ranges and step sizes for scales.<p>
31
The layout of the scale can be varied with <a class="el" href="class_qwt_scale_engine.html#cf02a88f6e778edbc9e005960f35b3b7">setAttribute()</a>.<p>
32
Qwt offers implementations for logarithmic (log10) and linear scales. Contributions for other types of scale engines (date/time, log2 ... ) are welcome.
36
Definition at line <a class="el" href="qwt__scale__engine_8h-source.html#l00050">50</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 colspan="2"><br><h2>Public Types</h2></td></tr>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> { <br>
40
<b>NoAttribute</b> = 0,
42
<b>IncludeReference</b> = 1,
44
<b>Symmetric</b> = 2,
46
<b>Floating</b> = 4,
48
<b>Inverted</b> = 8
52
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#58cb9344a913fa798ac7343d55f3f693">QwtScaleEngine</a> ()</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#b9c21b4550d44d9a82c1865864cb8943">~QwtScaleEngine</a> ()</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_scale_engine.html#cf02a88f6e778edbc9e005960f35b3b7">setAttribute</a> (<a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, bool on=true)</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#b43cac5ff8843531bbb02b4401e8fb62">testAttribute</a> (<a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>) const </td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#d221d715e28e644975c6cbda9cae492e">setAttributes</a> (int)</td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#3e8d3101af3dbab7a97b96779118e428">attributes</a> () const </td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#89985ea69dbd858c8b9162ecd2be936e">setReference</a> (double reference)</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#5962458870865df797e84e3bd6badf02">reference</a> () const </td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">setMargins</a> (double m1, double m2)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#51447104ab614a157c2bac6a0f0f7dc9">loMargin</a> () const </td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a1e2d260975cef6546a3829213bc5f2f">hiMargin</a> () const </td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a27323d6d9d5348bd253a61b45e4785b">autoScale</a> (int maxNumSteps, double &x1, double &x2, double &stepSize) const =0</td></tr>
77
<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_scale_engine.html#833fbdad4cce6e3b6448ee2549dc09e1">divideScale</a> (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const =0</td></tr>
79
<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_scale_engine.html#04a93d0dc39a3483957764e7749989fd">transformation</a> () const =0</td></tr>
81
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#fb902375924c862f1058f77bb7a7029e">contains</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double val) const </td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">QwtValueList </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#f4522cd83e7885f19d35579d42fbc1fc">strip</a> (const QwtValueList &, const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &) const </td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#ff30158c5ccfee78f4c3e01c0fb5f4de">divideInterval</a> (double interval, int numSteps) const </td></tr>
88
<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_scale_engine.html#f06bc397d46b40c69fe5c82b7f2c3267">buildInterval</a> (double v) const </td></tr>
91
<hr><h2>Member Enumeration Documentation</h2>
92
<a class="anchor" name="7548418e0896d75eec164bfa2ba3ff5f"></a><!-- doxytag: member="QwtScaleEngine::Attribute" ref="7548418e0896d75eec164bfa2ba3ff5f" args="" --><p>
93
<table class="mdTable" cellpadding="2" cellspacing="0">
96
<table cellpadding="0" cellspacing="0" border="0">
98
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">QwtScaleEngine::Attribute</a> </td>
104
<table cellspacing="5" cellpadding="0" border="0">
112
see QwtScaleEngine::setOption, testOption
116
Definition at line <a class="el" href="qwt__scale__engine_8h-source.html#l00054">54</a> of file <a class="el" href="qwt__scale__engine_8h-source.html">qwt_scale_engine.h</a>. </td>
119
<hr><h2>Constructor & Destructor Documentation</h2>
120
<a class="anchor" name="58cb9344a913fa798ac7343d55f3f693"></a><!-- doxytag: member="QwtScaleEngine::QwtScaleEngine" ref="58cb9344a913fa798ac7343d55f3f693" args="()" --><p>
121
<table class="mdTable" cellpadding="2" cellspacing="0">
124
<table cellpadding="0" cellspacing="0" border="0">
126
<td class="md" nowrap valign="top">QwtScaleEngine::QwtScaleEngine </td>
127
<td class="md" valign="top">( </td>
128
<td class="mdname1" valign="top" nowrap> </td>
129
<td class="md" valign="top"> ) </td>
130
<td class="md" nowrap><code> [explicit]</code></td>
136
<table cellspacing="5" cellpadding="0" border="0">
148
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00169">169</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>. </td>
151
<a class="anchor" name="b9c21b4550d44d9a82c1865864cb8943"></a><!-- doxytag: member="QwtScaleEngine::~QwtScaleEngine" ref="b9c21b4550d44d9a82c1865864cb8943" args="()" --><p>
152
<table class="mdTable" cellpadding="2" cellspacing="0">
155
<table cellpadding="0" cellspacing="0" border="0">
157
<td class="md" nowrap valign="top">QwtScaleEngine::~QwtScaleEngine </td>
158
<td class="md" valign="top">( </td>
159
<td class="mdname1" valign="top" nowrap> </td>
160
<td class="md" valign="top"> ) </td>
161
<td class="md" nowrap><code> [virtual]</code></td>
167
<table cellspacing="5" cellpadding="0" border="0">
179
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00176">176</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>. </td>
182
<hr><h2>Member Function Documentation</h2>
183
<a class="anchor" name="3e8d3101af3dbab7a97b96779118e428"></a><!-- doxytag: member="QwtScaleEngine::attributes" ref="3e8d3101af3dbab7a97b96779118e428" args="() const " --><p>
184
<table class="mdTable" cellpadding="2" cellspacing="0">
187
<table cellpadding="0" cellspacing="0" border="0">
189
<td class="md" nowrap valign="top">int QwtScaleEngine::attributes </td>
190
<td class="md" valign="top">( </td>
191
<td class="mdname1" valign="top" nowrap> </td>
192
<td class="md" valign="top"> ) </td>
193
<td class="md" nowrap> const</td>
199
<table cellspacing="5" cellpadding="0" border="0">
207
Return the scale attributes
209
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00372">372</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
211
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
214
<a class="anchor" name="a27323d6d9d5348bd253a61b45e4785b"></a><!-- doxytag: member="QwtScaleEngine::autoScale" ref="a27323d6d9d5348bd253a61b45e4785b" args="(int maxNumSteps, double &x1, double &x2, double &stepSize) const =0" --><p>
215
<table class="mdTable" cellpadding="2" cellspacing="0">
218
<table cellpadding="0" cellspacing="0" border="0">
220
<td class="md" nowrap valign="top">virtual void QwtScaleEngine::autoScale </td>
221
<td class="md" valign="top">( </td>
222
<td class="md" nowrap valign="top">int </td>
223
<td class="mdname" nowrap> <em>maxNumSteps</em>, </td>
226
<td class="md" nowrap align="right"></td>
228
<td class="md" nowrap>double & </td>
229
<td class="mdname" nowrap> <em>x1</em>, </td>
232
<td class="md" nowrap align="right"></td>
234
<td class="md" nowrap>double & </td>
235
<td class="mdname" nowrap> <em>x2</em>, </td>
238
<td class="md" nowrap align="right"></td>
240
<td class="md" nowrap>double & </td>
241
<td class="mdname" nowrap> <em>stepSize</em></td>
245
<td class="md">) </td>
246
<td class="md" colspan="2"> const<code> [pure virtual]</code></td>
252
<table cellspacing="5" cellpadding="0" border="0">
260
Align and divide an interval<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>maxNumSteps</em> </td><td>Max. number of steps </td></tr>
264
<tr><td valign="top"></td><td valign="top"><em>x1</em> </td><td>First limit of the interval (In/Out) </td></tr>
265
<tr><td valign="top"></td><td valign="top"><em>x2</em> </td><td>Second limit of the interval (In/Out) </td></tr>
266
<tr><td valign="top"></td><td valign="top"><em>stepSize</em> </td><td>Step size (Return value) </td></tr>
271
Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#d0f1d825e70eb7a1deb15875a8093cff">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#bcab6bb8667f82dcdb656ad634976142">QwtLog10ScaleEngine</a>. </td>
274
<a class="anchor" name="f06bc397d46b40c69fe5c82b7f2c3267"></a><!-- doxytag: member="QwtScaleEngine::buildInterval" ref="f06bc397d46b40c69fe5c82b7f2c3267" args="(double v) const " --><p>
275
<table class="mdTable" cellpadding="2" cellspacing="0">
278
<table cellpadding="0" cellspacing="0" border="0">
280
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> QwtScaleEngine::buildInterval </td>
281
<td class="md" valign="top">( </td>
282
<td class="md" nowrap valign="top">double </td>
283
<td class="mdname1" valign="top" nowrap> <em>v</em> </td>
284
<td class="md" valign="top"> ) </td>
285
<td class="md" nowrap> const<code> [protected]</code></td>
291
<table cellspacing="5" cellpadding="0" border="0">
299
Build an interval for a value.
301
In case of v == 0.0 the interval is [-0.5, 0.5], otherwide it is [0.5 * v, 1.5 * v]
303
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00309">309</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
305
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>. </td>
308
<a class="anchor" name="fb902375924c862f1058f77bb7a7029e"></a><!-- doxytag: member="QwtScaleEngine::contains" ref="fb902375924c862f1058f77bb7a7029e" args="(const QwtDoubleInterval &, double val) const " --><p>
309
<table class="mdTable" cellpadding="2" cellspacing="0">
312
<table cellpadding="0" cellspacing="0" border="0">
314
<td class="md" nowrap valign="top">bool QwtScaleEngine::contains </td>
315
<td class="md" valign="top">( </td>
316
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
317
<td class="mdname" nowrap> <em>interval</em>, </td>
320
<td class="md" nowrap align="right"></td>
322
<td class="md" nowrap>double </td>
323
<td class="mdname" nowrap> <em>value</em></td>
327
<td class="md">) </td>
328
<td class="md" colspan="2"> const<code> [protected]</code></td>
334
<table cellspacing="5" cellpadding="0" border="0">
342
Check if an interval "contains" a value<p>
343
<dl compact><dt><b>Parameters:</b></dt><dd>
344
<table border="0" cellspacing="2" cellpadding="0">
345
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Interval </td></tr>
346
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value</td></tr>
349
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_arithmetic.html#6c6f982022550fba9ccee034f87461ce">QwtScaleArithmetic::compareEps</a> </dd></dl>
352
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00251">251</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
354
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00028">QwtScaleArithmetic::compareEps()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00200">QwtDoubleInterval::isValid()</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>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>.
356
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00280">strip()</a>. </td>
359
<a class="anchor" name="ff30158c5ccfee78f4c3e01c0fb5f4de"></a><!-- doxytag: member="QwtScaleEngine::divideInterval" ref="ff30158c5ccfee78f4c3e01c0fb5f4de" args="(double interval, int numSteps) const " --><p>
360
<table class="mdTable" cellpadding="2" cellspacing="0">
363
<table cellpadding="0" cellspacing="0" border="0">
365
<td class="md" nowrap valign="top">double QwtScaleEngine::divideInterval </td>
366
<td class="md" valign="top">( </td>
367
<td class="md" nowrap valign="top">double </td>
368
<td class="mdname" nowrap> <em>intervalSize</em>, </td>
371
<td class="md" nowrap align="right"></td>
373
<td class="md" nowrap>int </td>
374
<td class="mdname" nowrap> <em>numSteps</em></td>
378
<td class="md">) </td>
379
<td class="md" colspan="2"> const<code> [protected]</code></td>
385
<table cellspacing="5" cellpadding="0" border="0">
393
Calculate a step size for an interval size<p>
394
<dl compact><dt><b>Parameters:</b></dt><dd>
395
<table border="0" cellspacing="2" cellpadding="0">
396
<tr><td valign="top"></td><td valign="top"><em>intervalSize</em> </td><td>Interval size </td></tr>
397
<tr><td valign="top"></td><td valign="top"><em>numSteps</em> </td><td>Number of steps</td></tr>
400
<dl compact><dt><b>Returns:</b></dt><dd>Step size </dd></dl>
403
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00233">233</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
405
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00098">QwtScaleArithmetic::ceil125()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00084">QwtScaleArithmetic::divideEps()</a>.
407
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00461">QwtLinearScaleEngine::divideScale()</a>. </td>
410
<a class="anchor" name="833fbdad4cce6e3b6448ee2549dc09e1"></a><!-- doxytag: member="QwtScaleEngine::divideScale" ref="833fbdad4cce6e3b6448ee2549dc09e1" args="(double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const =0" --><p>
411
<table class="mdTable" cellpadding="2" cellspacing="0">
414
<table cellpadding="0" cellspacing="0" border="0">
416
<td class="md" nowrap valign="top">virtual <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> QwtScaleEngine::divideScale </td>
417
<td class="md" valign="top">( </td>
418
<td class="md" nowrap valign="top">double </td>
419
<td class="mdname" nowrap> <em>x1</em>, </td>
422
<td class="md" nowrap align="right"></td>
424
<td class="md" nowrap>double </td>
425
<td class="mdname" nowrap> <em>x2</em>, </td>
428
<td class="md" nowrap align="right"></td>
430
<td class="md" nowrap>int </td>
431
<td class="mdname" nowrap> <em>maxMajSteps</em>, </td>
434
<td class="md" nowrap align="right"></td>
436
<td class="md" nowrap>int </td>
437
<td class="mdname" nowrap> <em>maxMinSteps</em>, </td>
440
<td class="md" nowrap align="right"></td>
442
<td class="md" nowrap>double </td>
443
<td class="mdname" nowrap> <em>stepSize</em> = <code>0.0</code></td>
447
<td class="md">) </td>
448
<td class="md" colspan="2"> const<code> [pure virtual]</code></td>
454
<table cellspacing="5" cellpadding="0" border="0">
462
Calculate a scale division.
464
<dl compact><dt><b>Parameters:</b></dt><dd>
465
<table border="0" cellspacing="2" cellpadding="0">
466
<tr><td valign="top"></td><td valign="top"><em>x1</em> </td><td>First interval limit </td></tr>
467
<tr><td valign="top"></td><td valign="top"><em>x2</em> </td><td>Second interval limit </td></tr>
468
<tr><td valign="top"></td><td valign="top"><em>maxMajSteps</em> </td><td>Maximum for the number of major steps </td></tr>
469
<tr><td valign="top"></td><td valign="top"><em>maxMinSteps</em> </td><td>Maximum number of minor steps </td></tr>
470
<tr><td valign="top"></td><td valign="top"><em>stepSize</em> </td><td>Step size. If stepSize == 0.0, the scaleEngine calculates one. </td></tr>
475
Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#afed94c688e67c95a6ecf18e8bb522ab">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#e46745d561ce2ac583bb44e94f0fc7d6">QwtLog10ScaleEngine</a>. </td>
478
<a class="anchor" name="a1e2d260975cef6546a3829213bc5f2f"></a><!-- doxytag: member="QwtScaleEngine::hiMargin" ref="a1e2d260975cef6546a3829213bc5f2f" args="() const " --><p>
479
<table class="mdTable" cellpadding="2" cellspacing="0">
482
<table cellpadding="0" cellspacing="0" border="0">
484
<td class="md" nowrap valign="top">double QwtScaleEngine::hiMargin </td>
485
<td class="md" valign="top">( </td>
486
<td class="mdname1" valign="top" nowrap> </td>
487
<td class="md" valign="top"> ) </td>
488
<td class="md" nowrap> const</td>
494
<table cellspacing="5" cellpadding="0" border="0">
502
<dl compact><dt><b>Returns:</b></dt><dd>the margin at the upper end of the scale The default margin is 0.</dd></dl>
503
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">QwtScaleEngine::setMargins()</a> </dd></dl>
506
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00198">198</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
508
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
511
<a class="anchor" name="51447104ab614a157c2bac6a0f0f7dc9"></a><!-- doxytag: member="QwtScaleEngine::loMargin" ref="51447104ab614a157c2bac6a0f0f7dc9" args="() const " --><p>
512
<table class="mdTable" cellpadding="2" cellspacing="0">
515
<table cellpadding="0" cellspacing="0" border="0">
517
<td class="md" nowrap valign="top">double QwtScaleEngine::loMargin </td>
518
<td class="md" valign="top">( </td>
519
<td class="mdname1" valign="top" nowrap> </td>
520
<td class="md" valign="top"> ) </td>
521
<td class="md" nowrap> const</td>
527
<table cellspacing="5" cellpadding="0" border="0">
535
<dl compact><dt><b>Returns:</b></dt><dd>the margin at the lower end of the scale The default margin is 0.</dd></dl>
536
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">QwtScaleEngine::setMargins()</a> </dd></dl>
539
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00187">187</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
541
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
544
<a class="anchor" name="5962458870865df797e84e3bd6badf02"></a><!-- doxytag: member="QwtScaleEngine::reference" ref="5962458870865df797e84e3bd6badf02" args="() const " --><p>
545
<table class="mdTable" cellpadding="2" cellspacing="0">
548
<table cellpadding="0" cellspacing="0" border="0">
550
<td class="md" nowrap valign="top">double QwtScaleEngine::reference </td>
551
<td class="md" valign="top">( </td>
552
<td class="mdname1" valign="top" nowrap> </td>
553
<td class="md" valign="top"> ) </td>
554
<td class="md" nowrap> const</td>
560
<table cellspacing="5" cellpadding="0" border="0">
568
<dl compact><dt><b>Returns:</b></dt><dd>the reference value </dd></dl>
569
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#89985ea69dbd858c8b9162ecd2be936e">QwtScaleEngine::setReference()</a>, QwtScaleEngine::setOptions() </dd></dl>
572
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00393">393</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
574
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
577
<a class="anchor" name="cf02a88f6e778edbc9e005960f35b3b7"></a><!-- doxytag: member="QwtScaleEngine::setAttribute" ref="cf02a88f6e778edbc9e005960f35b3b7" args="(Attribute, bool on=true)" --><p>
578
<table class="mdTable" cellpadding="2" cellspacing="0">
581
<table cellpadding="0" cellspacing="0" border="0">
583
<td class="md" nowrap valign="top">void QwtScaleEngine::setAttribute </td>
584
<td class="md" valign="top">( </td>
585
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </td>
586
<td class="mdname" nowrap> <em>attribute</em>, </td>
589
<td class="md" nowrap align="right"></td>
591
<td class="md" nowrap>bool </td>
592
<td class="mdname" nowrap> <em>on</em> = <code>true</code></td>
596
<td class="md">) </td>
597
<td class="md" colspan="2"></td>
603
<table cellspacing="5" cellpadding="0" border="0">
611
Change a scale attribute<p>
612
<dl compact><dt><b>Parameters:</b></dt><dd>
613
<table border="0" cellspacing="2" cellpadding="0">
614
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>Attribute to change </td></tr>
615
<tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr>
618
The behaviour of the scale engine can be changed with the following attributes: <dl>
619
<dt>QwtScaleEngine::IncludeReference </dt>
620
<dd>Build a scale which includes the reference value. </dd>
621
<dt>QwtScaleEngine::Symmetric </dt>
622
<dd>Build a scale which is symmetric to the reference value. </dd>
623
<dt>QwtScaleEngine::Floating </dt>
624
<dd>The endpoints of the scale are supposed to be equal the outmost included values plus the specified margins (see <a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">setMargins()</a>). If this attribute is not* set, the endpoints of the scale will be integer multiples of the step size. </dd>
625
<dt>QwtScaleEngine::Inverted </dt>
626
<dd>Turn the scale upside down. </dd>
629
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#b43cac5ff8843531bbb02b4401e8fb62">QwtScaleEngine::testAttribute()</a> </dd></dl>
632
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00339">339</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>. </td>
635
<a class="anchor" name="d221d715e28e644975c6cbda9cae492e"></a><!-- doxytag: member="QwtScaleEngine::setAttributes" ref="d221d715e28e644975c6cbda9cae492e" args="(int)" --><p>
636
<table class="mdTable" cellpadding="2" cellspacing="0">
639
<table cellpadding="0" cellspacing="0" border="0">
641
<td class="md" nowrap valign="top">void QwtScaleEngine::setAttributes </td>
642
<td class="md" valign="top">( </td>
643
<td class="md" nowrap valign="top">int </td>
644
<td class="mdname1" valign="top" nowrap> <em>attributes</em> </td>
645
<td class="md" valign="top"> ) </td>
646
<td class="md" nowrap></td>
652
<table cellspacing="5" cellpadding="0" border="0">
660
Change the scale attribute<p>
661
<dl compact><dt><b>Parameters:</b></dt><dd>
662
<table border="0" cellspacing="2" cellpadding="0">
663
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>Set scale attributes </td></tr>
666
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#3e8d3101af3dbab7a97b96779118e428">QwtScaleEngine::attributes()</a> </dd></dl>
669
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00364">364</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
671
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
674
<a class="anchor" name="d6e83875e5e7a65b005ebb6213e1e869"></a><!-- doxytag: member="QwtScaleEngine::setMargins" ref="d6e83875e5e7a65b005ebb6213e1e869" args="(double m1, double m2)" --><p>
675
<table class="mdTable" cellpadding="2" cellspacing="0">
678
<table cellpadding="0" cellspacing="0" border="0">
680
<td class="md" nowrap valign="top">void QwtScaleEngine::setMargins </td>
681
<td class="md" valign="top">( </td>
682
<td class="md" nowrap valign="top">double </td>
683
<td class="mdname" nowrap> <em>mlo</em>, </td>
686
<td class="md" nowrap align="right"></td>
688
<td class="md" nowrap>double </td>
689
<td class="mdname" nowrap> <em>mhi</em></td>
693
<td class="md">) </td>
694
<td class="md" colspan="2"></td>
700
<table cellspacing="5" cellpadding="0" border="0">
708
Specify margins at the scale's endpoints.
710
<dl compact><dt><b>Parameters:</b></dt><dd>
711
<table border="0" cellspacing="2" cellpadding="0">
712
<tr><td valign="top"></td><td valign="top"><em>mlo</em> </td><td>minimum distance between the scale's lower boundary and the smallest enclosed value </td></tr>
713
<tr><td valign="top"></td><td valign="top"><em>mhi</em> </td><td>minimum distance between the scale's upper boundary and the greatest enclosed value</td></tr>
716
Margins can be used to leave a minimum amount of space between the enclosed intervals and the boundaries of the scale.<p>
717
<dl compact><dt><b>Warning:</b></dt><dd><ul>
718
<li><a class="el" href="class_qwt_log10_scale_engine.html">QwtLog10ScaleEngine</a> measures the margins in decades.</li>
721
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a1e2d260975cef6546a3829213bc5f2f">QwtScaleEngine::hiMargin</a>, <a class="el" href="class_qwt_scale_engine.html#51447104ab614a157c2bac6a0f0f7dc9">QwtScaleEngine::loMargin</a> </dd></dl>
724
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00219">219</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
726
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
729
<a class="anchor" name="89985ea69dbd858c8b9162ecd2be936e"></a><!-- doxytag: member="QwtScaleEngine::setReference" ref="89985ea69dbd858c8b9162ecd2be936e" args="(double reference)" --><p>
730
<table class="mdTable" cellpadding="2" cellspacing="0">
733
<table cellpadding="0" cellspacing="0" border="0">
735
<td class="md" nowrap valign="top">void QwtScaleEngine::setReference </td>
736
<td class="md" valign="top">( </td>
737
<td class="md" nowrap valign="top">double </td>
738
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
739
<td class="md" valign="top"> ) </td>
740
<td class="md" nowrap></td>
746
<table cellspacing="5" cellpadding="0" border="0">
754
Specify a reference point.
756
<dl compact><dt><b>Parameters:</b></dt><dd>
757
<table border="0" cellspacing="2" cellpadding="0">
758
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>new reference value</td></tr>
761
The reference point is needed if options IncludeRef or Symmetric are active. Its default value is 0.0.
763
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00384">384</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
765
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00686">QwtLog10ScaleEngine::divideScale()</a>. </td>
768
<a class="anchor" name="f4522cd83e7885f19d35579d42fbc1fc"></a><!-- doxytag: member="QwtScaleEngine::strip" ref="f4522cd83e7885f19d35579d42fbc1fc" args="(const QwtValueList &, const QwtDoubleInterval &) const " --><p>
769
<table class="mdTable" cellpadding="2" cellspacing="0">
772
<table cellpadding="0" cellspacing="0" border="0">
774
<td class="md" nowrap valign="top">QwtValueList QwtScaleEngine::strip </td>
775
<td class="md" valign="top">( </td>
776
<td class="md" nowrap valign="top">const QwtValueList & </td>
777
<td class="mdname" nowrap> <em>ticks</em>, </td>
780
<td class="md" nowrap align="right"></td>
782
<td class="md" nowrap>const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
783
<td class="mdname" nowrap> <em>interval</em></td>
787
<td class="md">) </td>
788
<td class="md" colspan="2"> const<code> [protected]</code></td>
794
<table cellspacing="5" cellpadding="0" border="0">
802
Remove ticks from a list, that are not inside an interval<p>
803
<dl compact><dt><b>Parameters:</b></dt><dd>
804
<table border="0" cellspacing="2" cellpadding="0">
805
<tr><td valign="top"></td><td valign="top"><em>ticks</em> </td><td>Tick list </td></tr>
806
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Interval</td></tr>
809
<dl compact><dt><b>Returns:</b></dt><dd>Stripped tick list </dd></dl>
812
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00280">280</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
814
References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00251">contains()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00200">QwtDoubleInterval::isValid()</a>. </td>
817
<a class="anchor" name="b43cac5ff8843531bbb02b4401e8fb62"></a><!-- doxytag: member="QwtScaleEngine::testAttribute" ref="b43cac5ff8843531bbb02b4401e8fb62" args="(Attribute) const " --><p>
818
<table class="mdTable" cellpadding="2" cellspacing="0">
821
<table cellpadding="0" cellspacing="0" border="0">
823
<td class="md" nowrap valign="top">bool QwtScaleEngine::testAttribute </td>
824
<td class="md" valign="top">( </td>
825
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </td>
826
<td class="mdname1" valign="top" nowrap> <em>attribute</em> </td>
827
<td class="md" valign="top"> ) </td>
828
<td class="md" nowrap> const</td>
834
<table cellspacing="5" cellpadding="0" border="0">
842
Check if a attribute is set.<p>
843
<dl compact><dt><b>Parameters:</b></dt><dd>
844
<table border="0" cellspacing="2" cellpadding="0">
845
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>Attribute to be tested </td></tr>
848
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#cf02a88f6e778edbc9e005960f35b3b7">QwtScaleEngine::setAttribute()</a> for a description of the possible options. </dd></dl>
851
Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00353">353</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.
853
Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00629">QwtLog10ScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00416">QwtLinearScaleEngine::autoScale()</a>. </td>
856
<a class="anchor" name="04a93d0dc39a3483957764e7749989fd"></a><!-- doxytag: member="QwtScaleEngine::transformation" ref="04a93d0dc39a3483957764e7749989fd" args="() const =0" --><p>
857
<table class="mdTable" cellpadding="2" cellspacing="0">
860
<table cellpadding="0" cellspacing="0" border="0">
862
<td class="md" nowrap valign="top">virtual <a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a>* QwtScaleEngine::transformation </td>
863
<td class="md" valign="top">( </td>
864
<td class="mdname1" valign="top" nowrap> </td>
865
<td class="md" valign="top"> ) </td>
866
<td class="md" nowrap> const<code> [pure virtual]</code></td>
872
<table cellspacing="5" cellpadding="0" border="0">
880
<dl compact><dt><b>Returns:</b></dt><dd>a transformation </dd></dl>
883
Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#db24f92fa0e8c0548a38cd310158b3d3">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#f972778615ea076c8452abea96516ce9">QwtLog10ScaleEngine</a>. </td>
886
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:42:54 2007 for Qwt User's Guide by
887
<a href="http://www.doxygen.org/index.html">
888
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>