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
|
<!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: QwtScaleDiv 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>QwtScaleDiv Class Reference</h1><a href="class_qwt_scale_div-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A class for building scale divisions.
<p>
The QwtScaleDiv class can build linear and logarithmic scale divisions for specified intervals. It uses an adjustable algorithm to generate the major and minor step widths automatically. A scale division has a minimum value, a maximum value, a vector of major marks, and a vector of minor marks.<p>
<dl compact><dt><b>Warning:</b></dt><dd>QwtScaleDiv uses implicit sharing for the mark vectors. </dd></dl>
<dl compact><dt><b>Example</b></dt><dd>To build a logarithmic scale division from 0.01 to 1000 and print out the major and minor marks. <div class="fragment"><pre>
#include "../include/qwt_scldiv.h>
#include <iostream.h>
main()
{
int i,k;
QwtScaleDiv sd;
sd.rebuild(0.01, 100, 10, 10, TRUE, 0.0);
k=0;
for (i=0;i<sd.majCnt();i++)
{
while(k < sd.minCnt())
{
if (sd.minMark(k) < sd.majMark(i))
{
cout << " - " << sd.minMark(i) << "\n";
k++;
}
else
break;
}
cout << "-- " << sd.majMark(i) << "\n";
}
while(k < sd.minCnt())
{
cout << " - " << sd.minMark(i) << "\n";
k++;
}
}</pre></div></dd></dl>
<p>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00069">69</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></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_scale_div.html#a0">QwtScaleDiv</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_scale_div.html#a1">operator==</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &s) 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_scale_div.html#a2">operator!=</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &s) 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_scale_div.html#a3">lBound</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_scale_div.html#a4">hBound</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>uint </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_scale_div.html#a5">minCnt</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>uint </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_scale_div.html#a6">majCnt</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_scale_div.html#a7">logScale</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_scale_div.html#a8">majMark</a> (int i) 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_scale_div.html#a9">minMark</a> (int i) 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_scale_div.html#a10">majStep</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_scale_div.html#a11">reset</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_scale_div.html#a12">rebuild</a> (double lBound, double hBound, int maxMaj, int maxMin, bool log, double step=0.0, bool ascend=TRUE)</td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="QwtScaleDiv::QwtScaleDiv" ></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"> QwtScaleDiv::QwtScaleDiv </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>
Construct a QwtScaleDiv instance.
<p>
Definition at line <a class="el" href="qwt__scldiv_8cpp-source.html#l00042">42</a> of file <a class="el" href="qwt__scldiv_8cpp-source.html">qwt_scldiv.cpp</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a4" doxytag="QwtScaleDiv::hBound" ></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 QwtScaleDiv::hBound </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>right bound </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00086">86</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00675">QwtPlot::canvasMap()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00095">QwtPlot::print()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00170">QwtPlotPicker::scaleRect()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00082">QwtScaleDraw::setScale()</a>, <a class="el" href="qwt__sclif_8cpp-source.html#l00117">QwtScaleIf::setScaleMaxMajor()</a>, and <a class="el" href="qwt__sclif_8cpp-source.html#l00138">QwtScaleIf::setScaleMaxMinor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="QwtScaleDiv::lBound" ></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 QwtScaleDiv::lBound </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>left bound </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00081">81</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00675">QwtPlot::canvasMap()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00095">QwtPlot::print()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00170">QwtPlotPicker::scaleRect()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00082">QwtScaleDraw::setScale()</a>, <a class="el" href="qwt__sclif_8cpp-source.html#l00117">QwtScaleIf::setScaleMaxMajor()</a>, and <a class="el" href="qwt__sclif_8cpp-source.html#l00138">QwtScaleIf::setScaleMaxMinor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="QwtScaleDiv::logScale" ></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 QwtScaleDiv::logScale </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>TRUE id ths scale div is logarithmic </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00102">102</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00675">QwtPlot::canvasMap()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00232">QwtScaleDraw::labelPlacement()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00764">QwtScaleDraw::maxLabelHeight()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00736">QwtScaleDraw::maxLabelWidth()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00095">QwtPlot::print()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00082">QwtScaleDraw::setScale()</a>, <a class="el" href="qwt__sclif_8cpp-source.html#l00117">QwtScaleIf::setScaleMaxMajor()</a>, and <a class="el" href="qwt__sclif_8cpp-source.html#l00138">QwtScaleIf::setScaleMaxMinor()</a>. </td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="QwtScaleDiv::majCnt" ></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"> uint QwtScaleDiv::majCnt </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>major mark count </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00096">96</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, <a class="el" href="qwt__grid_8cpp-source.html#l00170">QwtGrid::draw()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00764">QwtScaleDraw::maxLabelHeight()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00736">QwtScaleDraw::maxLabelWidth()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00839">QwtScaleDraw::minBorderDist()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00960">QwtScaleDraw::minHeight()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00880">QwtScaleDraw::minLabelDist()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l01000">QwtScaleDraw::minWidth()</a>, <a class="el" href="qwt__sclif_8cpp-source.html#l00081">QwtScaleIf::setScale()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00309">QwtPlot::sizeHint()</a>. </td>
</tr>
</table>
<a class="anchor" name="a8" doxytag="QwtScaleDiv::majMark" ></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 QwtScaleDiv::majMark </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>i</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>
Return major mark at position i.
<p>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00105">105</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, <a class="el" href="qwt__grid_8cpp-source.html#l00170">QwtGrid::draw()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00764">QwtScaleDraw::maxLabelHeight()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00736">QwtScaleDraw::maxLabelWidth()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00839">QwtScaleDraw::minBorderDist()</a>, and <a class="el" href="qwt__scldraw_8cpp-source.html#l00880">QwtScaleDraw::minLabelDist()</a>. </td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="QwtScaleDiv::majStep" ></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 QwtScaleDiv::majStep </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>major step size </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00113">113</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00232">QwtScaleDraw::labelPlacement()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00764">QwtScaleDraw::maxLabelHeight()</a>, and <a class="el" href="qwt__scldraw_8cpp-source.html#l00736">QwtScaleDraw::maxLabelWidth()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="QwtScaleDiv::minCnt" ></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"> uint QwtScaleDiv::minCnt </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>minor mark count </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_div.html#a12">QwtScaleDiv::rebuild</a> </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00091">91</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, <a class="el" href="qwt__grid_8cpp-source.html#l00170">QwtGrid::draw()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l00960">QwtScaleDraw::minHeight()</a>, <a class="el" href="qwt__scldraw_8cpp-source.html#l01000">QwtScaleDraw::minWidth()</a>, and <a class="el" href="qwt__sclif_8cpp-source.html#l00081">QwtScaleIf::setScale()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="QwtScaleDiv::minMark" ></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 QwtScaleDiv::minMark </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>i</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>
Return minor mark at position i.
<p>
Definition at line <a class="el" href="qwt__scldiv_8h-source.html#l00107">107</a> of file <a class="el" href="qwt__scldiv_8h-source.html">qwt_scldiv.h</a>.
<p>
Referenced by <a class="el" href="qwt__scldraw_8cpp-source.html#l00104">QwtScaleDraw::draw()</a>, and <a class="el" href="qwt__grid_8cpp-source.html#l00170">QwtGrid::draw()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="QwtScaleDiv::operator!=" ></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 QwtScaleDiv::operator!= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>s</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>
Inequality.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>TRUE if this instance is not equal to s </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8cpp-source.html#l00439">439</a> of file <a class="el" href="qwt__scldiv_8cpp-source.html">qwt_scldiv.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="QwtScaleDiv::operator==" ></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 QwtScaleDiv::operator== </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>s</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>
Equality operator.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>TRUE if this instance is equal to s </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8cpp-source.html#l00425">425</a> of file <a class="el" href="qwt__scldiv_8cpp-source.html">qwt_scldiv.cpp</a>.
<p>
References <a class="el" href="qwt__scldiv_8h-source.html#l00124">d_hBound</a>, <a class="el" href="qwt__scldiv_8h-source.html#l00123">d_lBound</a>, <a class="el" href="qwt__scldiv_8h-source.html#l00126">d_log</a>, <a class="el" href="qwt__scldiv_8h-source.html#l00128">d_majMarks</a>, <a class="el" href="qwt__scldiv_8h-source.html#l00125">d_majStep</a>, and <a class="el" href="qwt__scldiv_8h-source.html#l00129">d_minMarks</a>. </td>
</tr>
</table>
<a class="anchor" name="a12" doxytag="QwtScaleDiv::rebuild" ></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 QwtScaleDiv::rebuild </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 class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>maxMajSteps</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>maxMinSteps</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>log</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 class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>ascend</em> = <code>TRUE</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>
Build a scale width major and minor divisions If no fixed step width is specified or if it is set to 0, the major step width will be calculated automatically according to the the value of maxMajSteps. The maxMajSteps parameter has no effect if a fixed step size is specified. The minor step width is always calculated automatically.
<p>
If the step width is to be calculated automatically, the algorithm tries to find reasonable values fitting into the scheme {1,2,5}*10^n with an integer number n for linear scales.<p>
For logarithmic scales, there are three different cases <ol>
<li>
If the major step width is one decade, the minor marks will fit into one of the schemes {1,2,...9}, {2,4,6,8}, {2,5} or {5}, depending on the maxMinSteps parameter. </li>
<li>
If the major step size spans more than one decade, the minor step size will be {1,2,5}*10^n decades with a natural number n. </li>
<li>
If the whole range is less than one decade, a linear scale division will be built. </li>
</ol>
<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>first boundary value </td></tr>
<tr><td></td><td valign=top><em>x2</em> </td><td>second boundary value </td></tr>
<tr><td></td><td valign=top><em>maxMajSteps</em> </td><td>max. number of major step intervals </td></tr>
<tr><td></td><td valign=top><em>maxMinSteps</em> </td><td>max. number of minor step intervals </td></tr>
<tr><td></td><td valign=top><em>log</em> </td><td>logarithmic division (TRUE/FALSE) </td></tr>
<tr><td></td><td valign=top><em>step</em> </td><td>fixed major step width. Defaults to 0.0. </td></tr>
<tr><td></td><td valign=top><em>ascend</em> </td><td>if TRUE, sort in ascending order from min(x1, x2) to max(x1, x2). If FALSE, sort in the direction from x1 to x2. Defaults to TRUE. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>True if the arrays have been allocated successfully. </dd></dl>
<dl compact><dt><b>Warning:</b></dt><dd>For logarithmic scales, the step width is measured in decades. </dd></dl>
Definition at line <a class="el" href="qwt__scldiv_8cpp-source.html#l00086">86</a> of file <a class="el" href="qwt__scldiv_8cpp-source.html">qwt_scldiv.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00176">QwtAutoScale::build()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00213">QwtAutoScale::buildLinScale()</a>, <a class="el" href="qwt__autoscl_8cpp-source.html#l00300">QwtAutoScale::buildLogScale()</a>, and <a class="el" href="qwt__scldraw_8cpp-source.html#l00082">QwtScaleDraw::setScale()</a>. </td>
</tr>
</table>
<a class="anchor" name="a11" doxytag="QwtScaleDiv::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 QwtScaleDiv::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>
Detach the shared data and set everything to zero.
<p>
Definition at line <a class="el" href="qwt__scldiv_8cpp-source.html#l00445">445</a> of file <a class="el" href="qwt__scldiv_8cpp-source.html">qwt_scldiv.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__autoscl_8cpp-source.html#l00413">QwtAutoScale::reset()</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:40 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>
|