QwtScaleMap.3 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. .TH "QwtScaleMap" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtScaleMap \- A scale map\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_scale_map\&.h>\fP
  11. .SS "Public Member Functions"
  12. .in +1c
  13. .ti -1c
  14. .RI "\fBQwtScaleMap\fP ()"
  15. .br
  16. .RI "Constructor\&. "
  17. .ti -1c
  18. .RI "\fBQwtScaleMap\fP (const \fBQwtScaleMap\fP &)"
  19. .br
  20. .RI "Copy constructor\&. "
  21. .ti -1c
  22. .RI "\fB~QwtScaleMap\fP ()"
  23. .br
  24. .ti -1c
  25. .RI "\fBQwtScaleMap\fP & \fBoperator=\fP (const \fBQwtScaleMap\fP &)"
  26. .br
  27. .RI "Assignment operator\&. "
  28. .ti -1c
  29. .RI "void \fBsetTransformation\fP (\fBQwtTransform\fP *)"
  30. .br
  31. .ti -1c
  32. .RI "const \fBQwtTransform\fP * \fBtransformation\fP () const"
  33. .br
  34. .RI "Get the transformation\&. "
  35. .ti -1c
  36. .RI "void \fBsetPaintInterval\fP (double \fBp1\fP, double \fBp2\fP)"
  37. .br
  38. .RI "Specify the borders of the paint device interval\&. "
  39. .ti -1c
  40. .RI "void \fBsetScaleInterval\fP (double \fBs1\fP, double \fBs2\fP)"
  41. .br
  42. .RI "Specify the borders of the scale interval\&. "
  43. .ti -1c
  44. .RI "double \fBtransform\fP (double s) const"
  45. .br
  46. .ti -1c
  47. .RI "double \fBinvTransform\fP (double p) const"
  48. .br
  49. .ti -1c
  50. .RI "double \fBp1\fP () const"
  51. .br
  52. .ti -1c
  53. .RI "double \fBp2\fP () const"
  54. .br
  55. .ti -1c
  56. .RI "double \fBs1\fP () const"
  57. .br
  58. .ti -1c
  59. .RI "double \fBs2\fP () const"
  60. .br
  61. .ti -1c
  62. .RI "double \fBpDist\fP () const"
  63. .br
  64. .ti -1c
  65. .RI "double \fBsDist\fP () const"
  66. .br
  67. .ti -1c
  68. .RI "bool \fBisInverting\fP () const"
  69. .br
  70. .in -1c
  71. .SS "Static Public Member Functions"
  72. .in +1c
  73. .ti -1c
  74. .RI "static QRectF \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRectF &)"
  75. .br
  76. .ti -1c
  77. .RI "static QRectF \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRectF &)"
  78. .br
  79. .ti -1c
  80. .RI "static QPointF \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QPointF &)"
  81. .br
  82. .ti -1c
  83. .RI "static QPointF \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QPointF &)"
  84. .br
  85. .in -1c
  86. .SH "Detailed Description"
  87. .PP
  88. A scale map\&.
  89. \fBQwtScaleMap\fP offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa\&.
  90. .SH "Constructor & Destructor Documentation"
  91. .PP
  92. .SS "QwtScaleMap::QwtScaleMap ()"
  93. .PP
  94. Constructor\&. The scale and paint device intervals are both set to [0,1]\&.
  95. .SS "QwtScaleMap::~QwtScaleMap ()"
  96. Destructor
  97. .SH "Member Function Documentation"
  98. .PP
  99. .SS "QPointF QwtScaleMap::invTransform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QPointF & pos)\fC [static]\fP"
  100. Transform a rectangle from paint to scale coordinates
  101. .PP
  102. \fBParameters\fP
  103. .RS 4
  104. \fIxMap\fP X map
  105. .br
  106. \fIyMap\fP Y map
  107. .br
  108. \fIpos\fP Position in paint coordinates
  109. .RE
  110. .PP
  111. \fBReturns\fP
  112. .RS 4
  113. Position in scale coordinates
  114. .RE
  115. .PP
  116. \fBSee also\fP
  117. .RS 4
  118. \fBtransform()\fP
  119. .RE
  120. .PP
  121. .SS "QRectF QwtScaleMap::invTransform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & rect)\fC [static]\fP"
  122. Transform a rectangle from paint to scale coordinates
  123. .PP
  124. \fBParameters\fP
  125. .RS 4
  126. \fIxMap\fP X map
  127. .br
  128. \fIyMap\fP Y map
  129. .br
  130. \fIrect\fP Rectangle in paint coordinates
  131. .RE
  132. .PP
  133. \fBReturns\fP
  134. .RS 4
  135. Rectangle in scale coordinates
  136. .RE
  137. .PP
  138. \fBSee also\fP
  139. .RS 4
  140. \fBtransform()\fP
  141. .RE
  142. .PP
  143. .SS "double QwtScaleMap::invTransform (double p) const\fC [inline]\fP"
  144. Transform an paint device value into a value in the interval of the scale\&.
  145. .PP
  146. \fBParameters\fP
  147. .RS 4
  148. \fIp\fP Value relative to the coordinates of the paint device
  149. .RE
  150. .PP
  151. \fBReturns\fP
  152. .RS 4
  153. Transformed value
  154. .RE
  155. .PP
  156. \fBSee also\fP
  157. .RS 4
  158. \fBtransform()\fP
  159. .RE
  160. .PP
  161. .SS "bool QwtScaleMap::isInverting () const\fC [inline]\fP"
  162. .PP
  163. \fBReturns\fP
  164. .RS 4
  165. True, when ( \fBp1()\fP < \fBp2()\fP ) != ( \fBs1()\fP < \fBs2()\fP )
  166. .RE
  167. .PP
  168. .SS "double QwtScaleMap::p1 () const\fC [inline]\fP"
  169. .PP
  170. \fBReturns\fP
  171. .RS 4
  172. First border of the paint interval
  173. .RE
  174. .PP
  175. .SS "double QwtScaleMap::p2 () const\fC [inline]\fP"
  176. .PP
  177. \fBReturns\fP
  178. .RS 4
  179. Second border of the paint interval
  180. .RE
  181. .PP
  182. .SS "double QwtScaleMap::pDist () const\fC [inline]\fP"
  183. .PP
  184. \fBReturns\fP
  185. .RS 4
  186. qwtAbs(\fBp2()\fP - \fBp1()\fP)
  187. .RE
  188. .PP
  189. .SS "double QwtScaleMap::s1 () const\fC [inline]\fP"
  190. .PP
  191. \fBReturns\fP
  192. .RS 4
  193. First border of the scale interval
  194. .RE
  195. .PP
  196. .SS "double QwtScaleMap::s2 () const\fC [inline]\fP"
  197. .PP
  198. \fBReturns\fP
  199. .RS 4
  200. Second border of the scale interval
  201. .RE
  202. .PP
  203. .SS "double QwtScaleMap::sDist () const\fC [inline]\fP"
  204. .PP
  205. \fBReturns\fP
  206. .RS 4
  207. qwtAbs(\fBs2()\fP - \fBs1()\fP)
  208. .RE
  209. .PP
  210. .SS "void QwtScaleMap::setPaintInterval (double p1, double p2)"
  211. .PP
  212. Specify the borders of the paint device interval\&.
  213. .PP
  214. \fBParameters\fP
  215. .RS 4
  216. \fIp1\fP first border
  217. .br
  218. \fIp2\fP second border
  219. .RE
  220. .PP
  221. .SS "void QwtScaleMap::setScaleInterval (double s1, double s2)"
  222. .PP
  223. Specify the borders of the scale interval\&.
  224. .PP
  225. \fBParameters\fP
  226. .RS 4
  227. \fIs1\fP first border
  228. .br
  229. \fIs2\fP second border
  230. .RE
  231. .PP
  232. \fBWarning\fP
  233. .RS 4
  234. scales might be aligned to transformation depending boundaries
  235. .RE
  236. .PP
  237. .SS "void QwtScaleMap::setTransformation (\fBQwtTransform\fP * transform)"
  238. Initialize the map with a transformation
  239. .SS "QPointF QwtScaleMap::transform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QPointF & pos)\fC [static]\fP"
  240. Transform a point from scale to paint coordinates
  241. .PP
  242. \fBParameters\fP
  243. .RS 4
  244. \fIxMap\fP X map
  245. .br
  246. \fIyMap\fP Y map
  247. .br
  248. \fIpos\fP Position in scale coordinates
  249. .RE
  250. .PP
  251. \fBReturns\fP
  252. .RS 4
  253. Position in paint coordinates
  254. .RE
  255. .PP
  256. \fBSee also\fP
  257. .RS 4
  258. \fBinvTransform()\fP
  259. .RE
  260. .PP
  261. .SS "QRectF QwtScaleMap::transform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & rect)\fC [static]\fP"
  262. Transform a rectangle from scale to paint coordinates
  263. .PP
  264. \fBParameters\fP
  265. .RS 4
  266. \fIxMap\fP X map
  267. .br
  268. \fIyMap\fP Y map
  269. .br
  270. \fIrect\fP Rectangle in scale coordinates
  271. .RE
  272. .PP
  273. \fBReturns\fP
  274. .RS 4
  275. Rectangle in paint coordinates
  276. .RE
  277. .PP
  278. \fBSee also\fP
  279. .RS 4
  280. \fBinvTransform()\fP
  281. .RE
  282. .PP
  283. .SS "double QwtScaleMap::transform (double s) const\fC [inline]\fP"
  284. Transform a point related to the scale interval into an point related to the interval of the paint device
  285. .PP
  286. \fBParameters\fP
  287. .RS 4
  288. \fIs\fP Value relative to the coordinates of the scale
  289. .RE
  290. .PP
  291. \fBReturns\fP
  292. .RS 4
  293. Transformed value
  294. .RE
  295. .PP
  296. \fBSee also\fP
  297. .RS 4
  298. \fBinvTransform()\fP
  299. .RE
  300. .PP
  301. .SH "Author"
  302. .PP
  303. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.