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: qwt_thermo.cpp Source File</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><a href="classes.html"><span>Classes</span></a></li>
12
<li id="current"><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="files.html"><span>File List</span></a></li>
18
<li><a href="globals.html"><span>File Members</span></a></li>
20
<h1>qwt_thermo.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
21
<a name="l00002"></a>00002 <span class="comment"> * Qwt Widget Library</span>
22
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1997 Josef Wilgen</span>
23
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002 Uwe Rathmann</span>
24
<a name="l00005"></a>00005 <span class="comment"> *</span>
25
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
26
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
27
<a name="l00008"></a>00008 <span class="comment"> *****************************************************************************/</span>
28
<a name="l00009"></a>00009
29
<a name="l00010"></a>00010 <span class="preprocessor">#include <qpainter.h></span>
30
<a name="l00011"></a>00011 <span class="preprocessor">#include <qevent.h></span>
31
<a name="l00012"></a>00012 <span class="preprocessor">#include <qstyle.h></span>
32
<a name="l00013"></a>00013 <span class="preprocessor">#include <qpixmap.h></span>
33
<a name="l00014"></a>00014 <span class="preprocessor">#include <qdrawutil.h></span>
34
<a name="l00015"></a>00015 <span class="preprocessor">#include "qwt_math.h"</span>
35
<a name="l00016"></a>00016 <span class="preprocessor">#include "qwt_scale_engine.h"</span>
36
<a name="l00017"></a>00017 <span class="preprocessor">#include "qwt_scale_draw.h"</span>
37
<a name="l00018"></a>00018 <span class="preprocessor">#include "qwt_scale_map.h"</span>
38
<a name="l00019"></a>00019 <span class="preprocessor">#include "qwt_paint_buffer.h"</span>
39
<a name="l00020"></a>00020 <span class="preprocessor">#include "qwt_thermo.h"</span>
40
<a name="l00021"></a>00021
41
<a name="l00022"></a>00022 <span class="keyword">class </span>QwtThermo::PrivateData
42
<a name="l00023"></a>00023 {
43
<a name="l00024"></a>00024 <span class="keyword">public</span>:
44
<a name="l00025"></a>00025 PrivateData():
45
<a name="l00026"></a>00026 <a class="code" href="class_qwt_thermo.html#518db519a0a2b7fa1ed483a77cb8a9ae">fillBrush</a>(Qt::black),
46
<a name="l00027"></a>00027 <a class="code" href="class_qwt_thermo.html#8cff6fd8ab6ad1e5f05493ebb3d63abc">alarmBrush</a>(Qt::white),
47
<a name="l00028"></a>00028 orientation(Qt::Vertical),
48
<a name="l00029"></a>00029 scalePos(<a class="code" href="class_qwt_thermo.html">QwtThermo</a>::LeftScale),
49
<a name="l00030"></a>00030 <a class="code" href="class_qwt_thermo.html#d30227f6efef0b8fc0c13a9b2975b6e8">borderWidth</a>(2),
50
<a name="l00031"></a>00031 scaleDist(3),
51
<a name="l00032"></a>00032 thermoWidth(10),
52
<a name="l00033"></a>00033 <a class="code" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">minValue</a>(0.0),
53
<a name="l00034"></a>00034 <a class="code" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">maxValue</a>(1.0),
54
<a name="l00035"></a>00035 <a class="code" href="class_qwt_thermo.html#9d8083ca1d7c3980f29e996893b73a3b">value</a>(0.0),
55
<a name="l00036"></a>00036 <a class="code" href="class_qwt_thermo.html#ee9cf6c14feecc68fd866b0a5c1ab06b">alarmLevel</a>(0.0),
56
<a name="l00037"></a>00037 <a class="code" href="class_qwt_thermo.html#d64e8d51c78a359494c48e02d9ce5caa">alarmEnabled</a>(false)
57
<a name="l00038"></a>00038 {
58
<a name="l00039"></a>00039 map.setScaleInterval(<a class="code" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">minValue</a>, <a class="code" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">maxValue</a>);
59
<a name="l00040"></a>00040 }
60
<a name="l00041"></a>00041
61
<a name="l00042"></a>00042 <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a> map;
62
<a name="l00043"></a>00043 QRect thermoRect;
63
<a name="l00044"></a>00044 QBrush <a class="code" href="class_qwt_thermo.html#518db519a0a2b7fa1ed483a77cb8a9ae">fillBrush</a>;
64
<a name="l00045"></a>00045 QBrush <a class="code" href="class_qwt_thermo.html#8cff6fd8ab6ad1e5f05493ebb3d63abc">alarmBrush</a>;
65
<a name="l00046"></a>00046
66
<a name="l00047"></a>00047 Qt::Orientation orientation;
67
<a name="l00048"></a>00048 <a class="code" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> scalePos;
68
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#d30227f6efef0b8fc0c13a9b2975b6e8">borderWidth</a>;
69
<a name="l00050"></a>00050 <span class="keywordtype">int</span> scaleDist;
70
<a name="l00051"></a>00051 <span class="keywordtype">int</span> thermoWidth;
71
<a name="l00052"></a>00052
72
<a name="l00053"></a>00053 <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">minValue</a>;
73
<a name="l00054"></a>00054 <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">maxValue</a>;
74
<a name="l00055"></a>00055 <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#9d8083ca1d7c3980f29e996893b73a3b">value</a>;
75
<a name="l00056"></a>00056 <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#ee9cf6c14feecc68fd866b0a5c1ab06b">alarmLevel</a>;
76
<a name="l00057"></a>00057 <span class="keywordtype">bool</span> <a class="code" href="class_qwt_thermo.html#d64e8d51c78a359494c48e02d9ce5caa">alarmEnabled</a>;
77
<a name="l00058"></a>00058 };
78
<a name="l00059"></a>00059
79
<a name="l00064"></a><a class="code" href="class_qwt_thermo.html#1d5bb3608c29cd8d104f22f0ffe31098">00064</a> <a class="code" href="class_qwt_thermo.html#1d5bb3608c29cd8d104f22f0ffe31098">QwtThermo::QwtThermo</a>(QWidget *parent):
80
<a name="l00065"></a>00065 QWidget(parent)
81
<a name="l00066"></a>00066 {
82
<a name="l00067"></a>00067 initThermo();
83
<a name="l00068"></a>00068 }
84
<a name="l00069"></a>00069
85
<a name="l00070"></a>00070 <span class="preprocessor">#if QT_VERSION < 0x040000</span>
86
<a name="l00071"></a>00071 <span class="preprocessor"></span>
87
<a name="l00076"></a>00076 <a class="code" href="class_qwt_thermo.html#1d5bb3608c29cd8d104f22f0ffe31098">QwtThermo::QwtThermo</a>(QWidget *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name):
88
<a name="l00077"></a>00077 QWidget(parent, name)
89
<a name="l00078"></a>00078 {
90
<a name="l00079"></a>00079 initThermo();
91
<a name="l00080"></a>00080 }
92
<a name="l00081"></a>00081 <span class="preprocessor">#endif</span>
93
<a name="l00082"></a>00082 <span class="preprocessor"></span>
94
<a name="l00083"></a>00083 <span class="keywordtype">void</span> QwtThermo::initThermo()
95
<a name="l00084"></a>00084 {
96
<a name="l00085"></a>00085 <span class="preprocessor">#if QT_VERSION < 0x040000</span>
97
<a name="l00086"></a>00086 <span class="preprocessor"></span> setWFlags(Qt::WNoAutoErase);
98
<a name="l00087"></a>00087 <span class="preprocessor">#endif</span>
99
<a name="l00088"></a>00088 <span class="preprocessor"></span> d_data = <span class="keyword">new</span> PrivateData;
100
<a name="l00089"></a>00089 <a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">setRange</a>(d_data->minValue, d_data->maxValue, <span class="keyword">false</span>);
101
<a name="l00090"></a>00090
102
<a name="l00091"></a>00091 QSizePolicy policy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
103
<a name="l00092"></a>00092 <span class="keywordflow">if</span> (d_data->orientation == Qt::Vertical)
104
<a name="l00093"></a>00093 policy.transpose();
105
<a name="l00094"></a>00094
106
<a name="l00095"></a>00095 setSizePolicy(policy);
107
<a name="l00096"></a>00096
108
<a name="l00097"></a>00097 <span class="preprocessor">#if QT_VERSION >= 0x040000</span>
109
<a name="l00098"></a>00098 <span class="preprocessor"></span> setAttribute(Qt::WA_WState_OwnSizePolicy, <span class="keyword">false</span>);
110
<a name="l00099"></a>00099 <span class="preprocessor">#else</span>
111
<a name="l00100"></a>00100 <span class="preprocessor"></span> clearWState( WState_OwnSizePolicy );
112
<a name="l00101"></a>00101 <span class="preprocessor">#endif</span>
113
<a name="l00102"></a>00102 <span class="preprocessor"></span>}
114
<a name="l00103"></a>00103
115
<a name="l00105"></a><a class="code" href="class_qwt_thermo.html#d0e2bd43eae2402ade490a5e6c4ef4ae">00105</a> <a class="code" href="class_qwt_thermo.html#d0e2bd43eae2402ade490a5e6c4ef4ae">QwtThermo::~QwtThermo</a>()
116
<a name="l00106"></a>00106 {
117
<a name="l00107"></a>00107 <span class="keyword">delete</span> d_data;
118
<a name="l00108"></a>00108 }
119
<a name="l00109"></a>00109
120
<a name="l00111"></a><a class="code" href="class_qwt_thermo.html#84db82c29e3431a1eaef9c3cd913a105">00111</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#84db82c29e3431a1eaef9c3cd913a105">QwtThermo::setMaxValue</a>(<span class="keywordtype">double</span> v)
121
<a name="l00112"></a>00112 {
122
<a name="l00113"></a>00113 <a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">setRange</a>(d_data->minValue, v);
123
<a name="l00114"></a>00114 }
124
<a name="l00115"></a>00115
125
<a name="l00117"></a><a class="code" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">00117</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#55a9807fd7477d586ff19ae30f8afbaa">QwtThermo::maxValue</a>()<span class="keyword"> const </span>
126
<a name="l00118"></a>00118 <span class="keyword"></span>{
127
<a name="l00119"></a>00119 <span class="keywordflow">return</span> d_data->maxValue;
128
<a name="l00120"></a>00120 }
129
<a name="l00121"></a>00121
130
<a name="l00123"></a><a class="code" href="class_qwt_thermo.html#cf1b3d160eeb5b5763cc6f4cb9976f3d">00123</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#cf1b3d160eeb5b5763cc6f4cb9976f3d">QwtThermo::setMinValue</a>(<span class="keywordtype">double</span> v)
131
<a name="l00124"></a>00124 {
132
<a name="l00125"></a>00125 <a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">setRange</a>(v, d_data->maxValue);
133
<a name="l00126"></a>00126 }
134
<a name="l00127"></a>00127
135
<a name="l00129"></a><a class="code" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">00129</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#eddf5d4f97aec6faa3ab54e78f842f1d">QwtThermo::minValue</a>()<span class="keyword"> const </span>
136
<a name="l00130"></a>00130 <span class="keyword"></span>{
137
<a name="l00131"></a>00131 <span class="keywordflow">return</span> d_data->minValue;
138
<a name="l00132"></a>00132 }
139
<a name="l00133"></a>00133
140
<a name="l00135"></a><a class="code" href="class_qwt_thermo.html#d54ebf4761c12f948d09cd45a26d1fd4">00135</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#d54ebf4761c12f948d09cd45a26d1fd4">QwtThermo::setValue</a>(<span class="keywordtype">double</span> v)
141
<a name="l00136"></a>00136 {
142
<a name="l00137"></a>00137 <span class="keywordflow">if</span> (d_data->value != v)
143
<a name="l00138"></a>00138 {
144
<a name="l00139"></a>00139 d_data->value = v;
145
<a name="l00140"></a>00140 update();
146
<a name="l00141"></a>00141 }
147
<a name="l00142"></a>00142 }
148
<a name="l00143"></a>00143
149
<a name="l00145"></a><a class="code" href="class_qwt_thermo.html#9d8083ca1d7c3980f29e996893b73a3b">00145</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#9d8083ca1d7c3980f29e996893b73a3b">QwtThermo::value</a>()<span class="keyword"> const </span>
150
<a name="l00146"></a>00146 <span class="keyword"></span>{
151
<a name="l00147"></a>00147 <span class="keywordflow">return</span> d_data->value;
152
<a name="l00148"></a>00148 }
153
<a name="l00149"></a>00149
154
<a name="l00161"></a><a class="code" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">00161</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#8b5ab653b893e41116200570632ad1c3">QwtThermo::setScaleDraw</a>(<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *scaleDraw)
155
<a name="l00162"></a>00162 {
156
<a name="l00163"></a>00163 <a class="code" href="class_qwt_abstract_scale.html#950c5bf521dc704b78f76c7951346288">setAbstractScaleDraw</a>(<a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>);
157
<a name="l00164"></a>00164 }
158
<a name="l00165"></a>00165
159
<a name="l00170"></a><a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">00170</a> <span class="keyword">const</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *<a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">QwtThermo::scaleDraw</a>()<span class="keyword"> const</span>
160
<a name="l00171"></a>00171 <span class="keyword"></span>{
161
<a name="l00172"></a>00172 <span class="keywordflow">return</span> (<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *)<a class="code" href="class_qwt_abstract_scale.html#473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>();
162
<a name="l00173"></a>00173 }
163
<a name="l00174"></a>00174
164
<a name="l00179"></a><a class="code" href="class_qwt_thermo.html#7d0f262032c034c5da703ec2f2d120b7">00179</a> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *<a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">QwtThermo::scaleDraw</a>()
165
<a name="l00180"></a>00180 {
166
<a name="l00181"></a>00181 <span class="keywordflow">return</span> (<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *)<a class="code" href="class_qwt_abstract_scale.html#473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>();
167
<a name="l00182"></a>00182 }
168
<a name="l00183"></a>00183
169
<a name="l00185"></a><a class="code" href="class_qwt_thermo.html#f7d628cb5c8a7f3e62f1696007299bd1">00185</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#f7d628cb5c8a7f3e62f1696007299bd1">QwtThermo::paintEvent</a>(QPaintEvent *e)
170
<a name="l00186"></a>00186 {
171
<a name="l00187"></a>00187 <span class="comment">// Use double-buffering</span>
172
<a name="l00188"></a>00188 <span class="keyword">const</span> QRect &ur = e->rect();
173
<a name="l00189"></a>00189 <span class="keywordflow">if</span> ( ur.isValid() )
174
<a name="l00190"></a>00190 {
175
<a name="l00191"></a>00191 #<span class="keywordflow">if</span> QT_VERSION < 0x040000
176
<a name="l00192"></a>00192 QwtPaintBuffer paintBuffer(<span class="keyword">this</span>, ur);
177
<a name="l00193"></a>00193 <a class="code" href="class_qwt_thermo.html#d976ad3862954c8d5ce65b3c5903bd61">draw</a>(paintBuffer.painter(), ur);
178
<a name="l00194"></a>00194 <span class="preprocessor">#else</span>
179
<a name="l00195"></a>00195 <span class="preprocessor"></span> QPainter painter(<span class="keyword">this</span>);
180
<a name="l00196"></a>00196 <a class="code" href="class_qwt_thermo.html#d976ad3862954c8d5ce65b3c5903bd61">draw</a>(&painter, ur);
181
<a name="l00197"></a>00197 <span class="preprocessor">#endif</span>
182
<a name="l00198"></a>00198 <span class="preprocessor"></span> }
183
<a name="l00199"></a>00199 }
184
<a name="l00200"></a>00200
185
<a name="l00202"></a><a class="code" href="class_qwt_thermo.html#d976ad3862954c8d5ce65b3c5903bd61">00202</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#d976ad3862954c8d5ce65b3c5903bd61">QwtThermo::draw</a>(QPainter *p, <span class="keyword">const</span> QRect& ur)
186
<a name="l00203"></a>00203 {
187
<a name="l00204"></a>00204 <span class="keywordflow">if</span> ( !d_data->thermoRect.contains(ur) )
188
<a name="l00205"></a>00205 {
189
<a name="l00206"></a>00206 <span class="keywordflow">if</span> (d_data->scalePos != NoScale)
190
<a name="l00207"></a>00207 {
191
<a name="l00208"></a>00208 <span class="preprocessor">#if QT_VERSION < 0x040000</span>
192
<a name="l00209"></a>00209 <span class="preprocessor"></span> <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_abstract_scale_draw.html#c4442d7480db1288971e7eac15142467">draw</a>(p, colorGroup());
193
<a name="l00210"></a>00210 <span class="preprocessor">#else</span>
194
<a name="l00211"></a>00211 <span class="preprocessor"></span> <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_abstract_scale_draw.html#c4442d7480db1288971e7eac15142467">draw</a>(p, palette());
195
<a name="l00212"></a>00212 <span class="preprocessor">#endif</span>
196
<a name="l00213"></a>00213 <span class="preprocessor"></span> }
197
<a name="l00214"></a>00214
198
<a name="l00215"></a>00215 qDrawShadePanel(p,
199
<a name="l00216"></a>00216 d_data->thermoRect.x() - d_data->borderWidth,
200
<a name="l00217"></a>00217 d_data->thermoRect.y() - d_data->borderWidth,
201
<a name="l00218"></a>00218 d_data->thermoRect.width() + 2*d_data->borderWidth,
202
<a name="l00219"></a>00219 d_data->thermoRect.height() + 2*d_data->borderWidth,
203
<a name="l00220"></a>00220 <span class="preprocessor">#if QT_VERSION < 0x040000</span>
204
<a name="l00221"></a>00221 <span class="preprocessor"></span> colorGroup(),
205
<a name="l00222"></a>00222 <span class="preprocessor">#else</span>
206
<a name="l00223"></a>00223 <span class="preprocessor"></span> palette(),
207
<a name="l00224"></a>00224 <span class="preprocessor">#endif</span>
208
<a name="l00225"></a>00225 <span class="preprocessor"></span> <span class="keyword">true</span>, d_data->borderWidth,0);
209
<a name="l00226"></a>00226 }
210
<a name="l00227"></a>00227 <a class="code" href="class_qwt_thermo.html#1208e039b825fa252e37c3c442a21a83">drawThermo</a>(p);
211
<a name="l00228"></a>00228 }
212
<a name="l00229"></a>00229
213
<a name="l00231"></a><a class="code" href="class_qwt_thermo.html#c28bbfadd5d69841ac93ec9524d5f2be">00231</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#c28bbfadd5d69841ac93ec9524d5f2be">QwtThermo::resizeEvent</a>(QResizeEvent *)
214
<a name="l00232"></a>00232 {
215
<a name="l00233"></a>00233 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>( <span class="keyword">false</span> );
216
<a name="l00234"></a>00234 }
217
<a name="l00235"></a>00235
218
<a name="l00242"></a><a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">00242</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">QwtThermo::layoutThermo</a>( <span class="keywordtype">bool</span> update_geometry )
219
<a name="l00243"></a>00243 {
220
<a name="l00244"></a>00244 QRect r = rect();
221
<a name="l00245"></a>00245 <span class="keywordtype">int</span> mbd = 0;
222
<a name="l00246"></a>00246 <span class="keywordflow">if</span> ( d_data->scalePos != NoScale )
223
<a name="l00247"></a>00247 {
224
<a name="l00248"></a>00248 <span class="keywordtype">int</span> d1, d2;
225
<a name="l00249"></a>00249 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#3d8ac98bc2a52dbc5df76e427b47753c">getBorderDistHint</a>(font(), d1, d2);
226
<a name="l00250"></a>00250 mbd = qwtMax(d1, d2);
227
<a name="l00251"></a>00251 }
228
<a name="l00252"></a>00252
229
<a name="l00253"></a>00253 <span class="keywordflow">if</span> ( d_data->orientation == Qt::Horizontal )
230
<a name="l00254"></a>00254 {
231
<a name="l00255"></a>00255 <span class="keywordflow">switch</span> ( d_data->scalePos )
232
<a name="l00256"></a>00256 {
233
<a name="l00257"></a>00257 <span class="keywordflow">case</span> TopScale:
234
<a name="l00258"></a>00258 {
235
<a name="l00259"></a>00259 d_data->thermoRect.setRect(
236
<a name="l00260"></a>00260 r.x() + mbd + d_data->borderWidth,
237
<a name="l00261"></a>00261 r.y() + r.height()
238
<a name="l00262"></a>00262 - d_data->thermoWidth - 2*d_data->borderWidth,
239
<a name="l00263"></a>00263 r.width() - 2*(d_data->borderWidth + mbd),
240
<a name="l00264"></a>00264 d_data->thermoWidth);
241
<a name="l00265"></a>00265 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment</a>(QwtScaleDraw::TopScale);
242
<a name="l00266"></a>00266 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move</a>( d_data->thermoRect.x(),
243
<a name="l00267"></a>00267 d_data->thermoRect.y() - d_data->borderWidth
244
<a name="l00268"></a>00268 - d_data->scaleDist);
245
<a name="l00269"></a>00269 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength</a>(d_data->thermoRect.width());
246
<a name="l00270"></a>00270 <span class="keywordflow">break</span>;
247
<a name="l00271"></a>00271 }
248
<a name="l00272"></a>00272
249
<a name="l00273"></a>00273 <span class="keywordflow">case</span> BottomScale:
250
<a name="l00274"></a>00274 <span class="keywordflow">case</span> NoScale: <span class="comment">// like Bottom but without scale</span>
251
<a name="l00275"></a>00275 <span class="keywordflow">default</span>: <span class="comment">// inconsistent orientation and scale position</span>
252
<a name="l00276"></a>00276 <span class="comment">// Mapping between values and pixels requires</span>
253
<a name="l00277"></a>00277 <span class="comment">// initialization of the scale geometry</span>
254
<a name="l00278"></a>00278 {
255
<a name="l00279"></a>00279 d_data->thermoRect.setRect(
256
<a name="l00280"></a>00280 r.x() + mbd + d_data->borderWidth,
257
<a name="l00281"></a>00281 r.y() + d_data->borderWidth,
258
<a name="l00282"></a>00282 r.width() - 2*(d_data->borderWidth + mbd),
259
<a name="l00283"></a>00283 d_data->thermoWidth);
260
<a name="l00284"></a>00284 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment</a>(QwtScaleDraw::BottomScale);
261
<a name="l00285"></a>00285 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move</a>(
262
<a name="l00286"></a>00286 d_data->thermoRect.x(),
263
<a name="l00287"></a>00287 d_data->thermoRect.y() + d_data->thermoRect.height()
264
<a name="l00288"></a>00288 + d_data->borderWidth + d_data->scaleDist );
265
<a name="l00289"></a>00289 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength</a>(d_data->thermoRect.width());
266
<a name="l00290"></a>00290 <span class="keywordflow">break</span>;
267
<a name="l00291"></a>00291 }
268
<a name="l00292"></a>00292 }
269
<a name="l00293"></a>00293 d_data->map.setPaintInterval(d_data->thermoRect.x(),
270
<a name="l00294"></a>00294 d_data->thermoRect.x() + d_data->thermoRect.width() - 1);
271
<a name="l00295"></a>00295 }
272
<a name="l00296"></a>00296 <span class="keywordflow">else</span> <span class="comment">// Qt::Vertical</span>
273
<a name="l00297"></a>00297 {
274
<a name="l00298"></a>00298 <span class="keywordflow">switch</span> ( d_data->scalePos )
275
<a name="l00299"></a>00299 {
276
<a name="l00300"></a>00300 <span class="keywordflow">case</span> RightScale:
277
<a name="l00301"></a>00301 {
278
<a name="l00302"></a>00302 d_data->thermoRect.setRect(
279
<a name="l00303"></a>00303 r.x() + d_data->borderWidth,
280
<a name="l00304"></a>00304 r.y() + mbd + d_data->borderWidth,
281
<a name="l00305"></a>00305 d_data->thermoWidth,
282
<a name="l00306"></a>00306 r.height() - 2*(d_data->borderWidth + mbd));
283
<a name="l00307"></a>00307 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment</a>(QwtScaleDraw::RightScale);
284
<a name="l00308"></a>00308 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move</a>(
285
<a name="l00309"></a>00309 d_data->thermoRect.x() + d_data->thermoRect.width()
286
<a name="l00310"></a>00310 + d_data->borderWidth + d_data->scaleDist,
287
<a name="l00311"></a>00311 d_data->thermoRect.y());
288
<a name="l00312"></a>00312 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength</a>(d_data->thermoRect.height());
289
<a name="l00313"></a>00313 <span class="keywordflow">break</span>;
290
<a name="l00314"></a>00314 }
291
<a name="l00315"></a>00315
292
<a name="l00316"></a>00316 <span class="keywordflow">case</span> LeftScale:
293
<a name="l00317"></a>00317 <span class="keywordflow">case</span> NoScale: <span class="comment">// like Left but without scale</span>
294
<a name="l00318"></a>00318 <span class="keywordflow">default</span>: <span class="comment">// inconsistent orientation and scale position</span>
295
<a name="l00319"></a>00319 <span class="comment">// Mapping between values and pixels requires</span>
296
<a name="l00320"></a>00320 <span class="comment">// initialization of the scale geometry</span>
297
<a name="l00321"></a>00321 {
298
<a name="l00322"></a>00322 d_data->thermoRect.setRect(
299
<a name="l00323"></a>00323 r.x() + r.width() - 2*d_data->borderWidth - d_data->thermoWidth,
300
<a name="l00324"></a>00324 r.y() + mbd + d_data->borderWidth,
301
<a name="l00325"></a>00325 d_data->thermoWidth,
302
<a name="l00326"></a>00326 r.height() - 2*(d_data->borderWidth + mbd));
303
<a name="l00327"></a>00327 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#7a4de0055dc1358e55c3357366a54091">setAlignment</a>(QwtScaleDraw::LeftScale);
304
<a name="l00328"></a>00328 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#d301aed0c797c10f0104976d1a62ff69">move</a>(
305
<a name="l00329"></a>00329 d_data->thermoRect.x() - d_data->scaleDist
306
<a name="l00330"></a>00330 - d_data->borderWidth,
307
<a name="l00331"></a>00331 d_data->thermoRect.y() );
308
<a name="l00332"></a>00332 <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#2094e09579671d0a8e4b14a636eba6ef">setLength</a>(d_data->thermoRect.height());
309
<a name="l00333"></a>00333 <span class="keywordflow">break</span>;
310
<a name="l00334"></a>00334 }
311
<a name="l00335"></a>00335 }
312
<a name="l00336"></a>00336 d_data->map.setPaintInterval(
313
<a name="l00337"></a>00337 d_data->thermoRect.y() + d_data->thermoRect.height() - 1,
314
<a name="l00338"></a>00338 d_data->thermoRect.y());
315
<a name="l00339"></a>00339 }
316
<a name="l00340"></a>00340 <span class="keywordflow">if</span> ( update_geometry )
317
<a name="l00341"></a>00341 {
318
<a name="l00342"></a>00342 updateGeometry();
319
<a name="l00343"></a>00343 update();
320
<a name="l00344"></a>00344 }
321
<a name="l00345"></a>00345 }
322
<a name="l00346"></a>00346
323
<a name="l00365"></a><a class="code" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">00365</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">QwtThermo::setOrientation</a>(Qt::Orientation o, <a class="code" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> s)
324
<a name="l00366"></a>00366 {
325
<a name="l00367"></a>00367 <span class="keywordflow">if</span> ( o == d_data->orientation && s == d_data->scalePos )
326
<a name="l00368"></a>00368 <span class="keywordflow">return</span>;
327
<a name="l00369"></a>00369
328
<a name="l00370"></a>00370 <span class="keywordflow">switch</span>(o)
329
<a name="l00371"></a>00371 {
330
<a name="l00372"></a>00372 <span class="keywordflow">case</span> Qt::Horizontal:
331
<a name="l00373"></a>00373 {
332
<a name="l00374"></a>00374 <span class="keywordflow">if</span> ((s == NoScale) || (s == BottomScale) || (s == TopScale))
333
<a name="l00375"></a>00375 d_data->scalePos = s;
334
<a name="l00376"></a>00376 <span class="keywordflow">else</span>
335
<a name="l00377"></a>00377 d_data->scalePos = NoScale;
336
<a name="l00378"></a>00378 <span class="keywordflow">break</span>;
337
<a name="l00379"></a>00379 }
338
<a name="l00380"></a>00380 <span class="keywordflow">case</span> Qt::Vertical:
339
<a name="l00381"></a>00381 {
340
<a name="l00382"></a>00382 <span class="keywordflow">if</span> ((s == NoScale) || (s == LeftScale) || (s == RightScale))
341
<a name="l00383"></a>00383 d_data->scalePos = s;
342
<a name="l00384"></a>00384 <span class="keywordflow">else</span>
343
<a name="l00385"></a>00385 d_data->scalePos = NoScale;
344
<a name="l00386"></a>00386 <span class="keywordflow">break</span>;
345
<a name="l00387"></a>00387 }
346
<a name="l00388"></a>00388 }
347
<a name="l00389"></a>00389
348
<a name="l00390"></a>00390 <span class="keywordflow">if</span> ( o != d_data->orientation )
349
<a name="l00391"></a>00391 {
350
<a name="l00392"></a>00392 <span class="preprocessor">#if QT_VERSION >= 0x040000</span>
351
<a name="l00393"></a>00393 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( !testAttribute(Qt::WA_WState_OwnSizePolicy) )
352
<a name="l00394"></a>00394 <span class="preprocessor">#else</span>
353
<a name="l00395"></a>00395 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( !testWState( WState_OwnSizePolicy ) )
354
<a name="l00396"></a>00396 <span class="preprocessor">#endif</span>
355
<a name="l00397"></a>00397 <span class="preprocessor"></span> {
356
<a name="l00398"></a>00398 QSizePolicy sp = sizePolicy();
357
<a name="l00399"></a>00399 sp.transpose();
358
<a name="l00400"></a>00400 setSizePolicy(sp);
359
<a name="l00401"></a>00401
360
<a name="l00402"></a>00402 <span class="preprocessor">#if QT_VERSION >= 0x040000</span>
361
<a name="l00403"></a>00403 <span class="preprocessor"></span> setAttribute(Qt::WA_WState_OwnSizePolicy, <span class="keyword">false</span>);
362
<a name="l00404"></a>00404 <span class="preprocessor">#else</span>
363
<a name="l00405"></a>00405 <span class="preprocessor"></span> clearWState( WState_OwnSizePolicy );
364
<a name="l00406"></a>00406 <span class="preprocessor">#endif</span>
365
<a name="l00407"></a>00407 <span class="preprocessor"></span> }
366
<a name="l00408"></a>00408 }
367
<a name="l00409"></a>00409
368
<a name="l00410"></a>00410 d_data->orientation = o;
369
<a name="l00411"></a>00411 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
370
<a name="l00412"></a>00412 }
371
<a name="l00413"></a>00413
372
<a name="l00428"></a><a class="code" href="class_qwt_thermo.html#4dac08b98a634918178bc69f3352cffd">00428</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#4dac08b98a634918178bc69f3352cffd">QwtThermo::setScalePosition</a>(<a class="code" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">ScalePos</a> s)
373
<a name="l00429"></a>00429 {
374
<a name="l00430"></a>00430 <span class="keywordflow">if</span> ((s == BottomScale) || (s == TopScale))
375
<a name="l00431"></a>00431 <a class="code" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">setOrientation</a>(Qt::Horizontal, s);
376
<a name="l00432"></a>00432 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((s == LeftScale) || (s == RightScale))
377
<a name="l00433"></a>00433 <a class="code" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">setOrientation</a>(Qt::Vertical, s);
378
<a name="l00434"></a>00434 <span class="keywordflow">else</span>
379
<a name="l00435"></a>00435 <a class="code" href="class_qwt_thermo.html#c75f2d908e4e9315ac764cfc2dc920e1">setOrientation</a>(d_data->orientation, NoScale);
380
<a name="l00436"></a>00436 }
381
<a name="l00437"></a>00437
382
<a name="l00439"></a><a class="code" href="class_qwt_thermo.html#b25d397292a3c0210d5ae9ae7a28aca1">00439</a> <a class="code" href="class_qwt_thermo.html#adfd670812eef5a798dcdb58cffb039b">QwtThermo::ScalePos</a> <a class="code" href="class_qwt_thermo.html#b25d397292a3c0210d5ae9ae7a28aca1">QwtThermo::scalePosition</a>()<span class="keyword"> const</span>
383
<a name="l00440"></a>00440 <span class="keyword"></span>{
384
<a name="l00441"></a>00441 <span class="keywordflow">return</span> d_data->scalePos;
385
<a name="l00442"></a>00442 }
386
<a name="l00443"></a>00443
387
<a name="l00445"></a><a class="code" href="class_qwt_thermo.html#20c19809bb9674a2e1ad2f2501a3d44a">00445</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#20c19809bb9674a2e1ad2f2501a3d44a">QwtThermo::fontChange</a>(<span class="keyword">const</span> QFont &f)
388
<a name="l00446"></a>00446 {
389
<a name="l00447"></a>00447 QWidget::fontChange( f );
390
<a name="l00448"></a>00448 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
391
<a name="l00449"></a>00449 }
392
<a name="l00450"></a>00450
393
<a name="l00452"></a><a class="code" href="class_qwt_thermo.html#3f2f5077580235a5a776805a9721c8ba">00452</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#3f2f5077580235a5a776805a9721c8ba">QwtThermo::scaleChange</a>()
394
<a name="l00453"></a>00453 {
395
<a name="l00454"></a>00454 update();
396
<a name="l00455"></a>00455 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
397
<a name="l00456"></a>00456 }
398
<a name="l00457"></a>00457
399
<a name="l00459"></a><a class="code" href="class_qwt_thermo.html#1208e039b825fa252e37c3c442a21a83">00459</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#1208e039b825fa252e37c3c442a21a83">QwtThermo::drawThermo</a>(QPainter *p)
400
<a name="l00460"></a>00460 {
401
<a name="l00461"></a>00461 <span class="keywordtype">int</span> alarm = 0, taval = 0;
402
<a name="l00462"></a>00462
403
<a name="l00463"></a>00463 QRect fRect;
404
<a name="l00464"></a>00464 QRect aRect;
405
<a name="l00465"></a>00465 QRect bRect;
406
<a name="l00466"></a>00466
407
<a name="l00467"></a>00467 <span class="keywordtype">int</span> inverted = ( d_data->maxValue < d_data->minValue );
408
<a name="l00468"></a>00468
409
<a name="l00469"></a>00469 <span class="comment">//</span>
410
<a name="l00470"></a>00470 <span class="comment">// Determine if value exceeds alarm threshold.</span>
411
<a name="l00471"></a>00471 <span class="comment">// Note: The alarm value is allowed to lie</span>
412
<a name="l00472"></a>00472 <span class="comment">// outside the interval (minValue, maxValue).</span>
413
<a name="l00473"></a>00473 <span class="comment">//</span>
414
<a name="l00474"></a>00474 <span class="keywordflow">if</span> (d_data->alarmEnabled)
415
<a name="l00475"></a>00475 {
416
<a name="l00476"></a>00476 <span class="keywordflow">if</span> (inverted)
417
<a name="l00477"></a>00477 {
418
<a name="l00478"></a>00478 alarm = ((d_data->alarmLevel >= d_data->maxValue)
419
<a name="l00479"></a>00479 && (d_data->alarmLevel <= d_data->minValue)
420
<a name="l00480"></a>00480 && (d_data->value >= d_data->alarmLevel));
421
<a name="l00481"></a>00481
422
<a name="l00482"></a>00482 }
423
<a name="l00483"></a>00483 <span class="keywordflow">else</span>
424
<a name="l00484"></a>00484 {
425
<a name="l00485"></a>00485 alarm = (( d_data->alarmLevel >= d_data->minValue)
426
<a name="l00486"></a>00486 && (d_data->alarmLevel <= d_data->maxValue)
427
<a name="l00487"></a>00487 && (d_data->value >= d_data->alarmLevel));
428
<a name="l00488"></a>00488 }
429
<a name="l00489"></a>00489 }
430
<a name="l00490"></a>00490
431
<a name="l00491"></a>00491 <span class="comment">//</span>
432
<a name="l00492"></a>00492 <span class="comment">// transform values</span>
433
<a name="l00493"></a>00493 <span class="comment">//</span>
434
<a name="l00494"></a>00494 <span class="keywordtype">int</span> tval = transform(d_data->value);
435
<a name="l00495"></a>00495
436
<a name="l00496"></a>00496 <span class="keywordflow">if</span> (alarm)
437
<a name="l00497"></a>00497 taval = transform(d_data->alarmLevel);
438
<a name="l00498"></a>00498
439
<a name="l00499"></a>00499 <span class="comment">//</span>
440
<a name="l00500"></a>00500 <span class="comment">// calculate recangles</span>
441
<a name="l00501"></a>00501 <span class="comment">//</span>
442
<a name="l00502"></a>00502 <span class="keywordflow">if</span> ( d_data->orientation == Qt::Horizontal )
443
<a name="l00503"></a>00503 {
444
<a name="l00504"></a>00504 <span class="keywordflow">if</span> (inverted)
445
<a name="l00505"></a>00505 {
446
<a name="l00506"></a>00506 bRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
447
<a name="l00507"></a>00507 tval - d_data->thermoRect.x(),
448
<a name="l00508"></a>00508 d_data->thermoRect.height());
449
<a name="l00509"></a>00509
450
<a name="l00510"></a>00510 <span class="keywordflow">if</span> (alarm)
451
<a name="l00511"></a>00511 {
452
<a name="l00512"></a>00512 aRect.setRect(tval, d_data->thermoRect.y(),
453
<a name="l00513"></a>00513 taval - tval + 1,
454
<a name="l00514"></a>00514 d_data->thermoRect.height());
455
<a name="l00515"></a>00515 fRect.setRect(taval + 1, d_data->thermoRect.y(),
456
<a name="l00516"></a>00516 d_data->thermoRect.x() + d_data->thermoRect.width() - (taval + 1),
457
<a name="l00517"></a>00517 d_data->thermoRect.height());
458
<a name="l00518"></a>00518 }
459
<a name="l00519"></a>00519 <span class="keywordflow">else</span>
460
<a name="l00520"></a>00520 {
461
<a name="l00521"></a>00521 fRect.setRect(tval, d_data->thermoRect.y(),
462
<a name="l00522"></a>00522 d_data->thermoRect.x() + d_data->thermoRect.width() - tval,
463
<a name="l00523"></a>00523 d_data->thermoRect.height());
464
<a name="l00524"></a>00524 }
465
<a name="l00525"></a>00525 }
466
<a name="l00526"></a>00526 <span class="keywordflow">else</span>
467
<a name="l00527"></a>00527 {
468
<a name="l00528"></a>00528 bRect.setRect(tval + 1, d_data->thermoRect.y(),
469
<a name="l00529"></a>00529 d_data->thermoRect.width() - (tval + 1 - d_data->thermoRect.x()),
470
<a name="l00530"></a>00530 d_data->thermoRect.height());
471
<a name="l00531"></a>00531
472
<a name="l00532"></a>00532 <span class="keywordflow">if</span> (alarm)
473
<a name="l00533"></a>00533 {
474
<a name="l00534"></a>00534 aRect.setRect(taval, d_data->thermoRect.y(),
475
<a name="l00535"></a>00535 tval - taval + 1,
476
<a name="l00536"></a>00536 d_data->thermoRect.height());
477
<a name="l00537"></a>00537 fRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
478
<a name="l00538"></a>00538 taval - d_data->thermoRect.x(),
479
<a name="l00539"></a>00539 d_data->thermoRect.height());
480
<a name="l00540"></a>00540 }
481
<a name="l00541"></a>00541 <span class="keywordflow">else</span>
482
<a name="l00542"></a>00542 {
483
<a name="l00543"></a>00543 fRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
484
<a name="l00544"></a>00544 tval - d_data->thermoRect.x() + 1,
485
<a name="l00545"></a>00545 d_data->thermoRect.height());
486
<a name="l00546"></a>00546 }
487
<a name="l00547"></a>00547
488
<a name="l00548"></a>00548 }
489
<a name="l00549"></a>00549 }
490
<a name="l00550"></a>00550 <span class="keywordflow">else</span> <span class="comment">// Qt::Vertical</span>
491
<a name="l00551"></a>00551 {
492
<a name="l00552"></a>00552 <span class="keywordflow">if</span> (tval < d_data->thermoRect.y())
493
<a name="l00553"></a>00553 tval = d_data->thermoRect.y();
494
<a name="l00554"></a>00554 <span class="keywordflow">else</span>
495
<a name="l00555"></a>00555 {
496
<a name="l00556"></a>00556 <span class="keywordflow">if</span> (tval > d_data->thermoRect.y() + d_data->thermoRect.height())
497
<a name="l00557"></a>00557 tval = d_data->thermoRect.y() + d_data->thermoRect.height();
498
<a name="l00558"></a>00558 }
499
<a name="l00559"></a>00559
500
<a name="l00560"></a>00560 <span class="keywordflow">if</span> (inverted)
501
<a name="l00561"></a>00561 {
502
<a name="l00562"></a>00562 bRect.setRect(d_data->thermoRect.x(), tval + 1,
503
<a name="l00563"></a>00563 d_data->thermoRect.width(),
504
<a name="l00564"></a>00564 d_data->thermoRect.height() - (tval + 1 - d_data->thermoRect.y()));
505
<a name="l00565"></a>00565
506
<a name="l00566"></a>00566 <span class="keywordflow">if</span> (alarm)
507
<a name="l00567"></a>00567 {
508
<a name="l00568"></a>00568 aRect.setRect(d_data->thermoRect.x(), taval,
509
<a name="l00569"></a>00569 d_data->thermoRect.width(),
510
<a name="l00570"></a>00570 tval - taval + 1);
511
<a name="l00571"></a>00571 fRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
512
<a name="l00572"></a>00572 d_data->thermoRect.width(),
513
<a name="l00573"></a>00573 taval - d_data->thermoRect.y());
514
<a name="l00574"></a>00574 }
515
<a name="l00575"></a>00575 <span class="keywordflow">else</span>
516
<a name="l00576"></a>00576 {
517
<a name="l00577"></a>00577 fRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
518
<a name="l00578"></a>00578 d_data->thermoRect.width(),
519
<a name="l00579"></a>00579 tval - d_data->thermoRect.y() + 1);
520
<a name="l00580"></a>00580 }
521
<a name="l00581"></a>00581 }
522
<a name="l00582"></a>00582 <span class="keywordflow">else</span>
523
<a name="l00583"></a>00583 {
524
<a name="l00584"></a>00584 bRect.setRect(d_data->thermoRect.x(), d_data->thermoRect.y(),
525
<a name="l00585"></a>00585 d_data->thermoRect.width(),
526
<a name="l00586"></a>00586 tval - d_data->thermoRect.y());
527
<a name="l00587"></a>00587 <span class="keywordflow">if</span> (alarm)
528
<a name="l00588"></a>00588 {
529
<a name="l00589"></a>00589 aRect.setRect(d_data->thermoRect.x(),tval,
530
<a name="l00590"></a>00590 d_data->thermoRect.width(),
531
<a name="l00591"></a>00591 taval - tval + 1);
532
<a name="l00592"></a>00592 fRect.setRect(d_data->thermoRect.x(),taval + 1,
533
<a name="l00593"></a>00593 d_data->thermoRect.width(),
534
<a name="l00594"></a>00594 d_data->thermoRect.y() + d_data->thermoRect.height() - (taval + 1));
535
<a name="l00595"></a>00595 }
536
<a name="l00596"></a>00596 <span class="keywordflow">else</span>
537
<a name="l00597"></a>00597 {
538
<a name="l00598"></a>00598 fRect.setRect(d_data->thermoRect.x(),tval,
539
<a name="l00599"></a>00599 d_data->thermoRect.width(),
540
<a name="l00600"></a>00600 d_data->thermoRect.y() + d_data->thermoRect.height() - tval);
541
<a name="l00601"></a>00601 }
542
<a name="l00602"></a>00602 }
543
<a name="l00603"></a>00603 }
544
<a name="l00604"></a>00604
545
<a name="l00605"></a>00605 <span class="comment">//</span>
546
<a name="l00606"></a>00606 <span class="comment">// paint thermometer</span>
547
<a name="l00607"></a>00607 <span class="comment">//</span>
548
<a name="l00608"></a>00608 <span class="keyword">const</span> QColor bgColor =
549
<a name="l00609"></a>00609 <span class="preprocessor">#if QT_VERSION < 0x040000</span>
550
<a name="l00610"></a>00610 <span class="preprocessor"></span> colorGroup().color(QColorGroup::Background);
551
<a name="l00611"></a>00611 <span class="preprocessor">#else</span>
552
<a name="l00612"></a>00612 <span class="preprocessor"></span> palette().color(QPalette::Background);
553
<a name="l00613"></a>00613 <span class="preprocessor">#endif</span>
554
<a name="l00614"></a>00614 <span class="preprocessor"></span> p->fillRect(bRect, bgColor);
555
<a name="l00615"></a>00615
556
<a name="l00616"></a>00616 <span class="keywordflow">if</span> (alarm)
557
<a name="l00617"></a>00617 p->fillRect(aRect, d_data->alarmBrush);
558
<a name="l00618"></a>00618
559
<a name="l00619"></a>00619 p->fillRect(fRect, d_data->fillBrush);
560
<a name="l00620"></a>00620 }
561
<a name="l00621"></a>00621
562
<a name="l00623"></a><a class="code" href="class_qwt_thermo.html#25821f13d01848a1a37690d4796311bc">00623</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#25821f13d01848a1a37690d4796311bc">QwtThermo::setBorderWidth</a>(<span class="keywordtype">int</span> w)
563
<a name="l00624"></a>00624 {
564
<a name="l00625"></a>00625 <span class="keywordflow">if</span> ((w >= 0) && (w < (qwtMin(d_data->thermoRect.width(),
565
<a name="l00626"></a>00626 d_data->thermoRect.height()) + d_data->borderWidth) / 2 - 1))
566
<a name="l00627"></a>00627 {
567
<a name="l00628"></a>00628 d_data->borderWidth = w;
568
<a name="l00629"></a>00629 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
569
<a name="l00630"></a>00630 }
570
<a name="l00631"></a>00631 }
571
<a name="l00632"></a>00632
572
<a name="l00634"></a><a class="code" href="class_qwt_thermo.html#d30227f6efef0b8fc0c13a9b2975b6e8">00634</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#d30227f6efef0b8fc0c13a9b2975b6e8">QwtThermo::borderWidth</a>()<span class="keyword"> const</span>
573
<a name="l00635"></a>00635 <span class="keyword"></span>{
574
<a name="l00636"></a>00636 <span class="keywordflow">return</span> d_data->borderWidth;
575
<a name="l00637"></a>00637 }
576
<a name="l00638"></a>00638
577
<a name="l00645"></a><a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">00645</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#b9f660f7ed2c0878926cb6f02dbfe9fc">QwtThermo::setRange</a>(<span class="keywordtype">double</span> vmin, <span class="keywordtype">double</span> vmax, <span class="keywordtype">bool</span> logarithmic)
578
<a name="l00646"></a>00646 {
579
<a name="l00647"></a>00647 d_data->minValue = vmin;
580
<a name="l00648"></a>00648 d_data->maxValue = vmax;
581
<a name="l00649"></a>00649
582
<a name="l00650"></a>00650 <span class="keywordflow">if</span> ( logarithmic )
583
<a name="l00651"></a>00651 <a class="code" href="class_qwt_abstract_scale.html#a00f44140af3f2b7595cb6e23371198f">setScaleEngine</a>(<span class="keyword">new</span> <a class="code" href="class_qwt_log10_scale_engine.html">QwtLog10ScaleEngine</a>);
584
<a name="l00652"></a>00652 <span class="keywordflow">else</span>
585
<a name="l00653"></a>00653 <a class="code" href="class_qwt_abstract_scale.html#a00f44140af3f2b7595cb6e23371198f">setScaleEngine</a>(<span class="keyword">new</span> <a class="code" href="class_qwt_linear_scale_engine.html">QwtLinearScaleEngine</a>);
586
<a name="l00654"></a>00654
587
<a name="l00655"></a>00655 <span class="comment">/*</span>
588
<a name="l00656"></a>00656 <span class="comment"> There are two different maps, one for the scale, the other</span>
589
<a name="l00657"></a>00657 <span class="comment"> for the values. This is confusing and will be changed</span>
590
<a name="l00658"></a>00658 <span class="comment"> in the future. TODO ...</span>
591
<a name="l00659"></a>00659 <span class="comment"> */</span>
592
<a name="l00660"></a>00660
593
<a name="l00661"></a>00661 d_data->map.setTransformation(<a class="code" href="class_qwt_abstract_scale.html#5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a>()->transformation());
594
<a name="l00662"></a>00662 d_data->map.setScaleInterval(d_data->minValue, d_data->maxValue);
595
<a name="l00663"></a>00663
596
<a name="l00664"></a>00664 <span class="keywordflow">if</span> (<a class="code" href="class_qwt_abstract_scale.html#5b428a7c82bb3446b6a86ea4439d6970">autoScale</a>())
597
<a name="l00665"></a>00665 <a class="code" href="class_qwt_abstract_scale.html#bd7c6b312b41882a3b509aadc9ada46e">rescale</a>(d_data->minValue, d_data->maxValue);
598
<a name="l00666"></a>00666
599
<a name="l00667"></a>00667 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
600
<a name="l00668"></a>00668 }
601
<a name="l00669"></a>00669
602
<a name="l00674"></a><a class="code" href="class_qwt_thermo.html#f6ad0c2ca39afb30bb79a326484c9a21">00674</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#f6ad0c2ca39afb30bb79a326484c9a21">QwtThermo::setFillBrush</a>(<span class="keyword">const</span> QBrush& brush)
603
<a name="l00675"></a>00675 {
604
<a name="l00676"></a>00676 d_data->fillBrush = brush;
605
<a name="l00677"></a>00677 update();
606
<a name="l00678"></a>00678 }
607
<a name="l00679"></a>00679
608
<a name="l00681"></a><a class="code" href="class_qwt_thermo.html#518db519a0a2b7fa1ed483a77cb8a9ae">00681</a> <span class="keyword">const</span> QBrush& <a class="code" href="class_qwt_thermo.html#518db519a0a2b7fa1ed483a77cb8a9ae">QwtThermo::fillBrush</a>()<span class="keyword"> const</span>
609
<a name="l00682"></a>00682 <span class="keyword"></span>{
610
<a name="l00683"></a>00683 <span class="keywordflow">return</span> d_data->fillBrush;
611
<a name="l00684"></a>00684 }
612
<a name="l00685"></a>00685
613
<a name="l00690"></a><a class="code" href="class_qwt_thermo.html#f7738ccbd41d9c5a66fb9dd36198bdc7">00690</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#f7738ccbd41d9c5a66fb9dd36198bdc7">QwtThermo::setFillColor</a>(<span class="keyword">const</span> QColor &c)
614
<a name="l00691"></a>00691 {
615
<a name="l00692"></a>00692 d_data->fillBrush.setColor(c);
616
<a name="l00693"></a>00693 update();
617
<a name="l00694"></a>00694 }
618
<a name="l00695"></a>00695
619
<a name="l00697"></a><a class="code" href="class_qwt_thermo.html#300f5aa31114da6e3770912866f31729">00697</a> <span class="keyword">const</span> QColor &<a class="code" href="class_qwt_thermo.html#300f5aa31114da6e3770912866f31729">QwtThermo::fillColor</a>()<span class="keyword"> const</span>
620
<a name="l00698"></a>00698 <span class="keyword"></span>{
621
<a name="l00699"></a>00699 <span class="keywordflow">return</span> d_data->fillBrush.color();
622
<a name="l00700"></a>00700 }
623
<a name="l00701"></a>00701
624
<a name="l00706"></a><a class="code" href="class_qwt_thermo.html#1d6a0fae32e21fe6c5f54762073dbe8b">00706</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#1d6a0fae32e21fe6c5f54762073dbe8b">QwtThermo::setAlarmBrush</a>(<span class="keyword">const</span> QBrush& brush)
625
<a name="l00707"></a>00707 {
626
<a name="l00708"></a>00708 d_data->alarmBrush = brush;
627
<a name="l00709"></a>00709 update();
628
<a name="l00710"></a>00710 }
629
<a name="l00711"></a>00711
630
<a name="l00713"></a><a class="code" href="class_qwt_thermo.html#8cff6fd8ab6ad1e5f05493ebb3d63abc">00713</a> <span class="keyword">const</span> QBrush& <a class="code" href="class_qwt_thermo.html#8cff6fd8ab6ad1e5f05493ebb3d63abc">QwtThermo::alarmBrush</a>()<span class="keyword"> const</span>
631
<a name="l00714"></a>00714 <span class="keyword"></span>{
632
<a name="l00715"></a>00715 <span class="keywordflow">return</span> d_data->alarmBrush;
633
<a name="l00716"></a>00716 }
634
<a name="l00717"></a>00717
635
<a name="l00722"></a><a class="code" href="class_qwt_thermo.html#bec11e74cd21aff565496faa81732194">00722</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#bec11e74cd21aff565496faa81732194">QwtThermo::setAlarmColor</a>(<span class="keyword">const</span> QColor &c)
636
<a name="l00723"></a>00723 {
637
<a name="l00724"></a>00724 d_data->alarmBrush.setColor(c);
638
<a name="l00725"></a>00725 update();
639
<a name="l00726"></a>00726 }
640
<a name="l00727"></a>00727
641
<a name="l00729"></a><a class="code" href="class_qwt_thermo.html#5aa65c09b84e5df747a1aedcc8519cb6">00729</a> <span class="keyword">const</span> QColor &<a class="code" href="class_qwt_thermo.html#5aa65c09b84e5df747a1aedcc8519cb6">QwtThermo::alarmColor</a>()<span class="keyword"> const</span>
642
<a name="l00730"></a>00730 <span class="keyword"></span>{
643
<a name="l00731"></a>00731 <span class="keywordflow">return</span> d_data->alarmBrush.color();
644
<a name="l00732"></a>00732 }
645
<a name="l00733"></a>00733
646
<a name="l00735"></a><a class="code" href="class_qwt_thermo.html#b42dff878632d210050be2be03535f6a">00735</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#b42dff878632d210050be2be03535f6a">QwtThermo::setAlarmLevel</a>(<span class="keywordtype">double</span> v)
647
<a name="l00736"></a>00736 {
648
<a name="l00737"></a>00737 d_data->alarmLevel = v;
649
<a name="l00738"></a>00738 d_data->alarmEnabled = 1;
650
<a name="l00739"></a>00739 update();
651
<a name="l00740"></a>00740 }
652
<a name="l00741"></a>00741
653
<a name="l00743"></a><a class="code" href="class_qwt_thermo.html#ee9cf6c14feecc68fd866b0a5c1ab06b">00743</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#ee9cf6c14feecc68fd866b0a5c1ab06b">QwtThermo::alarmLevel</a>()<span class="keyword"> const</span>
654
<a name="l00744"></a>00744 <span class="keyword"></span>{
655
<a name="l00745"></a>00745 <span class="keywordflow">return</span> d_data->alarmLevel;
656
<a name="l00746"></a>00746 }
657
<a name="l00747"></a>00747
658
<a name="l00749"></a><a class="code" href="class_qwt_thermo.html#9d3a55a818ebf0dd508e20ca9eef224b">00749</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#9d3a55a818ebf0dd508e20ca9eef224b">QwtThermo::setPipeWidth</a>(<span class="keywordtype">int</span> w)
659
<a name="l00750"></a>00750 {
660
<a name="l00751"></a>00751 <span class="keywordflow">if</span> (w > 0)
661
<a name="l00752"></a>00752 {
662
<a name="l00753"></a>00753 d_data->thermoWidth = w;
663
<a name="l00754"></a>00754 <a class="code" href="class_qwt_thermo.html#29ce009b8b0546b7ce04936d27fb8364">layoutThermo</a>();
664
<a name="l00755"></a>00755 }
665
<a name="l00756"></a>00756 }
666
<a name="l00757"></a>00757
667
<a name="l00759"></a><a class="code" href="class_qwt_thermo.html#4f3901a508a3d299a3a17b1a2c4753fc">00759</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#4f3901a508a3d299a3a17b1a2c4753fc">QwtThermo::pipeWidth</a>()<span class="keyword"> const</span>
668
<a name="l00760"></a>00760 <span class="keyword"></span>{
669
<a name="l00761"></a>00761 <span class="keywordflow">return</span> d_data->thermoWidth;
670
<a name="l00762"></a>00762 }
671
<a name="l00763"></a>00763
672
<a name="l00764"></a>00764
673
<a name="l00779"></a><a class="code" href="class_qwt_thermo.html#3d4eeb20cf2259f49a4b45893bd0f979">00779</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#3d4eeb20cf2259f49a4b45893bd0f979">QwtThermo::setMargin</a>(<span class="keywordtype">int</span>)
674
<a name="l00780"></a>00780 {
675
<a name="l00781"></a>00781 }
676
<a name="l00782"></a>00782
677
<a name="l00783"></a>00783
678
<a name="l00788"></a><a class="code" href="class_qwt_thermo.html#bed75ea5e839ee4afed2c96f6927721e">00788</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#bed75ea5e839ee4afed2c96f6927721e">QwtThermo::setAlarmEnabled</a>(<span class="keywordtype">bool</span> tf)
679
<a name="l00789"></a>00789 {
680
<a name="l00790"></a>00790 d_data->alarmEnabled = tf;
681
<a name="l00791"></a>00791 update();
682
<a name="l00792"></a>00792 }
683
<a name="l00793"></a>00793
684
<a name="l00795"></a><a class="code" href="class_qwt_thermo.html#d64e8d51c78a359494c48e02d9ce5caa">00795</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_thermo.html#d64e8d51c78a359494c48e02d9ce5caa">QwtThermo::alarmEnabled</a>()<span class="keyword"> const</span>
685
<a name="l00796"></a>00796 <span class="keyword"></span>{
686
<a name="l00797"></a>00797 <span class="keywordflow">return</span> d_data->alarmEnabled;
687
<a name="l00798"></a>00798 }
688
<a name="l00799"></a>00799
689
<a name="l00804"></a><a class="code" href="class_qwt_thermo.html#1cc23f51dd1cac3d95e191fab7357335">00804</a> QSize <a class="code" href="class_qwt_thermo.html#1cc23f51dd1cac3d95e191fab7357335">QwtThermo::sizeHint</a>()<span class="keyword"> const</span>
690
<a name="l00805"></a>00805 <span class="keyword"></span>{
691
<a name="l00806"></a>00806 <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#c932b0a497b11c6ad5fc2e18889c4a02">minimumSizeHint</a>();
692
<a name="l00807"></a>00807 }
693
<a name="l00808"></a>00808
694
<a name="l00814"></a><a class="code" href="class_qwt_thermo.html#c932b0a497b11c6ad5fc2e18889c4a02">00814</a> QSize <a class="code" href="class_qwt_thermo.html#c932b0a497b11c6ad5fc2e18889c4a02">QwtThermo::minimumSizeHint</a>()<span class="keyword"> const</span>
695
<a name="l00815"></a>00815 <span class="keyword"></span>{
696
<a name="l00816"></a>00816 <span class="keywordtype">int</span> w = 0, h = 0;
697
<a name="l00817"></a>00817
698
<a name="l00818"></a>00818 <span class="keywordflow">if</span> ( d_data->scalePos != NoScale )
699
<a name="l00819"></a>00819 {
700
<a name="l00820"></a>00820 <span class="keyword">const</span> <span class="keywordtype">int</span> sdExtent = <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#5cba775772b121b45cb10c120b3cf825">extent</a>( QPen(), font() );
701
<a name="l00821"></a>00821 <span class="keyword">const</span> <span class="keywordtype">int</span> sdLength = <a class="code" href="class_qwt_thermo.html#33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-><a class="code" href="class_qwt_scale_draw.html#ed2373becd1428c14eaa5412af45205a">minLength</a>( QPen(), font() );
702
<a name="l00822"></a>00822
703
<a name="l00823"></a>00823 w = sdLength;
704
<a name="l00824"></a>00824 h = d_data->thermoWidth + sdExtent +
705
<a name="l00825"></a>00825 d_data->borderWidth + d_data->scaleDist;
706
<a name="l00826"></a>00826
707
<a name="l00827"></a>00827 }
708
<a name="l00828"></a>00828 <span class="keywordflow">else</span> <span class="comment">// no scale</span>
709
<a name="l00829"></a>00829 {
710
<a name="l00830"></a>00830 w = 200;
711
<a name="l00831"></a>00831 h = d_data->thermoWidth;
712
<a name="l00832"></a>00832 }
713
<a name="l00833"></a>00833
714
<a name="l00834"></a>00834 <span class="keywordflow">if</span> ( d_data->orientation == Qt::Vertical )
715
<a name="l00835"></a>00835 qSwap(w, h);
716
<a name="l00836"></a>00836
717
<a name="l00837"></a>00837 w += 2 * d_data->borderWidth;
718
<a name="l00838"></a>00838 h += 2 * d_data->borderWidth;
719
<a name="l00839"></a>00839
720
<a name="l00840"></a>00840 <span class="keywordflow">return</span> QSize( w, h );
721
<a name="l00841"></a>00841 }
722
<a name="l00842"></a>00842
723
<a name="l00843"></a>00843 <span class="keywordtype">int</span> QwtThermo::transform(<span class="keywordtype">double</span> value)<span class="keyword"> const</span>
724
<a name="l00844"></a>00844 <span class="keyword"></span>{
725
<a name="l00845"></a>00845 <span class="keyword">const</span> <span class="keywordtype">double</span> min = qwtMin(d_data->map.s1(), d_data->map.s2());
726
<a name="l00846"></a>00846 <span class="keyword">const</span> <span class="keywordtype">double</span> max = qwtMax(d_data->map.s1(), d_data->map.s2());
727
<a name="l00847"></a>00847
728
<a name="l00848"></a>00848 <span class="keywordflow">if</span> ( value > max )
729
<a name="l00849"></a>00849 value = max;
730
<a name="l00850"></a>00850 <span class="keywordflow">if</span> ( value < min )
731
<a name="l00851"></a>00851 value = min;
732
<a name="l00852"></a>00852
733
<a name="l00853"></a>00853 <span class="keywordflow">return</span> d_data->map.transform(value);
734
<a name="l00854"></a>00854 }
735
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:08 2009 for Qwt User's Guide by
736
<a href="http://www.doxygen.org/index.html">
737
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>