File: qwt__plot__axis_8cpp-source.html

package info (click to toggle)
libqwt 4.2.0-4.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 66
file content (310 lines) | stat: -rw-r--r-- 24,226 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User&apos;s Guide: qwt_plot_axis.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>qwt_plot_axis.cpp</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009 
00010 <span class="preprocessor">#include "qwt_plot.h"</span>
00011 <span class="preprocessor">#include "qwt_scale.h"</span>
00012 <span class="preprocessor">#include "<a class="code" href="qwt__math_8h.html">qwt_math.h</a>"</span>
00013 
<a name="l00018"></a><a class="code" href="class_qwt_plot.html#a109">00018</a> <span class="keyword">const</span> <a class="code" href="class_qwt_scale.html">QwtScale</a> *<a class="code" href="class_qwt_plot.html#a109">QwtPlot::axis</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00019 <span class="keyword"></span>{
00020     <span class="keywordflow">return</span> <a class="code" href="class_qwt_plot.html#a97">axisEnabled</a>(axis) ? d_scale[axis] : 0;
00021 }
00022 
<a name="l00027"></a><a class="code" href="class_qwt_plot.html#a95">00027</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a95">QwtPlot::axisAutoScale</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00028 <span class="keyword"></span>{
00029     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00030         <span class="keywordflow">return</span> d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a3">autoScale</a>();
00031     <span class="keywordflow">else</span>
00032         <span class="keywordflow">return</span> FALSE;
00033     
00034 }
00035 
<a name="l00040"></a><a class="code" href="class_qwt_plot.html#a97">00040</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a97">QwtPlot::axisEnabled</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00041 <span class="keyword"></span>{
00042     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00043         <span class="keywordflow">return</span> d_axisEnabled[axis];
00044     <span class="keywordflow">else</span>
00045         <span class="keywordflow">return</span> FALSE;
00046 }
00047 
<a name="l00052"></a><a class="code" href="class_qwt_plot.html#a102">00052</a> QFont <a class="code" href="class_qwt_plot.html#a102">QwtPlot::axisFont</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00053 <span class="keyword"></span>{
00054     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00055         <span class="keywordflow">return</span> d_scale[axis]-&gt;font();
00056     <span class="keywordflow">else</span>
00057         <span class="keywordflow">return</span> QFont();
00058     
00059 }
00060 
<a name="l00068"></a><a class="code" href="class_qwt_plot.html#a104">00068</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a104">QwtPlot::axisMargins</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> &amp;mlo, <span class="keywordtype">double</span> &amp;mhi)<span class="keyword"> const</span>
00069 <span class="keyword"></span>{
00070     <span class="keywordtype">int</span> rv = FALSE;
00071     
00072     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00073     {
00074         mlo = d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a17">loMargin</a>();
00075         mhi = d_as[axis].hiMargin();
00076         rv = TRUE;
00077     }
00078     
00079     <span class="keywordflow">return</span> rv;
00080 }
00081 
<a name="l00086"></a><a class="code" href="class_qwt_plot.html#a121">00086</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a121">QwtPlot::axisMaxMajor</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00087 <span class="keyword"></span>{
00088     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00089         <span class="keywordflow">return</span> d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a11">maxMajor</a>();
00090     <span class="keywordflow">else</span>
00091         <span class="keywordflow">return</span> 0;
00092 }
00093 
<a name="l00098"></a><a class="code" href="class_qwt_plot.html#a123">00098</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a123">QwtPlot::axisMaxMinor</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00099 <span class="keyword"></span>{
00100     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00101         <span class="keywordflow">return</span> d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a13">maxMinor</a>();
00102     <span class="keywordflow">else</span>
00103         <span class="keywordflow">return</span> 0;
00104 }
00105 
<a name="l00111"></a><a class="code" href="class_qwt_plot.html#a100">00111</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a100">QwtPlot::axisOptions</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00112 <span class="keyword"></span>{
00113     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00114         <span class="keywordflow">return</span> d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a9">options</a>();
00115     <span class="keywordflow">else</span>
00116         <span class="keywordflow">return</span> 0;
00117 }
00118 
<a name="l00127"></a><a class="code" href="class_qwt_plot.html#a125">00127</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot.html#a125">QwtPlot::axisReference</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00128 <span class="keyword"></span>{
00129     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00130         <span class="keywordflow">return</span> d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a15">reference</a>();
00131     <span class="keywordflow">else</span>
00132         <span class="keywordflow">return</span> 0.0;
00133 }
00134 
<a name="l00140"></a><a class="code" href="class_qwt_plot.html#a107">00140</a> <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> *<a class="code" href="class_qwt_plot.html#a107">QwtPlot::axisScale</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00141 <span class="keyword"></span>{
00142     <span class="keywordflow">if</span> (!<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00143         <span class="keywordflow">return</span> NULL;
00144 
00145     <span class="keywordflow">return</span> &amp;d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a20">scaleDiv</a>();
00146 }
00147 
<a name="l00154"></a><a class="code" href="class_qwt_plot.html#a108">00154</a> <span class="keyword">const</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *<a class="code" href="class_qwt_plot.html#a108">QwtPlot::axisScaleDraw</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00155 <span class="keyword"></span>{
00156     <span class="keywordflow">if</span> (!<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00157         <span class="keywordflow">return</span> NULL;
00158 
00159     <span class="keywordflow">return</span> d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a21">scaleDraw</a>();
00160 }
00161 
<a name="l00170"></a><a class="code" href="class_qwt_plot.html#a111">00170</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a111">QwtPlot::axisLabelFormat</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">char</span> &amp;f, 
00171     <span class="keywordtype">int</span> &amp;prec, <span class="keywordtype">int</span> &amp;fieldwidth)<span class="keyword"> const</span>
00172 <span class="keyword"></span>{
00173     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00174         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a23">labelFormat</a>(f, prec, fieldwidth);
00175     <span class="keywordflow">else</span>
00176     {
00177                 <span class="comment">// to do something useful for a bad call we</span>
00178                 <span class="comment">// return the default values of QwtScaleDraw</span>
00179         f = <span class="charliteral">'g'</span>; 
00180         prec = 4;
00181         fieldwidth = 0;
00182     }
00183 }
00184 
<a name="l00189"></a><a class="code" href="class_qwt_plot.html#a115">00189</a> QString <a class="code" href="class_qwt_plot.html#a115">QwtPlot::axisTitle</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00190 <span class="keyword"></span>{
00191     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00192         <span class="keywordflow">return</span> d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a4">title</a>();
00193     <span class="keywordflow">else</span>
00194         <span class="keywordflow">return</span> QString::null;
00195 }
00196 
<a name="l00201"></a><a class="code" href="class_qwt_plot.html#a117">00201</a> QFont <a class="code" href="class_qwt_plot.html#a117">QwtPlot::axisTitleFont</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00202 <span class="keyword"></span>{
00203     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00204         <span class="keywordflow">return</span> d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a8">titleFont</a>();
00205     <span class="keywordflow">else</span>
00206         <span class="keywordflow">return</span> QFont();
00207 }
00208 
<a name="l00214"></a><a class="code" href="class_qwt_plot.html#a119">00214</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a119">QwtPlot::axisTitleAlignment</a>(<span class="keywordtype">int</span> axis)<span class="keyword"> const</span>
00215 <span class="keyword"></span>{
00216     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00217         <span class="keywordflow">return</span> d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a10">titleAlignment</a>();
00218     <span class="keywordflow">else</span>
00219         <span class="keywordflow">return</span> 0;
00220 }
00221 
<a name="l00229"></a><a class="code" href="class_qwt_plot.html#a98">00229</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a98">QwtPlot::changeAxisOptions</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> opt, <span class="keywordtype">bool</span> value)
00230 {
00231     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00232     {
00233         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a6">changeOptions</a>(opt, value);
00234         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00235     }
00236 }
00237 
00238 
<a name="l00251"></a><a class="code" href="class_qwt_plot.html#a96">00251</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a96">QwtPlot::enableAxis</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">bool</span> tf)
00252 {
00253     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00254     {
00255         d_axisEnabled[axis] = tf;
00256         <a class="code" href="class_qwt_plot.html#b6">updateLayout</a>();
00257     }
00258 }
00259 
<a name="l00268"></a><a class="code" href="class_qwt_plot.html#a40">00268</a> <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot.html#a40">QwtPlot::invTransform</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> pos)<span class="keyword"> const</span>
00269 <span class="keyword"></span>{
00270     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00271        <span class="keywordflow">return</span>(<a class="code" href="class_qwt_plot.html#a39">canvasMap</a>(axis).<a class="code" href="class_qwt_di_map.html#a8">invTransform</a>(pos));
00272     <span class="keywordflow">else</span>
00273        <span class="keywordflow">return</span> 0.0;
00274 }
00275 
00276 
<a name="l00284"></a><a class="code" href="class_qwt_plot.html#a41">00284</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a41">QwtPlot::transform</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> value)<span class="keyword"> const</span>
00285 <span class="keyword"></span>{
00286     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00287        <span class="keywordflow">return</span>(<a class="code" href="class_qwt_plot.html#a39">canvasMap</a>(axis).<a class="code" href="class_qwt_di_map.html#a7">transform</a>(value));
00288     <span class="keywordflow">else</span>
00289        <span class="keywordflow">return</span> 0;
00290     
00291 }
00292 
<a name="l00300"></a><a class="code" href="class_qwt_plot.html#a101">00300</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a101">QwtPlot::setAxisFont</a>(<span class="keywordtype">int</span> axis, <span class="keyword">const</span> QFont &amp;f)
00301 {
00302     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00303         d_scale[axis]-&gt;setFont(f);
00304 }
00305 
<a name="l00315"></a><a class="code" href="class_qwt_plot.html#a103">00315</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a103">QwtPlot::setAxisMargins</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> mlo, <span class="keywordtype">double</span> mhi)
00316 {
00317     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00318     {
00319         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a16">setMargins</a>(mlo, mhi);
00320         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00321     }
00322 }
00323 
<a name="l00330"></a><a class="code" href="class_qwt_plot.html#a99">00330</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a99">QwtPlot::setAxisOptions</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> opt)
00331 {
00332     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00333     {
00334         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a7">setOptions</a>(opt);
00335         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00336     }
00337 }
00338 
00339 
<a name="l00349"></a><a class="code" href="class_qwt_plot.html#a94">00349</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a94">QwtPlot::setAxisAutoScale</a>(<span class="keywordtype">int</span> axis)
00350 {
00351     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00352     {
00353         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a2">setAutoScale</a>();
00354         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00355     }
00356 }
00357 
<a name="l00367"></a><a class="code" href="class_qwt_plot.html#a105">00367</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a105">QwtPlot::setAxisScale</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> min, <span class="keywordtype">double</span> max, <span class="keywordtype">double</span> step)
00368 {
00369     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00370     {
00371         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a19">setScale</a>(min,max,step);
00372         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00373     }
00374     
00375 }
00376 
<a name="l00392"></a><a class="code" href="class_qwt_plot.html#a106">00392</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a106">QwtPlot::setAxisScaleDraw</a>(<span class="keywordtype">int</span> axis, <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *scaleDraw)
00393 {
00394     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00395     {
00396         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a20">setScaleDraw</a>(scaleDraw);
00397         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00398     }
00399 }
00400 
<a name="l00409"></a><a class="code" href="class_qwt_plot.html#a110">00409</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a110">QwtPlot::setAxisLabelFormat</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">char</span> f, <span class="keywordtype">int</span> prec, <span class="keywordtype">int</span> fieldwidth)
00410 {
00411     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00412         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a22">setLabelFormat</a>(f, prec, fieldwidth);
00413 }
00414 
<a name="l00421"></a><a class="code" href="class_qwt_plot.html#a112">00421</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a112">QwtPlot::setAxisLabelAlignment</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> alignment)
00422 {
00423     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00424         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a24">setLabelAlignment</a>(alignment);
00425 }
00426 
<a name="l00434"></a><a class="code" href="class_qwt_plot.html#a113">00434</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a113">QwtPlot::setAxisLabelRotation</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> rotation)
00435 {
00436     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00437         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a25">setLabelRotation</a>(rotation);
00438 }
00439 
<a name="l00445"></a><a class="code" href="class_qwt_plot.html#a116">00445</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a116">QwtPlot::setAxisTitleFont</a>(<span class="keywordtype">int</span> axis, <span class="keyword">const</span> QFont &amp;f)
00446 {
00447     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00448         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a7">setTitleFont</a>(f);
00449 }
00450 
<a name="l00457"></a><a class="code" href="class_qwt_plot.html#a118">00457</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a118">QwtPlot::setAxisTitleAlignment</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> align)
00458 {
00459     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00460         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a9">setTitleAlignment</a>(align);
00461 }
00462 
00463 
<a name="l00470"></a><a class="code" href="class_qwt_plot.html#a120">00470</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a120">QwtPlot::setAxisMaxMinor</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> maxMinor)
00471 {
00472     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00473     {
00474         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a12">setMaxMinor</a>(maxMinor);
00475         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00476     }
00477 }
00478 
<a name="l00485"></a><a class="code" href="class_qwt_plot.html#a122">00485</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a122">QwtPlot::setAxisMaxMajor</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">int</span> maxMajor)
00486 {
00487     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00488     {
00489         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a10">setMaxMajor</a>(maxMajor);
00490         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00491     }
00492 }
00493 
<a name="l00502"></a><a class="code" href="class_qwt_plot.html#a124">00502</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a124">QwtPlot::setAxisReference</a>(<span class="keywordtype">int</span> axis, <span class="keywordtype">double</span> value)
00503 {
00504     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00505     {
00506         d_as[axis].<a class="code" href="class_qwt_auto_scale.html#a14">setReference</a>(value);
00507         <a class="code" href="class_qwt_plot.html#b0">autoRefresh</a>();
00508     }
00509 }
00510 
<a name="l00516"></a><a class="code" href="class_qwt_plot.html#a114">00516</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a114">QwtPlot::setAxisTitle</a>(<span class="keywordtype">int</span> axis, <span class="keyword">const</span> QString &amp;t)
00517 {
00518     <span class="keywordflow">if</span> (<a class="code" href="class_qwt_plot.html#f0">axisValid</a>(axis))
00519         d_scale[axis]-&gt;<a class="code" href="class_qwt_scale.html#a3">setTitle</a>(t);
00520 }
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>