1
.TH "QwtScaleMap" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
13
\fBQwtScaleMap\fP offers transformations from a scale into a paint interval and vice versa.
15
Definition at line 55 of file qwt_scale_map.h.
16
.SS "Public Member Functions"
20
.RI "\fBQwtScaleMap\fP ()"
23
.RI "\fBQwtScaleMap\fP (const \fBQwtScaleMap\fP &)"
26
.RI "\fB~QwtScaleMap\fP ()"
29
.RI "\fBQwtScaleMap\fP & \fBoperator=\fP (const \fBQwtScaleMap\fP &)"
32
.RI "void \fBsetTransformation\fP (\fBQwtScaleTransformation\fP *)"
35
.RI "const \fBQwtScaleTransformation\fP * \fBtransformation\fP () const"
38
.RI "void \fBsetPaintInterval\fP (int p1, int p2)"
41
.RI "void \fBsetPaintXInterval\fP (double p1, double p2)"
44
.RI "void \fBsetScaleInterval\fP (double s1, double s2)"
47
.RI "int \fBtransform\fP (double x) const"
50
.RI "double \fBinvTransform\fP (double i) const"
53
.RI "double \fBxTransform\fP (double x) const"
56
.RI "double \fBp1\fP () const"
59
.RI "double \fBp2\fP () const"
62
.RI "double \fBs1\fP () const"
65
.RI "double \fBs2\fP () const"
68
.RI "double \fBpDist\fP () const"
71
.RI "double \fBsDist\fP () const"
74
.SS "Public Attributes"
78
.RI "QT_STATIC_CONST double \fBLogMin\fP"
81
.RI "QT_STATIC_CONST double \fBLogMax\fP"
84
.SH "Constructor & Destructor Documentation"
86
.SS "QwtScaleMap::QwtScaleMap ()"
90
The scale and paint device intervals are both set to [0,1].
92
Definition at line 84 of file qwt_scale_map.cpp.
93
.SS "QwtScaleMap::~QwtScaleMap ()"
97
Definition at line 108 of file qwt_scale_map.cpp.
98
.SH "Member Function Documentation"
100
.SS "void QwtScaleMap::setTransformation (\fBQwtScaleTransformation\fP * transformation)"
102
Initialize the map with a transformation
104
Definition at line 130 of file qwt_scale_map.cpp.
106
References setScaleInterval(), and transformation().
108
Referenced by QwtPlot::canvasMap().
109
.SS "const \fBQwtScaleTransformation\fP * QwtScaleMap::transformation () const"
111
Get the transformation.
113
Definition at line 142 of file qwt_scale_map.cpp.
115
Referenced by QwtPlotScaleItem::draw(), QwtScaleWidget::setScaleDiv(), and setTransformation().
116
.SS "void QwtScaleMap::setPaintInterval (int p1, int p2)"
118
Specify the borders of the paint device interval.
122
\fIp1\fP first border
124
\fIp2\fP second border
129
Definition at line 180 of file qwt_scale_map.cpp.
131
References QwtScaleTransformation::type().
133
Referenced by QwtPlot::canvasMap(), QwtPlotRasterItem::draw(), QwtPainter::drawColorBar(), QwtRoundScaleDraw::QwtRoundScaleDraw(), QwtPlotSpectrogram::renderImage(), QwtRoundScaleDraw::setAngleRange(), and QwtPlotSvgItem::viewBox().
134
.SS "void QwtScaleMap::setPaintXInterval (double p1, double p2)"
136
Specify the borders of the paint device interval.
140
\fIp1\fP first border
142
\fIp2\fP second border
147
Definition at line 194 of file qwt_scale_map.cpp.
149
References QwtScaleTransformation::type().
151
Referenced by QwtPlot::print().
152
.SS "void QwtScaleMap::setScaleInterval (double s1, double s2)"
154
Specify the borders of the scale interval.
158
\fIs1\fP first border
160
\fIs2\fP second border
165
logarithmic scales might be aligned to [LogMin, LogMax]
170
Definition at line 153 of file qwt_scale_map.cpp.
172
References LogMax, LogMin, and QwtScaleTransformation::type().
174
Referenced by QwtPlot::canvasMap(), QwtPlot::print(), QwtPlotSpectrogram::renderImage(), setTransformation(), and QwtPlotSvgItem::viewBox().
175
.SS "int QwtScaleMap::transform (double s) const\fC [inline]\fP"
177
Transform a point related to the scale interval into an point related to the interval of the paint device and round it to an integer. (In Qt <= 3.x paint devices are integer based. )
181
\fBQwtScaleMap::xTransform\fP
186
Definition at line 175 of file qwt_scale_map.h.
188
References xTransform().
190
Referenced by QwtPlotCurve::closePolyline(), QwtPlotScaleItem::draw(), QwtPlotMarker::draw(), QwtPlotSpectrogram::drawContourLines(), QwtPlotCurve::drawDots(), QwtRoundScaleDraw::drawLabel(), QwtPlotCurve::drawLines(), QwtPlotCurve::drawSteps(), QwtPlotCurve::drawSticks(), QwtPlotCurve::drawSymbols(), QwtRoundScaleDraw::drawTick(), QwtRoundScaleDraw::extent(), QwtScaleDraw::labelPosition(), QwtPlotPanner::moveCanvas(), QwtPlotPicker::transform(), and QwtPlotItem::transform().
191
.SS "double QwtScaleMap::invTransform (double i) const\fC [inline]\fP"
193
Transform an paint device value into a value in the interval of the scale.
195
Definition at line 163 of file qwt_scale_map.h.
197
References QwtScaleTransformation::invXForm().
199
Referenced by QwtPainter::drawColorBar(), QwtPlotPicker::invTransform(), QwtPlotItem::invTransform(), and QwtPlotSpectrogram::renderImage().
200
.SS "double QwtScaleMap::xTransform (double s) const\fC [inline]\fP"
202
Transform a point related to the scale interval into an point related to the interval of the paint device
204
Definition at line 146 of file qwt_scale_map.h.
206
References QwtScaleTransformation::type(), and QwtScaleTransformation::xForm().
208
Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::drawLines(), transform(), and QwtPlotSvgItem::viewBox().
209
.SS "double QwtScaleMap::p1 () const\fC [inline]\fP"
213
First border of the paint interval
218
Definition at line 119 of file qwt_scale_map.h.
220
Referenced by QwtPlotItem::paintRect(), and QwtPlotSpectrogram::renderImage().
221
.SS "double QwtScaleMap::p2 () const\fC [inline]\fP"
225
Second border of the paint interval
230
Definition at line 127 of file qwt_scale_map.h.
232
Referenced by QwtPlotSpectrogram::renderImage().
233
.SS "double QwtScaleMap::s1 () const\fC [inline]\fP"
237
First border of the scale interval
242
Definition at line 103 of file qwt_scale_map.h.
244
Referenced by QwtPlotSpectrogram::renderImage(), and QwtPlotItem::scaleRect().
245
.SS "double QwtScaleMap::s2 () const\fC [inline]\fP"
249
Second border of the scale interval
254
Definition at line 111 of file qwt_scale_map.h.
256
Referenced by QwtPlotSpectrogram::renderImage().
260
Generated automatically by Doxygen for Qwt User's Guide from the source code.