~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_round_scale_draw.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: QwtRoundScaleDraw 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>QwtRoundScaleDraw Class Reference</h1><!-- doxytag: class="QwtRoundScaleDraw" --><!-- doxytag: inherits="QwtAbstractScaleDraw" -->Inheritance diagram for QwtRoundScaleDraw:<p><center><img src="class_qwt_round_scale_draw__inherit__graph.png" border="0" usemap="#_qwt_round_scale_draw__inherit__map" alt="Inheritance graph"></center>
 
23
<map name="_qwt_round_scale_draw__inherit__map">
 
24
<area href="class_qwt_dial_scale_draw.html" shape="rect" coords="20,157,151,181" alt="">
 
25
<area href="class_qwt_abstract_scale_draw.html" shape="rect" coords="7,8,164,32" alt="">
 
26
</map>
 
27
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtRoundScaleDraw:<p><center><img src="class_qwt_round_scale_draw__coll__graph.png" border="0" usemap="#_qwt_round_scale_draw__coll__map" alt="Collaboration graph"></center>
 
28
<map name="_qwt_round_scale_draw__coll__map">
 
29
<area href="class_qwt_abstract_scale_draw.html" shape="rect" coords="7,8,164,32" alt="">
 
30
</map>
 
31
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_round_scale_draw-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
 
32
A class for drawing round scales. 
 
33
<p>
 
34
<a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> can be used to draw round scales. The circle segment can be adjusted by <a class="el" href="class_qwt_round_scale_draw.html#5d85678fdb9fbb4d622425aab9ecc681">QwtRoundScaleDraw::setAngleRange()</a>. The geometry of the scale can be specified with <a class="el" href="class_qwt_round_scale_draw.html#fe2226d225c3d7f50a85a80c86f5eb6e">QwtRoundScaleDraw::moveCenter()</a> and <a class="el" href="class_qwt_round_scale_draw.html#069d658989db2ad96f26b79a298f7d10">QwtRoundScaleDraw::setRadius()</a>.<p>
 
35
After a scale division has been specified as a <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> object using <a class="el" href="class_qwt_abstract_scale_draw.html#4399aac94a294f5ed6c52114dde00d2f">QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &amp;s)</a>, the scale can be drawn with the <a class="el" href="class_qwt_abstract_scale_draw.html#ca3c3a7499112f52616d0ee8518fa5a6">QwtAbstractScaleDraw::draw()</a> member. 
 
36
<p>
 
37
 
 
38
<p>
 
39
Definition at line <a class="el" href="qwt__round__scale__draw_8h-source.html#l00032">32</a> of file <a class="el" href="qwt__round__scale__draw_8h-source.html">qwt_round_scale_draw.h</a>.<table border="0" cellpadding="0" cellspacing="0">
 
40
<tr><td></td></tr>
 
41
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#9c44d19488567825d826528b701587c8">QwtRoundScaleDraw</a> ()</td></tr>
 
43
 
 
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#d6237d352a7004166dacfe644bfc4308">QwtRoundScaleDraw</a> (const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp;)</td></tr>
 
45
 
 
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#81583432e629cd8a14524b05fabb4731">~QwtRoundScaleDraw</a> ()</td></tr>
 
47
 
 
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#dc6fc2de0c09ea6b70258a129fecac3a">operator=</a> (const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp;other)</td></tr>
 
49
 
 
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#069d658989db2ad96f26b79a298f7d10">setRadius</a> (int radius)</td></tr>
 
51
 
 
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#2eb03d12749a44f7ca8a8ff92514dd56">radius</a> () const </td></tr>
 
53
 
 
54
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe2226d225c3d7f50a85a80c86f5eb6e"></a><!-- doxytag: member="QwtRoundScaleDraw::moveCenter" ref="fe2226d225c3d7f50a85a80c86f5eb6e" args="(int x, int y)" -->
 
55
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#fe2226d225c3d7f50a85a80c86f5eb6e">moveCenter</a> (int x, int y)</td></tr>
 
56
 
 
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#536cdecd6046e4a8434e117c9cd5c180">moveCenter</a> (const QPoint &amp;)</td></tr>
 
58
 
 
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#79346d7551aa877667a104863f9a198e">center</a> () const </td></tr>
 
60
 
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#5d85678fdb9fbb4d622425aab9ecc681">setAngleRange</a> (double angle1, double angle2)</td></tr>
 
62
 
 
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#50f5d69dceab6ccf5e00bd2a7953d897">extent</a> (const QPen &amp;, const QFont &amp;) const </td></tr>
 
64
 
 
65
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
 
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#a4f77a6cbb019ca42f857bf2019acff2">drawTick</a> (QPainter *p, double val, int len) const </td></tr>
 
67
 
 
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone</a> (QPainter *p) const </td></tr>
 
69
 
 
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#a43bf3624c464727bb4f0cab28c3f6fe">drawLabel</a> (QPainter *p, double val) const </td></tr>
 
71
 
 
72
</table>
 
73
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
74
<a class="anchor" name="9c44d19488567825d826528b701587c8"></a><!-- doxytag: member="QwtRoundScaleDraw::QwtRoundScaleDraw" ref="9c44d19488567825d826528b701587c8" args="()" --><p>
 
75
<table class="mdTable" cellpadding="2" cellspacing="0">
 
76
  <tr>
 
77
    <td class="mdRow">
 
78
      <table cellpadding="0" cellspacing="0" border="0">
 
79
        <tr>
 
80
          <td class="md" nowrap valign="top">QwtRoundScaleDraw::QwtRoundScaleDraw           </td>
 
81
          <td class="md" valign="top">(&nbsp;</td>
 
82
          <td class="mdname1" valign="top" nowrap>          </td>
 
83
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
84
          <td class="md" nowrap></td>
 
85
        </tr>
 
86
      </table>
 
87
    </td>
 
88
  </tr>
 
89
</table>
 
90
<table cellspacing="5" cellpadding="0" border="0">
 
91
  <tr>
 
92
    <td>
 
93
      &nbsp;
 
94
    </td>
 
95
    <td>
 
96
 
 
97
<p>
 
98
Constructor. 
 
99
<p>
 
100
The range of the scale is initialized to [0, 100], The center is set to (50, 50) with a radius of 50. The angle range is set to [-135, 135]. 
 
101
<p>
 
102
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00046">46</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
103
<p>
 
104
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00131">QwtAbstractScaleDraw::scaleMap()</a>, <a class="el" href="qwt__scale__map_8cpp-source.html#l00180">QwtScaleMap::setPaintInterval()</a>, and <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00084">setRadius()</a>.    </td>
 
105
  </tr>
 
106
</table>
 
107
<a class="anchor" name="d6237d352a7004166dacfe644bfc4308"></a><!-- doxytag: member="QwtRoundScaleDraw::QwtRoundScaleDraw" ref="d6237d352a7004166dacfe644bfc4308" args="(const QwtRoundScaleDraw &amp;)" --><p>
 
108
<table class="mdTable" cellpadding="2" cellspacing="0">
 
109
  <tr>
 
110
    <td class="mdRow">
 
111
      <table cellpadding="0" cellspacing="0" border="0">
 
112
        <tr>
 
113
          <td class="md" nowrap valign="top">QwtRoundScaleDraw::QwtRoundScaleDraw           </td>
 
114
          <td class="md" valign="top">(&nbsp;</td>
 
115
          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp;&nbsp;</td>
 
116
          <td class="mdname1" valign="top" nowrap>          </td>
 
117
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
118
          <td class="md" nowrap></td>
 
119
        </tr>
 
120
      </table>
 
121
    </td>
 
122
  </tr>
 
123
</table>
 
124
<table cellspacing="5" cellpadding="0" border="0">
 
125
  <tr>
 
126
    <td>
 
127
      &nbsp;
 
128
    </td>
 
129
    <td>
 
130
 
 
131
<p>
 
132
Copy constructor. 
 
133
<p>
 
134
 
 
135
<p>
 
136
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00055">55</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
137
<p>
 
138
References <a class="el" href="qwt__round__scale__draw_8h-source.html#l00059">d_data</a>.    </td>
 
139
  </tr>
 
140
</table>
 
141
<a class="anchor" name="81583432e629cd8a14524b05fabb4731"></a><!-- doxytag: member="QwtRoundScaleDraw::~QwtRoundScaleDraw" ref="81583432e629cd8a14524b05fabb4731" args="()" --><p>
 
142
<table class="mdTable" cellpadding="2" cellspacing="0">
 
143
  <tr>
 
144
    <td class="mdRow">
 
145
      <table cellpadding="0" cellspacing="0" border="0">
 
146
        <tr>
 
147
          <td class="md" nowrap valign="top">QwtRoundScaleDraw::~QwtRoundScaleDraw           </td>
 
148
          <td class="md" valign="top">(&nbsp;</td>
 
149
          <td class="mdname1" valign="top" nowrap>          </td>
 
150
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
151
          <td class="md" nowrap><code> [virtual]</code></td>
 
152
        </tr>
 
153
      </table>
 
154
    </td>
 
155
  </tr>
 
156
</table>
 
157
<table cellspacing="5" cellpadding="0" border="0">
 
158
  <tr>
 
159
    <td>
 
160
      &nbsp;
 
161
    </td>
 
162
    <td>
 
163
 
 
164
<p>
 
165
Destructor. 
 
166
<p>
 
167
 
 
168
<p>
 
169
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00063">63</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.    </td>
 
170
  </tr>
 
171
</table>
 
172
<hr><h2>Member Function Documentation</h2>
 
173
<a class="anchor" name="79346d7551aa877667a104863f9a198e"></a><!-- doxytag: member="QwtRoundScaleDraw::center" ref="79346d7551aa877667a104863f9a198e" args="() const " --><p>
 
174
<table class="mdTable" cellpadding="2" cellspacing="0">
 
175
  <tr>
 
176
    <td class="mdRow">
 
177
      <table cellpadding="0" cellspacing="0" border="0">
 
178
        <tr>
 
179
          <td class="md" nowrap valign="top">QPoint QwtRoundScaleDraw::center           </td>
 
180
          <td class="md" valign="top">(&nbsp;</td>
 
181
          <td class="mdname1" valign="top" nowrap>          </td>
 
182
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
183
          <td class="md" nowrap> const</td>
 
184
        </tr>
 
185
      </table>
 
186
    </td>
 
187
  </tr>
 
188
</table>
 
189
<table cellspacing="5" cellpadding="0" border="0">
 
190
  <tr>
 
191
    <td>
 
192
      &nbsp;
 
193
    </td>
 
194
    <td>
 
195
 
 
196
<p>
 
197
Get the center of the scale. 
 
198
<p>
 
199
 
 
200
<p>
 
201
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00113">113</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.    </td>
 
202
  </tr>
 
203
</table>
 
204
<a class="anchor" name="845dc48b006ee168415112f39e80da09"></a><!-- doxytag: member="QwtRoundScaleDraw::drawBackbone" ref="845dc48b006ee168415112f39e80da09" args="(QPainter *p) const " --><p>
 
205
<table class="mdTable" cellpadding="2" cellspacing="0">
 
206
  <tr>
 
207
    <td class="mdRow">
 
208
      <table cellpadding="0" cellspacing="0" border="0">
 
209
        <tr>
 
210
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawBackbone           </td>
 
211
          <td class="md" valign="top">(&nbsp;</td>
 
212
          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>
 
213
          <td class="mdname1" valign="top" nowrap> <em>painter</em>          </td>
 
214
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
215
          <td class="md" nowrap> const<code> [protected, virtual]</code></td>
 
216
        </tr>
 
217
      </table>
 
218
    </td>
 
219
  </tr>
 
220
</table>
 
221
<table cellspacing="5" cellpadding="0" border="0">
 
222
  <tr>
 
223
    <td>
 
224
      &nbsp;
 
225
    </td>
 
226
    <td>
 
227
 
 
228
<p>
 
229
Draws the baseline of the scale <dl compact><dt><b>Parameters:</b></dt><dd>
 
230
  <table border="0" cellspacing="2" cellpadding="0">
 
231
    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter</td></tr>
 
232
  </table>
 
233
</dl>
 
234
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#a4f77a6cbb019ca42f857bf2019acff2">drawTick()</a>, <a class="el" href="class_qwt_round_scale_draw.html#a43bf3624c464727bb4f0cab28c3f6fe">drawLabel()</a> </dd></dl>
 
235
 
 
236
<p>
 
237
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#15994a6033e689c3acdb8d83ae4f2a1c">QwtAbstractScaleDraw</a>.
 
238
<p>
 
239
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00241">241</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
240
<p>
 
241
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, and <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>.    </td>
 
242
  </tr>
 
243
</table>
 
244
<a class="anchor" name="a43bf3624c464727bb4f0cab28c3f6fe"></a><!-- doxytag: member="QwtRoundScaleDraw::drawLabel" ref="a43bf3624c464727bb4f0cab28c3f6fe" args="(QPainter *p, double val) const " --><p>
 
245
<table class="mdTable" cellpadding="2" cellspacing="0">
 
246
  <tr>
 
247
    <td class="mdRow">
 
248
      <table cellpadding="0" cellspacing="0" border="0">
 
249
        <tr>
 
250
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawLabel           </td>
 
251
          <td class="md" valign="top">(&nbsp;</td>
 
252
          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>
 
253
          <td class="mdname" nowrap> <em>painter</em>, </td>
 
254
        </tr>
 
255
        <tr>
 
256
          <td class="md" nowrap align="right"></td>
 
257
          <td class="md"></td>
 
258
          <td class="md" nowrap>double&nbsp;</td>
 
259
          <td class="mdname" nowrap> <em>value</em></td>
 
260
        </tr>
 
261
        <tr>
 
262
          <td class="md"></td>
 
263
          <td class="md">)&nbsp;</td>
 
264
          <td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
 
265
        </tr>
 
266
      </table>
 
267
    </td>
 
268
  </tr>
 
269
</table>
 
270
<table cellspacing="5" cellpadding="0" border="0">
 
271
  <tr>
 
272
    <td>
 
273
      &nbsp;
 
274
    </td>
 
275
    <td>
 
276
 
 
277
<p>
 
278
Draws the label for a major scale tick<p>
 
279
<dl compact><dt><b>Parameters:</b></dt><dd>
 
280
  <table border="0" cellspacing="2" cellpadding="0">
 
281
    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter </td></tr>
 
282
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value</td></tr>
 
283
  </table>
 
284
</dl>
 
285
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#a4f77a6cbb019ca42f857bf2019acff2">drawTick()</a>, <a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone()</a> </dd></dl>
 
286
 
 
287
<p>
 
288
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#a78dc8bf05a0224450c947af54128d8d">QwtAbstractScaleDraw</a>.
 
289
<p>
 
290
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00162">162</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
291
<p>
 
292
References <a class="el" href="qwt__text_8cpp-source.html#l00564">QwtText::draw()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00359">QwtAbstractScaleDraw::label()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00344">QwtAbstractScaleDraw::majTickLength()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00262">QwtAbstractScaleDraw::spacing()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.    </td>
 
293
  </tr>
 
294
</table>
 
295
<a class="anchor" name="a4f77a6cbb019ca42f857bf2019acff2"></a><!-- doxytag: member="QwtRoundScaleDraw::drawTick" ref="a4f77a6cbb019ca42f857bf2019acff2" args="(QPainter *p, double val, int len) const " --><p>
 
296
<table class="mdTable" cellpadding="2" cellspacing="0">
 
297
  <tr>
 
298
    <td class="mdRow">
 
299
      <table cellpadding="0" cellspacing="0" border="0">
 
300
        <tr>
 
301
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawTick           </td>
 
302
          <td class="md" valign="top">(&nbsp;</td>
 
303
          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>
 
304
          <td class="mdname" nowrap> <em>painter</em>, </td>
 
305
        </tr>
 
306
        <tr>
 
307
          <td class="md" nowrap align="right"></td>
 
308
          <td class="md"></td>
 
309
          <td class="md" nowrap>double&nbsp;</td>
 
310
          <td class="mdname" nowrap> <em>value</em>, </td>
 
311
        </tr>
 
312
        <tr>
 
313
          <td class="md" nowrap align="right"></td>
 
314
          <td class="md"></td>
 
315
          <td class="md" nowrap>int&nbsp;</td>
 
316
          <td class="mdname" nowrap> <em>len</em></td>
 
317
        </tr>
 
318
        <tr>
 
319
          <td class="md"></td>
 
320
          <td class="md">)&nbsp;</td>
 
321
          <td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
 
322
        </tr>
 
323
      </table>
 
324
    </td>
 
325
  </tr>
 
326
</table>
 
327
<table cellspacing="5" cellpadding="0" border="0">
 
328
  <tr>
 
329
    <td>
 
330
      &nbsp;
 
331
    </td>
 
332
    <td>
 
333
 
 
334
<p>
 
335
Draw a tick<p>
 
336
<dl compact><dt><b>Parameters:</b></dt><dd>
 
337
  <table border="0" cellspacing="2" cellpadding="0">
 
338
    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter </td></tr>
 
339
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value of the tick </td></tr>
 
340
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Lenght of the tick</td></tr>
 
341
  </table>
 
342
</dl>
 
343
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone()</a>, <a class="el" href="class_qwt_round_scale_draw.html#a43bf3624c464727bb4f0cab28c3f6fe">drawLabel()</a> </dd></dl>
 
344
 
 
345
<p>
 
346
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#4adcd2617a57eebfca522661fe89264c">QwtAbstractScaleDraw</a>.
 
347
<p>
 
348
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00207">207</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
349
<p>
 
350
References <a class="el" href="qwt__painter_8cpp-source.html#l00438">QwtPainter::drawLine()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.    </td>
 
351
  </tr>
 
352
</table>
 
353
<a class="anchor" name="50f5d69dceab6ccf5e00bd2a7953d897"></a><!-- doxytag: member="QwtRoundScaleDraw::extent" ref="50f5d69dceab6ccf5e00bd2a7953d897" args="(const QPen &amp;, const QFont &amp;) const " --><p>
 
354
<table class="mdTable" cellpadding="2" cellspacing="0">
 
355
  <tr>
 
356
    <td class="mdRow">
 
357
      <table cellpadding="0" cellspacing="0" border="0">
 
358
        <tr>
 
359
          <td class="md" nowrap valign="top">int QwtRoundScaleDraw::extent           </td>
 
360
          <td class="md" valign="top">(&nbsp;</td>
 
361
          <td class="md" nowrap valign="top">const QPen &amp;&nbsp;</td>
 
362
          <td class="mdname" nowrap> <em>pen</em>, </td>
 
363
        </tr>
 
364
        <tr>
 
365
          <td class="md" nowrap align="right"></td>
 
366
          <td class="md"></td>
 
367
          <td class="md" nowrap>const QFont &amp;&nbsp;</td>
 
368
          <td class="mdname" nowrap> <em>font</em></td>
 
369
        </tr>
 
370
        <tr>
 
371
          <td class="md"></td>
 
372
          <td class="md">)&nbsp;</td>
 
373
          <td class="md" colspan="2"> const<code> [virtual]</code></td>
 
374
        </tr>
 
375
      </table>
 
376
    </td>
 
377
  </tr>
 
378
</table>
 
379
<table cellspacing="5" cellpadding="0" border="0">
 
380
  <tr>
 
381
    <td>
 
382
      &nbsp;
 
383
    </td>
 
384
    <td>
 
385
 
 
386
<p>
 
387
Calculate the extent of the scale<p>
 
388
The extent is the distcance between the baseline to the outermost pixel of the scale draw. <a class="el" href="class_qwt_round_scale_draw.html#2eb03d12749a44f7ca8a8ff92514dd56">radius()</a> + <a class="el" href="class_qwt_round_scale_draw.html#50f5d69dceab6ccf5e00bd2a7953d897">extent()</a> is an upper limit for the radius of the bounding circle.<p>
 
389
<dl compact><dt><b>Parameters:</b></dt><dd>
 
390
  <table border="0" cellspacing="2" cellpadding="0">
 
391
    <tr><td valign="top"></td><td valign="top"><em>pen</em>&nbsp;</td><td>Pen that is used for painting backbone and ticks </td></tr>
 
392
    <tr><td valign="top"></td><td valign="top"><em>font</em>&nbsp;</td><td>Font used for painting the labels</td></tr>
 
393
  </table>
 
394
</dl>
 
395
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_scale_draw.html#2a9633476aa1c99e25fa07d87db3e415">setMinimumExtent()</a>, <a class="el" href="class_qwt_abstract_scale_draw.html#f7b927390d71f291fa03186eff79e201">minimumExtent()</a> </dd></dl>
 
396
<dl compact><dt><b>Warning:</b></dt><dd>The implemented algo is not too smart and calculates only an upper limit, that might be a few pixels too large </dd></dl>
 
397
 
 
398
<p>
 
399
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#30d94435166524c011765fa75a1ed45f">QwtAbstractScaleDraw</a>.
 
400
<p>
 
401
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00269">269</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
402
<p>
 
403
References <a class="el" href="qwt__scale__div_8cpp-source.html#l00106">QwtScaleDiv::contains()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00359">QwtAbstractScaleDraw::label()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00137">QwtAbstractScaleDraw::scaleDiv()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>, <a class="el" href="qwt__scale__div_8cpp-source.html#l00139">QwtScaleDiv::ticks()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.
 
404
<p>
 
405
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00536">QwtKnob::minimumSizeHint()</a>.    </td>
 
406
  </tr>
 
407
</table>
 
408
<a class="anchor" name="536cdecd6046e4a8434e117c9cd5c180"></a><!-- doxytag: member="QwtRoundScaleDraw::moveCenter" ref="536cdecd6046e4a8434e117c9cd5c180" args="(const QPoint &amp;)" --><p>
 
409
<table class="mdTable" cellpadding="2" cellspacing="0">
 
410
  <tr>
 
411
    <td class="mdRow">
 
412
      <table cellpadding="0" cellspacing="0" border="0">
 
413
        <tr>
 
414
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::moveCenter           </td>
 
415
          <td class="md" valign="top">(&nbsp;</td>
 
416
          <td class="md" nowrap valign="top">const QPoint &amp;&nbsp;</td>
 
417
          <td class="mdname1" valign="top" nowrap> <em>center</em>          </td>
 
418
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
419
          <td class="md" nowrap></td>
 
420
        </tr>
 
421
      </table>
 
422
    </td>
 
423
  </tr>
 
424
</table>
 
425
<table cellspacing="5" cellpadding="0" border="0">
 
426
  <tr>
 
427
    <td>
 
428
      &nbsp;
 
429
    </td>
 
430
    <td>
 
431
 
 
432
<p>
 
433
Move the center of the scale draw, leaving the radius unchanged<p>
 
434
<dl compact><dt><b>Parameters:</b></dt><dd>
 
435
  <table border="0" cellspacing="2" cellpadding="0">
 
436
    <tr><td valign="top"></td><td valign="top"><em>center</em>&nbsp;</td><td>New center </td></tr>
 
437
  </table>
 
438
</dl>
 
439
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#069d658989db2ad96f26b79a298f7d10">setRadius</a> </dd></dl>
 
440
 
 
441
<p>
 
442
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00107">107</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.    </td>
 
443
  </tr>
 
444
</table>
 
445
<a class="anchor" name="dc6fc2de0c09ea6b70258a129fecac3a"></a><!-- doxytag: member="QwtRoundScaleDraw::operator=" ref="dc6fc2de0c09ea6b70258a129fecac3a" args="(const QwtRoundScaleDraw &amp;other)" --><p>
 
446
<table class="mdTable" cellpadding="2" cellspacing="0">
 
447
  <tr>
 
448
    <td class="mdRow">
 
449
      <table cellpadding="0" cellspacing="0" border="0">
 
450
        <tr>
 
451
          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp; QwtRoundScaleDraw::operator=           </td>
 
452
          <td class="md" valign="top">(&nbsp;</td>
 
453
          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> &amp;&nbsp;</td>
 
454
          <td class="mdname1" valign="top" nowrap> <em>other</em>          </td>
 
455
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
456
          <td class="md" nowrap></td>
 
457
        </tr>
 
458
      </table>
 
459
    </td>
 
460
  </tr>
 
461
</table>
 
462
<table cellspacing="5" cellpadding="0" border="0">
 
463
  <tr>
 
464
    <td>
 
465
      &nbsp;
 
466
    </td>
 
467
    <td>
 
468
 
 
469
<p>
 
470
Assignment operator. 
 
471
<p>
 
472
 
 
473
<p>
 
474
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00069">69</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
475
<p>
 
476
References <a class="el" href="qwt__round__scale__draw_8h-source.html#l00059">d_data</a>.    </td>
 
477
  </tr>
 
478
</table>
 
479
<a class="anchor" name="2eb03d12749a44f7ca8a8ff92514dd56"></a><!-- doxytag: member="QwtRoundScaleDraw::radius" ref="2eb03d12749a44f7ca8a8ff92514dd56" args="() const " --><p>
 
480
<table class="mdTable" cellpadding="2" cellspacing="0">
 
481
  <tr>
 
482
    <td class="mdRow">
 
483
      <table cellpadding="0" cellspacing="0" border="0">
 
484
        <tr>
 
485
          <td class="md" nowrap valign="top">int QwtRoundScaleDraw::radius           </td>
 
486
          <td class="md" valign="top">(&nbsp;</td>
 
487
          <td class="mdname1" valign="top" nowrap>          </td>
 
488
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
489
          <td class="md" nowrap> const</td>
 
490
        </tr>
 
491
      </table>
 
492
    </td>
 
493
  </tr>
 
494
</table>
 
495
<table cellspacing="5" cellpadding="0" border="0">
 
496
  <tr>
 
497
    <td>
 
498
      &nbsp;
 
499
    </td>
 
500
    <td>
 
501
 
 
502
<p>
 
503
Get the radius<p>
 
504
Radius is the radius of the backbone without ticks and labels.<p>
 
505
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#069d658989db2ad96f26b79a298f7d10">setRadius()</a>, <a class="el" href="class_qwt_round_scale_draw.html#50f5d69dceab6ccf5e00bd2a7953d897">extent()</a> </dd></dl>
 
506
 
 
507
<p>
 
508
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">96</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
509
<p>
 
510
Referenced by <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00241">drawBackbone()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00162">drawLabel()</a>, and <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00207">drawTick()</a>.    </td>
 
511
  </tr>
 
512
</table>
 
513
<a class="anchor" name="5d85678fdb9fbb4d622425aab9ecc681"></a><!-- doxytag: member="QwtRoundScaleDraw::setAngleRange" ref="5d85678fdb9fbb4d622425aab9ecc681" args="(double angle1, double angle2)" --><p>
 
514
<table class="mdTable" cellpadding="2" cellspacing="0">
 
515
  <tr>
 
516
    <td class="mdRow">
 
517
      <table cellpadding="0" cellspacing="0" border="0">
 
518
        <tr>
 
519
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::setAngleRange           </td>
 
520
          <td class="md" valign="top">(&nbsp;</td>
 
521
          <td class="md" nowrap valign="top">double&nbsp;</td>
 
522
          <td class="mdname" nowrap> <em>angle1</em>, </td>
 
523
        </tr>
 
524
        <tr>
 
525
          <td class="md" nowrap align="right"></td>
 
526
          <td class="md"></td>
 
527
          <td class="md" nowrap>double&nbsp;</td>
 
528
          <td class="mdname" nowrap> <em>angle2</em></td>
 
529
        </tr>
 
530
        <tr>
 
531
          <td class="md"></td>
 
532
          <td class="md">)&nbsp;</td>
 
533
          <td class="md" colspan="2"></td>
 
534
        </tr>
 
535
      </table>
 
536
    </td>
 
537
  </tr>
 
538
</table>
 
539
<table cellspacing="5" cellpadding="0" border="0">
 
540
  <tr>
 
541
    <td>
 
542
      &nbsp;
 
543
    </td>
 
544
    <td>
 
545
 
 
546
<p>
 
547
Adjust the baseline circle segment for round scales. 
 
548
<p>
 
549
The baseline will be drawn from min(angle1,angle2) to max(angle1, angle2). The default setting is [ -135, 135 ]. An angle of 0 degrees corresponds to the 12 o'clock position, and positive angles count in a clockwise direction. <dl compact><dt><b>Parameters:</b></dt><dd>
 
550
  <table border="0" cellspacing="2" cellpadding="0">
 
551
    <tr><td valign="top"></td><td valign="top"><em>angle1</em>&nbsp;</td><td></td></tr>
 
552
    <tr><td valign="top"></td><td valign="top"><em>angle2</em>&nbsp;</td><td>boundaries of the angle interval in degrees. </td></tr>
 
553
  </table>
 
554
</dl>
 
555
<dl compact><dt><b>Warning:</b></dt><dd><ul>
 
556
<li>
 
557
The angle range is limited to [-360, 360] degrees. Angles exceeding this range will be clipped. </li>
 
558
<li>
 
559
For angles more than 359 degrees above or below min(angle1, angle2), scale marks will not be drawn. </li>
 
560
<li>
 
561
If you need a counterclockwise scale, use QwtScaleDiv::setRange </li>
 
562
</ul>
 
563
</dd></dl>
 
564
 
 
565
<p>
 
566
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00135">135</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
567
<p>
 
568
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00131">QwtAbstractScaleDraw::scaleMap()</a>, and <a class="el" href="qwt__scale__map_8cpp-source.html#l00180">QwtScaleMap::setPaintInterval()</a>.
 
569
<p>
 
570
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00134">QwtKnob::setTotalAngle()</a>.    </td>
 
571
  </tr>
 
572
</table>
 
573
<a class="anchor" name="069d658989db2ad96f26b79a298f7d10"></a><!-- doxytag: member="QwtRoundScaleDraw::setRadius" ref="069d658989db2ad96f26b79a298f7d10" args="(int radius)" --><p>
 
574
<table class="mdTable" cellpadding="2" cellspacing="0">
 
575
  <tr>
 
576
    <td class="mdRow">
 
577
      <table cellpadding="0" cellspacing="0" border="0">
 
578
        <tr>
 
579
          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::setRadius           </td>
 
580
          <td class="md" valign="top">(&nbsp;</td>
 
581
          <td class="md" nowrap valign="top">int&nbsp;</td>
 
582
          <td class="mdname1" valign="top" nowrap> <em>radius</em>          </td>
 
583
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
584
          <td class="md" nowrap></td>
 
585
        </tr>
 
586
      </table>
 
587
    </td>
 
588
  </tr>
 
589
</table>
 
590
<table cellspacing="5" cellpadding="0" border="0">
 
591
  <tr>
 
592
    <td>
 
593
      &nbsp;
 
594
    </td>
 
595
    <td>
 
596
 
 
597
<p>
 
598
Change of radius the scale<p>
 
599
Radius is the radius of the backbone without ticks and labels.<p>
 
600
<dl compact><dt><b>Parameters:</b></dt><dd>
 
601
  <table border="0" cellspacing="2" cellpadding="0">
 
602
    <tr><td valign="top"></td><td valign="top"><em>radius</em>&nbsp;</td><td>New Radius </td></tr>
 
603
  </table>
 
604
</dl>
 
605
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#fe2226d225c3d7f50a85a80c86f5eb6e">moveCenter</a> </dd></dl>
 
606
 
 
607
<p>
 
608
Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00084">84</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.
 
609
<p>
 
610
Referenced by <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00046">QwtRoundScaleDraw()</a>.    </td>
 
611
  </tr>
 
612
</table>
 
613
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:42:52 2007 for Qwt User's Guide by&nbsp;
 
614
<a href="http://www.doxygen.org/index.html">
 
615
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
616
</body>
 
617
</html>