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: QwtThermo 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>QwtThermo Class Reference</h1><!-- doxytag: class="QwtThermo" --><!-- doxytag: inherits="QwtAbstractScale" -->Inheritance diagram for QwtThermo:<p><center><img src="class_qwt_thermo__inherit__graph.png" border="0" usemap="#_qwt_thermo__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_thermo__inherit__map">
24
<area href="class_qwt_abstract_scale.html" shape="rect" coords="7,8,135,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtThermo:<p><center><img src="class_qwt_thermo__coll__graph.png" border="0" usemap="#_qwt_thermo__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_thermo__coll__map">
28
<area href="class_qwt_abstract_scale.html" shape="rect" coords="7,8,135,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_thermo-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
The Thermometer Widget.
33
<a class="el" href="class_qwt_thermo.html">QwtThermo</a> is a widget which displays a value in an interval. It supports:<ul>
34
<li>a horizontal or vertical layout;</li><li>a range;</li><li>a scale;</li><li>an alarm level.</li></ul>
37
<img src="sysinfo.png" alt="sysinfo.png">
40
By default, the scale and range run over the same interval of values. <a class="el" href="class_qwt_abstract_scale.html#91af529248b556ef130add4bcfc60bb2">QwtAbstractScale::setScale()</a> changes the interval of the scale and allows easy conversion between physical units.<p>
41
The example shows how to make the scale indicate in degrees Fahrenheit and to set the value in degrees Kelvin: <div class="fragment"><pre class="fragment"><span class="preprocessor">#include <qapplication.h></span>
42
<span class="preprocessor">#include <qwt_thermo.h></span>
44
<span class="keywordtype">double</span> Kelvin2Fahrenheit(<span class="keywordtype">double</span> kelvin)
46
<span class="comment">// see http://en.wikipedia.org/wiki/Kelvin</span>
47
<span class="keywordflow">return</span> 1.8*kelvin - 459.67;
50
<span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)
52
<span class="keyword">const</span> <span class="keywordtype">double</span> minKelvin = 0.0;
53
<span class="keyword">const</span> <span class="keywordtype">double</span> maxKelvin = 500.0;
55
QApplication a(argc, argv);
56
<a class="code" href="class_qwt_thermo.html">QwtThermo</a> t;
57
t.<a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">setRange</a>(minKelvin, maxKelvin);
58
t.<a class="code" href="class_qwt_abstract_scale.html#91af529248b556ef130add4bcfc60bb2">setScale</a>(Kelvin2Fahrenheit(minKelvin), Kelvin2Fahrenheit(maxKelvin));
59
<span class="comment">// set the value in Kelvin but the scale displays in Fahrenheit</span>
60
<span class="comment">// 273.15 Kelvin = 0 Celsius = 32 Fahrenheit</span>
61
t.<a class="code" href="class_qwt_thermo.html#d54ebf4761c12f948d09cd45a26d1fd4">setValue</a>(273.15);
62
a.setMainWidget(&t);
64
<span class="keywordflow">return</span> a.exec();
67
<dl compact><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Improve the support for a logarithmic range and/or scale. </dd></dl>
72
Definition at line <a class="el" href="qwt__thermo_8h-source.html#l00069">69</a> of file <a class="el" href="qwt__thermo_8h-source.html">qwt_thermo.h</a>.<table border="0" cellpadding="0" cellspacing="0">
74
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> { <br>
76
<b>NoScale</b>,
78
<b>LeftScale</b>,
80
<b>RightScale</b>,
82
<b>TopScale</b>,
84
<b>BottomScale</b>,
86
<b>NoScale</b>,
88
<b>LeftScale</b>,
90
<b>RightScale</b>,
92
<b>TopScale</b>,
94
<b>BottomScale</b>
98
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#d54ebf4761c12f948d09cd45a26d1fd4">setValue</a> (double val)</td></tr>
101
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#1d5bb3608c29cd8d104f22f0ffe31098">QwtThermo</a> (QWidget *parent=NULL)</td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#d0e2bd43eae2402ade490a5e6c4ef4ae">~QwtThermo</a> ()</td></tr>
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">setOrientation</a> (Qt::Orientation o, <a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> s)</td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#4dac08b98a634918178bc69f3352cffd">setScalePosition</a> (<a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> s)</td></tr>
110
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#b25d397292a3c0210d5ae9ae7a28aca1">scalePosition</a> () const</td></tr>
112
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#25821f13d01848a1a37690d4796311bc">setBorderWidth</a> (int w)</td></tr>
114
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#d30227f6efef0b8fc0c13a9b2975b6e8">borderWidth</a> () const</td></tr>
116
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#f6ad0c2ca39afb30bb79a326484c9a21">setFillBrush</a> (const QBrush &b)</td></tr>
118
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QBrush & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#518db519a0a2b7fa1ed483a77cb8a9ae">fillBrush</a> () const</td></tr>
120
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#f7738ccbd41d9c5a66fb9dd36198bdc7">setFillColor</a> (const QColor &c)</td></tr>
122
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QColor & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#300f5aa31114da6e3770912866f31729">fillColor</a> () const</td></tr>
124
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#1d6a0fae32e21fe6c5f54762073dbe8b">setAlarmBrush</a> (const QBrush &b)</td></tr>
126
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QBrush & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#8cff6fd8ab6ad1e5f05493ebb3d63abc">alarmBrush</a> () const</td></tr>
128
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#bec11e74cd21aff565496faa81732194">setAlarmColor</a> (const QColor &c)</td></tr>
130
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QColor & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#5aa65c09b84e5df747a1aedcc8519cb6">alarmColor</a> () const</td></tr>
132
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#b42dff878632d210050be2be03535f6a">setAlarmLevel</a> (double v)</td></tr>
134
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#ee9cf6c14feecc68fd866b0a5c1ab06b">alarmLevel</a> () const</td></tr>
136
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#bed75ea5e839ee4afed2c96f6927721e">setAlarmEnabled</a> (bool tf)</td></tr>
138
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#d64e8d51c78a359494c48e02d9ce5caa">alarmEnabled</a> () const</td></tr>
140
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#9d3a55a818ebf0dd508e20ca9eef224b">setPipeWidth</a> (int w)</td></tr>
142
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#4f3901a508a3d299a3a17b1a2c4753fc">pipeWidth</a> () const</td></tr>
144
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#84db82c29e3431a1eaef9c3cd913a105">setMaxValue</a> (double v)</td></tr>
146
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">maxValue</a> () const</td></tr>
148
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#cf1b3d160eeb5b5763cc6f4cb9976f3d">setMinValue</a> (double v)</td></tr>
150
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">minValue</a> () const</td></tr>
152
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#9d8083ca1d7c3980f29e996893b73a3b">value</a> () const</td></tr>
154
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">setRange</a> (double vmin, double vmax, bool lg=false)</td></tr>
156
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#3d4eeb20cf2259f49a4b45893bd0f979">setMargin</a> (int m)</td></tr>
158
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#1cc23f51dd1cac3d95e191fab7357335">sizeHint</a> () const</td></tr>
160
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#c932b0a497b11c6ad5fc2e18889c4a02">minimumSizeHint</a> () const</td></tr>
162
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">setScaleDraw</a> (<a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *)</td></tr>
164
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a> () const</td></tr>
166
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
167
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#d976ad3862954c8d5ce65b3c5903bd61">draw</a> (QPainter *p, const QRect &update_rect)</td></tr>
169
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#1208e039b825fa252e37c3c442a21a83">drawThermo</a> (QPainter *p)</td></tr>
171
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a> (bool update=true)</td></tr>
173
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#3f2f5077580235a5a776805a9721c8ba">scaleChange</a> ()</td></tr>
175
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#20c19809bb9674a2e1ad2f2501a3d44a">fontChange</a> (const QFont &oldFont)</td></tr>
177
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#f7d628cb5c8a7f3e62f1696007299bd1">paintEvent</a> (QPaintEvent *e)</td></tr>
179
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_thermo.html#c28bbfadd5d69841ac93ec9524d5f2be">resizeEvent</a> (QResizeEvent *e)</td></tr>
181
<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_thermo.html#7d0f262032c034c5da703ec2f2d120b7">scaleDraw</a> ()</td></tr>
184
<hr><h2>Constructor & Destructor Documentation</h2>
185
<a class="anchor" name="1d5bb3608c29cd8d104f22f0ffe31098"></a><!-- doxytag: member="QwtThermo::QwtThermo" ref="1d5bb3608c29cd8d104f22f0ffe31098" args="(QWidget *parent=NULL)" -->
186
<div class="memitem">
187
<div class="memproto">
188
<table class="memname">
190
<td class="memname">QwtThermo::QwtThermo </td>
192
<td class="paramtype">QWidget * </td>
193
<td class="paramname"> <em>parent</em> = <code>NULL</code> </td>
194
<td> ) </td>
195
<td width="100%"><code> [explicit]</code></td>
202
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
203
<table border="0" cellspacing="2" cellpadding="0">
204
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Parent widget </td></tr>
209
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00064">64</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
212
<a class="anchor" name="d0e2bd43eae2402ade490a5e6c4ef4ae"></a><!-- doxytag: member="QwtThermo::~QwtThermo" ref="d0e2bd43eae2402ade490a5e6c4ef4ae" args="()" -->
213
<div class="memitem">
214
<div class="memproto">
215
<table class="memname">
217
<td class="memname">QwtThermo::~QwtThermo </td>
219
<td class="paramname"> </td>
220
<td> ) </td>
221
<td width="100%"><code> [virtual]</code></td>
232
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00105">105</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
235
<hr><h2>Member Function Documentation</h2>
236
<a class="anchor" name="c75f2d908e4e9315ac764cfc2dc920e1"></a><!-- doxytag: member="QwtThermo::setOrientation" ref="c75f2d908e4e9315ac764cfc2dc920e1" args="(Qt::Orientation o, ScalePos s)" -->
237
<div class="memitem">
238
<div class="memproto">
239
<table class="memname">
241
<td class="memname">void QwtThermo::setOrientation </td>
243
<td class="paramtype">Qt::Orientation </td>
244
<td class="paramname"> <em>o</em>, </td>
247
<td class="paramkey"></td>
249
<td class="paramtype"><a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> </td>
250
<td class="paramname"> <em>s</em></td><td> </td>
255
<td></td><td></td><td width="100%"></td>
262
Set the thermometer orientation and the scale position.
264
The scale position NoScale disables the scale. <dl compact><dt><b>Parameters:</b></dt><dd>
265
<table border="0" cellspacing="2" cellpadding="0">
266
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>orientation. Possible values are Qt::Horizontal and Qt::Vertical. The default value is Qt::Vertical. </td></tr>
267
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>Position of the scale. The default value is NoScale.</td></tr>
270
A valid combination of scale position and orientation is enforced:<ul>
271
<li>a horizontal thermometer can have the scale positions TopScale, BottomScale or NoScale;</li><li>a vertical thermometer can have the scale positions LeftScale, RightScale or NoScale;</li><li>an invalid scale position will default to NoScale.</li></ul>
273
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#4dac08b98a634918178bc69f3352cffd">QwtThermo::setScalePosition()</a> </dd></dl>
276
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00365">365</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
278
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
280
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00428">setScalePosition()</a>.
283
<a class="anchor" name="4dac08b98a634918178bc69f3352cffd"></a><!-- doxytag: member="QwtThermo::setScalePosition" ref="4dac08b98a634918178bc69f3352cffd" args="(ScalePos s)" -->
284
<div class="memitem">
285
<div class="memproto">
286
<table class="memname">
288
<td class="memname">void QwtThermo::setScalePosition </td>
290
<td class="paramtype"><a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> </td>
291
<td class="paramname"> <em>s</em> </td>
292
<td> ) </td>
293
<td width="100%"></td>
300
Change the scale position (and thermometer orientation).
302
<dl compact><dt><b>Parameters:</b></dt><dd>
303
<table border="0" cellspacing="2" cellpadding="0">
304
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>Position of the scale.</td></tr>
307
A valid combination of scale position and orientation is enforced:<ul>
308
<li>if the new scale position is LeftScale or RightScale, the scale orientation will become Qt::Vertical;</li><li>if the new scale position is BottomScale or TopScale, the scale orientation will become Qt::Horizontal;</li><li>if the new scale position is NoScale, the scale orientation will not change.</li></ul>
310
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">QwtThermo::setOrientation()</a> </dd></dl>
313
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00428">428</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
315
References <a class="el" href="qwt__thermo_8cpp-source.html#l00365">setOrientation()</a>.
318
<a class="anchor" name="b25d397292a3c0210d5ae9ae7a28aca1"></a><!-- doxytag: member="QwtThermo::scalePosition" ref="b25d397292a3c0210d5ae9ae7a28aca1" args="() const" -->
319
<div class="memitem">
320
<div class="memproto">
321
<table class="memname">
323
<td class="memname"><a class="el" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">QwtThermo::ScalePos</a> QwtThermo::scalePosition </td>
325
<td class="paramname"> </td>
326
<td> ) </td>
327
<td width="100%"> const</td>
334
Return the scale position.
338
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00439">439</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
341
<a class="anchor" name="25821f13d01848a1a37690d4796311bc"></a><!-- doxytag: member="QwtThermo::setBorderWidth" ref="25821f13d01848a1a37690d4796311bc" args="(int w)" -->
342
<div class="memitem">
343
<div class="memproto">
344
<table class="memname">
346
<td class="memname">void QwtThermo::setBorderWidth </td>
348
<td class="paramtype">int </td>
349
<td class="paramname"> <em>w</em> </td>
350
<td> ) </td>
351
<td width="100%"></td>
358
Set the border width of the pipe.
362
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00623">623</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
364
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
367
<a class="anchor" name="d30227f6efef0b8fc0c13a9b2975b6e8"></a><!-- doxytag: member="QwtThermo::borderWidth" ref="d30227f6efef0b8fc0c13a9b2975b6e8" args="() const" -->
368
<div class="memitem">
369
<div class="memproto">
370
<table class="memname">
372
<td class="memname">int QwtThermo::borderWidth </td>
374
<td class="paramname"> </td>
375
<td> ) </td>
376
<td width="100%"> const</td>
383
Return the border width of the thermometer pipe.
387
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00634">634</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
390
<a class="anchor" name="f6ad0c2ca39afb30bb79a326484c9a21"></a><!-- doxytag: member="QwtThermo::setFillBrush" ref="f6ad0c2ca39afb30bb79a326484c9a21" args="(const QBrush &b)" -->
391
<div class="memitem">
392
<div class="memproto">
393
<table class="memname">
395
<td class="memname">void QwtThermo::setFillBrush </td>
397
<td class="paramtype">const QBrush & </td>
398
<td class="paramname"> <em>brush</em> </td>
399
<td> ) </td>
400
<td width="100%"></td>
407
Change the brush of the liquid.
409
<dl compact><dt><b>Parameters:</b></dt><dd>
410
<table border="0" cellspacing="2" cellpadding="0">
411
<tr><td valign="top"></td><td valign="top"><em>brush</em> </td><td>New brush. The default brush is solid black. </td></tr>
416
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00674">674</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
419
<a class="anchor" name="518db519a0a2b7fa1ed483a77cb8a9ae"></a><!-- doxytag: member="QwtThermo::fillBrush" ref="518db519a0a2b7fa1ed483a77cb8a9ae" args="() const" -->
420
<div class="memitem">
421
<div class="memproto">
422
<table class="memname">
424
<td class="memname">const QBrush & QwtThermo::fillBrush </td>
426
<td class="paramname"> </td>
427
<td> ) </td>
428
<td width="100%"> const</td>
435
Return the liquid brush.
439
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00681">681</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
442
<a class="anchor" name="f7738ccbd41d9c5a66fb9dd36198bdc7"></a><!-- doxytag: member="QwtThermo::setFillColor" ref="f7738ccbd41d9c5a66fb9dd36198bdc7" args="(const QColor &c)" -->
443
<div class="memitem">
444
<div class="memproto">
445
<table class="memname">
447
<td class="memname">void QwtThermo::setFillColor </td>
449
<td class="paramtype">const QColor & </td>
450
<td class="paramname"> <em>c</em> </td>
451
<td> ) </td>
452
<td width="100%"></td>
459
Change the color of the liquid.
461
<dl compact><dt><b>Parameters:</b></dt><dd>
462
<table border="0" cellspacing="2" cellpadding="0">
463
<tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>New color. The default color is black. </td></tr>
468
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00690">690</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
471
<a class="anchor" name="300f5aa31114da6e3770912866f31729"></a><!-- doxytag: member="QwtThermo::fillColor" ref="300f5aa31114da6e3770912866f31729" args="() const" -->
472
<div class="memitem">
473
<div class="memproto">
474
<table class="memname">
476
<td class="memname">const QColor & QwtThermo::fillColor </td>
478
<td class="paramname"> </td>
479
<td> ) </td>
480
<td width="100%"> const</td>
487
Return the liquid color.
491
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00697">697</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
494
<a class="anchor" name="1d6a0fae32e21fe6c5f54762073dbe8b"></a><!-- doxytag: member="QwtThermo::setAlarmBrush" ref="1d6a0fae32e21fe6c5f54762073dbe8b" args="(const QBrush &b)" -->
495
<div class="memitem">
496
<div class="memproto">
497
<table class="memname">
499
<td class="memname">void QwtThermo::setAlarmBrush </td>
501
<td class="paramtype">const QBrush & </td>
502
<td class="paramname"> <em>brush</em> </td>
503
<td> ) </td>
504
<td width="100%"></td>
511
Specify the liquid brush above the alarm threshold.
513
<dl compact><dt><b>Parameters:</b></dt><dd>
514
<table border="0" cellspacing="2" cellpadding="0">
515
<tr><td valign="top"></td><td valign="top"><em>brush</em> </td><td>New brush. The default is solid white. </td></tr>
520
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00706">706</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
523
<a class="anchor" name="8cff6fd8ab6ad1e5f05493ebb3d63abc"></a><!-- doxytag: member="QwtThermo::alarmBrush" ref="8cff6fd8ab6ad1e5f05493ebb3d63abc" args="() const" -->
524
<div class="memitem">
525
<div class="memproto">
526
<table class="memname">
528
<td class="memname">const QBrush & QwtThermo::alarmBrush </td>
530
<td class="paramname"> </td>
531
<td> ) </td>
532
<td width="100%"> const</td>
539
Return the liquid brush above the alarm threshold.
543
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00713">713</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
546
<a class="anchor" name="bec11e74cd21aff565496faa81732194"></a><!-- doxytag: member="QwtThermo::setAlarmColor" ref="bec11e74cd21aff565496faa81732194" args="(const QColor &c)" -->
547
<div class="memitem">
548
<div class="memproto">
549
<table class="memname">
551
<td class="memname">void QwtThermo::setAlarmColor </td>
553
<td class="paramtype">const QColor & </td>
554
<td class="paramname"> <em>c</em> </td>
555
<td> ) </td>
556
<td width="100%"></td>
563
Specify the liquid color above the alarm threshold.
565
<dl compact><dt><b>Parameters:</b></dt><dd>
566
<table border="0" cellspacing="2" cellpadding="0">
567
<tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>New color. The default is white. </td></tr>
572
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00722">722</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
575
<a class="anchor" name="5aa65c09b84e5df747a1aedcc8519cb6"></a><!-- doxytag: member="QwtThermo::alarmColor" ref="5aa65c09b84e5df747a1aedcc8519cb6" args="() const" -->
576
<div class="memitem">
577
<div class="memproto">
578
<table class="memname">
580
<td class="memname">const QColor & QwtThermo::alarmColor </td>
582
<td class="paramname"> </td>
583
<td> ) </td>
584
<td width="100%"> const</td>
591
Return the liquid color above the alarm threshold.
595
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00729">729</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
598
<a class="anchor" name="b42dff878632d210050be2be03535f6a"></a><!-- doxytag: member="QwtThermo::setAlarmLevel" ref="b42dff878632d210050be2be03535f6a" args="(double v)" -->
599
<div class="memitem">
600
<div class="memproto">
601
<table class="memname">
603
<td class="memname">void QwtThermo::setAlarmLevel </td>
605
<td class="paramtype">double </td>
606
<td class="paramname"> <em>v</em> </td>
607
<td> ) </td>
608
<td width="100%"></td>
615
Specify the alarm threshold.
619
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00735">735</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
622
<a class="anchor" name="ee9cf6c14feecc68fd866b0a5c1ab06b"></a><!-- doxytag: member="QwtThermo::alarmLevel" ref="ee9cf6c14feecc68fd866b0a5c1ab06b" args="() const" -->
623
<div class="memitem">
624
<div class="memproto">
625
<table class="memname">
627
<td class="memname">double QwtThermo::alarmLevel </td>
629
<td class="paramname"> </td>
630
<td> ) </td>
631
<td width="100%"> const</td>
638
Return the alarm threshold.
642
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00743">743</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
645
<a class="anchor" name="bed75ea5e839ee4afed2c96f6927721e"></a><!-- doxytag: member="QwtThermo::setAlarmEnabled" ref="bed75ea5e839ee4afed2c96f6927721e" args="(bool tf)" -->
646
<div class="memitem">
647
<div class="memproto">
648
<table class="memname">
650
<td class="memname">void QwtThermo::setAlarmEnabled </td>
652
<td class="paramtype">bool </td>
653
<td class="paramname"> <em>tf</em> </td>
654
<td> ) </td>
655
<td width="100%"></td>
662
Enable or disable the alarm threshold.
664
<dl compact><dt><b>Parameters:</b></dt><dd>
665
<table border="0" cellspacing="2" cellpadding="0">
666
<tr><td valign="top"></td><td valign="top"><em>tf</em> </td><td>true (disabled) or false (enabled) </td></tr>
671
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00788">788</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
674
<a class="anchor" name="d64e8d51c78a359494c48e02d9ce5caa"></a><!-- doxytag: member="QwtThermo::alarmEnabled" ref="d64e8d51c78a359494c48e02d9ce5caa" args="() const" -->
675
<div class="memitem">
676
<div class="memproto">
677
<table class="memname">
679
<td class="memname">bool QwtThermo::alarmEnabled </td>
681
<td class="paramname"> </td>
682
<td> ) </td>
683
<td width="100%"> const</td>
690
Return if the alarm threshold is enabled or disabled.
694
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00795">795</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
697
<a class="anchor" name="9d3a55a818ebf0dd508e20ca9eef224b"></a><!-- doxytag: member="QwtThermo::setPipeWidth" ref="9d3a55a818ebf0dd508e20ca9eef224b" args="(int w)" -->
698
<div class="memitem">
699
<div class="memproto">
700
<table class="memname">
702
<td class="memname">void QwtThermo::setPipeWidth </td>
704
<td class="paramtype">int </td>
705
<td class="paramname"> <em>w</em> </td>
706
<td> ) </td>
707
<td width="100%"></td>
714
Change the width of the pipe.
718
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00749">749</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
720
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
723
<a class="anchor" name="4f3901a508a3d299a3a17b1a2c4753fc"></a><!-- doxytag: member="QwtThermo::pipeWidth" ref="4f3901a508a3d299a3a17b1a2c4753fc" args="() const" -->
724
<div class="memitem">
725
<div class="memproto">
726
<table class="memname">
728
<td class="memname">int QwtThermo::pipeWidth </td>
730
<td class="paramname"> </td>
731
<td> ) </td>
732
<td width="100%"> const</td>
739
Return the width of the pipe.
743
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00759">759</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
746
<a class="anchor" name="84db82c29e3431a1eaef9c3cd913a105"></a><!-- doxytag: member="QwtThermo::setMaxValue" ref="84db82c29e3431a1eaef9c3cd913a105" args="(double v)" -->
747
<div class="memitem">
748
<div class="memproto">
749
<table class="memname">
751
<td class="memname">void QwtThermo::setMaxValue </td>
753
<td class="paramtype">double </td>
754
<td class="paramname"> <em>v</em> </td>
755
<td> ) </td>
756
<td width="100%"></td>
763
Set the maximum value.
767
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00111">111</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
769
References <a class="el" href="qwt__thermo_8cpp-source.html#l00645">setRange()</a>.
772
<a class="anchor" name="55a9807fd7477d586ff19ae30f8afbaa"></a><!-- doxytag: member="QwtThermo::maxValue" ref="55a9807fd7477d586ff19ae30f8afbaa" args="() const" -->
773
<div class="memitem">
774
<div class="memproto">
775
<table class="memname">
777
<td class="memname">double QwtThermo::maxValue </td>
779
<td class="paramname"> </td>
780
<td> ) </td>
781
<td width="100%"> const</td>
788
Return the maximum value.
792
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00117">117</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
795
<a class="anchor" name="cf1b3d160eeb5b5763cc6f4cb9976f3d"></a><!-- doxytag: member="QwtThermo::setMinValue" ref="cf1b3d160eeb5b5763cc6f4cb9976f3d" args="(double v)" -->
796
<div class="memitem">
797
<div class="memproto">
798
<table class="memname">
800
<td class="memname">void QwtThermo::setMinValue </td>
802
<td class="paramtype">double </td>
803
<td class="paramname"> <em>v</em> </td>
804
<td> ) </td>
805
<td width="100%"></td>
812
Set the minimum value.
816
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00123">123</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
818
References <a class="el" href="qwt__thermo_8cpp-source.html#l00645">setRange()</a>.
821
<a class="anchor" name="eddf5d4f97aec6faa3ab54e78f842f1d"></a><!-- doxytag: member="QwtThermo::minValue" ref="eddf5d4f97aec6faa3ab54e78f842f1d" args="() const" -->
822
<div class="memitem">
823
<div class="memproto">
824
<table class="memname">
826
<td class="memname">double QwtThermo::minValue </td>
828
<td class="paramname"> </td>
829
<td> ) </td>
830
<td width="100%"> const</td>
837
Return the minimum value.
841
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00129">129</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
844
<a class="anchor" name="9d8083ca1d7c3980f29e996893b73a3b"></a><!-- doxytag: member="QwtThermo::value" ref="9d8083ca1d7c3980f29e996893b73a3b" args="() const" -->
845
<div class="memitem">
846
<div class="memproto">
847
<table class="memname">
849
<td class="memname">double QwtThermo::value </td>
851
<td class="paramname"> </td>
852
<td> ) </td>
853
<td width="100%"> const</td>
864
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00145">145</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
867
<a class="anchor" name="b9f660f7ed2c0878926cb6f02dbfe9fc"></a><!-- doxytag: member="QwtThermo::setRange" ref="b9f660f7ed2c0878926cb6f02dbfe9fc" args="(double vmin, double vmax, bool lg=false)" -->
868
<div class="memitem">
869
<div class="memproto">
870
<table class="memname">
872
<td class="memname">void QwtThermo::setRange </td>
874
<td class="paramtype">double </td>
875
<td class="paramname"> <em>vmin</em>, </td>
878
<td class="paramkey"></td>
880
<td class="paramtype">double </td>
881
<td class="paramname"> <em>vmax</em>, </td>
884
<td class="paramkey"></td>
886
<td class="paramtype">bool </td>
887
<td class="paramname"> <em>logarithmic</em> = <code>false</code></td><td> </td>
892
<td></td><td></td><td width="100%"></td>
901
<dl compact><dt><b>Parameters:</b></dt><dd>
902
<table border="0" cellspacing="2" cellpadding="0">
903
<tr><td valign="top"></td><td valign="top"><em>vmin</em> </td><td>value corresponding lower or left end of the thermometer </td></tr>
904
<tr><td valign="top"></td><td valign="top"><em>vmax</em> </td><td>value corresponding to the upper or right end of the thermometer </td></tr>
905
<tr><td valign="top"></td><td valign="top"><em>logarithmic</em> </td><td>logarithmic mapping, true or false </td></tr>
910
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00645">645</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
912
References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00159">QwtAbstractScale::autoScale()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>, <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00127">QwtAbstractScale::rescale()</a>, <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00282">QwtAbstractScale::scaleEngine()</a>, and <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00269">QwtAbstractScale::setScaleEngine()</a>.
914
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00111">setMaxValue()</a>, and <a class="el" href="qwt__thermo_8cpp-source.html#l00123">setMinValue()</a>.
917
<a class="anchor" name="3d4eeb20cf2259f49a4b45893bd0f979"></a><!-- doxytag: member="QwtThermo::setMargin" ref="3d4eeb20cf2259f49a4b45893bd0f979" args="(int m)" -->
918
<div class="memitem">
919
<div class="memproto">
920
<table class="memname">
922
<td class="memname">void QwtThermo::setMargin </td>
924
<td class="paramtype">int </td>
925
<td class="paramname"> <em>m</em> </td>
926
<td> ) </td>
927
<td width="100%"></td>
934
Specify the distance between the pipe's endpoints and the widget's border.
936
The margin is used to leave some space for the scale labels. If a large font is used, it is advisable to adjust the margins. <dl compact><dt><b>Parameters:</b></dt><dd>
937
<table border="0" cellspacing="2" cellpadding="0">
938
<tr><td valign="top"></td><td valign="top"><em>m</em> </td><td>New Margin. The default values are 10 for horizontal orientation and 20 for vertical orientation. </td></tr>
941
<dl class="warning" compact><dt><b>Warning:</b></dt><dd>The margin has no effect if the scale is disabled. <p>
942
This function is a NOOP because margins are determined automatically. </dd></dl>
945
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00779">779</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
948
<a class="anchor" name="1cc23f51dd1cac3d95e191fab7357335"></a><!-- doxytag: member="QwtThermo::sizeHint" ref="1cc23f51dd1cac3d95e191fab7357335" args="() const" -->
949
<div class="memitem">
950
<div class="memproto">
951
<table class="memname">
953
<td class="memname">QSize QwtThermo::sizeHint </td>
955
<td class="paramname"> </td>
956
<td> ) </td>
957
<td width="100%"> const<code> [virtual]</code></td>
964
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the minimum size hint </dd></dl>
965
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#c932b0a497b11c6ad5fc2e18889c4a02">QwtThermo::minimumSizeHint</a> </dd></dl>
968
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00804">804</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
970
References <a class="el" href="qwt__thermo_8cpp-source.html#l00814">minimumSizeHint()</a>.
973
<a class="anchor" name="c932b0a497b11c6ad5fc2e18889c4a02"></a><!-- doxytag: member="QwtThermo::minimumSizeHint" ref="c932b0a497b11c6ad5fc2e18889c4a02" args="() const" -->
974
<div class="memitem">
975
<div class="memproto">
976
<table class="memname">
978
<td class="memname">QSize QwtThermo::minimumSizeHint </td>
980
<td class="paramname"> </td>
981
<td> ) </td>
982
<td width="100%"> const<code> [virtual]</code></td>
989
Return a minimum size hint.
991
<dl class="warning" compact><dt><b>Warning:</b></dt><dd>The return value depends on the font and the scale. </dd></dl>
992
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#1cc23f51dd1cac3d95e191fab7357335">QwtThermo::sizeHint</a> </dd></dl>
995
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00814">814</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
997
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00280">QwtScaleDraw::extent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00318">QwtScaleDraw::minLength()</a>, and <a class="el" href="qwt__thermo_8cpp-source.html#l00170">scaleDraw()</a>.
999
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00804">sizeHint()</a>.
1002
<a class="anchor" name="8b5ab653b893e41116200570632ad1c3"></a><!-- doxytag: member="QwtThermo::setScaleDraw" ref="8b5ab653b893e41116200570632ad1c3" args="(QwtScaleDraw *)" -->
1003
<div class="memitem">
1004
<div class="memproto">
1005
<table class="memname">
1007
<td class="memname">void QwtThermo::setScaleDraw </td>
1009
<td class="paramtype"><a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> * </td>
1010
<td class="paramname"> <em>scaleDraw</em> </td>
1011
<td> ) </td>
1012
<td width="100%"></td>
1016
<div class="memdoc">
1021
For changing the labels of the scales, it is necessary to derive from <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> and overload <a class="el" href="class_qwt_abstract_scale_draw.html#c1d855f856b746559c41f4f06ec5442d">QwtScaleDraw::label()</a>.<p>
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>scaleDraw</em> </td><td>ScaleDraw object, that has to be created with new and will be deleted in ~QwtThermo or the next call of <a class="el" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">setScaleDraw()</a>. </td></tr>
1029
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00161">161</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1031
References <a class="el" href="qwt__thermo_8cpp-source.html#l00170">scaleDraw()</a>, and <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00224">QwtAbstractScale::setAbstractScaleDraw()</a>.
1034
<a class="anchor" name="33b8af6538a01433f73971f3532d0ce0"></a><!-- doxytag: member="QwtThermo::scaleDraw" ref="33b8af6538a01433f73971f3532d0ce0" args="() const" -->
1035
<div class="memitem">
1036
<div class="memproto">
1037
<table class="memname">
1039
<td class="memname">const <a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> * QwtThermo::scaleDraw </td>
1041
<td class="paramname"> </td>
1042
<td> ) </td>
1043
<td width="100%"> const</td>
1047
<div class="memdoc">
1050
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the scale draw of the thermo </dd></dl>
1051
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">setScaleDraw()</a> </dd></dl>
1054
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00170">170</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1056
References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00249">QwtAbstractScale::abstractScaleDraw()</a>.
1058
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00202">draw()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00814">minimumSizeHint()</a>, and <a class="el" href="qwt__thermo_8cpp-source.html#l00161">setScaleDraw()</a>.
1061
<a class="anchor" name="d54ebf4761c12f948d09cd45a26d1fd4"></a><!-- doxytag: member="QwtThermo::setValue" ref="d54ebf4761c12f948d09cd45a26d1fd4" args="(double val)" -->
1062
<div class="memitem">
1063
<div class="memproto">
1064
<table class="memname">
1066
<td class="memname">void QwtThermo::setValue </td>
1068
<td class="paramtype">double </td>
1069
<td class="paramname"> <em>val</em> </td>
1070
<td> ) </td>
1071
<td width="100%"><code> [slot]</code></td>
1075
<div class="memdoc">
1078
Set the current value.
1082
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00135">135</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1085
<a class="anchor" name="d976ad3862954c8d5ce65b3c5903bd61"></a><!-- doxytag: member="QwtThermo::draw" ref="d976ad3862954c8d5ce65b3c5903bd61" args="(QPainter *p, const QRect &update_rect)" -->
1086
<div class="memitem">
1087
<div class="memproto">
1088
<table class="memname">
1090
<td class="memname">void QwtThermo::draw </td>
1092
<td class="paramtype">QPainter * </td>
1093
<td class="paramname"> <em>p</em>, </td>
1096
<td class="paramkey"></td>
1098
<td class="paramtype">const QRect & </td>
1099
<td class="paramname"> <em>update_rect</em></td><td> </td>
1104
<td></td><td></td><td width="100%"><code> [protected]</code></td>
1108
<div class="memdoc">
1111
Draw the whole <a class="el" href="class_qwt_thermo.html">QwtThermo</a>.
1115
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00202">202</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1117
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00165">QwtAbstractScaleDraw::draw()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00459">drawThermo()</a>, and <a class="el" href="qwt__thermo_8cpp-source.html#l00170">scaleDraw()</a>.
1119
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00185">paintEvent()</a>.
1122
<a class="anchor" name="1208e039b825fa252e37c3c442a21a83"></a><!-- doxytag: member="QwtThermo::drawThermo" ref="1208e039b825fa252e37c3c442a21a83" args="(QPainter *p)" -->
1123
<div class="memitem">
1124
<div class="memproto">
1125
<table class="memname">
1127
<td class="memname">void QwtThermo::drawThermo </td>
1129
<td class="paramtype">QPainter * </td>
1130
<td class="paramname"> <em>p</em> </td>
1131
<td> ) </td>
1132
<td width="100%"><code> [protected]</code></td>
1136
<div class="memdoc">
1139
Redraw the liquid in thermometer pipe.
1143
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00459">459</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1145
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00202">draw()</a>.
1148
<a class="anchor" name="29ce009b8b0546b7ce04936d27fb8364"></a><!-- doxytag: member="QwtThermo::layoutThermo" ref="29ce009b8b0546b7ce04936d27fb8364" args="(bool update=true)" -->
1149
<div class="memitem">
1150
<div class="memproto">
1151
<table class="memname">
1153
<td class="memname">void QwtThermo::layoutThermo </td>
1155
<td class="paramtype">bool </td>
1156
<td class="paramname"> <em>update_geometry</em> = <code>true</code> </td>
1157
<td> ) </td>
1158
<td width="100%"><code> [protected]</code></td>
1162
<div class="memdoc">
1165
Recalculate the <a class="el" href="class_qwt_thermo.html">QwtThermo</a> geometry and layout based on the QwtThermo::rect() and the fonts. <dl compact><dt><b>Parameters:</b></dt><dd>
1166
<table border="0" cellspacing="2" cellpadding="0">
1167
<tr><td valign="top"></td><td valign="top"><em>update_geometry</em> </td><td>notify the layout system and call update to redraw the scale </td></tr>
1172
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00242">242</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1174
References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">QwtScaleDraw::getBorderDistHint()</a>, <a class="el" href="qwt__scale__draw_8h-source.html#l00104">QwtScaleDraw::move()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00170">scaleDraw()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00102">QwtScaleDraw::setAlignment()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00589">QwtScaleDraw::setLength()</a>.
1176
Referenced by <a class="el" href="qwt__thermo_8cpp-source.html#l00445">fontChange()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00231">resizeEvent()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00452">scaleChange()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00623">setBorderWidth()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00365">setOrientation()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00749">setPipeWidth()</a>, and <a class="el" href="qwt__thermo_8cpp-source.html#l00645">setRange()</a>.
1179
<a class="anchor" name="3f2f5077580235a5a776805a9721c8ba"></a><!-- doxytag: member="QwtThermo::scaleChange" ref="3f2f5077580235a5a776805a9721c8ba" args="()" -->
1180
<div class="memitem">
1181
<div class="memproto">
1182
<table class="memname">
1184
<td class="memname">void QwtThermo::scaleChange </td>
1186
<td class="paramname"> </td>
1187
<td> ) </td>
1188
<td width="100%"><code> [protected, virtual]</code></td>
1192
<div class="memdoc">
1195
Notify a scale change.
1199
Reimplemented from <a class="el" href="class_qwt_abstract_scale.html#0dbb7bdc557c0a7b163643e41970ed6a">QwtAbstractScale</a>.
1201
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00452">452</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1203
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
1206
<a class="anchor" name="20c19809bb9674a2e1ad2f2501a3d44a"></a><!-- doxytag: member="QwtThermo::fontChange" ref="20c19809bb9674a2e1ad2f2501a3d44a" args="(const QFont &oldFont)" -->
1207
<div class="memitem">
1208
<div class="memproto">
1209
<table class="memname">
1211
<td class="memname">void QwtThermo::fontChange </td>
1213
<td class="paramtype">const QFont & </td>
1214
<td class="paramname"> <em>oldFont</em> </td>
1215
<td> ) </td>
1216
<td width="100%"><code> [protected, virtual]</code></td>
1220
<div class="memdoc">
1223
Notify a font change.
1227
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00445">445</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1229
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
1232
<a class="anchor" name="f7d628cb5c8a7f3e62f1696007299bd1"></a><!-- doxytag: member="QwtThermo::paintEvent" ref="f7d628cb5c8a7f3e62f1696007299bd1" args="(QPaintEvent *e)" -->
1233
<div class="memitem">
1234
<div class="memproto">
1235
<table class="memname">
1237
<td class="memname">void QwtThermo::paintEvent </td>
1239
<td class="paramtype">QPaintEvent * </td>
1240
<td class="paramname"> <em>e</em> </td>
1241
<td> ) </td>
1242
<td width="100%"><code> [protected, virtual]</code></td>
1246
<div class="memdoc">
1253
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00185">185</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1255
References <a class="el" href="qwt__thermo_8cpp-source.html#l00202">draw()</a>.
1258
<a class="anchor" name="c28bbfadd5d69841ac93ec9524d5f2be"></a><!-- doxytag: member="QwtThermo::resizeEvent" ref="c28bbfadd5d69841ac93ec9524d5f2be" args="(QResizeEvent *e)" -->
1259
<div class="memitem">
1260
<div class="memproto">
1261
<table class="memname">
1263
<td class="memname">void QwtThermo::resizeEvent </td>
1265
<td class="paramtype">QResizeEvent * </td>
1266
<td class="paramname"> <em>e</em> </td>
1267
<td> ) </td>
1268
<td width="100%"><code> [protected, virtual]</code></td>
1272
<div class="memdoc">
1275
Qt resize event handler.
1279
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00231">231</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1281
References <a class="el" href="qwt__thermo_8cpp-source.html#l00242">layoutThermo()</a>.
1284
<a class="anchor" name="7d0f262032c034c5da703ec2f2d120b7"></a><!-- doxytag: member="QwtThermo::scaleDraw" ref="7d0f262032c034c5da703ec2f2d120b7" args="()" -->
1285
<div class="memitem">
1286
<div class="memproto">
1287
<table class="memname">
1289
<td class="memname"><a class="el" href="class_qwt_scale_draw.html">QwtScaleDraw</a> * QwtThermo::scaleDraw </td>
1291
<td class="paramname"> </td>
1292
<td> ) </td>
1293
<td width="100%"><code> [protected]</code></td>
1297
<div class="memdoc">
1300
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the scale draw of the thermo </dd></dl>
1301
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">setScaleDraw()</a> </dd></dl>
1304
Definition at line <a class="el" href="qwt__thermo_8cpp-source.html#l00179">179</a> of file <a class="el" href="qwt__thermo_8cpp-source.html">qwt_thermo.cpp</a>.
1306
References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00249">QwtAbstractScale::abstractScaleDraw()</a>.
1309
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:49:12 2008 for Qwt User's Guide by
1310
<a href="http://www.doxygen.org/index.html">
1311
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>