1
.TH "QwtScaleDiv" 3 "22 Mar 2009" "Version 5.1.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 30 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 "void \fBsetInterval\fP (double lBound, double rBound)"
54
.RI "void \fBsetInterval\fP (const \fBQwtDoubleInterval\fP &)"
57
.RI "\fBQwtDoubleInterval\fP \fBinterval\fP () const"
60
.RI "double \fBlBound\fP () const"
63
.RI "double \fBhBound\fP () const"
66
.RI "double \fBrange\fP () const"
69
.RI "bool \fBcontains\fP (double v) const"
72
.RI "void \fBsetTicks\fP (int type, const QwtValueList &)"
75
.RI "const QwtValueList & \fBticks\fP (int type) const"
78
.RI "void \fBinvalidate\fP ()"
81
.RI "bool \fBisValid\fP () const"
84
.RI "void \fBinvert\fP ()"
87
.SH "Constructor & Destructor Documentation"
89
.SS "QwtScaleDiv::QwtScaleDiv ()\fC [explicit]\fP"
91
Construct an invalid \fBQwtScaleDiv\fP instance.
93
Definition at line 15 of file qwt_scale_div.cpp.
94
.SS "QwtScaleDiv::QwtScaleDiv (const \fBQwtDoubleInterval\fP & interval, QwtValueList ticks[NTickTypes])\fC [explicit]\fP"
96
Construct \fBQwtScaleDiv\fP instance.
100
\fIinterval\fP Interval
102
\fIticks\fP List of major, medium and minor ticks
107
Definition at line 28 of file qwt_scale_div.cpp.
110
.SS "QwtScaleDiv::QwtScaleDiv (double lBound, double hBound, QwtValueList ticks[NTickTypes])\fC [explicit]\fP"
112
Construct \fBQwtScaleDiv\fP instance.
116
\fIlBound\fP First interval limit
118
\fIhBound\fP Second interval limit
120
\fIticks\fP List of major, medium and minor ticks
125
Definition at line 46 of file qwt_scale_div.cpp.
128
.SH "Member Function Documentation"
130
.SS "int QwtScaleDiv::operator== (const \fBQwtScaleDiv\fP & other) const"
136
true if this instance is equal to other
141
Definition at line 70 of file qwt_scale_div.cpp.
143
References d_hBound, d_isValid, d_lBound, and d_ticks.
144
.SS "int QwtScaleDiv::operator!= (const \fBQwtScaleDiv\fP & s) const"
150
true if this instance is not equal to s
155
Definition at line 92 of file qwt_scale_div.cpp.
156
.SS "void QwtScaleDiv::setInterval (double lBound, double hBound)\fC [inline]\fP"
158
Change the interval left bound right bound
160
Definition at line 84 of file qwt_scale_div.h.
162
Referenced by setInterval().
163
.SS "void QwtScaleDiv::setInterval (const \fBQwtDoubleInterval\fP & interval)"
165
Change the interval Interval
167
Definition at line 61 of file qwt_scale_div.cpp.
169
References interval(), QwtDoubleInterval::maxValue(), QwtDoubleInterval::minValue(), and setInterval().
170
.SS "\fBQwtDoubleInterval\fP QwtScaleDiv::interval () const\fC [inline]\fP"
179
Definition at line 93 of file qwt_scale_div.h.
181
Referenced by setInterval().
182
.SS "double QwtScaleDiv::lBound () const\fC [inline]\fP"
191
\fBQwtScaleDiv::hBound\fP
196
Definition at line 102 of file qwt_scale_div.h.
198
Referenced by QwtPlot::canvasMap(), QwtPlotPanner::moveCanvas(), QwtPlot::print(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), QwtPlotPicker::scaleRect(), and QwtAbstractScaleDraw::setScaleDiv().
199
.SS "double QwtScaleDiv::hBound () const\fC [inline]\fP"
208
\fBQwtScaleDiv::lBound\fP
213
Definition at line 111 of file qwt_scale_div.h.
215
Referenced by QwtPlot::canvasMap(), QwtPlotPanner::moveCanvas(), QwtPlot::print(), QwtPlotZoomer::rescale(), and QwtAbstractScaleDraw::setScaleDiv().
216
.SS "double QwtScaleDiv::range () const\fC [inline]\fP"
220
\fBhBound()\fP - \fBlBound()\fP
225
Definition at line 119 of file qwt_scale_div.h.
227
Referenced by QwtPlotPicker::scaleRect().
228
.SS "void QwtScaleDiv::setTicks (int type, const QwtValueList & ticks)"
234
\fItype\fP MinorTick, MediumTick or MajorTick
236
\fIticks\fP Values of the tick positions
241
Definition at line 149 of file qwt_scale_div.cpp.
242
.SS "const QwtValueList & QwtScaleDiv::ticks (int type) const"
244
Return a list of ticks
248
\fItype\fP MinorTick, MediumTick or MajorTick
253
Definition at line 160 of file qwt_scale_div.cpp.
255
Referenced by QwtRoundScaleDraw::extent(), QwtScaleDraw::getBorderDistHint(), invert(), QwtScaleDraw::maxLabelHeight(), QwtScaleDraw::maxLabelWidth(), QwtScaleDraw::minLabelDist(), QwtScaleDraw::minLength(), QwtScaleDiv(), and QwtPlot::sizeHint().
256
.SS "void QwtScaleDiv::invalidate ()"
258
Invalidate the scale division.
260
Definition at line 98 of file qwt_scale_div.cpp.
261
.SS "bool QwtScaleDiv::isValid () const"
263
Check if the scale division is valid.
265
Definition at line 110 of file qwt_scale_div.cpp.
266
.SS "void QwtScaleDiv::invert ()"
268
Invert the scale divison.
270
Definition at line 127 of file qwt_scale_div.cpp.
274
Referenced by QwtLog10ScaleEngine::divideScale().
278
Generated automatically by Doxygen for Qwt User's Guide from the source code.