1
.TH "QwtScaleTransformation" 3 "11 Jun 2007" "Version 5.0.2" "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 { \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::invXForm (double p, double p1, double p2, double s1, double s2) const\fC [virtual]\fP"
58
Transform a value from a linear to a logarithmic interval.
62
\fIx\fP value related to the linear interval [p1, p2]
64
\fIp1\fP first border of linear interval
66
\fIp2\fP first border of linear interval
68
\fIs1\fP first border of logarithmic interval
70
\fIs2\fP first border of logarithmic interval
75
.IP "\fBexp((x - p1) / (p2 - p1) * log(s2 / s1)) * s1; \fP" 1c
81
Definition at line 70 of file qwt_scale_map.cpp.
83
Referenced by QwtScaleMap::invTransform().
84
.SS "double QwtScaleTransformation::xForm (double s, double s1, double s2, double p1, double p2) const\fC [virtual]\fP"
86
Transform a value between 2 linear intervals.
90
\fIx\fP value related to the interval [x1, x2]
92
\fIx1\fP first border of source interval
94
\fIx2\fP first border of source interval
96
\fIy1\fP first border of target interval
98
\fIy2\fP first border of target interval
103
.IP "\fBlinear mapping:\fP" 1c
104
y1 + (y2 - y1) / (x2 - x1) * (x - x1)
106
.IP "\fBlog10 mapping: \fP" 1c
107
p1 + (p2 - p1) / log(s2 / s1) * log(x / s1)
113
Definition at line 47 of file qwt_scale_map.cpp.
115
Referenced by QwtScaleMap::xTransform().
119
Generated automatically by Doxygen for Qwt User's Guide from the source code.