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.5.0 -->
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="28,8,159,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="28,8,159,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="3dbac7f18d6b4de2c202ddc7761d20f2"></a><!-- doxytag: member="QwtSimpleCompassRose::width" ref="3dbac7f18d6b4de2c202ddc7761d20f2" args="() const" -->
43
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#3dbac7f18d6b4de2c202ddc7761d20f2">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#2c4df8d87a99b4e84e077773bf60956c">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#6ea00a06b07d87798e2630b489fb619e">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="60278de80aa517aaa0ab7af22d262c30"></a><!-- doxytag: member="QwtSimpleCompassRose::shrinkFactor" ref="60278de80aa517aaa0ab7af22d262c30" args="() const" -->
57
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_simple_compass_rose.html#60278de80aa517aaa0ab7af22d262c30">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#3826a3c558ab3c58b7033d4c08b34161">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)" -->
68
<div class="memproto">
69
<table class="memname">
71
<td class="memname">QwtSimpleCompassRose::QwtSimpleCompassRose </td>
73
<td class="paramtype">int </td>
74
<td class="paramname"> <em>numThorns</em> = <code>8</code>, </td>
77
<td class="paramkey"></td>
79
<td class="paramtype">int </td>
80
<td class="paramname"> <em>numThornLevels</em> = <code>-1</code></td><td> </td>
85
<td></td><td></td><td width="100%"></td>
93
<dl compact><dt><b>Parameters:</b></dt><dd>
94
<table border="0" cellspacing="2" cellpadding="0">
95
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
96
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorn levels </td></tr>
101
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>.
103
References <a class="el" href="qwt__compass__rose_8h-source.html#l00027">QwtCompassRose::palette()</a>, and <a class="el" href="qwt__compass__rose_8h-source.html#l00026">QwtCompassRose::setPalette()</a>.
106
<hr><h2>Member Function Documentation</h2>
107
<a class="anchor" name="e4067a436f45d2f2ca23d8233539566b"></a><!-- doxytag: member="QwtSimpleCompassRose::setWidth" ref="e4067a436f45d2f2ca23d8233539566b" args="(double w)" -->
108
<div class="memitem">
109
<div class="memproto">
110
<table class="memname">
112
<td class="memname">void QwtSimpleCompassRose::setWidth </td>
114
<td class="paramtype">double </td>
115
<td class="paramname"> <em>width</em> </td>
116
<td> ) </td>
117
<td width="100%"></td>
124
Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.<p>
125
<dl compact><dt><b>Parameters:</b></dt><dd>
126
<table border="0" cellspacing="2" cellpadding="0">
127
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width </td></tr>
132
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>.
135
<a class="anchor" name="3c86abb463eb4741d1776318d6fa557b"></a><!-- doxytag: member="QwtSimpleCompassRose::setNumThorns" ref="3c86abb463eb4741d1776318d6fa557b" args="(int count)" -->
136
<div class="memitem">
137
<div class="memproto">
138
<table class="memname">
140
<td class="memname">void QwtSimpleCompassRose::setNumThorns </td>
142
<td class="paramtype">int </td>
143
<td class="paramname"> <em>numThorns</em> </td>
144
<td> ) </td>
145
<td width="100%"></td>
152
Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4<p>
153
<dl compact><dt><b>Parameters:</b></dt><dd>
154
<table border="0" cellspacing="2" cellpadding="0">
155
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
158
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_simple_compass_rose.html#2c4df8d87a99b4e84e077773bf60956c">numThorns()</a>, <a class="el" href="class_qwt_simple_compass_rose.html#d91026da3b586a3193a264401221a275">setNumThornLevels()</a> </dd></dl>
161
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>.
164
<a class="anchor" name="2c4df8d87a99b4e84e077773bf60956c"></a><!-- doxytag: member="QwtSimpleCompassRose::numThorns" ref="2c4df8d87a99b4e84e077773bf60956c" args="() const" -->
165
<div class="memitem">
166
<div class="memproto">
167
<table class="memname">
169
<td class="memname">int QwtSimpleCompassRose::numThorns </td>
171
<td class="paramname"> </td>
172
<td> ) </td>
173
<td width="100%"> const</td>
180
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of thorns </dd></dl>
181
<dl class="see" 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>
184
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>.
187
<a class="anchor" name="d91026da3b586a3193a264401221a275"></a><!-- doxytag: member="QwtSimpleCompassRose::setNumThornLevels" ref="d91026da3b586a3193a264401221a275" args="(int count)" -->
188
<div class="memitem">
189
<div class="memproto">
190
<table class="memname">
192
<td class="memname">void QwtSimpleCompassRose::setNumThornLevels </td>
194
<td class="paramtype">int </td>
195
<td class="paramname"> <em>numThornLevels</em> </td>
196
<td> ) </td>
197
<td width="100%"></td>
204
Set the of thorns levels<p>
205
<dl compact><dt><b>Parameters:</b></dt><dd>
206
<table border="0" cellspacing="2" cellpadding="0">
207
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorns levels </td></tr>
210
<dl class="see" 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#6ea00a06b07d87798e2630b489fb619e">numThornLevels()</a> </dd></dl>
213
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>.
216
<a class="anchor" name="6ea00a06b07d87798e2630b489fb619e"></a><!-- doxytag: member="QwtSimpleCompassRose::numThornLevels" ref="6ea00a06b07d87798e2630b489fb619e" args="() const" -->
217
<div class="memitem">
218
<div class="memproto">
219
<table class="memname">
221
<td class="memname">int QwtSimpleCompassRose::numThornLevels </td>
223
<td class="paramname"> </td>
224
<td> ) </td>
225
<td width="100%"> const</td>
232
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of thorn levels </dd></dl>
233
<dl class="see" 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>
236
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>.
239
<a class="anchor" name="3826a3c558ab3c58b7033d4c08b34161"></a><!-- doxytag: member="QwtSimpleCompassRose::draw" ref="3826a3c558ab3c58b7033d4c08b34161" args="(QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup=QPalette::Active) const" -->
240
<div class="memitem">
241
<div class="memproto">
242
<table class="memname">
244
<td class="memname">void QwtSimpleCompassRose::draw </td>
246
<td class="paramtype">QPainter * </td>
247
<td class="paramname"> <em>painter</em>, </td>
250
<td class="paramkey"></td>
252
<td class="paramtype">const QPoint & </td>
253
<td class="paramname"> <em>center</em>, </td>
256
<td class="paramkey"></td>
258
<td class="paramtype">int </td>
259
<td class="paramname"> <em>radius</em>, </td>
262
<td class="paramkey"></td>
264
<td class="paramtype">double </td>
265
<td class="paramname"> <em>north</em>, </td>
268
<td class="paramkey"></td>
270
<td class="paramtype">QPalette::ColorGroup </td>
271
<td class="paramname"> <em>cg</em> = <code>QPalette::Active</code></td><td> </td>
276
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
284
<dl compact><dt><b>Parameters:</b></dt><dd>
285
<table border="0" cellspacing="2" cellpadding="0">
286
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
287
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center point </td></tr>
288
<tr><td valign="top"></td><td valign="top"><em>radius</em> </td><td>Radius of the rose </td></tr>
289
<tr><td valign="top"></td><td valign="top"><em>north</em> </td><td>Position </td></tr>
290
<tr><td valign="top"></td><td valign="top"><em>cg</em> </td><td>Color group </td></tr>
295
Implements <a class="el" href="class_qwt_compass_rose.html#871090e18973be379ffd7f09e876f8de">QwtCompassRose</a>.
297
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>.
299
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>.
302
<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)" -->
303
<div class="memitem">
304
<div class="memproto">
305
<table class="memname">
307
<td class="memname">void QwtSimpleCompassRose::drawRose </td>
309
<td class="paramtype">QPainter * </td>
310
<td class="paramname"> <em>painter</em>, </td>
313
<td class="paramkey"></td>
315
<td class="paramtype">const QPalette & </td>
316
<td class="paramname"> <em>palette</em>, </td>
319
<td class="paramkey"></td>
321
<td class="paramtype">const QPoint & </td>
322
<td class="paramname"> <em>center</em>, </td>
325
<td class="paramkey"></td>
327
<td class="paramtype">int </td>
328
<td class="paramname"> <em>radius</em>, </td>
331
<td class="paramkey"></td>
333
<td class="paramtype">double </td>
334
<td class="paramname"> <em>north</em>, </td>
337
<td class="paramkey"></td>
339
<td class="paramtype">double </td>
340
<td class="paramname"> <em>width</em>, </td>
343
<td class="paramkey"></td>
345
<td class="paramtype">int </td>
346
<td class="paramname"> <em>numThorns</em>, </td>
349
<td class="paramkey"></td>
351
<td class="paramtype">int </td>
352
<td class="paramname"> <em>numThornLevels</em>, </td>
355
<td class="paramkey"></td>
357
<td class="paramtype">double </td>
358
<td class="paramname"> <em>shrinkFactor</em></td><td> </td>
363
<td></td><td></td><td width="100%"><code> [static]</code></td>
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>painter</em> </td><td>Painter </td></tr>
374
<tr><td valign="top"></td><td valign="top"><em>palette</em> </td><td>Palette </td></tr>
375
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the rose </td></tr>
376
<tr><td valign="top"></td><td valign="top"><em>radius</em> </td><td>Radius of the rose </td></tr>
377
<tr><td valign="top"></td><td valign="top"><em>north</em> </td><td>Position pointing to north </td></tr>
378
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width of the rose </td></tr>
379
<tr><td valign="top"></td><td valign="top"><em>numThorns</em> </td><td>Number of thorns </td></tr>
380
<tr><td valign="top"></td><td valign="top"><em>numThornLevels</em> </td><td>Number of thorn levels </td></tr>
381
<tr><td valign="top"></td><td valign="top"><em>shrinkFactor</em> </td><td>Factor to shrink the thorns with each level </td></tr>
386
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>.
388
Referenced by <a class="el" href="qwt__compass__rose_8cpp-source.html#l00098">draw()</a>.
391
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:49:05 2008 for Qwt User's Guide by
392
<a href="http://www.doxygen.org/index.html">
393
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>