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: QwtCompassWindArrow 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>QwtCompassWindArrow Class Reference</h1><!-- doxytag: class="QwtCompassWindArrow" --><!-- doxytag: inherits="QwtDialNeedle" -->Inheritance diagram for QwtCompassWindArrow:<p><center><img src="class_qwt_compass_wind_arrow__inherit__graph.png" border="0" usemap="#_qwt_compass_wind_arrow__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_compass_wind_arrow__inherit__map">
24
<area href="class_qwt_dial_needle.html" shape="rect" coords="35,8,147,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtCompassWindArrow:<p><center><img src="class_qwt_compass_wind_arrow__coll__graph.png" border="0" usemap="#_qwt_compass_wind_arrow__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_compass_wind_arrow__coll__map">
28
<area href="class_qwt_dial_needle.html" shape="rect" coords="35,8,147,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_compass_wind_arrow-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
An indicator for the wind direction.
33
<a class="el" href="class_qwt_compass_wind_arrow.html">QwtCompassWindArrow</a> shows the direction where the wind comes from.<p>
35
<li>QColorGroup::Light<br>
36
Used for Style1, or the light half of Style2</li><li>QColorGroup::Dark<br>
37
Used for the dark half of Style2</li></ul>
39
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dial.html">QwtDial</a>, <a class="el" href="class_qwt_compass.html">QwtCompass</a> </dd></dl>
44
Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00170">170</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.<table border="0" cellpadding="0" cellspacing="0">
46
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_wind_arrow.html#55f11e28c9d87c0fb7c306ccd174f2a8">Style</a> { <br>
48
<b>Arrow</b>,
50
<b>Ray</b>,
52
<b>TriangleStyle</b>,
54
<b>ThinStyle</b>,
56
<b>Style1</b>,
58
<b>Style2</b>,
60
<b>NoSymbol</b> = -1,
62
<b>Ellipse</b>,
64
<b>Rect</b>,
66
<b>Diamond</b>,
68
<b>Triangle</b>,
70
<b>DTriangle</b>,
72
<b>UTriangle</b>,
74
<b>LTriangle</b>,
76
<b>RTriangle</b>,
78
<b>Cross</b>,
80
<b>XCross</b>,
82
<b>HLine</b>,
84
<b>VLine</b>,
86
<b>Star1</b>,
88
<b>Star2</b>,
90
<b>Hexagon</b>,
92
<b>StyleCnt</b>
96
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_wind_arrow.html#1b5931f43dd7e72fc5a3e2c9b509769d">QwtCompassWindArrow</a> (<a class="el" href="class_qwt_compass_wind_arrow.html#55f11e28c9d87c0fb7c306ccd174f2a8">Style</a>, const QColor &light=Qt::white, const QColor &dark=Qt::gray)</td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_wind_arrow.html#457b0c6faf84e4926ac303ae9dc06607">draw</a> (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const</td></tr>
101
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_wind_arrow.html#7a018acb636eec2c3f2d4793c0bfa033">drawStyle1Needle</a> (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)</td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_wind_arrow.html#c326fcaae96d7752c48152e5d7260f62">drawStyle2Needle</a> (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)</td></tr>
107
<hr><h2>Member Enumeration Documentation</h2>
108
<a class="anchor" name="55f11e28c9d87c0fb7c306ccd174f2a8"></a><!-- doxytag: member="QwtCompassWindArrow::Style" ref="55f11e28c9d87c0fb7c306ccd174f2a8" args="" -->
109
<div class="memitem">
110
<div class="memproto">
111
<table class="memname">
113
<td class="memname">enum <a class="el" href="class_qwt_compass_wind_arrow.html#55f11e28c9d87c0fb7c306ccd174f2a8">QwtCompassWindArrow::Style</a> </td>
124
Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00174">174</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.
127
<hr><h2>Constructor & Destructor Documentation</h2>
128
<a class="anchor" name="1b5931f43dd7e72fc5a3e2c9b509769d"></a><!-- doxytag: member="QwtCompassWindArrow::QwtCompassWindArrow" ref="1b5931f43dd7e72fc5a3e2c9b509769d" args="(Style, const QColor &light=Qt::white, const QColor &dark=Qt::gray)" -->
129
<div class="memitem">
130
<div class="memproto">
131
<table class="memname">
133
<td class="memname">QwtCompassWindArrow::QwtCompassWindArrow </td>
135
<td class="paramtype"><a class="el" href="class_qwt_compass_wind_arrow.html#55f11e28c9d87c0fb7c306ccd174f2a8">Style</a> </td>
136
<td class="paramname"> <em>style</em>, </td>
139
<td class="paramkey"></td>
141
<td class="paramtype">const QColor & </td>
142
<td class="paramname"> <em>light</em> = <code>Qt::white</code>, </td>
145
<td class="paramkey"></td>
147
<td class="paramtype">const QColor & </td>
148
<td class="paramname"> <em>dark</em> = <code>Qt::gray</code></td><td> </td>
153
<td></td><td></td><td width="100%"></td>
161
<dl compact><dt><b>Parameters:</b></dt><dd>
162
<table border="0" cellspacing="2" cellpadding="0">
163
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>Arrow style </td></tr>
164
<tr><td valign="top"></td><td valign="top"><em>light</em> </td><td>Light color </td></tr>
165
<tr><td valign="top"></td><td valign="top"><em>dark</em> </td><td>Dark color </td></tr>
170
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00467">467</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
172
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00040">QwtDialNeedle::setPalette()</a>.
175
<hr><h2>Member Function Documentation</h2>
176
<a class="anchor" name="457b0c6faf84e4926ac303ae9dc06607"></a><!-- doxytag: member="QwtCompassWindArrow::draw" ref="457b0c6faf84e4926ac303ae9dc06607" args="(QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const" -->
177
<div class="memitem">
178
<div class="memproto">
179
<table class="memname">
181
<td class="memname">void QwtCompassWindArrow::draw </td>
183
<td class="paramtype">QPainter * </td>
184
<td class="paramname"> <em>painter</em>, </td>
187
<td class="paramkey"></td>
189
<td class="paramtype">const QPoint & </td>
190
<td class="paramname"> <em>center</em>, </td>
193
<td class="paramkey"></td>
195
<td class="paramtype">int </td>
196
<td class="paramname"> <em>length</em>, </td>
199
<td class="paramkey"></td>
201
<td class="paramtype">double </td>
202
<td class="paramname"> <em>direction</em>, </td>
205
<td class="paramkey"></td>
207
<td class="paramtype">QPalette::ColorGroup </td>
208
<td class="paramname"> <em>colorGroup</em> = <code>QPalette::Active</code></td><td> </td>
213
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
221
<dl compact><dt><b>Parameters:</b></dt><dd>
222
<table border="0" cellspacing="2" cellpadding="0">
223
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
224
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the dial, start position for the needle </td></tr>
225
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>Length of the needle </td></tr>
226
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Direction of the needle, in degrees counter clockwise </td></tr>
227
<tr><td valign="top"></td><td valign="top"><em>colorGroup</em> </td><td>Color group, used for painting </td></tr>
232
Implements <a class="el" href="class_qwt_dial_needle.html#d38b1e7d9ef0bf012f8f1b21b0972cc9">QwtDialNeedle</a>.
234
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00492">492</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
236
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00517">drawStyle1Needle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00554">drawStyle2Needle()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>.
239
<a class="anchor" name="7a018acb636eec2c3f2d4793c0bfa033"></a><!-- doxytag: member="QwtCompassWindArrow::drawStyle1Needle" ref="7a018acb636eec2c3f2d4793c0bfa033" args="(QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)" -->
240
<div class="memitem">
241
<div class="memproto">
242
<table class="memname">
244
<td class="memname">void QwtCompassWindArrow::drawStyle1Needle </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 QPalette & </td>
253
<td class="paramname"> <em>palette</em>, </td>
256
<td class="paramkey"></td>
258
<td class="paramtype">QPalette::ColorGroup </td>
259
<td class="paramname"> <em>colorGroup</em>, </td>
262
<td class="paramkey"></td>
264
<td class="paramtype">const QPoint & </td>
265
<td class="paramname"> <em>center</em>, </td>
268
<td class="paramkey"></td>
270
<td class="paramtype">int </td>
271
<td class="paramname"> <em>length</em>, </td>
274
<td class="paramkey"></td>
276
<td class="paramtype">double </td>
277
<td class="paramname"> <em>direction</em></td><td> </td>
282
<td></td><td></td><td width="100%"><code> [static]</code></td>
289
Draw a compass needle<p>
290
<dl compact><dt><b>Parameters:</b></dt><dd>
291
<table border="0" cellspacing="2" cellpadding="0">
292
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
293
<tr><td valign="top"></td><td valign="top"><em>palette</em> </td><td>Palette </td></tr>
294
<tr><td valign="top"></td><td valign="top"><em>colorGroup</em> </td><td>colorGroup </td></tr>
295
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the dial, start position for the needle </td></tr>
296
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>Length of the needle </td></tr>
297
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Direction of the needle, in degrees counter clockwise </td></tr>
302
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00517">517</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
304
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00492">draw()</a>.
307
<a class="anchor" name="c326fcaae96d7752c48152e5d7260f62"></a><!-- doxytag: member="QwtCompassWindArrow::drawStyle2Needle" ref="c326fcaae96d7752c48152e5d7260f62" args="(QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)" -->
308
<div class="memitem">
309
<div class="memproto">
310
<table class="memname">
312
<td class="memname">void QwtCompassWindArrow::drawStyle2Needle </td>
314
<td class="paramtype">QPainter * </td>
315
<td class="paramname"> <em>painter</em>, </td>
318
<td class="paramkey"></td>
320
<td class="paramtype">const QPalette & </td>
321
<td class="paramname"> <em>palette</em>, </td>
324
<td class="paramkey"></td>
326
<td class="paramtype">QPalette::ColorGroup </td>
327
<td class="paramname"> <em>colorGroup</em>, </td>
330
<td class="paramkey"></td>
332
<td class="paramtype">const QPoint & </td>
333
<td class="paramname"> <em>center</em>, </td>
336
<td class="paramkey"></td>
338
<td class="paramtype">int </td>
339
<td class="paramname"> <em>length</em>, </td>
342
<td class="paramkey"></td>
344
<td class="paramtype">double </td>
345
<td class="paramname"> <em>direction</em></td><td> </td>
350
<td></td><td></td><td width="100%"><code> [static]</code></td>
357
Draw a compass needle<p>
358
<dl compact><dt><b>Parameters:</b></dt><dd>
359
<table border="0" cellspacing="2" cellpadding="0">
360
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
361
<tr><td valign="top"></td><td valign="top"><em>palette</em> </td><td>Palette </td></tr>
362
<tr><td valign="top"></td><td valign="top"><em>colorGroup</em> </td><td>colorGroup </td></tr>
363
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the dial, start position for the needle </td></tr>
364
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>Length of the needle </td></tr>
365
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Direction of the needle, in degrees counter clockwise </td></tr>
370
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00554">554</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
372
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00492">draw()</a>.
375
<hr size="1"><address style="align: right;"><small>Generated on Thu May 1 15:44:26 2008 for Qwt User's Guide by
376
<a href="http://www.doxygen.org/index.html">
377
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>