1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtSimpleCompassRose Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.4.6 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtSimpleCompassRose Class Reference</h1><!-- doxytag: class="QwtSimpleCompassRose" --><!-- doxytag: inherits="QwtCompassRose" -->Inheritance diagram for QwtSimpleCompassRose:<p><center><img src="class_qwt_simple_compass_rose__inherit__graph.png" border="0" usemap="#_qwt_simple_compass_rose__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_simple_compass_rose__inherit__map">
24
<area href="class_qwt_compass_rose.html" shape="rect" coords="27,8,160,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtSimpleCompassRose:<p><center><img src="class_qwt_simple_compass_rose__coll__graph.png" border="0" usemap="#_qwt_simple_compass_rose__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_simple_compass_rose__coll__map">
28
<area href="class_qwt_compass_rose.html" shape="rect" coords="27,8,160,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_simple_compass_rose-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
A simple rose for <a class="el" href="class_qwt_compass.html">QwtCompass</a>.
35
Definition at line <a class="el" href="qwt__compass__rose_8h-source.html#l00049">49</a> of file <a class="el" href="qwt__compass__rose_8h-source.html">qwt_compass_rose.h</a>.<table border="0" cellpadding="0" cellspacing="0">
37
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#66cc98efe5717eaf11fb0e713cd1aa21">QwtSimpleCompassRose</a> (int numThorns=8, int numThornLevels=-1)</td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#e4067a436f45d2f2ca23d8233539566b">setWidth</a> (double w)</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="28e7dcd6574c6239f5d15cdda93ac835"></a><!-- doxytag: member="QwtSimpleCompassRose::width" ref="28e7dcd6574c6239f5d15cdda93ac835" args="() const " -->
43
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#28e7dcd6574c6239f5d15cdda93ac835">width</a> () const </td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#3c86abb463eb4741d1776318d6fa557b">setNumThorns</a> (int count)</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#7c3270789e94e94b8d515b04372bfe0b">numThorns</a> () const </td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#d91026da3b586a3193a264401221a275">setNumThornLevels</a> (int count)</td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#8fa418ee344d934d556fa5719cd5ece5">numThornLevels</a> () const </td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="faf84e19eb8eb2360306860b02d46cfc"></a><!-- doxytag: member="QwtSimpleCompassRose::setShrinkFactor" ref="faf84e19eb8eb2360306860b02d46cfc" args="(double factor)" -->
54
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#faf84e19eb8eb2360306860b02d46cfc">setShrinkFactor</a> (double factor)</td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49ac7941c4a09f5a33e660b130d7bc2e"></a><!-- doxytag: member="QwtSimpleCompassRose::shrinkFactor" ref="49ac7941c4a09f5a33e660b130d7bc2e" args="() const " -->
57
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#49ac7941c4a09f5a33e660b130d7bc2e">shrinkFactor</a> () const </td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#6208b684cba67d64f4c4717b69cb9146">draw</a> (QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup=QPalette::Active) const </td></tr>
61
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#22fec9f17882f4a9e5069e08a2007cd0">drawRose</a> (QPainter *, const QPalette &, const QPoint &center, int radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor)</td></tr>
65
<hr><h2>Constructor & Destructor Documentation</h2>
66
<a class="anchor" name="66cc98efe5717eaf11fb0e713cd1aa21"></a><!-- doxytag: member="QwtSimpleCompassRose::QwtSimpleCompassRose" ref="66cc98efe5717eaf11fb0e713cd1aa21" args="(int numThorns=8, int numThornLevels=-1)" --><p>
67
<table class="mdTable" cellpadding="2" cellspacing="0">
70
<table cellpadding="0" cellspacing="0" border="0">
72
<td class="md" nowrap valign="top">QwtSimpleCompassRose::QwtSimpleCompassRose </td>
73
<td class="md" valign="top">( </td>
74
<td class="md" nowrap valign="top">int </td>
75
<td class="mdname" nowrap> <em>numThorns</em> = <code>8</code>, </td>
78
<td class="md" nowrap align="right"></td>
80
<td class="md" nowrap>int </td>
81
<td class="mdname" nowrap> <em>numThornLevels</em> = <code>-1</code></td>
85
<td class="md">) </td>
86
<td class="md" colspan="2"></td>
92
<table cellspacing="5" cellpadding="0" border="0">
101
<dl compact><dt><b>Parameters:</b></dt><dd>
102
<table border="0" cellspacing="2" cellpadding="0">
103
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
104
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorn levels </td></tr>
109
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00061">61</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>.
111
References <a class="el" href="qwt__compass__rose_8h-source.html#l00027">QwtCompassRose::palette()</a>. </td>
114
<hr><h2>Member Function Documentation</h2>
115
<a class="anchor" name="6208b684cba67d64f4c4717b69cb9146"></a><!-- doxytag: member="QwtSimpleCompassRose::draw" ref="6208b684cba67d64f4c4717b69cb9146" args="(QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup=QPalette::Active) const " --><p>
116
<table class="mdTable" cellpadding="2" cellspacing="0">
119
<table cellpadding="0" cellspacing="0" border="0">
121
<td class="md" nowrap valign="top">void QwtSimpleCompassRose::draw </td>
122
<td class="md" valign="top">( </td>
123
<td class="md" nowrap valign="top">QPainter * </td>
124
<td class="mdname" nowrap> <em>painter</em>, </td>
127
<td class="md" nowrap align="right"></td>
129
<td class="md" nowrap>const QPoint & </td>
130
<td class="mdname" nowrap> <em>center</em>, </td>
133
<td class="md" nowrap align="right"></td>
135
<td class="md" nowrap>int </td>
136
<td class="mdname" nowrap> <em>radius</em>, </td>
139
<td class="md" nowrap align="right"></td>
141
<td class="md" nowrap>double </td>
142
<td class="mdname" nowrap> <em>north</em>, </td>
145
<td class="md" nowrap align="right"></td>
147
<td class="md" nowrap>QPalette::ColorGroup </td>
148
<td class="mdname" nowrap> <em>cg</em> = <code>QPalette::Active</code></td>
152
<td class="md">) </td>
153
<td class="md" colspan="2"> const<code> [virtual]</code></td>
159
<table cellspacing="5" cellpadding="0" border="0">
168
<dl compact><dt><b>Parameters:</b></dt><dd>
169
<table border="0" cellspacing="2" cellpadding="0">
170
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
171
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center point </td></tr>
172
<tr><td valign="top"></td><td valign="top"><em>radius</em> </td><td>Radius of the rose </td></tr>
173
<tr><td valign="top"></td><td valign="top"><em>north</em> </td><td>Position </td></tr>
174
<tr><td valign="top"></td><td valign="top"><em>cg</em> </td><td>Color group </td></tr>
179
Implements <a class="el" href="class_qwt_compass_rose.html#c744f7261c867ce1cdfcb831f44d1f86">QwtCompassRose</a>.
181
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00098">98</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>.
183
References <a class="el" href="qwt__compass__rose_8cpp-source.html#l00136">drawRose()</a>, and <a class="el" href="qwt__compass__rose_8h-source.html#l00027">QwtCompassRose::palette()</a>. </td>
186
<a class="anchor" name="22fec9f17882f4a9e5069e08a2007cd0"></a><!-- doxytag: member="QwtSimpleCompassRose::drawRose" ref="22fec9f17882f4a9e5069e08a2007cd0" args="(QPainter *, const QPalette &, const QPoint &center, int radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor)" --><p>
187
<table class="mdTable" cellpadding="2" cellspacing="0">
190
<table cellpadding="0" cellspacing="0" border="0">
192
<td class="md" nowrap valign="top">void QwtSimpleCompassRose::drawRose </td>
193
<td class="md" valign="top">( </td>
194
<td class="md" nowrap valign="top">QPainter * </td>
195
<td class="mdname" nowrap> <em>painter</em>, </td>
198
<td class="md" nowrap align="right"></td>
200
<td class="md" nowrap>const QPalette & </td>
201
<td class="mdname" nowrap> <em>palette</em>, </td>
204
<td class="md" nowrap align="right"></td>
206
<td class="md" nowrap>const QPoint & </td>
207
<td class="mdname" nowrap> <em>center</em>, </td>
210
<td class="md" nowrap align="right"></td>
212
<td class="md" nowrap>int </td>
213
<td class="mdname" nowrap> <em>radius</em>, </td>
216
<td class="md" nowrap align="right"></td>
218
<td class="md" nowrap>double </td>
219
<td class="mdname" nowrap> <em>north</em>, </td>
222
<td class="md" nowrap align="right"></td>
224
<td class="md" nowrap>double </td>
225
<td class="mdname" nowrap> <em>width</em>, </td>
228
<td class="md" nowrap align="right"></td>
230
<td class="md" nowrap>int </td>
231
<td class="mdname" nowrap> <em>numThorns</em>, </td>
234
<td class="md" nowrap align="right"></td>
236
<td class="md" nowrap>int </td>
237
<td class="mdname" nowrap> <em>numThornLevels</em>, </td>
240
<td class="md" nowrap align="right"></td>
242
<td class="md" nowrap>double </td>
243
<td class="mdname" nowrap> <em>shrinkFactor</em></td>
247
<td class="md">) </td>
248
<td class="md" colspan="2"><code> [static]</code></td>
254
<table cellspacing="5" cellpadding="0" border="0">
263
<dl compact><dt><b>Parameters:</b></dt><dd>
264
<table border="0" cellspacing="2" cellpadding="0">
265
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
266
<tr><td valign="top"></td><td valign="top"><em>palette</em> </td><td>Palette </td></tr>
267
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the rose </td></tr>
268
<tr><td valign="top"></td><td valign="top"><em>radius</em> </td><td>Radius of the rose </td></tr>
269
<tr><td valign="top"></td><td valign="top"><em>north</em> </td><td>Position pointing to north </td></tr>
270
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width of the rose </td></tr>
271
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
272
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorn levels </td></tr>
273
<tr><td valign="top"></td><td valign="top"><em>shrinkFactor</em> </td><td>Factor to shrink the thorns with each level </td></tr>
278
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00136">136</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>.
280
Referenced by <a class="el" href="qwt__compass__rose_8cpp-source.html#l00098">draw()</a>. </td>
283
<a class="anchor" name="8fa418ee344d934d556fa5719cd5ece5"></a><!-- doxytag: member="QwtSimpleCompassRose::numThornLevels" ref="8fa418ee344d934d556fa5719cd5ece5" args="() const " --><p>
284
<table class="mdTable" cellpadding="2" cellspacing="0">
287
<table cellpadding="0" cellspacing="0" border="0">
289
<td class="md" nowrap valign="top">int QwtSimpleCompassRose::numThornLevels </td>
290
<td class="md" valign="top">( </td>
291
<td class="mdname1" valign="top" nowrap> </td>
292
<td class="md" valign="top"> ) </td>
293
<td class="md" nowrap> const</td>
299
<table cellspacing="5" cellpadding="0" border="0">
307
<dl compact><dt><b>Returns:</b></dt><dd>Number of thorn levels </dd></dl>
308
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_simple_compass_rose.html#3c86abb463eb4741d1776318d6fa557b">setNumThorns()</a>, <a class="el" href="class_qwt_simple_compass_rose.html#d91026da3b586a3193a264401221a275">setNumThornLevels()</a> </dd></dl>
311
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00278">278</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>. </td>
314
<a class="anchor" name="7c3270789e94e94b8d515b04372bfe0b"></a><!-- doxytag: member="QwtSimpleCompassRose::numThorns" ref="7c3270789e94e94b8d515b04372bfe0b" args="() const " --><p>
315
<table class="mdTable" cellpadding="2" cellspacing="0">
318
<table cellpadding="0" cellspacing="0" border="0">
320
<td class="md" nowrap valign="top">int QwtSimpleCompassRose::numThorns </td>
321
<td class="md" valign="top">( </td>
322
<td class="mdname1" valign="top" nowrap> </td>
323
<td class="md" valign="top"> ) </td>
324
<td class="md" nowrap> const</td>
330
<table cellspacing="5" cellpadding="0" border="0">
338
<dl compact><dt><b>Returns:</b></dt><dd>Number of thorns </dd></dl>
339
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_simple_compass_rose.html#3c86abb463eb4741d1776318d6fa557b">setNumThorns()</a>, <a class="el" href="class_qwt_simple_compass_rose.html#d91026da3b586a3193a264401221a275">setNumThornLevels()</a> </dd></dl>
342
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00258">258</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>. </td>
345
<a class="anchor" name="d91026da3b586a3193a264401221a275"></a><!-- doxytag: member="QwtSimpleCompassRose::setNumThornLevels" ref="d91026da3b586a3193a264401221a275" args="(int count)" --><p>
346
<table class="mdTable" cellpadding="2" cellspacing="0">
349
<table cellpadding="0" cellspacing="0" border="0">
351
<td class="md" nowrap valign="top">void QwtSimpleCompassRose::setNumThornLevels </td>
352
<td class="md" valign="top">( </td>
353
<td class="md" nowrap valign="top">int </td>
354
<td class="mdname1" valign="top" nowrap> <em>numThornLevels</em> </td>
355
<td class="md" valign="top"> ) </td>
356
<td class="md" nowrap></td>
362
<table cellspacing="5" cellpadding="0" border="0">
370
Set the of thorns levels<p>
371
<dl compact><dt><b>Parameters:</b></dt><dd>
372
<table border="0" cellspacing="2" cellpadding="0">
373
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorns levels </td></tr>
376
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_simple_compass_rose.html#3c86abb463eb4741d1776318d6fa557b">setNumThorns()</a>, <a class="el" href="class_qwt_simple_compass_rose.html#8fa418ee344d934d556fa5719cd5ece5">numThornLevels()</a> </dd></dl>
379
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00269">269</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>. </td>
382
<a class="anchor" name="3c86abb463eb4741d1776318d6fa557b"></a><!-- doxytag: member="QwtSimpleCompassRose::setNumThorns" ref="3c86abb463eb4741d1776318d6fa557b" args="(int count)" --><p>
383
<table class="mdTable" cellpadding="2" cellspacing="0">
386
<table cellpadding="0" cellspacing="0" border="0">
388
<td class="md" nowrap valign="top">void QwtSimpleCompassRose::setNumThorns </td>
389
<td class="md" valign="top">( </td>
390
<td class="md" nowrap valign="top">int </td>
391
<td class="mdname1" valign="top" nowrap> <em>numThorns</em> </td>
392
<td class="md" valign="top"> ) </td>
393
<td class="md" nowrap></td>
399
<table cellspacing="5" cellpadding="0" border="0">
407
Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4<p>
408
<dl compact><dt><b>Parameters:</b></dt><dd>
409
<table border="0" cellspacing="2" cellpadding="0">
410
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
413
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_simple_compass_rose.html#7c3270789e94e94b8d515b04372bfe0b">numThorns()</a>, <a class="el" href="class_qwt_simple_compass_rose.html#d91026da3b586a3193a264401221a275">setNumThornLevels()</a> </dd></dl>
416
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00243">243</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>. </td>
419
<a class="anchor" name="e4067a436f45d2f2ca23d8233539566b"></a><!-- doxytag: member="QwtSimpleCompassRose::setWidth" ref="e4067a436f45d2f2ca23d8233539566b" args="(double w)" --><p>
420
<table class="mdTable" cellpadding="2" cellspacing="0">
423
<table cellpadding="0" cellspacing="0" border="0">
425
<td class="md" nowrap valign="top">void QwtSimpleCompassRose::setWidth </td>
426
<td class="md" valign="top">( </td>
427
<td class="md" nowrap valign="top">double </td>
428
<td class="mdname1" valign="top" nowrap> <em>width</em> </td>
429
<td class="md" valign="top"> ) </td>
430
<td class="md" nowrap></td>
436
<table cellspacing="5" cellpadding="0" border="0">
444
Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.<p>
445
<dl compact><dt><b>Parameters:</b></dt><dd>
446
<table border="0" cellspacing="2" cellpadding="0">
447
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width </td></tr>
452
Definition at line <a class="el" href="qwt__compass__rose_8cpp-source.html#l00226">226</a> of file <a class="el" href="qwt__compass__rose_8cpp-source.html">qwt_compass_rose.cpp</a>. </td>
455
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:58 2007 for Qwt User's Guide by
456
<a href="http://www.doxygen.org/index.html">
457
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>