1
.TH "QwtAbstractScale" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
Inherited by \fBQwtKnob\fP, \fBQwtSlider\fP, and \fBQwtThermo\fP.
11
.SH "Detailed Description"
13
An abstract base class for classes containing a scale.
15
\fBQwtAbstractScale\fP is used to provide classes with a \fBQwtScaleDraw\fP, and a \fBQwtScaleDiv\fP. The \fBQwtScaleDiv\fP might be set explicitely or calculated by a \fBQwtScaleEngine\fP.
17
Definition at line 29 of file qwt_abstract_scale.h.
18
.SS "Public Member Functions"
22
.RI "\fBQwtAbstractScale\fP ()"
25
.RI "virtual \fB~QwtAbstractScale\fP ()"
28
.RI "void \fBsetScale\fP (double vmin, double vmax, double step=0.0)"
31
.RI "void \fBsetScale\fP (const \fBQwtDoubleInterval\fP &, double step=0.0)"
34
.RI "void \fBsetScale\fP (const \fBQwtScaleDiv\fP &s)"
37
.RI "void \fBsetAutoScale\fP ()"
40
.RI "bool \fBautoScale\fP () const"
43
.RI "void \fBsetScaleMaxMajor\fP (int ticks)"
46
.RI "int \fBscaleMaxMinor\fP () const"
49
.RI "void \fBsetScaleMaxMinor\fP (int ticks)"
52
.RI "int \fBscaleMaxMajor\fP () const"
55
.RI "void \fBsetScaleEngine\fP (\fBQwtScaleEngine\fP *)"
58
.RI "const \fBQwtScaleEngine\fP * \fBscaleEngine\fP () const"
61
.RI "\fBQwtScaleEngine\fP * \fBscaleEngine\fP ()"
64
.RI "const \fBQwtScaleMap\fP & \fBscaleMap\fP () const"
67
.SS "Protected Member Functions"
71
.RI "void \fBrescale\fP (double vmin, double vmax, double step=0.0)"
74
.RI "void \fBsetAbstractScaleDraw\fP (\fBQwtAbstractScaleDraw\fP *)"
77
.RI "const \fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP () const"
80
.RI "\fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP ()"
83
.RI "virtual void \fBscaleChange\fP ()"
86
.SH "Constructor & Destructor Documentation"
88
.SS "QwtAbstractScale::QwtAbstractScale ()"
92
Creates a default \fBQwtScaleDraw\fP and a \fBQwtLinearScaleEngine\fP. Autoscaling is enabled, and the stepSize is initialized by 0.0.
94
Definition at line 53 of file qwt_abstract_scale.cpp.
97
.SS "QwtAbstractScale::~QwtAbstractScale ()\fC [virtual]\fP"
101
Definition at line 60 of file qwt_abstract_scale.cpp.
102
.SH "Member Function Documentation"
104
.SS "void QwtAbstractScale::setScale (double vmin, double vmax, double stepSize = \fC0.0\fP)"
108
Disable autoscaling and define a scale by an interval and a step size
112
\fIvmin\fP lower limit of the scale interval
114
\fIvmax\fP upper limit of the scale interval
116
\fIstepSize\fP major step size
126
Definition at line 75 of file qwt_abstract_scale.cpp.
128
References rescale().
130
Referenced by setScale().
131
.SS "void QwtAbstractScale::setScale (const \fBQwtDoubleInterval\fP & interval, double stepSize = \fC0.0\fP)"
135
Disable autoscaling and define a scale by an interval and a step size
139
\fIinterval\fP Interval
141
\fIstepSize\fP major step size
151
Definition at line 92 of file qwt_abstract_scale.cpp.
153
References QwtDoubleInterval::maxValue(), QwtDoubleInterval::minValue(), and setScale().
154
.SS "void QwtAbstractScale::setScale (const \fBQwtScaleDiv\fP & scaleDiv)"
158
Disable autoscaling and define a scale by a scale division
162
\fIscaleDiv\fP Scale division
172
Definition at line 107 of file qwt_abstract_scale.cpp.
174
References scaleChange().
175
.SS "void QwtAbstractScale::setAutoScale ()"
177
Advise the widget to control the scale range internally.
179
Autoscaling is on by default.
183
\fBsetScale()\fP, \fBautoScale()\fP
188
Definition at line 147 of file qwt_abstract_scale.cpp.
190
References scaleChange().
191
.SS "bool QwtAbstractScale::autoScale () const"
195
\fCtrue\fP if autoscaling is enabled
200
Definition at line 159 of file qwt_abstract_scale.cpp.
202
Referenced by QwtSlider::rangeChange(), and QwtThermo::setRange().
203
.SS "void QwtAbstractScale::setScaleMaxMajor (int ticks)"
205
Set the maximum number of major tick intervals.
207
The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5.
211
\fIticks\fP maximal number of major ticks.
216
\fBQwtAbstractScaleDraw\fP
221
Definition at line 173 of file qwt_abstract_scale.cpp.
222
.SS "int QwtAbstractScale::scaleMaxMinor () const"
226
Max. number of minor tick intervals The default value is 3.
231
Definition at line 204 of file qwt_abstract_scale.cpp.
232
.SS "void QwtAbstractScale::setScaleMaxMinor (int ticks)"
234
Set the maximum number of minor tick intervals.
236
The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3.
245
\fBQwtAbstractScaleDraw\fP
250
Definition at line 191 of file qwt_abstract_scale.cpp.
251
.SS "int QwtAbstractScale::scaleMaxMajor () const"
255
Max. number of major tick intervals The default value is 5.
260
Definition at line 213 of file qwt_abstract_scale.cpp.
261
.SS "void QwtAbstractScale::setScaleEngine (\fBQwtScaleEngine\fP * scaleEngine)"
265
The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale.
267
scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine.
269
Definition at line 269 of file qwt_abstract_scale.cpp.
271
References scaleEngine().
273
Referenced by QwtThermo::setRange().
274
.SS "const \fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine () const"
283
\fBsetScaleEngine()\fP
288
Definition at line 282 of file qwt_abstract_scale.cpp.
290
Referenced by QwtThermo::setRange(), and setScaleEngine().
291
.SS "\fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine ()"
300
\fBsetScaleEngine()\fP
305
Definition at line 291 of file qwt_abstract_scale.cpp.
306
.SS "const \fBQwtScaleMap\fP & QwtAbstractScale::scaleMap () const"
310
\fBabstractScaleDraw()\fP->\fBscaleMap()\fP
315
Definition at line 308 of file qwt_abstract_scale.cpp.
316
.SS "void QwtAbstractScale::rescale (double vmin, double vmax, double stepSize = \fC0.0\fP)\fC [protected]\fP"
318
Recalculate the scale division and update the scale draw.
322
\fIvmin\fP Lower limit of the scale interval
324
\fIvmax\fP Upper limit of the scale interval
326
\fIstepSize\fP Major step size
336
Definition at line 127 of file qwt_abstract_scale.cpp.
338
References scaleChange().
340
Referenced by QwtAbstractScale(), QwtSlider::rangeChange(), QwtThermo::setRange(), and setScale().
341
.SS "void QwtAbstractScale::setAbstractScaleDraw (\fBQwtAbstractScaleDraw\fP * scaleDraw)\fC [protected]\fP"
345
scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw.
347
Definition at line 224 of file qwt_abstract_scale.cpp.
349
References QwtAbstractScaleDraw::setScaleDiv().
351
Referenced by QwtThermo::setScaleDraw(), QwtSlider::setScaleDraw(), and QwtKnob::setScaleDraw().
352
.SS "const \fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw () const\fC [protected]\fP"
361
\fBsetAbstractScaleDraw()\fP
366
Definition at line 249 of file qwt_abstract_scale.cpp.
368
Referenced by QwtThermo::scaleDraw(), QwtSlider::scaleDraw(), and QwtKnob::scaleDraw().
369
.SS "\fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw ()\fC [protected]\fP"
378
\fBsetAbstractScaleDraw()\fP
383
Definition at line 240 of file qwt_abstract_scale.cpp.
384
.SS "void QwtAbstractScale::scaleChange ()\fC [protected, virtual]\fP"
386
Notify changed scale.
388
Dummy empty implementation, intended to be overloaded by derived classes
390
Reimplemented in \fBQwtSlider\fP, and \fBQwtThermo\fP.
392
Definition at line 301 of file qwt_abstract_scale.cpp.
394
Referenced by rescale(), setAutoScale(), and setScale().
398
Generated automatically by Doxygen for Qwt User's Guide from the source code.