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: QwtScaleDraw Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtScaleDraw Class Reference</h1><!-- doxytag: class="QwtScaleDraw" --><!-- doxytag: inherits="QwtAbstractScaleDraw" -->Inheritance diagram for QwtScaleDraw:<p><center><img src="class_qwt_scale_draw__inherit__graph.png" border="0" usemap="#_qwt_scale_draw__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_scale_draw__inherit__map">
24
<area href="class_qwt_abstract_scale_draw.html" shape="rect" coords="7,8,164,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtScaleDraw:<p><center><img src="class_qwt_scale_draw__coll__graph.png" border="0" usemap="#_qwt_scale_draw__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_scale_draw__coll__map">
28
<area href="class_qwt_abstract_scale_draw.html" shape="rect" coords="7,8,164,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_scale_draw-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
A class for drawing scales.
33
<a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> can be used to draw linear or logarithmic scales. A scale has a position, an alignment and a length, which can be specified . The labels can be rotated and aligned to the ticks using <a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation()</a> and <a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>.<p>
34
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#c4442d7480db1288971e7eac15142467">QwtAbstractScaleDraw::draw()</a> member.
38
Definition at line <a class="el" href="qwt__scale__draw_8h-source.html#l00030">30</a> of file <a class="el" href="qwt__scale__draw_8h-source.html">qwt_scale_draw.h</a>.<table border="0" cellpadding="0" cellspacing="0">
40
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Alignment</a> { <br>
42
<b>BottomScale</b>,
44
<b>TopScale</b>,
46
<b>LeftScale</b>,
48
<b>RightScale</b>
52
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#dbd01ba8d7f19fb3122f917b1c74145b">QwtScaleDraw</a> ()</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#eefb37bb1da64b582d310a046c0f9c83">QwtScaleDraw</a> (const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> &)</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#9c907c8fa27ec7312e78145e3050c599">~QwtScaleDraw</a> ()</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#c0616d79ee21083f7402ba0586ff2635">operator=</a> (const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> &other)</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_scale_draw.html#3d8ac98bc2a52dbc5df76e427b47753c">getBorderDistHint</a> (const QFont &, int &start, int &end) const</td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#1e60d584f563933afba119d443ba5b32">minLabelDist</a> (const QFont &) const </td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#ed2373becd1428c14eaa5412af45205a">minLength</a> (const QPen &, const QFont &) const</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#5cba775772b121b45cb10c120b3cf825">extent</a> (const QPen &, const QFont &) const</td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d301aed0c797c10f0104976d1a62ff69"></a><!-- doxytag: member="QwtScaleDraw::move" ref="d301aed0c797c10f0104976d1a62ff69" args="(int x, int y)" -->
70
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move</a> (int x, int y)</td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#751cfd2bb2a29b55b7ef540e9c2f97aa">move</a> (const QPoint &)</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength</a> (int length)</td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Alignment</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#89774ef071c6d66fae5843a13fe12bd5">alignment</a> () const</td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment</a> (<a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Alignment</a>)</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">Qt::Orientation </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#ba3a8530871137eb5f977e1eb3fe4975">orientation</a> () const</td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#9ed4b23c5b2652ac78d7278b32f9dfed">pos</a> () const</td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#6114863d3146c8ea021068865d0c4d82">length</a> () const</td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment</a> (<a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Qt::Alignment</a>)</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Qt::Alignment</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#112f0b9d3f718ea734f9a04b0a78bc0a">labelAlignment</a> () const</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation</a> (double rotation)</td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#209d371187a3ff3f895278703328b13d">labelRotation</a> () const</td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#b5fcdcbb4c3fe419e48efd3068ecd3e4">maxLabelHeight</a> (const QFont &) const </td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#b0c4ee29e81cee70e8a491e5ff80b8ff">maxLabelWidth</a> (const QFont &) const </td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#0c7357dcb326ccdfa4ac3b673332a4c3">labelPosition</a> (double val) const</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#3f21d4d404332f187609af632a592681">labelRect</a> (const QFont &, double val) const</td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#32d5c396cfc5020560c4ac2e47662a16">labelSize</a> (const QFont &, double val) const</td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#431f4de02ddd5f97f4db5eda01ee2651">boundingLabelRect</a> (const QFont &, double val) const</td></tr>
106
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top">QMatrix </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#a7b143ec69b0fe088b7532551bc23a23">labelMatrix</a> (const QPoint &, const QSize &) const </td></tr>
109
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#f43f429b72d4114b941f27207c4feaa5">drawTick</a> (QPainter *p, double val, int len) const</td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#3319e5adc50aaa49b31cd634760c6488">drawBackbone</a> (QPainter *p) const </td></tr>
113
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_draw.html#58f593910892d5f2957c70f9d1370e69">drawLabel</a> (QPainter *p, double val) const</td></tr>
116
<hr><h2>Member Enumeration Documentation</h2>
117
<a class="anchor" name="cd7ceeeac592ef08530788580b461c66"></a><!-- doxytag: member="QwtScaleDraw::Alignment" ref="cd7ceeeac592ef08530788580b461c66" args="" -->
118
<div class="memitem">
119
<div class="memproto">
120
<table class="memname">
122
<td class="memname">enum <a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">QwtScaleDraw::Alignment</a> </td>
129
Alignment of the scale draw <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#89774ef071c6d66fae5843a13fe12bd5">alignment()</a> </dd></dl>
132
Definition at line <a class="el" href="qwt__scale__draw_8h-source.html#l00037">37</a> of file <a class="el" href="qwt__scale__draw_8h-source.html">qwt_scale_draw.h</a>.
135
<hr><h2>Constructor & Destructor Documentation</h2>
136
<a class="anchor" name="dbd01ba8d7f19fb3122f917b1c74145b"></a><!-- doxytag: member="QwtScaleDraw::QwtScaleDraw" ref="dbd01ba8d7f19fb3122f917b1c74145b" args="()" -->
137
<div class="memitem">
138
<div class="memproto">
139
<table class="memname">
141
<td class="memname">QwtScaleDraw::QwtScaleDraw </td>
143
<td class="paramname"> </td>
144
<td> ) </td>
145
<td width="100%"></td>
154
The range of the scale is initialized to [0, 100], The position is at (0, 0) with a length of 100. The orientation is QwtAbstractScaleDraw::Bottom.
156
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00060">60</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
158
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00589">setLength()</a>.
161
<a class="anchor" name="eefb37bb1da64b582d310a046c0f9c83"></a><!-- doxytag: member="QwtScaleDraw::QwtScaleDraw" ref="eefb37bb1da64b582d310a046c0f9c83" args="(const QwtScaleDraw &)" -->
162
<div class="memitem">
163
<div class="memproto">
164
<table class="memname">
166
<td class="memname">QwtScaleDraw::QwtScaleDraw </td>
168
<td class="paramtype">const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> & </td>
169
<td class="paramname"> </td>
170
<td> ) </td>
171
<td width="100%"></td>
182
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00067">67</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
184
References <a class="el" href="qwt__scale__draw_8h-source.html#l00100">d_data</a>.
187
<a class="anchor" name="9c907c8fa27ec7312e78145e3050c599"></a><!-- doxytag: member="QwtScaleDraw::~QwtScaleDraw" ref="9c907c8fa27ec7312e78145e3050c599" args="()" -->
188
<div class="memitem">
189
<div class="memproto">
190
<table class="memname">
192
<td class="memname">QwtScaleDraw::~QwtScaleDraw </td>
194
<td class="paramname"> </td>
195
<td> ) </td>
196
<td width="100%"><code> [virtual]</code></td>
207
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00074">74</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
210
<hr><h2>Member Function Documentation</h2>
211
<a class="anchor" name="c0616d79ee21083f7402ba0586ff2635"></a><!-- doxytag: member="QwtScaleDraw::operator=" ref="c0616d79ee21083f7402ba0586ff2635" args="(const QwtScaleDraw &other)" -->
212
<div class="memitem">
213
<div class="memproto">
214
<table class="memname">
216
<td class="memname"><a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> & QwtScaleDraw::operator= </td>
218
<td class="paramtype">const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> & </td>
219
<td class="paramname"> <em>other</em> </td>
220
<td> ) </td>
221
<td width="100%"></td>
232
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00080">80</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
234
References <a class="el" href="qwt__scale__draw_8h-source.html#l00100">d_data</a>.
237
<a class="anchor" name="3d8ac98bc2a52dbc5df76e427b47753c"></a><!-- doxytag: member="QwtScaleDraw::getBorderDistHint" ref="3d8ac98bc2a52dbc5df76e427b47753c" args="(const QFont &, int &start, int &end) const" -->
238
<div class="memitem">
239
<div class="memproto">
240
<table class="memname">
242
<td class="memname">void QwtScaleDraw::getBorderDistHint </td>
244
<td class="paramtype">const QFont & </td>
245
<td class="paramname"> <em>font</em>, </td>
248
<td class="paramkey"></td>
250
<td class="paramtype">int & </td>
251
<td class="paramname"> <em>start</em>, </td>
254
<td class="paramkey"></td>
256
<td class="paramtype">int & </td>
257
<td class="paramname"> <em>end</em></td><td> </td>
262
<td></td><td></td><td width="100%"> const</td>
269
Determine the minimum border distance.
271
This member function returns the minimum space needed to draw the mark labels at the scale's endpoints.<p>
272
<dl compact><dt><b>Parameters:</b></dt><dd>
273
<table border="0" cellspacing="2" cellpadding="0">
274
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font </td></tr>
275
<tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>Start border distance </td></tr>
276
<tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>End border distance </td></tr>
281
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">139</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
283
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00099">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00126">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">orientation()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00138">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00160">QwtScaleDiv::ticks()</a>.
285
Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00604">QwtSlider::layoutSlider()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00242">QwtThermo::layoutThermo()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00835">QwtSlider::minimumSizeHint()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00318">minLength()</a>.
288
<a class="anchor" name="1e60d584f563933afba119d443ba5b32"></a><!-- doxytag: member="QwtScaleDraw::minLabelDist" ref="1e60d584f563933afba119d443ba5b32" args="(const QFont &) const " -->
289
<div class="memitem">
290
<div class="memproto">
291
<table class="memname">
293
<td class="memname">int QwtScaleDraw::minLabelDist </td>
295
<td class="paramtype">const QFont & </td>
296
<td class="paramname"> <em>font</em> </td>
297
<td> ) </td>
298
<td width="100%"> const</td>
305
Determine the minimum distance between two labels, that is necessary that the texts don't overlap.<p>
306
<dl compact><dt><b>Parameters:</b></dt><dd>
307
<table border="0" cellspacing="2" cellpadding="0">
308
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font </td></tr>
311
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The maximum width of a label</dd></dl>
312
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3d8ac98bc2a52dbc5df76e427b47753c">getBorderDistHint()</a> </dd></dl>
315
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">192</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
317
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00099">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00818">labelRotation()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">orientation()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00138">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00160">QwtScaleDiv::ticks()</a>.
319
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00318">minLength()</a>.
322
<a class="anchor" name="ed2373becd1428c14eaa5412af45205a"></a><!-- doxytag: member="QwtScaleDraw::minLength" ref="ed2373becd1428c14eaa5412af45205a" args="(const QPen &, const QFont &) const" -->
323
<div class="memitem">
324
<div class="memproto">
325
<table class="memname">
327
<td class="memname">int QwtScaleDraw::minLength </td>
329
<td class="paramtype">const QPen & </td>
330
<td class="paramname"> <em>pen</em>, </td>
333
<td class="paramkey"></td>
335
<td class="paramtype">const QFont & </td>
336
<td class="paramname"> <em>font</em></td><td> </td>
341
<td></td><td></td><td width="100%"> const</td>
348
Calculate the minimum length that is needed to draw the scale<p>
349
<dl compact><dt><b>Parameters:</b></dt><dd>
350
<table border="0" cellspacing="2" cellpadding="0">
351
<tr><td valign="top"></td><td valign="top"><em>pen</em> </td><td>Pen that is used for painting backbone and ticks </td></tr>
352
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font used for painting the labels</td></tr>
355
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#5cba775772b121b45cb10c120b3cf825">extent()</a> </dd></dl>
358
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00318">318</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
360
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">getBorderDistHint()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00099">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">minLabelDist()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00138">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00160">QwtScaleDiv::ticks()</a>.
362
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00814">QwtThermo::minimumSizeHint()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00835">QwtSlider::minimumSizeHint()</a>.
365
<a class="anchor" name="5cba775772b121b45cb10c120b3cf825"></a><!-- doxytag: member="QwtScaleDraw::extent" ref="5cba775772b121b45cb10c120b3cf825" args="(const QPen &, const QFont &) const" -->
366
<div class="memitem">
367
<div class="memproto">
368
<table class="memname">
370
<td class="memname">int QwtScaleDraw::extent </td>
372
<td class="paramtype">const QPen & </td>
373
<td class="paramname"> <em>pen</em>, </td>
376
<td class="paramkey"></td>
378
<td class="paramtype">const QFont & </td>
379
<td class="paramname"> <em>font</em></td><td> </td>
384
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
391
Calculate the width/height that is needed for a vertical/horizontal scale.<p>
392
The extent is calculated from the pen width of the backbone, the major tick length, the spacing and the maximum width/height of the labels.<p>
393
<dl compact><dt><b>Parameters:</b></dt><dd>
394
<table border="0" cellspacing="2" cellpadding="0">
395
<tr><td valign="top"></td><td valign="top"><em>pen</em> </td><td>Pen that is used for painting backbone and ticks </td></tr>
396
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font used for painting the labels</td></tr>
399
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#ed2373becd1428c14eaa5412af45205a">minLength()</a> </dd></dl>
402
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#99524bfda72b2b53de2b9d773259318b">QwtAbstractScaleDraw</a>.
404
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00280">280</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
406
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00099">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00345">QwtAbstractScaleDraw::majTickLength()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00897">maxLabelHeight()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00874">maxLabelWidth()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00293">QwtAbstractScaleDraw::minimumExtent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">orientation()</a>, and <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00263">QwtAbstractScaleDraw::spacing()</a>.
408
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00814">QwtThermo::minimumSizeHint()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00835">QwtSlider::minimumSizeHint()</a>.
411
<a class="anchor" name="751cfd2bb2a29b55b7ef540e9c2f97aa"></a><!-- doxytag: member="QwtScaleDraw::move" ref="751cfd2bb2a29b55b7ef540e9c2f97aa" args="(const QPoint &)" -->
412
<div class="memitem">
413
<div class="memproto">
414
<table class="memname">
416
<td class="memname">void QwtScaleDraw::move </td>
418
<td class="paramtype">const QPoint & </td>
419
<td class="paramname"> <em>pos</em> </td>
420
<td> ) </td>
421
<td width="100%"></td>
428
Move the position of the scale.
430
The meaning of the parameter pos depends on the alignment: <dl>
431
<dt>QwtScaleDraw::LeftScale </dt>
432
<dd>The origin is the topmost point of the backbone. The backbone is a vertical line. Scale marks and labels are drawn at the left of the backbone. </dd>
433
<dt>QwtScaleDraw::RightScale </dt>
434
<dd>The origin is the topmost point of the backbone. The backbone is a vertical line. Scale marks and labels are drawn at the right of the backbone. </dd>
435
<dt>QwtScaleDraw::TopScale </dt>
436
<dd>The origin is the leftmost point of the backbone. The backbone is a horizontal line. Scale marks and labels are drawn above the backbone. </dd>
437
<dt>QwtScaleDraw::BottomScale </dt>
438
<dd>The origin is the leftmost point of the backbone. The backbone is a horizontal line Scale marks and labels are drawn below the backbone. </dd>
441
<dl compact><dt><b>Parameters:</b></dt><dd>
442
<table border="0" cellspacing="2" cellpadding="0">
443
<tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>Origin of the scale</td></tr>
446
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#9ed4b23c5b2652ac78d7278b32f9dfed">pos()</a>, <a class="el" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength()</a> </dd></dl>
449
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00566">566</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
452
<a class="anchor" name="2094e09579671d0a8e4b14a636eba6ef"></a><!-- doxytag: member="QwtScaleDraw::setLength" ref="2094e09579671d0a8e4b14a636eba6ef" args="(int length)" -->
453
<div class="memitem">
454
<div class="memproto">
455
<table class="memname">
457
<td class="memname">void QwtScaleDraw::setLength </td>
459
<td class="paramtype">int </td>
460
<td class="paramname"> <em>length</em> </td>
461
<td> ) </td>
462
<td width="100%"></td>
469
Set the length of the backbone.<p>
470
The length doesn't include the space needed for overlapping labels.<p>
471
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move()</a>, <a class="el" href="class_qwt_scale_draw.html#1e60d584f563933afba119d443ba5b32">minLabelDist()</a> </dd></dl>
474
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00589">589</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
476
Referenced by <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00353">QwtPlotScaleItem::draw()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00604">QwtSlider::layoutSlider()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00242">QwtThermo::layoutThermo()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00359">QwtPlot::printScale()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00060">QwtScaleDraw()</a>.
479
<a class="anchor" name="89774ef071c6d66fae5843a13fe12bd5"></a><!-- doxytag: member="QwtScaleDraw::alignment" ref="89774ef071c6d66fae5843a13fe12bd5" args="() const" -->
480
<div class="memitem">
481
<div class="memproto">
482
<table class="memname">
484
<td class="memname"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">QwtScaleDraw::Alignment</a> QwtScaleDraw::alignment </td>
486
<td class="paramname"> </td>
487
<td> ) </td>
488
<td width="100%"> const</td>
495
Return alignment of the scale <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment()</a> </dd></dl>
498
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">91</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
500
Referenced by <a class="el" href="qwt__scale__widget_8cpp-source.html#l00217">QwtScaleWidget::alignment()</a>, <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00353">QwtPlotScaleItem::draw()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00507">drawBackbone()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00406">drawTick()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">labelPosition()</a>, <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00340">QwtPlotScaleItem::setAlignment()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00331">QwtSlider::setScaleDraw()</a>.
503
<a class="anchor" name="7a4de0055dc1358e55c3357366a54091"></a><!-- doxytag: member="QwtScaleDraw::setAlignment" ref="7a4de0055dc1358e55c3357366a54091" args="(Alignment)" -->
504
<div class="memitem">
505
<div class="memproto">
506
<table class="memname">
508
<td class="memname">void QwtScaleDraw::setAlignment </td>
510
<td class="paramtype"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Alignment</a> </td>
511
<td class="paramname"> <em>align</em> </td>
512
<td> ) </td>
513
<td width="100%"></td>
520
Set the alignment of the scale<p>
521
The default alignment is QwtScaleDraw::BottomScale <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#89774ef071c6d66fae5843a13fe12bd5">alignment()</a> </dd></dl>
524
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00102">102</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
526
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00242">QwtThermo::layoutThermo()</a>, <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00340">QwtPlotScaleItem::setAlignment()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00331">QwtSlider::setScaleDraw()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00321">QwtScaleWidget::setScaleDraw()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00224">QwtSlider::setScalePosition()</a>.
529
<a class="anchor" name="ba3a8530871137eb5f977e1eb3fe4975"></a><!-- doxytag: member="QwtScaleDraw::orientation" ref="ba3a8530871137eb5f977e1eb3fe4975" args="() const" -->
530
<div class="memitem">
531
<div class="memproto">
532
<table class="memname">
534
<td class="memname">Qt::Orientation QwtScaleDraw::orientation </td>
536
<td class="paramname"> </td>
537
<td> ) </td>
538
<td width="100%"> const</td>
545
Return the orientation<p>
546
TopScale, BottomScale are horizontal (Qt::Horizontal) scales, LeftScale, RightScale are vertical (Qt::Vertical) scales.<p>
547
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#89774ef071c6d66fae5843a13fe12bd5">alignment()</a> </dd></dl>
550
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">115</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
552
Referenced by <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00353">QwtPlotScaleItem::draw()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00602">QwtScaleWidget::drawColorBar()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00406">drawTick()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00280">extent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">getBorderDistHint()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">minLabelDist()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00359">QwtPlot::printScale()</a>, and <a class="el" href="qwt__plot__scaleitem_8cpp-source.html#l00443">QwtPlotScaleItem::updateScaleDiv()</a>.
555
<a class="anchor" name="9ed4b23c5b2652ac78d7278b32f9dfed"></a><!-- doxytag: member="QwtScaleDraw::pos" ref="9ed4b23c5b2652ac78d7278b32f9dfed" args="() const" -->
556
<div class="memitem">
557
<div class="memproto">
558
<table class="memname">
560
<td class="memname">QPoint QwtScaleDraw::pos </td>
562
<td class="paramname"> </td>
563
<td> ) </td>
564
<td width="100%"> const</td>
571
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Origin of the scale </dd></dl>
572
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move()</a>, <a class="el" href="class_qwt_scale_draw.html#6114863d3146c8ea021068865d0c4d82">length()</a> </dd></dl>
575
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">576</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
577
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00652">boundingLabelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00507">drawBackbone()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00617">drawLabel()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00406">drawTick()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00359">QwtPlot::printScale()</a>.
580
<a class="anchor" name="6114863d3146c8ea021068865d0c4d82"></a><!-- doxytag: member="QwtScaleDraw::length" ref="6114863d3146c8ea021068865d0c4d82" args="() const" -->
581
<div class="memitem">
582
<div class="memproto">
583
<table class="memname">
585
<td class="memname">int QwtScaleDraw::length </td>
587
<td class="paramname"> </td>
588
<td> ) </td>
589
<td width="100%"> const</td>
596
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the length of the backbone </dd></dl>
597
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength()</a>, <a class="el" href="class_qwt_scale_draw.html#9ed4b23c5b2652ac78d7278b32f9dfed">pos()</a> </dd></dl>
600
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00604">604</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
602
Referenced by <a class="el" href="qwt__plot__print_8cpp-source.html#l00359">QwtPlot::printScale()</a>.
605
<a class="anchor" name="3df0a1fe4a498ef028a5348e54bfaa7f"></a><!-- doxytag: member="QwtScaleDraw::setLabelAlignment" ref="3df0a1fe4a498ef028a5348e54bfaa7f" args="(Qt::Alignment)" -->
606
<div class="memitem">
607
<div class="memproto">
608
<table class="memname">
610
<td class="memname">void QwtScaleDraw::setLabelAlignment </td>
612
<td class="paramtype"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Qt::Alignment</a> </td>
613
<td class="paramname"> <em>alignment</em> </td>
614
<td> ) </td>
615
<td width="100%"></td>
622
Change the label flags.
624
Labels are aligned to the point ticklength + spacing away from the backbone.<p>
625
The alignment is relative to the orientation of the label text. In case of an flags of 0 the label will be aligned depending on the orientation of the scale:<p>
626
QwtScaleDraw::TopScale: Qt::AlignHCenter | Qt::AlignTop<br>
627
QwtScaleDraw::BottomScale: Qt::AlignHCenter | Qt::AlignBottom<br>
628
QwtScaleDraw::LeftScale: Qt::AlignLeft | Qt::AlignVCenter<br>
629
QwtScaleDraw::RightScale: Qt::AlignRight | Qt::AlignVCenter<br>
631
Changing the alignment is often necessary for rotated labels.<p>
632
<dl compact><dt><b>Parameters:</b></dt><dd>
633
<table border="0" cellspacing="2" cellpadding="0">
634
<tr><td valign="top"></td><td valign="top"><em>alignment</em> </td><td>Or'd Qt::AlignmentFlags <see qnamespace.h></td></tr>
637
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation()</a>, <a class="el" href="class_qwt_scale_draw.html#209d371187a3ff3f895278703328b13d">labelRotation()</a>, <a class="el" href="class_qwt_scale_draw.html#112f0b9d3f718ea734f9a04b0a78bc0a">labelAlignment()</a> </dd></dl>
638
<dl class="warning" compact><dt><b>Warning:</b></dt><dd>The various alignments might be confusing. The alignment of the label is not the alignment of the scale and is not the alignment of the flags (QwtText::flags()) returned from <a class="el" href="class_qwt_abstract_scale_draw.html#c1d855f856b746559c41f4f06ec5442d">QwtAbstractScaleDraw::label()</a>. </dd></dl>
641
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00851">851</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
644
<a class="anchor" name="112f0b9d3f718ea734f9a04b0a78bc0a"></a><!-- doxytag: member="QwtScaleDraw::labelAlignment" ref="112f0b9d3f718ea734f9a04b0a78bc0a" args="() const" -->
645
<div class="memitem">
646
<div class="memproto">
647
<table class="memname">
649
<td class="memname"><a class="el" href="class_qwt_scale_draw.html#cd7ceeeac592ef08530788580b461c66">Qt::Alignment</a> QwtScaleDraw::labelAlignment </td>
651
<td class="paramname"> </td>
652
<td> ) </td>
653
<td width="100%"> const</td>
660
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the label flags </dd></dl>
661
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#209d371187a3ff3f895278703328b13d">labelRotation()</a> </dd></dl>
664
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00864">864</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
666
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>.
669
<a class="anchor" name="bf5881339fddde65a00c1dd391023320"></a><!-- doxytag: member="QwtScaleDraw::setLabelRotation" ref="bf5881339fddde65a00c1dd391023320" args="(double rotation)" -->
670
<div class="memitem">
671
<div class="memproto">
672
<table class="memname">
674
<td class="memname">void QwtScaleDraw::setLabelRotation </td>
676
<td class="paramtype">double </td>
677
<td class="paramname"> <em>rotation</em> </td>
678
<td> ) </td>
679
<td width="100%"></td>
686
Rotate all labels.<p>
687
When changing the rotation, it might be necessary to adjust the label flags too. Finding a useful combination is often the result of try and error.<p>
688
<dl compact><dt><b>Parameters:</b></dt><dd>
689
<table border="0" cellspacing="2" cellpadding="0">
690
<tr><td valign="top"></td><td valign="top"><em>rotation</em> </td><td>Angle in degrees. When changing the label rotation, the label flags often needs to be adjusted too.</td></tr>
693
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#209d371187a3ff3f895278703328b13d">labelRotation()</a>, <a class="el" href="class_qwt_scale_draw.html#112f0b9d3f718ea734f9a04b0a78bc0a">labelAlignment()</a>. </dd></dl>
696
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00809">809</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
699
<a class="anchor" name="209d371187a3ff3f895278703328b13d"></a><!-- doxytag: member="QwtScaleDraw::labelRotation" ref="209d371187a3ff3f895278703328b13d" args="() const" -->
700
<div class="memitem">
701
<div class="memproto">
702
<table class="memname">
704
<td class="memname">double QwtScaleDraw::labelRotation </td>
706
<td class="paramname"> </td>
707
<td> ) </td>
708
<td width="100%"> const</td>
715
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the label rotation </dd></dl>
716
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation()</a>, <a class="el" href="class_qwt_scale_draw.html#112f0b9d3f718ea734f9a04b0a78bc0a">labelAlignment()</a> </dd></dl>
719
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00818">818</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
721
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">minLabelDist()</a>.
724
<a class="anchor" name="b5fcdcbb4c3fe419e48efd3068ecd3e4"></a><!-- doxytag: member="QwtScaleDraw::maxLabelHeight" ref="b5fcdcbb4c3fe419e48efd3068ecd3e4" args="(const QFont &) const " -->
725
<div class="memitem">
726
<div class="memproto">
727
<table class="memname">
729
<td class="memname">int QwtScaleDraw::maxLabelHeight </td>
731
<td class="paramtype">const QFont & </td>
732
<td class="paramname"> <em>font</em> </td>
733
<td> ) </td>
734
<td width="100%"> const</td>
741
<dl compact><dt><b>Parameters:</b></dt><dd>
742
<table border="0" cellspacing="2" cellpadding="0">
743
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font </td></tr>
746
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the maximum height of a label </dd></dl>
749
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00897">897</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
751
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00138">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00160">QwtScaleDiv::ticks()</a>.
753
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00280">extent()</a>.
756
<a class="anchor" name="b0c4ee29e81cee70e8a491e5ff80b8ff"></a><!-- doxytag: member="QwtScaleDraw::maxLabelWidth" ref="b0c4ee29e81cee70e8a491e5ff80b8ff" args="(const QFont &) const " -->
757
<div class="memitem">
758
<div class="memproto">
759
<table class="memname">
761
<td class="memname">int QwtScaleDraw::maxLabelWidth </td>
763
<td class="paramtype">const QFont & </td>
764
<td class="paramname"> <em>font</em> </td>
765
<td> ) </td>
766
<td width="100%"> const</td>
773
<dl compact><dt><b>Parameters:</b></dt><dd>
774
<table border="0" cellspacing="2" cellpadding="0">
775
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font </td></tr>
778
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the maximum width of a label </dd></dl>
781
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00874">874</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
783
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00138">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00160">QwtScaleDiv::ticks()</a>.
785
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00280">extent()</a>.
788
<a class="anchor" name="0c7357dcb326ccdfa4ac3b673332a4c3"></a><!-- doxytag: member="QwtScaleDraw::labelPosition" ref="0c7357dcb326ccdfa4ac3b673332a4c3" args="(double val) const" -->
789
<div class="memitem">
790
<div class="memproto">
791
<table class="memname">
793
<td class="memname">QPoint QwtScaleDraw::labelPosition </td>
795
<td class="paramtype">double </td>
796
<td class="paramname"> <em>value</em> </td>
797
<td> ) </td>
798
<td width="100%"> const</td>
805
Find the position, where to paint a label<p>
806
The position has a distance of <a class="el" href="class_qwt_abstract_scale_draw.html#89c8ece6fcf3a9ce422c2cbb5da2237d">majTickLength()</a> + <a class="el" href="class_qwt_abstract_scale_draw.html#3d5c5940271dd15a32e40b9022bc602a">spacing()</a> + 1 from the backbone. The direction depends on the <a class="el" href="class_qwt_scale_draw.html#89774ef071c6d66fae5843a13fe12bd5">alignment()</a><p>
807
<dl compact><dt><b>Parameters:</b></dt><dd>
808
<table border="0" cellspacing="2" cellpadding="0">
809
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value </td></tr>
814
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">356</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
816
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00099">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00345">QwtAbstractScaleDraw::majTickLength()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00126">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00263">QwtAbstractScaleDraw::spacing()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.
818
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00652">boundingLabelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00617">drawLabel()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>.
821
<a class="anchor" name="3f21d4d404332f187609af632a592681"></a><!-- doxytag: member="QwtScaleDraw::labelRect" ref="3f21d4d404332f187609af632a592681" args="(const QFont &, double val) const" -->
822
<div class="memitem">
823
<div class="memproto">
824
<table class="memname">
826
<td class="memname">QRect QwtScaleDraw::labelRect </td>
828
<td class="paramtype">const QFont & </td>
829
<td class="paramname"> <em>font</em>, </td>
832
<td class="paramkey"></td>
834
<td class="paramtype">double </td>
835
<td class="paramname"> <em>value</em></td><td> </td>
840
<td></td><td></td><td width="100%"> const</td>
847
Find the bounding rect for the label. The coordinates of the rect are relative to spacing + ticklength from the backbone in direction of the tick.<p>
848
<dl compact><dt><b>Parameters:</b></dt><dd>
849
<table border="0" cellspacing="2" cellpadding="0">
850
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font used for painting </td></tr>
851
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value </td></tr>
856
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">747</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
858
References <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">labelPosition()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</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#l00379">QwtAbstractScaleDraw::tickLabel()</a>, and <a class="el" href="qwt__layout__metrics_8cpp-source.html#l00322">QwtMetricsMap::translate()</a>.
860
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">getBorderDistHint()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">minLabelDist()</a>.
863
<a class="anchor" name="32d5c396cfc5020560c4ac2e47662a16"></a><!-- doxytag: member="QwtScaleDraw::labelSize" ref="32d5c396cfc5020560c4ac2e47662a16" args="(const QFont &, double val) const" -->
864
<div class="memitem">
865
<div class="memproto">
866
<table class="memname">
868
<td class="memname">QSize QwtScaleDraw::labelSize </td>
870
<td class="paramtype">const QFont & </td>
871
<td class="paramname"> <em>font</em>, </td>
874
<td class="paramkey"></td>
876
<td class="paramtype">double </td>
877
<td class="paramname"> <em>value</em></td><td> </td>
882
<td></td><td></td><td width="100%"> const</td>
889
Calculate the size that is needed to draw a label<p>
890
<dl compact><dt><b>Parameters:</b></dt><dd>
891
<table border="0" cellspacing="2" cellpadding="0">
892
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Label font </td></tr>
893
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value </td></tr>
898
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">791</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
900
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>.
902
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00652">boundingLabelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00617">drawLabel()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00897">maxLabelHeight()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00874">maxLabelWidth()</a>.
905
<a class="anchor" name="431f4de02ddd5f97f4db5eda01ee2651"></a><!-- doxytag: member="QwtScaleDraw::boundingLabelRect" ref="431f4de02ddd5f97f4db5eda01ee2651" args="(const QFont &, double val) const" -->
906
<div class="memitem">
907
<div class="memproto">
908
<table class="memname">
910
<td class="memname">QRect QwtScaleDraw::boundingLabelRect </td>
912
<td class="paramtype">const QFont & </td>
913
<td class="paramname"> <em>font</em>, </td>
916
<td class="paramkey"></td>
918
<td class="paramtype">double </td>
919
<td class="paramname"> <em>value</em></td><td> </td>
924
<td></td><td></td><td width="100%"> const</td>
931
Find the bounding rect for the label. The coordinates of the rect are absolute coordinates ( calculated from <a class="el" href="class_qwt_scale_draw.html#9ed4b23c5b2652ac78d7278b32f9dfed">pos()</a> ). in direction of the tick.<p>
932
<dl compact><dt><b>Parameters:</b></dt><dd>
933
<table border="0" cellspacing="2" cellpadding="0">
934
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Font used for painting </td></tr>
935
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value</td></tr>
938
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3f21d4d404332f187609af632a592681">labelRect()</a> </dd></dl>
941
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00652">652</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
943
References <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">labelPosition()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, and <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00379">QwtAbstractScaleDraw::tickLabel()</a>.
946
<a class="anchor" name="a7b143ec69b0fe088b7532551bc23a23"></a><!-- doxytag: member="QwtScaleDraw::labelMatrix" ref="a7b143ec69b0fe088b7532551bc23a23" args="(const QPoint &, const QSize &) const " -->
947
<div class="memitem">
948
<div class="memproto">
949
<table class="memname">
951
<td class="memname">QMatrix QwtScaleDraw::labelMatrix </td>
953
<td class="paramtype">const QPoint & </td>
954
<td class="paramname"> <em>pos</em>, </td>
957
<td class="paramkey"></td>
959
<td class="paramtype">const QSize & </td>
960
<td class="paramname"> <em>size</em></td><td> </td>
965
<td></td><td></td><td width="100%"> const<code> [protected]</code></td>
972
Calculate the matrix that is needed to paint a label depending on its alignment and rotation.<p>
973
<dl compact><dt><b>Parameters:</b></dt><dd>
974
<table border="0" cellspacing="2" cellpadding="0">
975
<tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>Position where to paint the label </td></tr>
976
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>Size of the label</td></tr>
979
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation()</a> </dd></dl>
982
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">676</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
984
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00864">labelAlignment()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00818">labelRotation()</a>.
986
Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00652">boundingLabelRect()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00617">drawLabel()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00747">labelRect()</a>.
989
<a class="anchor" name="f43f429b72d4114b941f27207c4feaa5"></a><!-- doxytag: member="QwtScaleDraw::drawTick" ref="f43f429b72d4114b941f27207c4feaa5" args="(QPainter *p, double val, int len) const" -->
990
<div class="memitem">
991
<div class="memproto">
992
<table class="memname">
994
<td class="memname">void QwtScaleDraw::drawTick </td>
996
<td class="paramtype">QPainter * </td>
997
<td class="paramname"> <em>painter</em>, </td>
1000
<td class="paramkey"></td>
1002
<td class="paramtype">double </td>
1003
<td class="paramname"> <em>value</em>, </td>
1006
<td class="paramkey"></td>
1008
<td class="paramtype">int </td>
1009
<td class="paramname"> <em>len</em></td><td> </td>
1014
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
1018
<div class="memdoc">
1022
<dl compact><dt><b>Parameters:</b></dt><dd>
1023
<table border="0" cellspacing="2" cellpadding="0">
1024
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
1025
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value of the tick </td></tr>
1026
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Lenght of the tick</td></tr>
1029
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3319e5adc50aaa49b31cd634760c6488">drawBackbone()</a>, <a class="el" href="class_qwt_scale_draw.html#58f593910892d5f2957c70f9d1370e69">drawLabel()</a> </dd></dl>
1032
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#c6731a1766e5c5a845dbeff37747b8f0">QwtAbstractScaleDraw</a>.
1034
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00406">406</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
1036
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00424">QwtPainter::drawLine()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00088">QwtMetricsMap::isIdentity()</a>, <a class="el" href="qwt__layout__metrics_8cpp-source.html#l00090">QwtMetricsMap::layoutToDevice()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00093">QwtMetricsMap::layoutToDeviceX()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00113">QwtMetricsMap::layoutToDeviceY()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00126">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00160">QwtPainter::metricsMap()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">orientation()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00152">QwtPainter::resetMetricsMap()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00132">QwtAbstractScaleDraw::scaleMap()</a>, and <a class="el" href="qwt__painter_8cpp-source.html#l00133">QwtPainter::setMetricsMap()</a>.
1039
<a class="anchor" name="3319e5adc50aaa49b31cd634760c6488"></a><!-- doxytag: member="QwtScaleDraw::drawBackbone" ref="3319e5adc50aaa49b31cd634760c6488" args="(QPainter *p) const " -->
1040
<div class="memitem">
1041
<div class="memproto">
1042
<table class="memname">
1044
<td class="memname">void QwtScaleDraw::drawBackbone </td>
1046
<td class="paramtype">QPainter * </td>
1047
<td class="paramname"> <em>painter</em> </td>
1048
<td> ) </td>
1049
<td width="100%"> const<code> [protected, virtual]</code></td>
1053
<div class="memdoc">
1056
Draws the baseline of the scale <dl compact><dt><b>Parameters:</b></dt><dd>
1057
<table border="0" cellspacing="2" cellpadding="0">
1058
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter</td></tr>
1061
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#f43f429b72d4114b941f27207c4feaa5">drawTick()</a>, <a class="el" href="class_qwt_scale_draw.html#58f593910892d5f2957c70f9d1370e69">drawLabel()</a> </dd></dl>
1064
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#546662a216e35819b673afc29bf468e8">QwtAbstractScaleDraw</a>.
1066
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00507">507</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
1068
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00424">QwtPainter::drawLine()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</a>.
1071
<a class="anchor" name="58f593910892d5f2957c70f9d1370e69"></a><!-- doxytag: member="QwtScaleDraw::drawLabel" ref="58f593910892d5f2957c70f9d1370e69" args="(QPainter *p, double val) const" -->
1072
<div class="memitem">
1073
<div class="memproto">
1074
<table class="memname">
1076
<td class="memname">void QwtScaleDraw::drawLabel </td>
1078
<td class="paramtype">QPainter * </td>
1079
<td class="paramname"> <em>painter</em>, </td>
1082
<td class="paramkey"></td>
1084
<td class="paramtype">double </td>
1085
<td class="paramname"> <em>value</em></td><td> </td>
1090
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
1094
<div class="memdoc">
1097
Draws the label for a major scale tick<p>
1098
<dl compact><dt><b>Parameters:</b></dt><dd>
1099
<table border="0" cellspacing="2" cellpadding="0">
1100
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
1101
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value</td></tr>
1104
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#f43f429b72d4114b941f27207c4feaa5">drawTick()</a>, <a class="el" href="class_qwt_scale_draw.html#3319e5adc50aaa49b31cd634760c6488">drawBackbone()</a>, <a class="el" href="class_qwt_scale_draw.html#431f4de02ddd5f97f4db5eda01ee2651">boundingLabelRect()</a> </dd></dl>
1107
Implements <a class="el" href="class_qwt_abstract_scale_draw.html#c49fa39668e35ef92a49834a545711b9">QwtAbstractScaleDraw</a>.
1109
Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00617">617</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.
1111
References <a class="el" href="qwt__text_8cpp-source.html#l00564">QwtText::draw()</a>, <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00676">labelMatrix()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">labelPosition()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00791">labelSize()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, and <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00379">QwtAbstractScaleDraw::tickLabel()</a>.
1114
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:49:03 2008 for Qwt User's Guide by
1115
<a href="http://www.doxygen.org/index.html">
1116
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>