~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.0.2/doc/html/class_qwt_compass.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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&apos;s Guide: QwtCompass Class Reference</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
<link href="tabs.css" rel="stylesheet" type="text/css">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.4.6 -->
 
8
<div class="tabs">
 
9
  <ul>
 
10
    <li><a href="index.html"><span>Main&nbsp;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&nbsp;Pages</span></a></li>
 
14
  </ul></div>
 
15
<div class="tabs">
 
16
  <ul>
 
17
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
 
18
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
19
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
20
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
21
  </ul></div>
 
22
<h1>QwtCompass Class Reference</h1><!-- doxytag: class="QwtCompass" --><!-- doxytag: inherits="QwtDial" -->Inheritance diagram for QwtCompass:<p><center><img src="class_qwt_compass__inherit__graph.png" border="0" usemap="#_qwt_compass__inherit__map" alt="Inheritance graph"></center>
 
23
<map name="_qwt_compass__inherit__map">
 
24
<area href="class_qwt_dial.html" shape="rect" coords="37,157,104,181" alt="">
 
25
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
 
26
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
 
27
</map>
 
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtCompass:<p><center><img src="class_qwt_compass__coll__graph.png" border="0" usemap="#_qwt_compass__coll__map" alt="Collaboration graph"></center>
 
29
<map name="_qwt_compass__coll__map">
 
30
<area href="class_qwt_dial.html" shape="rect" coords="37,157,104,181" alt="">
 
31
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
 
32
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
 
33
</map>
 
34
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_compass-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
 
35
A Compass Widget. 
 
36
<p>
 
37
<a class="el" href="class_qwt_compass.html">QwtCompass</a> is a widget to display and enter directions. It consists of a scale, an optional needle and rose.<p>
 
38
<div align="center">
 
39
<img src="dials1.png" alt="dials1.png">
 
40
</div>
 
41
<p>
 
42
<dl compact><dt><b>Note:</b></dt><dd>The examples/dials example shows how to use <a class="el" href="class_qwt_compass.html">QwtCompass</a>. </dd></dl>
 
43
 
 
44
<p>
 
45
 
 
46
<p>
 
47
Definition at line <a class="el" href="qwt__compass_8h-source.html#l00048">48</a> of file <a class="el" href="qwt__compass_8h-source.html">qwt_compass.h</a>.<table border="0" cellpadding="0" cellspacing="0">
 
48
<tr><td></td></tr>
 
49
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#05357e2950a3dc534e68e3c21f6c6b94">QwtCompass</a> (QWidget *parent=NULL)</td></tr>
 
51
 
 
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#f6cc3b946f3761f7ce53d3a2ec000817">~QwtCompass</a> ()</td></tr>
 
53
 
 
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#06456c0c52107bfa8b1d1267fba5b86f">setRose</a> (<a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> *rose)</td></tr>
 
55
 
 
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#7405a44d947e16f53b11dea4544d7683">rose</a> () const </td></tr>
 
57
 
 
58
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#99477d676bd866acd1a418615cba423b">rose</a> ()</td></tr>
 
59
 
 
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QMap&lt; double, QString &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#ccc25cd9b9b23769711b7f04f9a4c464">labelMap</a> () const </td></tr>
 
61
 
 
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">QMap&lt; double, QString &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#39b3cfa870ef0172b49d54fa2559a875">labelMap</a> ()</td></tr>
 
63
 
 
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#b0f2460851db3d5b7169fe0991fdb945">setLabelMap</a> (const QMap&lt; double, QString &gt; &amp;map)</td></tr>
 
65
 
 
66
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
 
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_text.html">QwtText</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#091c7ac5792d87e20bfc7efce9eeeb16">scaleLabel</a> (double value) const </td></tr>
 
68
 
 
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#f97ae99ae987472ee89deff90c1bf6d4">drawRose</a> (QPainter *, const QPoint &amp;center, int radius, double north, QPalette::ColorGroup) const </td></tr>
 
70
 
 
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#375701893fa3c0aeadaf23dd316fe69f">drawScaleContents</a> (QPainter *, const QPoint &amp;center, int radius) const </td></tr>
 
72
 
 
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass.html#d4f31e6837ea045834fe67d192a4209d">keyPressEvent</a> (QKeyEvent *)</td></tr>
 
74
 
 
75
</table>
 
76
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
77
<a class="anchor" name="05357e2950a3dc534e68e3c21f6c6b94"></a><!-- doxytag: member="QwtCompass::QwtCompass" ref="05357e2950a3dc534e68e3c21f6c6b94" args="(QWidget *parent=NULL)" --><p>
 
78
<table class="mdTable" cellpadding="2" cellspacing="0">
 
79
  <tr>
 
80
    <td class="mdRow">
 
81
      <table cellpadding="0" cellspacing="0" border="0">
 
82
        <tr>
 
83
          <td class="md" nowrap valign="top">QwtCompass::QwtCompass           </td>
 
84
          <td class="md" valign="top">(&nbsp;</td>
 
85
          <td class="md" nowrap valign="top">QWidget *&nbsp;</td>
 
86
          <td class="mdname1" valign="top" nowrap> <em>parent</em> = <code>NULL</code>          </td>
 
87
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
88
          <td class="md" nowrap><code> [explicit]</code></td>
 
89
        </tr>
 
90
      </table>
 
91
    </td>
 
92
  </tr>
 
93
</table>
 
94
<table cellspacing="5" cellpadding="0" border="0">
 
95
  <tr>
 
96
    <td>
 
97
      &nbsp;
 
98
    </td>
 
99
    <td>
 
100
 
 
101
<p>
 
102
Constructor. 
 
103
<p>
 
104
<dl compact><dt><b>Parameters:</b></dt><dd>
 
105
  <table border="0" cellspacing="2" cellpadding="0">
 
106
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>Parent widget</td></tr>
 
107
  </table>
 
108
</dl>
 
109
Create a compass widget with a scale, no needle and no rose. The default origin is 270.0 with no valid value. It accepts mouse and keyboard inputs and has no step size. The default mode is QwtDial::RotateNeedle. 
 
110
<p>
 
111
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00050">50</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
112
  </tr>
 
113
</table>
 
114
<a class="anchor" name="f6cc3b946f3761f7ce53d3a2ec000817"></a><!-- doxytag: member="QwtCompass::~QwtCompass" ref="f6cc3b946f3761f7ce53d3a2ec000817" args="()" --><p>
 
115
<table class="mdTable" cellpadding="2" cellspacing="0">
 
116
  <tr>
 
117
    <td class="mdRow">
 
118
      <table cellpadding="0" cellspacing="0" border="0">
 
119
        <tr>
 
120
          <td class="md" nowrap valign="top">QwtCompass::~QwtCompass           </td>
 
121
          <td class="md" valign="top">(&nbsp;</td>
 
122
          <td class="mdname1" valign="top" nowrap>          </td>
 
123
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
124
          <td class="md" nowrap><code> [virtual]</code></td>
 
125
        </tr>
 
126
      </table>
 
127
    </td>
 
128
  </tr>
 
129
</table>
 
130
<table cellspacing="5" cellpadding="0" border="0">
 
131
  <tr>
 
132
    <td>
 
133
      &nbsp;
 
134
    </td>
 
135
    <td>
 
136
 
 
137
<p>
 
138
Destructor. 
 
139
<p>
 
140
 
 
141
<p>
 
142
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00077">77</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
143
  </tr>
 
144
</table>
 
145
<hr><h2>Member Function Documentation</h2>
 
146
<a class="anchor" name="f97ae99ae987472ee89deff90c1bf6d4"></a><!-- doxytag: member="QwtCompass::drawRose" ref="f97ae99ae987472ee89deff90c1bf6d4" args="(QPainter *, const QPoint &amp;center, int radius, double north, QPalette::ColorGroup) const " --><p>
 
147
<table class="mdTable" cellpadding="2" cellspacing="0">
 
148
  <tr>
 
149
    <td class="mdRow">
 
150
      <table cellpadding="0" cellspacing="0" border="0">
 
151
        <tr>
 
152
          <td class="md" nowrap valign="top">void QwtCompass::drawRose           </td>
 
153
          <td class="md" valign="top">(&nbsp;</td>
 
154
          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>
 
155
          <td class="mdname" nowrap> <em>painter</em>, </td>
 
156
        </tr>
 
157
        <tr>
 
158
          <td class="md" nowrap align="right"></td>
 
159
          <td class="md"></td>
 
160
          <td class="md" nowrap>const QPoint &amp;&nbsp;</td>
 
161
          <td class="mdname" nowrap> <em>center</em>, </td>
 
162
        </tr>
 
163
        <tr>
 
164
          <td class="md" nowrap align="right"></td>
 
165
          <td class="md"></td>
 
166
          <td class="md" nowrap>int&nbsp;</td>
 
167
          <td class="mdname" nowrap> <em>radius</em>, </td>
 
168
        </tr>
 
169
        <tr>
 
170
          <td class="md" nowrap align="right"></td>
 
171
          <td class="md"></td>
 
172
          <td class="md" nowrap>double&nbsp;</td>
 
173
          <td class="mdname" nowrap> <em>north</em>, </td>
 
174
        </tr>
 
175
        <tr>
 
176
          <td class="md" nowrap align="right"></td>
 
177
          <td class="md"></td>
 
178
          <td class="md" nowrap>QPalette::ColorGroup&nbsp;</td>
 
179
          <td class="mdname" nowrap> <em>cg</em></td>
 
180
        </tr>
 
181
        <tr>
 
182
          <td class="md"></td>
 
183
          <td class="md">)&nbsp;</td>
 
184
          <td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
 
185
        </tr>
 
186
      </table>
 
187
    </td>
 
188
  </tr>
 
189
</table>
 
190
<table cellspacing="5" cellpadding="0" border="0">
 
191
  <tr>
 
192
    <td>
 
193
      &nbsp;
 
194
    </td>
 
195
    <td>
 
196
 
 
197
<p>
 
198
Draw the compass rose<p>
 
199
<dl compact><dt><b>Parameters:</b></dt><dd>
 
200
  <table border="0" cellspacing="2" cellpadding="0">
 
201
    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter </td></tr>
 
202
    <tr><td valign="top"></td><td valign="top"><em>center</em>&nbsp;</td><td>Center of the compass </td></tr>
 
203
    <tr><td valign="top"></td><td valign="top"><em>radius</em>&nbsp;</td><td>of the circle, where to paint the rose </td></tr>
 
204
    <tr><td valign="top"></td><td valign="top"><em>north</em>&nbsp;</td><td>Direction pointing north, in degrees counter clockwise </td></tr>
 
205
    <tr><td valign="top"></td><td valign="top"><em>cg</em>&nbsp;</td><td>Color group </td></tr>
 
206
  </table>
 
207
</dl>
 
208
 
 
209
<p>
 
210
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00143">143</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.
 
211
<p>
 
212
Referenced by <a class="el" href="qwt__compass_8cpp-source.html#l00114">drawScaleContents()</a>.    </td>
 
213
  </tr>
 
214
</table>
 
215
<a class="anchor" name="375701893fa3c0aeadaf23dd316fe69f"></a><!-- doxytag: member="QwtCompass::drawScaleContents" ref="375701893fa3c0aeadaf23dd316fe69f" args="(QPainter *, const QPoint &amp;center, int radius) const " --><p>
 
216
<table class="mdTable" cellpadding="2" cellspacing="0">
 
217
  <tr>
 
218
    <td class="mdRow">
 
219
      <table cellpadding="0" cellspacing="0" border="0">
 
220
        <tr>
 
221
          <td class="md" nowrap valign="top">void QwtCompass::drawScaleContents           </td>
 
222
          <td class="md" valign="top">(&nbsp;</td>
 
223
          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>
 
224
          <td class="mdname" nowrap>, </td>
 
225
        </tr>
 
226
        <tr>
 
227
          <td class="md" nowrap align="right"></td>
 
228
          <td class="md"></td>
 
229
          <td class="md" nowrap>const QPoint &amp;&nbsp;</td>
 
230
          <td class="mdname" nowrap> <em>center</em>, </td>
 
231
        </tr>
 
232
        <tr>
 
233
          <td class="md" nowrap align="right"></td>
 
234
          <td class="md"></td>
 
235
          <td class="md" nowrap>int&nbsp;</td>
 
236
          <td class="mdname" nowrap> <em>radius</em></td>
 
237
        </tr>
 
238
        <tr>
 
239
          <td class="md"></td>
 
240
          <td class="md">)&nbsp;</td>
 
241
          <td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
 
242
        </tr>
 
243
      </table>
 
244
    </td>
 
245
  </tr>
 
246
</table>
 
247
<table cellspacing="5" cellpadding="0" border="0">
 
248
  <tr>
 
249
    <td>
 
250
      &nbsp;
 
251
    </td>
 
252
    <td>
 
253
 
 
254
<p>
 
255
Draw the contents of the scale. 
 
256
<p>
 
257
 
 
258
<p>
 
259
Reimplemented from <a class="el" href="class_qwt_dial.html#25ef28fbf217e510b60f2b01c14a1fc9">QwtDial</a>.
 
260
<p>
 
261
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00114">114</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.
 
262
<p>
 
263
References <a class="el" href="qwt__compass_8cpp-source.html#l00143">drawRose()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00382">QwtDial::mode()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00965">QwtDial::origin()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>.    </td>
 
264
  </tr>
 
265
</table>
 
266
<a class="anchor" name="d4f31e6837ea045834fe67d192a4209d"></a><!-- doxytag: member="QwtCompass::keyPressEvent" ref="d4f31e6837ea045834fe67d192a4209d" args="(QKeyEvent *)" --><p>
 
267
<table class="mdTable" cellpadding="2" cellspacing="0">
 
268
  <tr>
 
269
    <td class="mdRow">
 
270
      <table cellpadding="0" cellspacing="0" border="0">
 
271
        <tr>
 
272
          <td class="md" nowrap valign="top">void QwtCompass::keyPressEvent           </td>
 
273
          <td class="md" valign="top">(&nbsp;</td>
 
274
          <td class="md" nowrap valign="top">QKeyEvent *&nbsp;</td>
 
275
          <td class="mdname1" valign="top" nowrap> <em>kev</em>          </td>
 
276
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
277
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
278
        </tr>
 
279
      </table>
 
280
    </td>
 
281
  </tr>
 
282
</table>
 
283
<table cellspacing="5" cellpadding="0" border="0">
 
284
  <tr>
 
285
    <td>
 
286
      &nbsp;
 
287
    </td>
 
288
    <td>
 
289
 
 
290
<p>
 
291
Handles key events<p>
 
292
Beside the keys described in <a class="el" href="class_qwt_dial.html#61a2341a76abc20ea5bd72a0485be136">QwtDial::keyPressEvent</a> numbers from 1-9 (without 5) set the direction according to their position on the num pad.<p>
 
293
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#040fd1fd03592c524314bf4b5539608d">isReadOnly()</a> </dd></dl>
 
294
 
 
295
<p>
 
296
Reimplemented from <a class="el" href="class_qwt_dial.html#61a2341a76abc20ea5bd72a0485be136">QwtDial</a>.
 
297
<p>
 
298
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00196">196</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.
 
299
<p>
 
300
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">QwtAbstractSlider::isReadOnly()</a>.    </td>
 
301
  </tr>
 
302
</table>
 
303
<a class="anchor" name="39b3cfa870ef0172b49d54fa2559a875"></a><!-- doxytag: member="QwtCompass::labelMap" ref="39b3cfa870ef0172b49d54fa2559a875" args="()" --><p>
 
304
<table class="mdTable" cellpadding="2" cellspacing="0">
 
305
  <tr>
 
306
    <td class="mdRow">
 
307
      <table cellpadding="0" cellspacing="0" border="0">
 
308
        <tr>
 
309
          <td class="md" nowrap valign="top">QMap&lt; double, QString &gt; &amp; QwtCompass::labelMap           </td>
 
310
          <td class="md" valign="top">(&nbsp;</td>
 
311
          <td class="mdname1" valign="top" nowrap>          </td>
 
312
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
313
          <td class="md" nowrap></td>
 
314
        </tr>
 
315
      </table>
 
316
    </td>
 
317
  </tr>
 
318
</table>
 
319
<table cellspacing="5" cellpadding="0" border="0">
 
320
  <tr>
 
321
    <td>
 
322
      &nbsp;
 
323
    </td>
 
324
    <td>
 
325
 
 
326
<p>
 
327
<dl compact><dt><b>Returns:</b></dt><dd>map, mapping values to labels </dd></dl>
 
328
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#b0f2460851db3d5b7169fe0991fdb945">setLabelMap()</a> </dd></dl>
 
329
 
 
330
<p>
 
331
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00265">265</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
332
  </tr>
 
333
</table>
 
334
<a class="anchor" name="ccc25cd9b9b23769711b7f04f9a4c464"></a><!-- doxytag: member="QwtCompass::labelMap" ref="ccc25cd9b9b23769711b7f04f9a4c464" args="() const " --><p>
 
335
<table class="mdTable" cellpadding="2" cellspacing="0">
 
336
  <tr>
 
337
    <td class="mdRow">
 
338
      <table cellpadding="0" cellspacing="0" border="0">
 
339
        <tr>
 
340
          <td class="md" nowrap valign="top">const QMap&lt; double, QString &gt; &amp; QwtCompass::labelMap           </td>
 
341
          <td class="md" valign="top">(&nbsp;</td>
 
342
          <td class="mdname1" valign="top" nowrap>          </td>
 
343
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
344
          <td class="md" nowrap> const</td>
 
345
        </tr>
 
346
      </table>
 
347
    </td>
 
348
  </tr>
 
349
</table>
 
350
<table cellspacing="5" cellpadding="0" border="0">
 
351
  <tr>
 
352
    <td>
 
353
      &nbsp;
 
354
    </td>
 
355
    <td>
 
356
 
 
357
<p>
 
358
<dl compact><dt><b>Returns:</b></dt><dd>map, mapping values to labels </dd></dl>
 
359
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#b0f2460851db3d5b7169fe0991fdb945">setLabelMap()</a> </dd></dl>
 
360
 
 
361
<p>
 
362
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00256">256</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
363
  </tr>
 
364
</table>
 
365
<a class="anchor" name="99477d676bd866acd1a418615cba423b"></a><!-- doxytag: member="QwtCompass::rose" ref="99477d676bd866acd1a418615cba423b" args="()" --><p>
 
366
<table class="mdTable" cellpadding="2" cellspacing="0">
 
367
  <tr>
 
368
    <td class="mdRow">
 
369
      <table cellpadding="0" cellspacing="0" border="0">
 
370
        <tr>
 
371
          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> * QwtCompass::rose           </td>
 
372
          <td class="md" valign="top">(&nbsp;</td>
 
373
          <td class="mdname1" valign="top" nowrap>          </td>
 
374
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
375
          <td class="md" nowrap></td>
 
376
        </tr>
 
377
      </table>
 
378
    </td>
 
379
  </tr>
 
380
</table>
 
381
<table cellspacing="5" cellpadding="0" border="0">
 
382
  <tr>
 
383
    <td>
 
384
      &nbsp;
 
385
    </td>
 
386
    <td>
 
387
 
 
388
<p>
 
389
<dl compact><dt><b>Returns:</b></dt><dd>rose </dd></dl>
 
390
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#06456c0c52107bfa8b1d1267fba5b86f">setRose()</a> </dd></dl>
 
391
 
 
392
<p>
 
393
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00182">182</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
394
  </tr>
 
395
</table>
 
396
<a class="anchor" name="7405a44d947e16f53b11dea4544d7683"></a><!-- doxytag: member="QwtCompass::rose" ref="7405a44d947e16f53b11dea4544d7683" args="() const " --><p>
 
397
<table class="mdTable" cellpadding="2" cellspacing="0">
 
398
  <tr>
 
399
    <td class="mdRow">
 
400
      <table cellpadding="0" cellspacing="0" border="0">
 
401
        <tr>
 
402
          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> * QwtCompass::rose           </td>
 
403
          <td class="md" valign="top">(&nbsp;</td>
 
404
          <td class="mdname1" valign="top" nowrap>          </td>
 
405
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
406
          <td class="md" nowrap> const</td>
 
407
        </tr>
 
408
      </table>
 
409
    </td>
 
410
  </tr>
 
411
</table>
 
412
<table cellspacing="5" cellpadding="0" border="0">
 
413
  <tr>
 
414
    <td>
 
415
      &nbsp;
 
416
    </td>
 
417
    <td>
 
418
 
 
419
<p>
 
420
<dl compact><dt><b>Returns:</b></dt><dd>rose </dd></dl>
 
421
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#06456c0c52107bfa8b1d1267fba5b86f">setRose()</a> </dd></dl>
 
422
 
 
423
<p>
 
424
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00173">173</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.
 
425
<p>
 
426
Referenced by <a class="el" href="qwt__compass_8cpp-source.html#l00157">setRose()</a>.    </td>
 
427
  </tr>
 
428
</table>
 
429
<a class="anchor" name="091c7ac5792d87e20bfc7efce9eeeb16"></a><!-- doxytag: member="QwtCompass::scaleLabel" ref="091c7ac5792d87e20bfc7efce9eeeb16" args="(double value) const " --><p>
 
430
<table class="mdTable" cellpadding="2" cellspacing="0">
 
431
  <tr>
 
432
    <td class="mdRow">
 
433
      <table cellpadding="0" cellspacing="0" border="0">
 
434
        <tr>
 
435
          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_text.html">QwtText</a> QwtCompass::scaleLabel           </td>
 
436
          <td class="md" valign="top">(&nbsp;</td>
 
437
          <td class="md" nowrap valign="top">double&nbsp;</td>
 
438
          <td class="mdname1" valign="top" nowrap> <em>value</em>          </td>
 
439
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
440
          <td class="md" nowrap> const<code> [protected, virtual]</code></td>
 
441
        </tr>
 
442
      </table>
 
443
    </td>
 
444
  </tr>
 
445
</table>
 
446
<table cellspacing="5" cellpadding="0" border="0">
 
447
  <tr>
 
448
    <td>
 
449
      &nbsp;
 
450
    </td>
 
451
    <td>
 
452
 
 
453
<p>
 
454
Map a value to a corresponding label <dl compact><dt><b>Parameters:</b></dt><dd>
 
455
  <table border="0" cellspacing="2" cellpadding="0">
 
456
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value that will be mapped </td></tr>
 
457
  </table>
 
458
</dl>
 
459
<dl compact><dt><b>Returns:</b></dt><dd>Label, or QString::null</dd></dl>
 
460
label() looks in a map for a corresponding label for value or return an null text. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#39b3cfa870ef0172b49d54fa2559a875">labelMap()</a>, <a class="el" href="class_qwt_compass.html#b0f2460851db3d5b7169fe0991fdb945">setLabelMap()</a> </dd></dl>
 
461
 
 
462
<p>
 
463
Reimplemented from <a class="el" href="class_qwt_dial.html#b91f5aa6c54349d735fe22acd4f5a2e1">QwtDial</a>.
 
464
<p>
 
465
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00297">297</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
466
  </tr>
 
467
</table>
 
468
<a class="anchor" name="b0f2460851db3d5b7169fe0991fdb945"></a><!-- doxytag: member="QwtCompass::setLabelMap" ref="b0f2460851db3d5b7169fe0991fdb945" args="(const QMap&lt; double, QString &gt; &amp;map)" --><p>
 
469
<table class="mdTable" cellpadding="2" cellspacing="0">
 
470
  <tr>
 
471
    <td class="mdRow">
 
472
      <table cellpadding="0" cellspacing="0" border="0">
 
473
        <tr>
 
474
          <td class="md" nowrap valign="top">void QwtCompass::setLabelMap           </td>
 
475
          <td class="md" valign="top">(&nbsp;</td>
 
476
          <td class="md" nowrap valign="top">const QMap&lt; double, QString &gt; &amp;&nbsp;</td>
 
477
          <td class="mdname1" valign="top" nowrap> <em>map</em>          </td>
 
478
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
479
          <td class="md" nowrap></td>
 
480
        </tr>
 
481
      </table>
 
482
    </td>
 
483
  </tr>
 
484
</table>
 
485
<table cellspacing="5" cellpadding="0" border="0">
 
486
  <tr>
 
487
    <td>
 
488
      &nbsp;
 
489
    </td>
 
490
    <td>
 
491
 
 
492
<p>
 
493
Set a map, mapping values to labels. 
 
494
<p>
 
495
<dl compact><dt><b>Parameters:</b></dt><dd>
 
496
  <table border="0" cellspacing="2" cellpadding="0">
 
497
    <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td>value to label map</td></tr>
 
498
  </table>
 
499
</dl>
 
500
The values of the major ticks are found by looking into this map. The default map consists of the labels N, NE, E, SE, S, SW, W, NW.<p>
 
501
<dl compact><dt><b>Warning:</b></dt><dd>The map will have no effect for values that are no major tick values. Major ticks can be changed by QwtScaleDraw::setScale</dd></dl>
 
502
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#39b3cfa870ef0172b49d54fa2559a875">labelMap()</a>, <a class="el" href="class_qwt_dial.html#4e51987ef0800ddbd36a0923535a2cdd">scaleDraw()</a>, <a class="el" href="class_qwt_dial.html#ec2d13245d2120c0b4b2d6ae1f52cf4f">setScale()</a> </dd></dl>
 
503
 
 
504
<p>
 
505
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00282">282</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.    </td>
 
506
  </tr>
 
507
</table>
 
508
<a class="anchor" name="06456c0c52107bfa8b1d1267fba5b86f"></a><!-- doxytag: member="QwtCompass::setRose" ref="06456c0c52107bfa8b1d1267fba5b86f" args="(QwtCompassRose *rose)" --><p>
 
509
<table class="mdTable" cellpadding="2" cellspacing="0">
 
510
  <tr>
 
511
    <td class="mdRow">
 
512
      <table cellpadding="0" cellspacing="0" border="0">
 
513
        <tr>
 
514
          <td class="md" nowrap valign="top">void QwtCompass::setRose           </td>
 
515
          <td class="md" valign="top">(&nbsp;</td>
 
516
          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_compass_rose.html">QwtCompassRose</a> *&nbsp;</td>
 
517
          <td class="mdname1" valign="top" nowrap> <em>rose</em>          </td>
 
518
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
519
          <td class="md" nowrap></td>
 
520
        </tr>
 
521
      </table>
 
522
    </td>
 
523
  </tr>
 
524
</table>
 
525
<table cellspacing="5" cellpadding="0" border="0">
 
526
  <tr>
 
527
    <td>
 
528
      &nbsp;
 
529
    </td>
 
530
    <td>
 
531
 
 
532
<p>
 
533
Set a rose for the compass <dl compact><dt><b>Parameters:</b></dt><dd>
 
534
  <table border="0" cellspacing="2" cellpadding="0">
 
535
    <tr><td valign="top"></td><td valign="top"><em>rose</em>&nbsp;</td><td>Compass rose </td></tr>
 
536
  </table>
 
537
</dl>
 
538
<dl compact><dt><b>Warning:</b></dt><dd>The rose will be deleted, when a different rose is set or in ~QwtCompass </dd></dl>
 
539
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_compass.html#99477d676bd866acd1a418615cba423b">rose()</a> </dd></dl>
 
540
 
 
541
<p>
 
542
Definition at line <a class="el" href="qwt__compass_8cpp-source.html#l00157">157</a> of file <a class="el" href="qwt__compass_8cpp-source.html">qwt_compass.cpp</a>.
 
543
<p>
 
544
References <a class="el" href="qwt__compass_8cpp-source.html#l00173">rose()</a>.    </td>
 
545
  </tr>
 
546
</table>
 
547
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:41:50 2007 for Qwt User's Guide by&nbsp;
 
548
<a href="http://www.doxygen.org/index.html">
 
549
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
550
</body>
 
551
</html>