QwtTransform.3 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .TH "QwtTransform" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtTransform \- A transformation between coordinate systems\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_transform\&.h>\fP
  11. .PP
  12. Inherited by \fBQwtLogTransform\fP, \fBQwtNullTransform\fP, and \fBQwtPowerTransform\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtTransform\fP ()"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "virtual \fB~QwtTransform\fP ()"
  21. .br
  22. .RI "Destructor\&. "
  23. .ti -1c
  24. .RI "virtual double \fBbounded\fP (double value) const"
  25. .br
  26. .ti -1c
  27. .RI "virtual double \fBtransform\fP (double value) const =0"
  28. .br
  29. .ti -1c
  30. .RI "virtual double \fBinvTransform\fP (double value) const =0"
  31. .br
  32. .ti -1c
  33. .RI "virtual \fBQwtTransform\fP * \fBcopy\fP () const =0"
  34. .br
  35. .RI "Virtualized copy operation\&. "
  36. .in -1c
  37. .SH "Detailed Description"
  38. .PP
  39. A transformation between coordinate systems\&.
  40. \fBQwtTransform\fP manipulates values, when being mapped between the scale and the paint device coordinate system\&.
  41. .PP
  42. A transformation consists of 2 methods:
  43. .PP
  44. .IP "\(bu" 2
  45. transform
  46. .IP "\(bu" 2
  47. invTransform
  48. .PP
  49. .PP
  50. where one is is the inverse function of the other\&.
  51. .PP
  52. When p1, p2 are the boundaries of the paint device coordinates and s1, s2 the boundaries of the scale, \fBQwtScaleMap\fP uses the following calculations:
  53. .PP
  54. .IP "\(bu" 2
  55. p = p1 + ( p2 - p1 ) * ( T( s ) - T( s1 ) / ( T( s2 ) - T( s1 ) );
  56. .IP "\(bu" 2
  57. s = invT ( T( s1 ) + ( T( s2 ) - T( s1 ) ) * ( p - p1 ) / ( p2 - p1 ) );
  58. .PP
  59. .SH "Member Function Documentation"
  60. .PP
  61. .SS "double QwtTransform::bounded (double value) const\fC [virtual]\fP"
  62. Modify value to be a valid value for the transformation\&. The default implementation does nothing\&.
  63. .PP
  64. \fBParameters\fP
  65. .RS 4
  66. \fIvalue\fP Value to be bounded
  67. .RE
  68. .PP
  69. \fBReturns\fP
  70. .RS 4
  71. value unmodified
  72. .RE
  73. .PP
  74. .PP
  75. Reimplemented in \fBQwtLogTransform\fP\&.
  76. .SS "virtual double QwtTransform::invTransform (double value) const\fC [pure virtual]\fP"
  77. Inverse transformation function
  78. .PP
  79. \fBParameters\fP
  80. .RS 4
  81. \fIvalue\fP Value
  82. .RE
  83. .PP
  84. \fBReturns\fP
  85. .RS 4
  86. Modified value
  87. .RE
  88. .PP
  89. \fBSee also\fP
  90. .RS 4
  91. \fBtransform()\fP
  92. .RE
  93. .PP
  94. .PP
  95. Implemented in \fBQwtPowerTransform\fP, \fBQwtLogTransform\fP, and \fBQwtNullTransform\fP\&.
  96. .SS "virtual double QwtTransform::transform (double value) const\fC [pure virtual]\fP"
  97. Transformation function
  98. .PP
  99. \fBParameters\fP
  100. .RS 4
  101. \fIvalue\fP Value
  102. .RE
  103. .PP
  104. \fBReturns\fP
  105. .RS 4
  106. Modified value
  107. .RE
  108. .PP
  109. \fBSee also\fP
  110. .RS 4
  111. \fBinvTransform()\fP
  112. .RE
  113. .PP
  114. .PP
  115. Implemented in \fBQwtPowerTransform\fP, \fBQwtLogTransform\fP, and \fBQwtNullTransform\fP\&.
  116. .SH "Author"
  117. .PP
  118. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.