1
.TH "QwtScaleTransformation" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
5
QwtScaleTransformation \-
9
.SH "Detailed Description"
11
Operations for linear or logarithmic (base 10) transformations.
13
Definition at line 19 of file qwt_scale_map.h.
18
.RI "enum \fBType\fP { \fBRubberBand\fP, \fBText\fP, \fBLinear\fP, \fBLog10\fP, \fBOther\fP }"
21
.SS "Public Member Functions"
25
.RI "\fBQwtScaleTransformation\fP (\fBType\fP type)"
28
.RI "virtual \fB~QwtScaleTransformation\fP ()"
31
.RI "virtual double \fBxForm\fP (double x, double s1, double s2, double p1, double p2) const"
34
.RI "virtual double \fBinvXForm\fP (double x, double s1, double s2, double p1, double p2) const"
37
.RI "\fBType\fP \fBtype\fP () const"
40
.RI "virtual \fBQwtScaleTransformation\fP * \fBcopy\fP () const"
43
.SH "Constructor & Destructor Documentation"
45
.SS "QwtScaleTransformation::QwtScaleTransformation (\fBType\fP type)"
47
Constructor for a linear transformation.
49
Definition at line 16 of file qwt_scale_map.cpp.
51
References QwtScaleTransformation().
53
Referenced by QwtScaleTransformation().
54
.SH "Member Function Documentation"
56
.SS "double QwtScaleTransformation::xForm (double s, double s1, double s2, double p1, double p2) const\fC [virtual]\fP"
58
Transform a value between 2 linear intervals.
62
\fIx\fP value related to the interval [x1, x2]
64
\fIx1\fP first border of source interval
66
\fIx2\fP first border of source interval
68
\fIy1\fP first border of target interval
70
\fIy2\fP first border of target interval
75
.IP "\fBlinear mapping:\fP" 1c
76
y1 + (y2 - y1) / (x2 - x1) * (x - x1)
78
.IP "\fBlog10 mapping: \fP" 1c
79
p1 + (p2 - p1) / log(s2 / s1) * log(x / s1)
85
Definition at line 47 of file qwt_scale_map.cpp.
87
Referenced by QwtScaleMap::xTransform().
88
.SS "double QwtScaleTransformation::invXForm (double p, double p1, double p2, double s1, double s2) const\fC [virtual]\fP"
90
Transform a value from a linear to a logarithmic interval.
94
\fIx\fP value related to the linear interval [p1, p2]
96
\fIp1\fP first border of linear interval
98
\fIp2\fP first border of linear interval
100
\fIs1\fP first border of logarithmic interval
102
\fIs2\fP first border of logarithmic interval
107
.IP "\fBexp((x - p1) / (p2 - p1) * log(s2 / s1)) * s1; \fP" 1c
113
Definition at line 70 of file qwt_scale_map.cpp.
115
Referenced by QwtScaleMap::invTransform().
119
Generated automatically by Doxygen for Qwt User's Guide from the source code.