1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Qwt User's Guide: QwtScaleEngine Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Qwt User's Guide <span id="projectnumber">5.2.2</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<h1>QwtScaleEngine Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtScaleEngine" -->
<p>Base class for scale engines.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="qwt__scale__engine_8h_source.html">qwt_scale_engine.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for QwtScaleEngine:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_scale_engine__inherit__graph.png" border="0" usemap="#_qwt_scale_engine_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_scale_engine_inherit__map" id="_qwt_scale_engine_inherit__map">
<area shape="rect" id="node3" href="class_qwt_linear_scale_engine.html" title="A scale engine for linear scales." alt="" coords="5,86,157,117"/><area shape="rect" id="node5" href="class_qwt_log10_scale_engine.html" title="A scale engine for logarithmic (base 10) scales." alt="" coords="181,86,333,117"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="class_qwt_scale_engine-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> { <br/>
  <b>NoAttribute</b> = 0,
<br/>
  <b>IncludeReference</b> = 1,
<br/>
  <b>Symmetric</b> = 2,
<br/>
  <b>Floating</b> = 4,
<br/>
  <b>Inverted</b> = 8
<br/>
}</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a3e8d3101af3dbab7a97b96779118e428">attributes</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#aa27323d6d9d5348bd253a61b45e4785b">autoScale</a> (int maxNumSteps, double &x1, double &x2, double &stepSize) const =0</td></tr>
<tr><td class="memItemLeft" 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#a833fbdad4cce6e3b6448ee2549dc09e1">divideScale</a> (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a0cbcd5c35a8796baf8307bba19991bab">lowerMargin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a58cb9344a913fa798ac7343d55f3f693">QwtScaleEngine</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a5962458870865df797e84e3bd6badf02">reference</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#acf02a88f6e778edbc9e005960f35b3b7">setAttribute</a> (<a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, bool on=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#ad221d715e28e644975c6cbda9cae492e">setAttributes</a> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#aed2ab1fc105a25fa97bbecf4b2f541a7">setMargins</a> (double lower, double upper)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#a89985ea69dbd858c8b9162ecd2be936e">setReference</a> (double reference)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#ab43cac5ff8843531bbb02b4401e8fb62">testAttribute</a> (<a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>) const </td></tr>
<tr><td class="memItemLeft" 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#a04a93d0dc39a3483957764e7749989fd">transformation</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#aa3fca2f37156fa3bd8ef21be8d339938">upperMargin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#ab9c21b4550d44d9a82c1865864cb8943">~QwtScaleEngine</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" 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#af06bc397d46b40c69fe5c82b7f2c3267">buildInterval</a> (double v) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#afb902375924c862f1058f77bb7a7029e">contains</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double val) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#aff30158c5ccfee78f4c3e01c0fb5f4de">divideInterval</a> (double interval, int numSteps) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QwtValueList </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_engine.html#af4522cd83e7885f19d35579d42fbc1fc">strip</a> (const QwtValueList &, const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Base class for scale engines. </p>
<p>A scale engine trys to find "reasonable" ranges and step sizes for scales.</p>
<p>The layout of the scale can be varied with <a class="el" href="class_qwt_scale_engine.html#acf02a88f6e778edbc9e005960f35b3b7">setAttribute()</a>.</p>
<p>Qwt offers implementations for logarithmic (log10) and linear scales. Contributions for other types of scale engines (date/time, log2 ... ) are welcome. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a7548418e0896d75eec164bfa2ba3ff5f"></a><!-- doxytag: member="QwtScaleEngine::Attribute" ref="a7548418e0896d75eec164bfa2ba3ff5f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">QwtScaleEngine::Attribute</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<ul>
<li>IncludeReference<br/>
Build a scale which includes the <a class="el" href="class_qwt_scale_engine.html#a5962458870865df797e84e3bd6badf02">reference()</a> value.</li>
<li>Symmetric<br/>
Build a scale which is symmetric to the <a class="el" href="class_qwt_scale_engine.html#a5962458870865df797e84e3bd6badf02">reference()</a> value.</li>
<li>Floating<br/>
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#aed2ab1fc105a25fa97bbecf4b2f541a7" title="Specify margins at the scale's endpoints.">setMargins()</a>). If this attribute is *not* set, the endpoints of the scale will be integer multiples of the step size.</li>
<li>Inverted<br/>
Turn the scale upside down.</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#acf02a88f6e778edbc9e005960f35b3b7">setAttribute()</a>, <a class="el" href="class_qwt_scale_engine.html#ab43cac5ff8843531bbb02b4401e8fb62">testAttribute()</a>, <a class="el" href="class_qwt_scale_engine.html#a5962458870865df797e84e3bd6badf02">reference()</a>, <a class="el" href="class_qwt_scale_engine.html#a0cbcd5c35a8796baf8307bba19991bab">lowerMargin()</a>, <a class="el" href="class_qwt_scale_engine.html#aa3fca2f37156fa3bd8ef21be8d339938">upperMargin()</a> </dd></dl>
</div>
</div>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a58cb9344a913fa798ac7343d55f3f693"></a><!-- doxytag: member="QwtScaleEngine::QwtScaleEngine" ref="a58cb9344a913fa798ac7343d55f3f693" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtScaleEngine::QwtScaleEngine </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. </p>
</div>
</div>
<a class="anchor" id="ab9c21b4550d44d9a82c1865864cb8943"></a><!-- doxytag: member="QwtScaleEngine::~QwtScaleEngine" ref="ab9c21b4550d44d9a82c1865864cb8943" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtScaleEngine::~QwtScaleEngine </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3e8d3101af3dbab7a97b96779118e428"></a><!-- doxytag: member="QwtScaleEngine::attributes" ref="a3e8d3101af3dbab7a97b96779118e428" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int QwtScaleEngine::attributes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the scale attributes </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, <a class="el" href="class_qwt_scale_engine.html#ad221d715e28e644975c6cbda9cae492e">setAttributes()</a>, <a class="el" href="class_qwt_scale_engine.html#ab43cac5ff8843531bbb02b4401e8fb62">testAttribute()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aa27323d6d9d5348bd253a61b45e4785b"></a><!-- doxytag: member="QwtScaleEngine::autoScale" ref="aa27323d6d9d5348bd253a61b45e4785b" args="(int maxNumSteps, double &x1, double &x2, double &stepSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void QwtScaleEngine::autoScale </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>maxNumSteps</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double & </td>
<td class="paramname"><em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double & </td>
<td class="paramname"><em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double & </td>
<td class="paramname"><em>stepSize</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Align and divide an interval</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">maxNumSteps</td><td>Max. number of steps </td></tr>
<tr><td class="paramname">x1</td><td>First limit of the interval (In/Out) </td></tr>
<tr><td class="paramname">x2</td><td>Second limit of the interval (In/Out) </td></tr>
<tr><td class="paramname">stepSize</td><td>Step size (Return value) </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#ad0f1d825e70eb7a1deb15875a8093cff">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#abcab6bb8667f82dcdb656ad634976142">QwtLog10ScaleEngine</a>.</p>
</div>
</div>
<a class="anchor" id="af06bc397d46b40c69fe5c82b7f2c3267"></a><!-- doxytag: member="QwtScaleEngine::buildInterval" ref="af06bc397d46b40c69fe5c82b7f2c3267" args="(double v) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> QwtScaleEngine::buildInterval </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>v</em></td><td>)</td>
<td> const<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Build an interval for a value. </p>
<p>In case of v == 0.0 the interval is [-0.5, 0.5], otherwide it is [0.5 * v, 1.5 * v] </p>
</div>
</div>
<a class="anchor" id="afb902375924c862f1058f77bb7a7029e"></a><!-- doxytag: member="QwtScaleEngine::contains" ref="afb902375924c862f1058f77bb7a7029e" args="(const QwtDoubleInterval &, double val) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QwtScaleEngine::contains </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
<td class="paramname"><em>interval</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if an interval "contains" a value</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">interval</td><td>Interval </td></tr>
<tr><td class="paramname">value</td><td>Value</td></tr>
</table>
</dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_arithmetic.html#a6c6f982022550fba9ccee034f87461ce" title="Compare 2 values, relative to an interval.">QwtScaleArithmetic::compareEps()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aff30158c5ccfee78f4c3e01c0fb5f4de"></a><!-- doxytag: member="QwtScaleEngine::divideInterval" ref="aff30158c5ccfee78f4c3e01c0fb5f4de" args="(double interval, int numSteps) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtScaleEngine::divideInterval </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>intervalSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>numSteps</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calculate a step size for an interval size</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">intervalSize</td><td>Interval size </td></tr>
<tr><td class="paramname">numSteps</td><td>Number of steps</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Step size </dd></dl>
</div>
</div>
<a class="anchor" id="a833fbdad4cce6e3b6448ee2549dc09e1"></a><!-- doxytag: member="QwtScaleEngine::divideScale" ref="a833fbdad4cce6e3b6448ee2549dc09e1" args="(double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> QwtScaleEngine::divideScale </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maxMajSteps</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maxMinSteps</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>stepSize</em> = <code>0.0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calculate a scale division. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">x1</td><td>First interval limit </td></tr>
<tr><td class="paramname">x2</td><td>Second interval limit </td></tr>
<tr><td class="paramname">maxMajSteps</td><td>Maximum for the number of major steps </td></tr>
<tr><td class="paramname">maxMinSteps</td><td>Maximum number of minor steps </td></tr>
<tr><td class="paramname">stepSize</td><td>Step size. If stepSize == 0.0, the scaleEngine calculates one. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#aafed94c688e67c95a6ecf18e8bb522ab">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#ae46745d561ce2ac583bb44e94f0fc7d6">QwtLog10ScaleEngine</a>.</p>
</div>
</div>
<a class="anchor" id="a0cbcd5c35a8796baf8307bba19991bab"></a><!-- doxytag: member="QwtScaleEngine::lowerMargin" ref="a0cbcd5c35a8796baf8307bba19991bab" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtScaleEngine::lowerMargin </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the margin at the lower end of the scale The default margin is 0.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#aed2ab1fc105a25fa97bbecf4b2f541a7" title="Specify margins at the scale's endpoints.">setMargins()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a5962458870865df797e84e3bd6badf02"></a><!-- doxytag: member="QwtScaleEngine::reference" ref="a5962458870865df797e84e3bd6badf02" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtScaleEngine::reference </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the reference value </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a89985ea69dbd858c8b9162ecd2be936e" title="Specify a reference point.">setReference()</a>, <a class="el" href="class_qwt_scale_engine.html#acf02a88f6e778edbc9e005960f35b3b7">setAttribute()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="acf02a88f6e778edbc9e005960f35b3b7"></a><!-- doxytag: member="QwtScaleEngine::setAttribute" ref="acf02a88f6e778edbc9e005960f35b3b7" args="(Attribute, bool on=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtScaleEngine::setAttribute </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>on</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Change a scale attribute</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>Attribute to change </td></tr>
<tr><td class="paramname">on</td><td>On/Off</td></tr>
</table>
</dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, <a class="el" href="class_qwt_scale_engine.html#ab43cac5ff8843531bbb02b4401e8fb62">testAttribute()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ad221d715e28e644975c6cbda9cae492e"></a><!-- doxytag: member="QwtScaleEngine::setAttributes" ref="ad221d715e28e644975c6cbda9cae492e" args="(int)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtScaleEngine::setAttributes </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>attributes</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Change the scale attribute</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">attributes</td><td>Set scale attributes </td></tr>
</table>
</dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, <a class="el" href="class_qwt_scale_engine.html#a3e8d3101af3dbab7a97b96779118e428">attributes()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aed2ab1fc105a25fa97bbecf4b2f541a7"></a><!-- doxytag: member="QwtScaleEngine::setMargins" ref="aed2ab1fc105a25fa97bbecf4b2f541a7" args="(double lower, double upper)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtScaleEngine::setMargins </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>lower</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>upper</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Specify margins at the scale's endpoints. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">lower</td><td>minimum distance between the scale's lower boundary and the smallest enclosed value </td></tr>
<tr><td class="paramname">upper</td><td>minimum distance between the scale's upper boundary and the greatest enclosed value</td></tr>
</table>
</dd>
</dl>
<p>Margins can be used to leave a minimum amount of space between the enclosed intervals and the boundaries of the scale.</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd><ul>
<li><a class="el" href="class_qwt_log10_scale_engine.html" title="A scale engine for logarithmic (base 10) scales.">QwtLog10ScaleEngine</a> measures the margins in decades.</li>
</ul>
</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#aa3fca2f37156fa3bd8ef21be8d339938">upperMargin()</a>, <a class="el" href="class_qwt_scale_engine.html#a0cbcd5c35a8796baf8307bba19991bab">lowerMargin()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a89985ea69dbd858c8b9162ecd2be936e"></a><!-- doxytag: member="QwtScaleEngine::setReference" ref="a89985ea69dbd858c8b9162ecd2be936e" args="(double reference)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtScaleEngine::setReference </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>r</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Specify a reference point. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">r</td><td>new reference value</td></tr>
</table>
</dd>
</dl>
<p>The reference point is needed if options IncludeReference or Symmetric are active. Its default value is 0.0.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </dd></dl>
</div>
</div>
<a class="anchor" id="af4522cd83e7885f19d35579d42fbc1fc"></a><!-- doxytag: member="QwtScaleEngine::strip" ref="af4522cd83e7885f19d35579d42fbc1fc" args="(const QwtValueList &, const QwtDoubleInterval &) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtValueList QwtScaleEngine::strip </td>
<td>(</td>
<td class="paramtype">const QwtValueList & </td>
<td class="paramname"><em>ticks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
<td class="paramname"><em>interval</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove ticks from a list, that are not inside an interval</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">ticks</td><td>Tick list </td></tr>
<tr><td class="paramname">interval</td><td>Interval</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Stripped tick list </dd></dl>
</div>
</div>
<a class="anchor" id="ab43cac5ff8843531bbb02b4401e8fb62"></a><!-- doxytag: member="QwtScaleEngine::testAttribute" ref="ab43cac5ff8843531bbb02b4401e8fb62" args="(Attribute) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QwtScaleEngine::testAttribute </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </td>
<td class="paramname"><em>attribute</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if a attribute is set.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>Attribute to be tested </td></tr>
</table>
</dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>, <a class="el" href="class_qwt_scale_engine.html#acf02a88f6e778edbc9e005960f35b3b7">setAttribute()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a04a93d0dc39a3483957764e7749989fd"></a><!-- doxytag: member="QwtScaleEngine::transformation" ref="a04a93d0dc39a3483957764e7749989fd" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a>* QwtScaleEngine::transformation </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>a transformation </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#adb24f92fa0e8c0548a38cd310158b3d3">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#af972778615ea076c8452abea96516ce9">QwtLog10ScaleEngine</a>.</p>
</div>
</div>
<a class="anchor" id="aa3fca2f37156fa3bd8ef21be8d339938"></a><!-- doxytag: member="QwtScaleEngine::upperMargin" ref="aa3fca2f37156fa3bd8ef21be8d339938" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtScaleEngine::upperMargin </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the margin at the upper end of the scale The default margin is 0.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#aed2ab1fc105a25fa97bbecf4b2f541a7" title="Specify margins at the scale's endpoints.">setMargins()</a> </dd></dl>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
|