1
.TH "QwtScaleDiv" 3 "11 Jun 2007" "Version 5.0.2" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
A class representing a scale division.
13
A scale division consists of its limits and 3 list of tick values qualified as major, medium and minor ticks.
15
In most cases scale divisions are calculated by a \fBQwtScaleEngine\fP.
19
QwtScaleEngine::subDivideInto, QwtScaleEngine::subDivide
24
Definition at line 29 of file qwt_scale_div.h.
29
.RI "enum \fBTickType\fP { \fBNoTick\fP = -1, \fBMinorTick\fP, \fBMediumTick\fP, \fBMajorTick\fP, \fBNTickTypes\fP }"
32
.SS "Public Member Functions"
36
.RI "\fBQwtScaleDiv\fP ()"
39
.RI "\fBQwtScaleDiv\fP (const \fBQwtDoubleInterval\fP &, QwtValueList[NTickTypes])"
42
.RI "\fBQwtScaleDiv\fP (double lBound, double rBound, QwtValueList[NTickTypes])"
45
.RI "int \fBoperator==\fP (const \fBQwtScaleDiv\fP &s) const "
48
.RI "int \fBoperator!=\fP (const \fBQwtScaleDiv\fP &s) const "
51
.RI "double \fBlBound\fP () const "
54
.RI "double \fBhBound\fP () const "
57
.RI "double \fBrange\fP () const "
60
.RI "bool \fBcontains\fP (double v) const "
63
.RI "const QwtValueList & \fBticks\fP (int type) const "
66
.RI "void \fBinvalidate\fP ()"
69
.RI "bool \fBisValid\fP () const "
72
.RI "void \fBinvert\fP ()"
75
.SH "Constructor & Destructor Documentation"
77
.SS "QwtScaleDiv::QwtScaleDiv ()\fC [explicit]\fP"
79
Construct an invalid \fBQwtScaleDiv\fP instance.
81
Definition at line 15 of file qwt_scale_div.cpp.
82
.SS "QwtScaleDiv::QwtScaleDiv (const \fBQwtDoubleInterval\fP & interval, QwtValueList ticks[NTickTypes])\fC [explicit]\fP"
84
Construct \fBQwtScaleDiv\fP instance.
88
\fIinterval\fP Interval
90
\fIticks\fP List of major, medium and minor ticks
95
Definition at line 28 of file qwt_scale_div.cpp.
98
.SS "QwtScaleDiv::QwtScaleDiv (double lBound, double hBound, QwtValueList ticks[NTickTypes])\fC [explicit]\fP"
100
Construct \fBQwtScaleDiv\fP instance.
104
\fIlBound\fP First interval limit
106
\fIhBound\fP Second interval limit
108
\fIticks\fP List of major, medium and minor ticks
113
Definition at line 46 of file qwt_scale_div.cpp.
116
.SH "Member Function Documentation"
118
.SS "double QwtScaleDiv::hBound () const\fC [inline]\fP"
127
\fBQwtScaleDiv::lBound\fP
132
Definition at line 86 of file qwt_scale_div.h.
134
Referenced by QwtPlot::canvasMap(), QwtPlotPanner::moveCanvas(), QwtPlotZoomer::rescale(), and QwtAbstractScaleDraw::setScaleDiv().
135
.SS "void QwtScaleDiv::invalidate ()"
137
Invalidate the scale division.
139
Definition at line 89 of file qwt_scale_div.cpp.
140
.SS "void QwtScaleDiv::invert ()"
142
Invert the scale divison.
144
Definition at line 118 of file qwt_scale_div.cpp.
148
Referenced by QwtLog10ScaleEngine::divideScale().
149
.SS "bool QwtScaleDiv::isValid () const"
151
Check if the scale division is valid.
153
Definition at line 101 of file qwt_scale_div.cpp.
154
.SS "double QwtScaleDiv::lBound () const\fC [inline]\fP"
163
\fBQwtScaleDiv::hBound\fP
168
Definition at line 77 of file qwt_scale_div.h.
170
Referenced by QwtPlot::canvasMap(), QwtPlotPanner::moveCanvas(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), QwtPlotPicker::scaleRect(), and QwtAbstractScaleDraw::setScaleDiv().
171
.SS "int QwtScaleDiv::operator!= (const \fBQwtScaleDiv\fP & s) const"
177
true if this instance is not equal to s
182
Definition at line 83 of file qwt_scale_div.cpp.
183
.SS "int QwtScaleDiv::operator== (const \fBQwtScaleDiv\fP & other) const"
189
true if this instance is equal to other
194
Definition at line 61 of file qwt_scale_div.cpp.
196
References d_hBound, d_isValid, d_lBound, and d_ticks.
197
.SS "double QwtScaleDiv::range () const\fC [inline]\fP"
201
\fBhBound()\fP - \fBlBound()\fP
206
Definition at line 94 of file qwt_scale_div.h.
208
Referenced by QwtPlotPicker::scaleRect().
209
.SS "const QwtValueList & QwtScaleDiv::ticks (int type) const"
211
Return a list of ticks
215
\fItype\fP MinorTick, MediumTick or MajorTick
220
Definition at line 139 of file qwt_scale_div.cpp.
222
Referenced by QwtRoundScaleDraw::extent(), QwtScaleDraw::getBorderDistHint(), invert(), QwtScaleDraw::maxLabelHeight(), QwtScaleDraw::maxLabelWidth(), QwtScaleDraw::minLabelDist(), QwtScaleDraw::minLength(), QwtScaleDiv(), and QwtPlot::sizeHint().
226
Generated automatically by Doxygen for Qwt User's Guide from the source code.