1
.TH "QwtLinearScaleEngine" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
5
QwtLinearScaleEngine \-
9
Inherits \fBQwtScaleEngine\fP.
11
.SH "Detailed Description"
13
A scale engine for linear scales.
15
The step size will fit into the pattern $\left\{ 1,2,5\right\} \cdot 10^{n}$, where n is an integer.
17
Definition at line 126 of file qwt_scale_engine.h.
18
.SS "Public Member Functions"
22
.RI "virtual void \fBautoScale\fP (int maxSteps, double &x1, double &x2, double &stepSize) const"
25
.RI "virtual \fBQwtScaleDiv\fP \fBdivideScale\fP (double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) const"
28
.RI "virtual \fBQwtScaleTransformation\fP * \fBtransformation\fP () const"
31
.SS "Protected Member Functions"
35
.RI "\fBQwtDoubleInterval\fP \fBalign\fP (const \fBQwtDoubleInterval\fP &, double stepSize) const"
38
.SH "Member Function Documentation"
40
.SS "void QwtLinearScaleEngine::autoScale (int maxNumSteps, double & x1, double & x2, double & stepSize) const\fC [virtual]\fP"
42
Align and divide an interval
46
\fImaxNumSteps\fP Max. number of steps
48
\fIx1\fP First limit of the interval (In/Out)
50
\fIx2\fP Second limit of the interval (In/Out)
52
\fIstepSize\fP Step size (Out)
57
\fBQwtLinearScaleEngine::setAttribute\fP
62
Implements \fBQwtScaleEngine\fP.
64
Definition at line 417 of file qwt_scale_engine.cpp.
66
References align(), QwtScaleEngine::buildInterval(), QwtScaleEngine::divideInterval(), QwtDoubleInterval::extend(), QwtScaleEngine::hiMargin(), QwtScaleEngine::loMargin(), QwtDoubleInterval::maxValue(), QwtDoubleInterval::minValue(), QwtDoubleInterval::normalized(), QwtScaleEngine::reference(), QwtDoubleInterval::setMaxValue(), QwtDoubleInterval::setMinValue(), QwtDoubleInterval::symmetrize(), QwtScaleEngine::testAttribute(), and QwtDoubleInterval::width().
67
.SS "\fBQwtScaleDiv\fP QwtLinearScaleEngine::divideScale (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize = \fC0.0\fP) const\fC [virtual]\fP"
69
Calculate a scale division.
73
\fIx1\fP First interval limit
75
\fIx2\fP Second interval limit
77
\fImaxMajSteps\fP Maximum for the number of major steps
79
\fImaxMinSteps\fP Maximum number of minor steps
81
\fIstepSize\fP Step size. If stepSize == 0, the scaleEngine calculates one.
86
QwtScaleEngine::stepSize, QwtScaleEngine::subDivide
91
Implements \fBQwtScaleEngine\fP.
93
Definition at line 462 of file qwt_scale_engine.cpp.
95
References QwtScaleEngine::divideInterval(), and QwtDoubleInterval::width().
97
Referenced by QwtLog10ScaleEngine::divideScale(), and QwtDial::updateScale().
98
.SS "\fBQwtScaleTransformation\fP * QwtLinearScaleEngine::transformation () const\fC [virtual]\fP"
100
Return a transformation, for linear scales
102
Implements \fBQwtScaleEngine\fP.
104
Definition at line 402 of file qwt_scale_engine.cpp.
106
Referenced by QwtDial::updateScale().
107
.SS "\fBQwtDoubleInterval\fP QwtLinearScaleEngine::align (const \fBQwtDoubleInterval\fP & interval, double stepSize) const\fC [protected]\fP"
109
Align an interval to a step size.
111
The limits of an interval are aligned that both are integer multiples of the step size.
115
\fIinterval\fP Interval
117
\fIstepSize\fP Step size
127
Definition at line 601 of file qwt_scale_engine.cpp.
129
References QwtScaleArithmetic::ceilEps(), QwtScaleArithmetic::floorEps(), QwtDoubleInterval::maxValue(), and QwtDoubleInterval::minValue().
131
Referenced by autoScale().
135
Generated automatically by Doxygen for Qwt User's Guide from the source code.