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: QwtRoundScaleDraw Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.4.6 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>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="">
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="">
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.
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 &s)</a>, the scale can be drawn with the <a class="el" href="class_qwt_abstract_scale_draw.html#ca3c3a7499112f52616d0ee8518fa5a6">QwtAbstractScaleDraw::draw()</a> member.
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">
41
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#9c44d19488567825d826528b701587c8">QwtRoundScaleDraw</a> ()</td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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> &)</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#81583432e629cd8a14524b05fabb4731">~QwtRoundScaleDraw</a> ()</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> & </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> &other)</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#069d658989db2ad96f26b79a298f7d10">setRadius</a> (int radius)</td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#2eb03d12749a44f7ca8a8ff92514dd56">radius</a> () const </td></tr>
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 </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>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#536cdecd6046e4a8434e117c9cd5c180">moveCenter</a> (const QPoint &)</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#79346d7551aa877667a104863f9a198e">center</a> () const </td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </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>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#50f5d69dceab6ccf5e00bd2a7953d897">extent</a> (const QPen &, const QFont &) const </td></tr>
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 </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>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone</a> (QPainter *p) const </td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </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>
73
<hr><h2>Constructor & 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">
78
<table cellpadding="0" cellspacing="0" border="0">
80
<td class="md" nowrap valign="top">QwtRoundScaleDraw::QwtRoundScaleDraw </td>
81
<td class="md" valign="top">( </td>
82
<td class="mdname1" valign="top" nowrap> </td>
83
<td class="md" valign="top"> ) </td>
84
<td class="md" nowrap></td>
90
<table cellspacing="5" cellpadding="0" border="0">
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].
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>.
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>
107
<a class="anchor" name="d6237d352a7004166dacfe644bfc4308"></a><!-- doxytag: member="QwtRoundScaleDraw::QwtRoundScaleDraw" ref="d6237d352a7004166dacfe644bfc4308" args="(const QwtRoundScaleDraw &)" --><p>
108
<table class="mdTable" cellpadding="2" cellspacing="0">
111
<table cellpadding="0" cellspacing="0" border="0">
113
<td class="md" nowrap valign="top">QwtRoundScaleDraw::QwtRoundScaleDraw </td>
114
<td class="md" valign="top">( </td>
115
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> & </td>
116
<td class="mdname1" valign="top" nowrap> </td>
117
<td class="md" valign="top"> ) </td>
118
<td class="md" nowrap></td>
124
<table cellspacing="5" cellpadding="0" border="0">
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>.
138
References <a class="el" href="qwt__round__scale__draw_8h-source.html#l00059">d_data</a>. </td>
141
<a class="anchor" name="81583432e629cd8a14524b05fabb4731"></a><!-- doxytag: member="QwtRoundScaleDraw::~QwtRoundScaleDraw" ref="81583432e629cd8a14524b05fabb4731" args="()" --><p>
142
<table class="mdTable" cellpadding="2" cellspacing="0">
145
<table cellpadding="0" cellspacing="0" border="0">
147
<td class="md" nowrap valign="top">QwtRoundScaleDraw::~QwtRoundScaleDraw </td>
148
<td class="md" valign="top">( </td>
149
<td class="mdname1" valign="top" nowrap> </td>
150
<td class="md" valign="top"> ) </td>
151
<td class="md" nowrap><code> [virtual]</code></td>
157
<table cellspacing="5" cellpadding="0" border="0">
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>
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">
177
<table cellpadding="0" cellspacing="0" border="0">
179
<td class="md" nowrap valign="top">QPoint QwtRoundScaleDraw::center </td>
180
<td class="md" valign="top">( </td>
181
<td class="mdname1" valign="top" nowrap> </td>
182
<td class="md" valign="top"> ) </td>
183
<td class="md" nowrap> const</td>
189
<table cellspacing="5" cellpadding="0" border="0">
197
Get the center of the scale.
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>
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">
208
<table cellpadding="0" cellspacing="0" border="0">
210
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawBackbone </td>
211
<td class="md" valign="top">( </td>
212
<td class="md" nowrap valign="top">QPainter * </td>
213
<td class="mdname1" valign="top" nowrap> <em>painter</em> </td>
214
<td class="md" valign="top"> ) </td>
215
<td class="md" nowrap> const<code> [protected, virtual]</code></td>
221
<table cellspacing="5" cellpadding="0" border="0">
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> </td><td>Painter</td></tr>
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>
237
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#15994a6033e689c3acdb8d83ae4f2a1c">QwtAbstractScaleDraw</a>.
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>.
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>
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">
248
<table cellpadding="0" cellspacing="0" border="0">
250
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawLabel </td>
251
<td class="md" valign="top">( </td>
252
<td class="md" nowrap valign="top">QPainter * </td>
253
<td class="mdname" nowrap> <em>painter</em>, </td>
256
<td class="md" nowrap align="right"></td>
258
<td class="md" nowrap>double </td>
259
<td class="mdname" nowrap> <em>value</em></td>
263
<td class="md">) </td>
264
<td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
270
<table cellspacing="5" cellpadding="0" border="0">
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> </td><td>Painter </td></tr>
282
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value</td></tr>
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>
288
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#a78dc8bf05a0224450c947af54128d8d">QwtAbstractScaleDraw</a>.
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>.
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>
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">
299
<table cellpadding="0" cellspacing="0" border="0">
301
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawTick </td>
302
<td class="md" valign="top">( </td>
303
<td class="md" nowrap valign="top">QPainter * </td>
304
<td class="mdname" nowrap> <em>painter</em>, </td>
307
<td class="md" nowrap align="right"></td>
309
<td class="md" nowrap>double </td>
310
<td class="mdname" nowrap> <em>value</em>, </td>
313
<td class="md" nowrap align="right"></td>
315
<td class="md" nowrap>int </td>
316
<td class="mdname" nowrap> <em>len</em></td>
320
<td class="md">) </td>
321
<td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
327
<table cellspacing="5" cellpadding="0" border="0">
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> </td><td>Painter </td></tr>
339
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value of the tick </td></tr>
340
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Lenght of the tick</td></tr>
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>
346
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#4adcd2617a57eebfca522661fe89264c">QwtAbstractScaleDraw</a>.
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>.
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>
353
<a class="anchor" name="50f5d69dceab6ccf5e00bd2a7953d897"></a><!-- doxytag: member="QwtRoundScaleDraw::extent" ref="50f5d69dceab6ccf5e00bd2a7953d897" args="(const QPen &, const QFont &) const " --><p>
354
<table class="mdTable" cellpadding="2" cellspacing="0">
357
<table cellpadding="0" cellspacing="0" border="0">
359
<td class="md" nowrap valign="top">int QwtRoundScaleDraw::extent </td>
360
<td class="md" valign="top">( </td>
361
<td class="md" nowrap valign="top">const QPen & </td>
362
<td class="mdname" nowrap> <em>pen</em>, </td>
365
<td class="md" nowrap align="right"></td>
367
<td class="md" nowrap>const QFont & </td>
368
<td class="mdname" nowrap> <em>font</em></td>
372
<td class="md">) </td>
373
<td class="md" colspan="2"> const<code> [virtual]</code></td>
379
<table cellspacing="5" cellpadding="0" border="0">
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> </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> </td><td>Font used for painting the labels</td></tr>
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>
399
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#30d94435166524c011765fa75a1ed45f">QwtAbstractScaleDraw</a>.
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>.
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>.
405
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00536">QwtKnob::minimumSizeHint()</a>. </td>
408
<a class="anchor" name="536cdecd6046e4a8434e117c9cd5c180"></a><!-- doxytag: member="QwtRoundScaleDraw::moveCenter" ref="536cdecd6046e4a8434e117c9cd5c180" args="(const QPoint &)" --><p>
409
<table class="mdTable" cellpadding="2" cellspacing="0">
412
<table cellpadding="0" cellspacing="0" border="0">
414
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::moveCenter </td>
415
<td class="md" valign="top">( </td>
416
<td class="md" nowrap valign="top">const QPoint & </td>
417
<td class="mdname1" valign="top" nowrap> <em>center</em> </td>
418
<td class="md" valign="top"> ) </td>
419
<td class="md" nowrap></td>
425
<table cellspacing="5" cellpadding="0" border="0">
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> </td><td>New center </td></tr>
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>
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>
445
<a class="anchor" name="dc6fc2de0c09ea6b70258a129fecac3a"></a><!-- doxytag: member="QwtRoundScaleDraw::operator=" ref="dc6fc2de0c09ea6b70258a129fecac3a" args="(const QwtRoundScaleDraw &other)" --><p>
446
<table class="mdTable" cellpadding="2" cellspacing="0">
449
<table cellpadding="0" cellspacing="0" border="0">
451
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> & QwtRoundScaleDraw::operator= </td>
452
<td class="md" valign="top">( </td>
453
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> & </td>
454
<td class="mdname1" valign="top" nowrap> <em>other</em> </td>
455
<td class="md" valign="top"> ) </td>
456
<td class="md" nowrap></td>
462
<table cellspacing="5" cellpadding="0" border="0">
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>.
476
References <a class="el" href="qwt__round__scale__draw_8h-source.html#l00059">d_data</a>. </td>
479
<a class="anchor" name="2eb03d12749a44f7ca8a8ff92514dd56"></a><!-- doxytag: member="QwtRoundScaleDraw::radius" ref="2eb03d12749a44f7ca8a8ff92514dd56" args="() const " --><p>
480
<table class="mdTable" cellpadding="2" cellspacing="0">
483
<table cellpadding="0" cellspacing="0" border="0">
485
<td class="md" nowrap valign="top">int QwtRoundScaleDraw::radius </td>
486
<td class="md" valign="top">( </td>
487
<td class="mdname1" valign="top" nowrap> </td>
488
<td class="md" valign="top"> ) </td>
489
<td class="md" nowrap> const</td>
495
<table cellspacing="5" cellpadding="0" border="0">
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>
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>.
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>
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">
517
<table cellpadding="0" cellspacing="0" border="0">
519
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::setAngleRange </td>
520
<td class="md" valign="top">( </td>
521
<td class="md" nowrap valign="top">double </td>
522
<td class="mdname" nowrap> <em>angle1</em>, </td>
525
<td class="md" nowrap align="right"></td>
527
<td class="md" nowrap>double </td>
528
<td class="mdname" nowrap> <em>angle2</em></td>
532
<td class="md">) </td>
533
<td class="md" colspan="2"></td>
539
<table cellspacing="5" cellpadding="0" border="0">
547
Adjust the baseline circle segment for round scales.
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> </td><td></td></tr>
552
<tr><td valign="top"></td><td valign="top"><em>angle2</em> </td><td>boundaries of the angle interval in degrees. </td></tr>
555
<dl compact><dt><b>Warning:</b></dt><dd><ul>
557
The angle range is limited to [-360, 360] degrees. Angles exceeding this range will be clipped. </li>
559
For angles more than 359 degrees above or below min(angle1, angle2), scale marks will not be drawn. </li>
561
If you need a counterclockwise scale, use QwtScaleDiv::setRange </li>
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>.
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>.
570
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00134">QwtKnob::setTotalAngle()</a>. </td>
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">
577
<table cellpadding="0" cellspacing="0" border="0">
579
<td class="md" nowrap valign="top">void QwtRoundScaleDraw::setRadius </td>
580
<td class="md" valign="top">( </td>
581
<td class="md" nowrap valign="top">int </td>
582
<td class="mdname1" valign="top" nowrap> <em>radius</em> </td>
583
<td class="md" valign="top"> ) </td>
584
<td class="md" nowrap></td>
590
<table cellspacing="5" cellpadding="0" border="0">
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> </td><td>New Radius </td></tr>
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>
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>.
610
Referenced by <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00046">QwtRoundScaleDraw()</a>. </td>
613
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:42:52 2007 for Qwt User's Guide by
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>