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 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: QwtAutoScale Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>QwtAutoScale Class Reference</h1>Collaboration diagram for QwtAutoScale:<p><center><img src="class_qwt_auto_scale__coll__graph.png" border="0" usemap="#_qwt_auto_scale__coll__map" alt="Collaboration graph"></center>
<map name="_qwt_auto_scale__coll__map">
<area href="class_qwt_scale_div.html" shape="rect" coords="11,18,101,42" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_auto_scale-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
The Qwt Auto-Scaler.
<p>
This class can be used to generate a scale which may span multiple ranges of values. A scale consists of a lower boundary, an upper boundary, a vector of major scale ticks and a vector of minor scale ticks which divide it into subintervals. A quick look at the example below will give you an idea of how the auto-scaler works.<p>
The auto-scaler produces "reasonable" major and minor step sizes. For linear scales, the major step size will fit into the pattern <img class="formulaInl" alt="$\left\{ 1,2,5\right\} \cdot 10^{n}$" src="form_0.png">, where n is an integer. In logarithmic mode (<a class="el" href="class_qwt_auto_scale.html#a7">setOptions()</a>) the step size is measured in *decades* and the major step size will be adjusted to fit the pattern <img class="formulaInl" alt="$\left\{ 1,2,3,5\right\} \cdot 10^{n}$" src="form_1.png">, where n is a natural number including zero.<p>
The step size can be manipulated indirectly using <a class="el" href="class_qwt_auto_scale.html#a10">setMaxMajor()</a>. The layout of the scale can be varied with <a class="el" href="class_qwt_auto_scale.html#a7">setOptions()</a>.<p>
The auto-scaling algorithm can be partly or completely disabled (even temporarily) if a user-defined scale is desired. This can be done with the <a class="el" href="class_qwt_auto_scale.html#a19">setScale()</a> function. It can be switched off again with <a class="el" href="class_qwt_auto_scale.html#a2">setAutoScale()</a>.<p>
The two <a class="el" href="class_qwt_auto_scale.html#a21">adjust()</a> members are used to extend the scale if necessary in order to include another range or array of values. The resulting scale division can be obtained with <a class="el" href="class_qwt_auto_scale.html#a20">scaleDiv()</a>. <a class="el" href="class_qwt_auto_scale.html#a25">reset()</a> resets the scale to zero.<p>
<dl compact><dt><b>Example</b></dt><dd></dd></dl>
<div class="fragment"><pre><span class="preprocessor">#include <qwt_autoscl.h></span>
<span class="preprocessor">#include <iostream.h></span>
<span class="keywordtype">double</span> x1[100];
<span class="keywordtype">double</span> x2[200];
<span class="keywordtype">double</span> range_min, range_max;
<a class="code" href="class_qwt_auto_scale.html">QwtAutoScale</a> as;
<span class="comment">// ... determine x1 and x1, range_min and range_max here ...</span>
as.<a class="code" href="class_qwt_auto_scale.html#a25">reset</a>(); <span class="comment">// clear it</span>
as.<a class="code" href="class_qwt_auto_scale.html#a21">adjust</a>(range_min, range_max); <span class="comment">// include a range</span>
as.<a class="code" href="class_qwt_auto_scale.html#a21">adjust</a>(x1,100); <span class="comment">// include an array</span>
as.<a class="code" href="class_qwt_auto_scale.html#a21">adjust</a>(x2,200); <span class="comment">// include another array</span>
<span class="keywordflow">for</span> (i=0;i<as.<a class="code" href="class_qwt_auto_scale.html#a20">scaleDiv</a>().<a class="code" href="class_qwt_scale_div.html#a6">majCnt</a>(); i++)
{
cout << <span class="stringliteral">"Scale tick "</span> << i
<< <span class="stringliteral">" at "</span> << as.<a class="code" href="class_qwt_auto_scale.html#a20">scaleDiv</a>().<a class="code" href="class_qwt_scale_div.html#a8">majMark</a>(i) << <span class="stringliteral">"\n"</span>;
}
</pre></div><p>
<dl compact><dt><b>Warning:</b></dt><dd>For logarithmic scales, the step size as well as the margins are measured in *decades*. </dd></dl>
<p>
Definition at line <a class="el" href="qwt__autoscl_8h-source.html#l00078">78</a> of file <a class="el" href="qwt__autoscl_8h-source.html">qwt_autoscl.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom>{ <br>
<b>None</b> = 0,
<br>
<b>IncludeRef</b> = 1,
<br>
<b>Symmetric</b> = 2,
<br>
<b>Floating</b> = 4,
<br>
<b>Logarithmic</b> = 8,
<br>
<b>Inverted</b> = 16
<br>
}</td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a0">QwtAutoScale</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a1">~QwtAutoScale</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a2">setAutoScale</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a3">autoScale</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a4">setAutoRebuild</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a5">autoRebuild</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a6">changeOptions</a> (int opt, bool tf)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a7">setOptions</a> (int opt)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a8">option</a> (int opt) const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a9">options</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a10">setMaxMajor</a> (int n)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a11">maxMajor</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a12">setMaxMinor</a> (int n)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a13">maxMinor</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a14">setReference</a> (double r)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>double </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a15">reference</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a16">setMargins</a> (double m1, double m2)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>double </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a17">loMargin</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>double </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a18">hiMargin</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a19">setScale</a> (double xmin, double xmax, double step=0.0)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a20">scaleDiv</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a21">adjust</a> (double *arr, int n, int reset=0)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a22">adjust</a> (const QwtArray< double > &x, int reset=0)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a23">adjust</a> (double x1, double x2, int reset=0)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a24">build</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#a25">reset</a> ()</td></tr>
<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#b0">buildLinScale</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#b1">buildLogScale</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_auto_scale.html#b2">setRange</a> (double x1, double x2)</td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="QwtAutoScale::QwtAutoScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtAutoScale::QwtAutoScale </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Ctor.
<p>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00017">17</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="QwtAutoScale::~QwtAutoScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtAutoScale::~<a class="el" href="class_qwt_auto_scale.html">QwtAutoScale</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Dtor.
<p>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00037">37</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a23" doxytag="QwtAutoScale::adjust" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::adjust </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname" nowrap> <em>vmin</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>vmax</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>reset</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adjust the scale to include a specified interval.
<p>
This member function extends the boundaries of the scale and re-calculates the step size if necessary in order to include a specified interval. If the reset parameter has nonzero value, the previous state will be cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>vmin</em> </td><td>lower border of the specified interval </td></tr>
<tr><td></td><td valign=top><em>vmax</em> </td><td>upper border of the specified interval </td></tr>
<tr><td></td><td valign=top><em>reset</em> </td><td>if nonzero, reset the scale. Defaults to 0. </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00150">150</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>. </td>
</tr>
</table>
<a class="anchor" name="a22" doxytag="QwtAutoScale::adjust" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::adjust </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const QwtArray< double > & </td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>reset</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adjust the scale to include a given array of input values.
<p>
This member function extends the boundaries of the scale and re-calculates the step size if necessary in order to include all values in the array. If the reset parameter has nonzero value, the previous state will be cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>x</em> </td><td>QwtArray<double> of input values </td></tr>
<tr><td></td><td valign=top><em>reset</em> </td><td>If != 0 reset the scale's contents </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00131">131</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00100">adjust()</a>. </td>
</tr>
</table>
<a class="anchor" name="a21" doxytag="QwtAutoScale::adjust" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::adjust </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double * </td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>num</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>reset</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adjust the scale to include a given array of input values.
<p>
This member function extends the boundaries of the scale and re-calculates the step size if necessary in order to include all values in the array. If the reset parameter has nonzero value, the previous state will be cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>x</em> </td><td>Array of input values </td></tr>
<tr><td></td><td valign=top><em>num</em> </td><td>Array size </td></tr>
<tr><td></td><td valign=top><em>reset</em> </td><td>If != 0 reset the scale's contents </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00100">100</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00131">adjust()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00438">QwtPlot::updateAxes()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="QwtAutoScale::autoRebuild" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool QwtAutoScale::autoRebuild </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>If true, rebuild scale automatically with call to 'adjust' </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a4">QwtAutoScale::setAutoRebuild()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00739">739</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="QwtAutoScale::autoScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool QwtAutoScale::autoScale </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>TRUE</code> if auto-scaling is active </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a2">QwtAutoScale::setAutoScale()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00045">45</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00027">QwtPlot::axisAutoScale()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00438">QwtPlot::updateAxes()</a>. </td>
</tr>
</table>
<a class="anchor" name="a24" doxytag="QwtAutoScale::build" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::build </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Re-build the scale.
<p>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">176</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00213">buildLinScale()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00300">buildLogScale()</a>, and <a class="el" href="qwt__scldiv_8cpp-source.html#l00086">QwtScaleDiv::rebuild()</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00100">adjust()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00391">changeOptions()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00439">setAutoScale()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00461">setMargins()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00477">setMaxMajor()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00489">setMaxMinor()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00649">setOptions()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00670">setReference()</a>, and <a class="el" href="qwt__autoscl_8cpp-source.html#l00576">setScale()</a>. </td>
</tr>
</table>
<a class="anchor" name="b0" doxytag="QwtAutoScale::buildLinScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::buildLinScale </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Build a linear scale.
<p>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00213">213</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__scldiv_8cpp-source.html#l00086">QwtScaleDiv::rebuild()</a>, and <a class="el" href="qwt__autoscl_8cpp-source.html#l00510">setRange()</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>. </td>
</tr>
</table>
<a class="anchor" name="b1" doxytag="QwtAutoScale::buildLogScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::buildLogScale </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
build a logarithmic scale
<p>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00300">300</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__scldiv_8cpp-source.html#l00086">QwtScaleDiv::rebuild()</a>, and <a class="el" href="qwt__autoscl_8cpp-source.html#l00510">setRange()</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>. </td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="QwtAutoScale::changeOptions" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::changeOptions </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname" nowrap> <em>opt</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>tf</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set or reset specified scale options.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>opt</em> </td><td>or-combined scale options </td></tr>
<tr><td></td><td valign=top><em>tf</em> </td><td>If <code>TRUE</code>, set the specified options. If <code>FALSE</code>, reset these options. </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a7">QwtAutoScale::setOptions()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00391">391</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00229">QwtPlot::changeAxisOptions()</a>. </td>
</tr>
</table>
<a class="anchor" name="a18" doxytag="QwtAutoScale::hiMargin" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> double QwtAutoScale::hiMargin </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the margin at the upper end of the scale </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a16">QwtAutoScale::setMargins()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00063">63</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a17" doxytag="QwtAutoScale::loMargin" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> double QwtAutoScale::loMargin </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the margin at the lower end of the scale </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a16">QwtAutoScale::setMargins()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00054">54</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00068">QwtPlot::axisMargins()</a>. </td>
</tr>
</table>
<a class="anchor" name="a11" doxytag="QwtAutoScale::maxMajor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int QwtAutoScale::maxMajor </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the maximum number of major tickmarks </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a10">QwtAutoScale::setMaxMajor()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00072">72</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00086">QwtPlot::axisMaxMajor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a13" doxytag="QwtAutoScale::maxMinor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int QwtAutoScale::maxMinor </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the maximum number of minor scale ticks </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a12">QwtAutoScale::setMaxMinor()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00081">81</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00098">QwtPlot::axisMaxMinor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a8" doxytag="QwtAutoScale::option" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool QwtAutoScale::option </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>opt</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns TRUE if the specified option is set.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>opt</em> </td><td>Option </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a7">QwtAutoScale::setOptions()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00697">697</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="QwtAutoScale::options" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int QwtAutoScale::options </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>options </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a7">QwtAutoScale::setOptions()</a>, <a class="el" href="class_qwt_auto_scale.html#a8">QwtAutoScale::option()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00707">707</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00111">QwtPlot::axisOptions()</a>. </td>
</tr>
</table>
<a class="anchor" name="a15" doxytag="QwtAutoScale::reference" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> double QwtAutoScale::reference </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the reference value </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a7">QwtAutoScale::setOptions()</a>, <a class="el" href="class_qwt_auto_scale.html#a8">QwtAutoScale::option()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00686">686</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00127">QwtPlot::axisReference()</a>. </td>
</tr>
</table>
<a class="anchor" name="a25" doxytag="QwtAutoScale::reset" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::reset </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set the interval boundaries to zero and clear the scale division.
<p>
This member function resets an AutoScale object to its initial state. It is needed to clean up the scale before or after subsequent <a class="el" href="class_qwt_auto_scale.html#a21">adjust()</a> calls. The boundaries of the scale are set to zero and the scale division is cleared.<p>
<dl compact><dt><b>Warning:</b></dt><dd>A reset doesn't affect the margins. </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00413">413</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__scldiv_8cpp-source.html#l00445">QwtScaleDiv::reset()</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00438">QwtPlot::updateAxes()</a>. </td>
</tr>
</table>
<a class="anchor" name="a20" doxytag="QwtAutoScale::scaleDiv" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & QwtAutoScale::scaleDiv </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The scale division consists of two boundary values, an array of major tickmarks and an array of minor tickmarks. <dl compact><dt><b>Returns:</b></dt><dd>a const reference to the scale division </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00720">720</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00140">QwtPlot::axisScale()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00675">QwtPlot::canvasMap()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00095">QwtPlot::print()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="QwtAutoScale::setAutoRebuild" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setAutoRebuild </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>tf</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
If true, rebuild scale automatically with call to 'adjust' <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a5">QwtAutoScale::autoRebuild()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00730">730</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="QwtAutoScale::setAutoScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setAutoScale </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Enable auto-scaling.
<p>
This function is used to switch back to auto-scaling mode if the scale has been frozen temporarily (see <a class="el" href="class_qwt_auto_scale.html#a19">setScale()</a>).<p>
When auto-scaling is reactivated, the scale will be rebuild, which means that <ul>
<li>if adjust or setMaxIntv have been called in between, the scale will be adjusted to the new conditions. </li>
<li>if none of these functions and no reset has been called, the old state will be restored. </li>
<li>if only reset has been called in between, nothing will happen.</li>
</ul>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a19">QwtAutoScale::setScale()</a> </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00439">439</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00349">QwtPlot::setAxisAutoScale()</a>. </td>
</tr>
</table>
<a class="anchor" name="a16" doxytag="QwtAutoScale::setMargins" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setMargins </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname" nowrap> <em>mlo</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>mhi</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify margins at the scale's endpoints.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>mlo</em> </td><td>minimum distance between the scale's lower boundary and the smallest enclosed value </td></tr>
<tr><td></td><td valign=top><em>mhi</em> </td><td>minimum distance between the scale's upper boundary and the greatest enclosed value</td></tr>
</table>
</dl>
Margins can be used to leave a minimum amount of space between the enclosed intervals and the boundaries of the scale.<p>
<dl compact><dt><b>Warning:</b></dt><dd><ul>
<li>With logarithmic scales, the margins are measured in decades. </li>
<li>The margins will not be changed by any other member function. You should remember this when you call <a class="el" href="class_qwt_auto_scale.html#a25">reset()</a> or change from a linear to a logarithmic scale. </li>
</ul>
</dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00461">461</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00315">QwtPlot::setAxisMargins()</a>. </td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="QwtAutoScale::setMaxMajor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setMaxMajor </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>mx</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify the maximum number of major intervals.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>mx</em> </td><td>maximum number of subintervals</td></tr>
</table>
</dl>
The auto-scaler places the major ticks at reasonable points, such that the number of major tick intervals does not exceed the specified maximum number. Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00477">477</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00485">QwtPlot::setAxisMaxMajor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a12" doxytag="QwtAutoScale::setMaxMinor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setMaxMinor </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>mx</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify the maximum number of minor subdivisions within major scale intervals.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>mx</em> </td><td>maximum number of minor ticks </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00489">489</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00470">QwtPlot::setAxisMaxMinor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="QwtAutoScale::setOptions" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setOptions </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>opt</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Reset scale options and set specified options.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>opt</em> </td><td>Combined set of options</td></tr>
</table>
</dl>
The behaviour of the auto-scaling algorithm can be changed with the following options: <dl>
<dt>QwtAutoScale::None </dt>
<dd>Switch all options off. </dd>
<dt>QwtAutoscale::IncludeRef </dt>
<dd>Build a scale which includes the reference value. </dd>
<dt>QwtAutoScale::Symmetric </dt>
<dd>Build a scale which is symmetric to the reference value. </dd>
<dt>QwtAutoScale::Logarithmic </dt>
<dd>Build a logarithmic scale. </dd>
<dt>QwtAutoScale::Floating </dt>
<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_auto_scale.html#a16">setMargins()</a>). If this option is not* set, the endpoints of the scale will be integer multiples of the step size. </dd>
<dt>QwtAutoScale::Inverted </dt>
<dd>Turn the scale upside down. </dd>
</dl>
<p>
<dl compact><dt><b>Warning:</b></dt><dd><ul>
<li>If the type of scale division is changed from logarithmic to linear or vice versa, the margins will not be transformed. Note that the margins count in decades if the scale is logarithmic. </li>
<li>If a linear scale contains negative values, switching to a logarithmic scale will cut them off and set the lower scale boundary to its lowest possible value of 1.0E-100. This effect is reversible if you switch back to a linear scale. </li>
<li>The options have no effect while auto-scaling is turned off (see <a class="el" href="class_qwt_auto_scale.html#a19">setScale()</a>)</li>
</ul>
Example:<div class="fragment"><pre><span class="preprocessor">#include "../include/qwt_autoscl.h></span>
<span class="keywordtype">void</span> main()
{
<a class="code" href="class_qwt_auto_scale.html">QwtAutoScale</a> as;
<span class="comment">// build linear scale with default settings</span>
as.<a class="code" href="class_qwt_auto_scale.html#a21">adjust</a>(17.45, 87344.0);
<span class="comment">//...</span>
<span class="comment">// change to logarithmic scale with floating ends</span>
as.<a class="code" href="class_qwt_auto_scale.html#a7">setOptions</a>(QwtAutoScale::Floating | QwtAutoscale::Logarithmic);
<span class="comment">//...</span>
<span class="comment">// change to linear, zero-symmetric scale</span>
as.<a class="code" href="class_qwt_auto_scale.html#a7">setOptions</a>(QwtAutoScale::ZeroSymmetric);
<span class="comment">//...</span>
}
</pre></div></dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a6">QwtAutoScale::changeOptions()</a> for a description of the possible <a class="el" href="class_qwt_auto_scale.html#a9">options</a>. </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00649">649</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00330">QwtPlot::setAxisOptions()</a>. </td>
</tr>
</table>
<a class="anchor" name="b2" doxytag="QwtAutoScale::setRange" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setRange </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname" nowrap> <em>x1</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>x2</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify a user-defined range.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>x1</em> </td><td>user-defined lower boundary </td></tr>
<tr><td></td><td valign=top><em>x2</em> </td><td>user-defined upper boundary</td></tr>
</table>
</dl>
<dl compact><dt><b>Warning:</b></dt><dd><ul>
<li>if x1 > x2, the lower boundary will be set to x2 and the upper boundary to x1. </li>
<li>if x1 == x2, the auto-scaler sets the boundaries to (-0.5, 0.5) for linear scales and to (LOG_MIN, LOG_MAX) for logarithmic scales.</li>
</ul>
</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a19">QwtAutoScale::setScale()</a>, <a class="el" href="qwt__math_8h.html#a4">LOG_MIN</a>, <a class="el" href="qwt__math_8h.html#a5">LOG_MAX</a>. </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00510">510</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__math_8h-source.html#l00046">LOG_MAX</a>, and <a class="el" href="qwt__math_8h-source.html#l00041">LOG_MIN</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00213">buildLinScale()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00300">buildLogScale()</a>, and <a class="el" href="qwt__autoscl_8cpp-source.html#l00576">setScale()</a>. </td>
</tr>
</table>
<a class="anchor" name="a14" doxytag="QwtAutoScale::setReference" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setReference </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify a reference point.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>r</em> </td><td>new reference value</td></tr>
</table>
</dl>
The reference point is needed if the auto-scaler options IncludeRef or Symmetric are active. Its default value is 0 for linear scales and 1 for logarithmic scales.<p>
<dl compact><dt><b>Warning:</b></dt><dd>The reference value for logarithmic scales is limited to ( LOG_MIN / 2 <= reference <= LOG_MAX /2 ). If the specified value is less than LOG_MIN, it will be set to 1.0 for logarithmic scales.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="qwt__math_8h.html#a4">LOG_MIN</a>, <a class="el" href="qwt__math_8h.html#a5">LOG_MAX</a>. </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00670">670</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>, <a class="el" href="qwt__math_8h-source.html#l00046">LOG_MAX</a>, and <a class="el" href="qwt__math_8h-source.html#l00041">LOG_MIN</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00502">QwtPlot::setAxisReference()</a>. </td>
</tr>
</table>
<a class="anchor" name="a19" doxytag="QwtAutoScale::setScale" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAutoScale::setScale </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname" nowrap> <em>xmin</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>xmax</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>step</em> = <code>0.0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Specify a user-defined scale and switch off auto-scaling.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>xmin</em> </td><td>user-defined lower boundary </td></tr>
<tr><td></td><td valign=top><em>xmax</em> </td><td>user-defined upper boundary </td></tr>
<tr><td></td><td valign=top><em>step</em> </td><td>user-defined fixed major step size</td></tr>
</table>
</dl>
A fixed scale may be used for different purposes, e.g. zooming. If the step argument is left out or less or equal to zero, the auto-scaler will calculate the major step size size according to the maxMajor setting.<p>
The fixed-scale mode can switched off using <a class="el" href="class_qwt_auto_scale.html#a2">setAutoScale()</a>, which restores the previous values.<p>
<dl compact><dt><b>Warning:</b></dt><dd><ul>
<li>if xmin > xmax, the lower boundary will be set to xmax and the upper boundary to xmin. </li>
<li>if xmin == xmax, the auto-scaler sets the boundaries to (-0.5, 0.5) for linear scales and to (LOG_MIN, LOG_MAX) for logarithmic scales. </li>
<li>Options and margins have no effect while auto-scaling is switched off.</li>
</ul>
</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_auto_scale.html#a10">QwtAutoScale::setMaxMajor()</a>, <a class="el" href="class_qwt_auto_scale.html#a2">QwtAutoScale::setAutoScale()</a>, <a class="el" href="qwt__math_8h.html#a4">LOG_MIN</a>, <a class="el" href="qwt__math_8h.html#a5">LOG_MAX</a>. </dd></dl>
Definition at line <a class="el" href="qwt__autoscl_8cpp-source.html#l00576">576</a> of file <a class="el" href="qwt__autoscl_8cpp-source.html">qwt_autoscl.cpp</a>.
<p>
References <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">build()</a>, and <a class="el" href="qwt__autoscl_8cpp-source.html#l00510">setRange()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__axis_8cpp-source.html#l00367">QwtPlot::setAxisScale()</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:22 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|