~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.0/doc/man/man3/QwtScaleTransformation.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-05-26 10:26:31 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526102631-bp95mfccnrb957nx
Tags: 5.1.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtScaleTransformation" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtScaleTransformation \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
.SH "Detailed Description"
10
 
.PP 
11
 
Operations for linear or logarithmic (base 10) transformations. 
12
 
.PP
13
 
Definition at line 19 of file qwt_scale_map.h.
14
 
.SS "Public Types"
15
 
 
16
 
.in +1c
17
 
.ti -1c
18
 
.RI "enum \fBType\fP { \fBRubberBand\fP, \fBText\fP, \fBLinear\fP, \fBLog10\fP, \fBOther\fP }"
19
 
.br
20
 
.in -1c
21
 
.SS "Public Member Functions"
22
 
 
23
 
.in +1c
24
 
.ti -1c
25
 
.RI "\fBQwtScaleTransformation\fP (\fBType\fP type)"
26
 
.br
27
 
.ti -1c
28
 
.RI "virtual \fB~QwtScaleTransformation\fP ()"
29
 
.br
30
 
.ti -1c
31
 
.RI "virtual double \fBxForm\fP (double x, double s1, double s2, double p1, double p2) const"
32
 
.br
33
 
.ti -1c
34
 
.RI "virtual double \fBinvXForm\fP (double x, double s1, double s2, double p1, double p2) const"
35
 
.br
36
 
.ti -1c
37
 
.RI "\fBType\fP \fBtype\fP () const"
38
 
.br
39
 
.ti -1c
40
 
.RI "virtual \fBQwtScaleTransformation\fP * \fBcopy\fP () const"
41
 
.br
42
 
.in -1c
43
 
.SH "Constructor & Destructor Documentation"
44
 
.PP 
45
 
.SS "QwtScaleTransformation::QwtScaleTransformation (\fBType\fP type)"
46
 
.PP
47
 
Constructor for a linear transformation. 
48
 
.PP
49
 
Definition at line 16 of file qwt_scale_map.cpp.
50
 
.PP
51
 
References QwtScaleTransformation().
52
 
.PP
53
 
Referenced by QwtScaleTransformation().
54
 
.SH "Member Function Documentation"
55
 
.PP 
56
 
.SS "double QwtScaleTransformation::xForm (double s, double s1, double s2, double p1, double p2) const\fC [virtual]\fP"
57
 
.PP
58
 
Transform a value between 2 linear intervals. 
59
 
.PP
60
 
\fBParameters:\fP
61
 
.RS 4
62
 
\fIx\fP value related to the interval [x1, x2] 
63
 
.br
64
 
\fIx1\fP first border of source interval 
65
 
.br
66
 
\fIx2\fP first border of source interval 
67
 
.br
68
 
\fIy1\fP first border of target interval 
69
 
.br
70
 
\fIy2\fP first border of target interval 
71
 
.RE
72
 
.PP
73
 
\fBReturns:\fP
74
 
.RS 4
75
 
.IP "\fBlinear mapping:\fP" 1c
76
 
y1 + (y2 - y1) / (x2 - x1) * (x - x1) 
77
 
.PP
78
 
.IP "\fBlog10 mapping: \fP" 1c
79
 
p1 + (p2 - p1) / log(s2 / s1) * log(x / s1) 
80
 
.PP
81
 
.RE
82
 
.PP
83
 
 
84
 
.PP
85
 
Definition at line 47 of file qwt_scale_map.cpp.
86
 
.PP
87
 
Referenced by QwtScaleMap::xTransform().
88
 
.SS "double QwtScaleTransformation::invXForm (double p, double p1, double p2, double s1, double s2) const\fC [virtual]\fP"
89
 
.PP
90
 
Transform a value from a linear to a logarithmic interval. 
91
 
.PP
92
 
\fBParameters:\fP
93
 
.RS 4
94
 
\fIx\fP value related to the linear interval [p1, p2] 
95
 
.br
96
 
\fIp1\fP first border of linear interval 
97
 
.br
98
 
\fIp2\fP first border of linear interval 
99
 
.br
100
 
\fIs1\fP first border of logarithmic interval 
101
 
.br
102
 
\fIs2\fP first border of logarithmic interval 
103
 
.RE
104
 
.PP
105
 
\fBReturns:\fP
106
 
.RS 4
107
 
.IP "\fBexp((x - p1) / (p2 - p1) * log(s2 / s1)) * s1; \fP" 1c
108
 
.PP
109
 
.RE
110
 
.PP
111
 
 
112
 
.PP
113
 
Definition at line 70 of file qwt_scale_map.cpp.
114
 
.PP
115
 
Referenced by QwtScaleMap::invTransform().
116
 
 
117
 
.SH "Author"
118
 
.PP 
119
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.