class_qwt_scale_map.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.20"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Qwt User&#39;s Guide: QwtScaleMap Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectalign" style="padding-left: 0.5em;">
  28. <div id="projectname">Qwt User&#39;s Guide
  29. &#160;<span id="projectnumber">6.1.6</span>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <!-- Generated by Doxygen 1.8.20 -->
  38. <script type="text/javascript">
  39. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  40. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  41. /* @license-end */
  42. </script>
  43. <script type="text/javascript" src="menudata.js"></script>
  44. <script type="text/javascript" src="menu.js"></script>
  45. <script type="text/javascript">
  46. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  47. $(function() {
  48. initMenu('',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. /* @license-end */</script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  66. $(document).ready(function(){initNavTree('class_qwt_scale_map.html',''); initResizable(); });
  67. /* @license-end */
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Public Member Functions</a> &#124;
  85. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  86. <a href="class_qwt_scale_map-members.html">List of all members</a> </div>
  87. <div class="headertitle">
  88. <div class="title">QwtScaleMap Class Reference</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>A scale map.
  92. <a href="class_qwt_scale_map.html#details">More...</a></p>
  93. <p><code>#include &lt;<a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>&gt;</code></p>
  94. <table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  96. Public Member Functions</h2></td></tr>
  97. <tr class="memitem:a9576a2e19c0be1d036fee344ab68f542"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">QwtScaleMap</a> ()</td></tr>
  98. <tr class="memdesc:a9576a2e19c0be1d036fee344ab68f542"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">More...</a><br /></td></tr>
  99. <tr class="separator:a9576a2e19c0be1d036fee344ab68f542"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a579bc766106d98edd7153e62ea77a19b"><td class="memItemLeft" align="right" valign="top"><a id="a579bc766106d98edd7153e62ea77a19b"></a>
  101. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a579bc766106d98edd7153e62ea77a19b">QwtScaleMap</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;)</td></tr>
  102. <tr class="memdesc:a579bc766106d98edd7153e62ea77a19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
  103. <tr class="separator:a579bc766106d98edd7153e62ea77a19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:aecafd09423984a5e0ffa935d1b45110c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aecafd09423984a5e0ffa935d1b45110c">~QwtScaleMap</a> ()</td></tr>
  105. <tr class="separator:aecafd09423984a5e0ffa935d1b45110c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a3f55ef14f8874e626380fcf92b096791"><td class="memItemLeft" align="right" valign="top"><a id="a3f55ef14f8874e626380fcf92b096791"></a>
  107. <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a3f55ef14f8874e626380fcf92b096791">operator=</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;)</td></tr>
  108. <tr class="memdesc:a3f55ef14f8874e626380fcf92b096791"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator. <br /></td></tr>
  109. <tr class="separator:a3f55ef14f8874e626380fcf92b096791"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ad8e971dd4be07801f0adc99549153718"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ad8e971dd4be07801f0adc99549153718">setTransformation</a> (<a class="el" href="class_qwt_transform.html">QwtTransform</a> *)</td></tr>
  111. <tr class="separator:ad8e971dd4be07801f0adc99549153718"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memItemLeft" align="right" valign="top"><a id="a810c561caaad7d6573a1e8ff06fe4b23"></a>
  113. const <a class="el" href="class_qwt_transform.html">QwtTransform</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a> () const</td></tr>
  114. <tr class="memdesc:a810c561caaad7d6573a1e8ff06fe4b23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the transformation. <br /></td></tr>
  115. <tr class="separator:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a994240e446986112f196a65657dc9755"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">setPaintInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>, double <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a>)</td></tr>
  117. <tr class="memdesc:a994240e446986112f196a65657dc9755"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the borders of the paint device interval. <a href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">More...</a><br /></td></tr>
  118. <tr class="separator:a994240e446986112f196a65657dc9755"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:aaa33bc8e1aed7aa17d345053194e7094"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">setScaleInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a>, double <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a>)</td></tr>
  120. <tr class="memdesc:aaa33bc8e1aed7aa17d345053194e7094"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the borders of the scale interval. <a href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">More...</a><br /></td></tr>
  121. <tr class="separator:aaa33bc8e1aed7aa17d345053194e7094"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a504f1627e0e02ddac03d2ce46507b865"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a> (double s) const</td></tr>
  123. <tr class="separator:a504f1627e0e02ddac03d2ce46507b865"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a> (double p) const</td></tr>
  125. <tr class="separator:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a> () const</td></tr>
  127. <tr class="separator:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:acd78b70fae83854a148fa3d08b13c261"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a> () const</td></tr>
  129. <tr class="separator:acd78b70fae83854a148fa3d08b13c261"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a64b15c76aa63a521447215018c75bf37"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a> () const</td></tr>
  131. <tr class="separator:a64b15c76aa63a521447215018c75bf37"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a7c8c969923c15880c4620be1d814ef18"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a> () const</td></tr>
  133. <tr class="separator:a7c8c969923c15880c4620be1d814ef18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a456d76a849af8c465692c0481bdd12ad"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a456d76a849af8c465692c0481bdd12ad">pDist</a> () const</td></tr>
  135. <tr class="separator:a456d76a849af8c465692c0481bdd12ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">sDist</a> () const</td></tr>
  137. <tr class="separator:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a283100be40b08db7df078b8a0ee1d19c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a283100be40b08db7df078b8a0ee1d19c">isInverting</a> () const</td></tr>
  139. <tr class="separator:a283100be40b08db7df078b8a0ee1d19c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table><table class="memberdecls">
  141. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  142. Static Public Member Functions</h2></td></tr>
  143. <tr class="memitem:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memItemLeft" align="right" valign="top">static QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#af99eeda829142128f97e0b6c4fbf9e1f">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QRectF &amp;)</td></tr>
  144. <tr class="separator:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a8fe572f224a14672684fd929c55568f8"><td class="memItemLeft" align="right" valign="top">static QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a8fe572f224a14672684fd929c55568f8">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QRectF &amp;)</td></tr>
  146. <tr class="separator:a8fe572f224a14672684fd929c55568f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memItemLeft" align="right" valign="top">static QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a6be600afa5bd75f5ff52b1f102b123b0">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QPointF &amp;)</td></tr>
  148. <tr class="separator:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a08dc05a17283c531e2c1d79fd52bc56a"><td class="memItemLeft" align="right" valign="top">static QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a08dc05a17283c531e2c1d79fd52bc56a">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QPointF &amp;)</td></tr>
  150. <tr class="separator:a08dc05a17283c531e2c1d79fd52bc56a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. </table>
  152. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  153. <div class="textblock"><p>A scale map. </p>
  154. <p><a class="el" href="class_qwt_scale_map.html" title="A scale map.">QwtScaleMap</a> offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa. </p>
  155. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  156. <a id="a9576a2e19c0be1d036fee344ab68f542"></a>
  157. <h2 class="memtitle"><span class="permalink"><a href="#a9576a2e19c0be1d036fee344ab68f542">&#9670;&nbsp;</a></span>QwtScaleMap()</h2>
  158. <div class="memitem">
  159. <div class="memproto">
  160. <table class="memname">
  161. <tr>
  162. <td class="memname">QwtScaleMap::QwtScaleMap </td>
  163. <td>(</td>
  164. <td class="paramname"></td><td>)</td>
  165. <td></td>
  166. </tr>
  167. </table>
  168. </div><div class="memdoc">
  169. <p>Constructor. </p>
  170. <p>The scale and paint device intervals are both set to [0,1]. </p>
  171. </div>
  172. </div>
  173. <a id="aecafd09423984a5e0ffa935d1b45110c"></a>
  174. <h2 class="memtitle"><span class="permalink"><a href="#aecafd09423984a5e0ffa935d1b45110c">&#9670;&nbsp;</a></span>~QwtScaleMap()</h2>
  175. <div class="memitem">
  176. <div class="memproto">
  177. <table class="memname">
  178. <tr>
  179. <td class="memname">QwtScaleMap::~QwtScaleMap </td>
  180. <td>(</td>
  181. <td class="paramname"></td><td>)</td>
  182. <td></td>
  183. </tr>
  184. </table>
  185. </div><div class="memdoc">
  186. <p>Destructor </p>
  187. </div>
  188. </div>
  189. <h2 class="groupheader">Member Function Documentation</h2>
  190. <a id="a08dc05a17283c531e2c1d79fd52bc56a"></a>
  191. <h2 class="memtitle"><span class="permalink"><a href="#a08dc05a17283c531e2c1d79fd52bc56a">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[1/3]</span></h2>
  192. <div class="memitem">
  193. <div class="memproto">
  194. <table class="mlabels">
  195. <tr>
  196. <td class="mlabels-left">
  197. <table class="memname">
  198. <tr>
  199. <td class="memname">QPointF QwtScaleMap::invTransform </td>
  200. <td>(</td>
  201. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  202. <td class="paramname"><em>xMap</em>, </td>
  203. </tr>
  204. <tr>
  205. <td class="paramkey"></td>
  206. <td></td>
  207. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  208. <td class="paramname"><em>yMap</em>, </td>
  209. </tr>
  210. <tr>
  211. <td class="paramkey"></td>
  212. <td></td>
  213. <td class="paramtype">const QPointF &amp;&#160;</td>
  214. <td class="paramname"><em>pos</em>&#160;</td>
  215. </tr>
  216. <tr>
  217. <td></td>
  218. <td>)</td>
  219. <td></td><td></td>
  220. </tr>
  221. </table>
  222. </td>
  223. <td class="mlabels-right">
  224. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  225. </tr>
  226. </table>
  227. </div><div class="memdoc">
  228. <p>Transform a rectangle from paint to scale coordinates</p>
  229. <dl class="params"><dt>Parameters</dt><dd>
  230. <table class="params">
  231. <tr><td class="paramname">xMap</td><td>X map </td></tr>
  232. <tr><td class="paramname">yMap</td><td>Y map </td></tr>
  233. <tr><td class="paramname">pos</td><td>Position in paint coordinates </td></tr>
  234. </table>
  235. </dd>
  236. </dl>
  237. <dl class="section return"><dt>Returns</dt><dd>Position in scale coordinates </dd></dl>
  238. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
  239. </div>
  240. </div>
  241. <a id="a8fe572f224a14672684fd929c55568f8"></a>
  242. <h2 class="memtitle"><span class="permalink"><a href="#a8fe572f224a14672684fd929c55568f8">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[2/3]</span></h2>
  243. <div class="memitem">
  244. <div class="memproto">
  245. <table class="mlabels">
  246. <tr>
  247. <td class="mlabels-left">
  248. <table class="memname">
  249. <tr>
  250. <td class="memname">QRectF QwtScaleMap::invTransform </td>
  251. <td>(</td>
  252. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  253. <td class="paramname"><em>xMap</em>, </td>
  254. </tr>
  255. <tr>
  256. <td class="paramkey"></td>
  257. <td></td>
  258. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  259. <td class="paramname"><em>yMap</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype">const QRectF &amp;&#160;</td>
  265. <td class="paramname"><em>rect</em>&#160;</td>
  266. </tr>
  267. <tr>
  268. <td></td>
  269. <td>)</td>
  270. <td></td><td></td>
  271. </tr>
  272. </table>
  273. </td>
  274. <td class="mlabels-right">
  275. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Transform a rectangle from paint to scale coordinates</p>
  280. <dl class="params"><dt>Parameters</dt><dd>
  281. <table class="params">
  282. <tr><td class="paramname">xMap</td><td>X map </td></tr>
  283. <tr><td class="paramname">yMap</td><td>Y map </td></tr>
  284. <tr><td class="paramname">rect</td><td>Rectangle in paint coordinates </td></tr>
  285. </table>
  286. </dd>
  287. </dl>
  288. <dl class="section return"><dt>Returns</dt><dd>Rectangle in scale coordinates </dd></dl>
  289. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
  290. </div>
  291. </div>
  292. <a id="ab1ee6d62addf3f9cf091d425be9ac642"></a>
  293. <h2 class="memtitle"><span class="permalink"><a href="#ab1ee6d62addf3f9cf091d425be9ac642">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[3/3]</span></h2>
  294. <div class="memitem">
  295. <div class="memproto">
  296. <table class="mlabels">
  297. <tr>
  298. <td class="mlabels-left">
  299. <table class="memname">
  300. <tr>
  301. <td class="memname">double QwtScaleMap::invTransform </td>
  302. <td>(</td>
  303. <td class="paramtype">double&#160;</td>
  304. <td class="paramname"><em>p</em></td><td>)</td>
  305. <td> const</td>
  306. </tr>
  307. </table>
  308. </td>
  309. <td class="mlabels-right">
  310. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  311. </tr>
  312. </table>
  313. </div><div class="memdoc">
  314. <p>Transform an paint device value into a value in the interval of the scale.</p>
  315. <dl class="params"><dt>Parameters</dt><dd>
  316. <table class="params">
  317. <tr><td class="paramname">p</td><td>Value relative to the coordinates of the paint device </td></tr>
  318. </table>
  319. </dd>
  320. </dl>
  321. <dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
  322. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
  323. </div>
  324. </div>
  325. <a id="a283100be40b08db7df078b8a0ee1d19c"></a>
  326. <h2 class="memtitle"><span class="permalink"><a href="#a283100be40b08db7df078b8a0ee1d19c">&#9670;&nbsp;</a></span>isInverting()</h2>
  327. <div class="memitem">
  328. <div class="memproto">
  329. <table class="mlabels">
  330. <tr>
  331. <td class="mlabels-left">
  332. <table class="memname">
  333. <tr>
  334. <td class="memname">bool QwtScaleMap::isInverting </td>
  335. <td>(</td>
  336. <td class="paramname"></td><td>)</td>
  337. <td> const</td>
  338. </tr>
  339. </table>
  340. </td>
  341. <td class="mlabels-right">
  342. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  343. </tr>
  344. </table>
  345. </div><div class="memdoc">
  346. <dl class="section return"><dt>Returns</dt><dd>True, when ( <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a> &lt; <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> ) != ( <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a> &lt; <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> ) </dd></dl>
  347. </div>
  348. </div>
  349. <a id="a4d03a9fea3bd9b66a0b882b8b1a58f4b"></a>
  350. <h2 class="memtitle"><span class="permalink"><a href="#a4d03a9fea3bd9b66a0b882b8b1a58f4b">&#9670;&nbsp;</a></span>p1()</h2>
  351. <div class="memitem">
  352. <div class="memproto">
  353. <table class="mlabels">
  354. <tr>
  355. <td class="mlabels-left">
  356. <table class="memname">
  357. <tr>
  358. <td class="memname">double QwtScaleMap::p1 </td>
  359. <td>(</td>
  360. <td class="paramname"></td><td>)</td>
  361. <td> const</td>
  362. </tr>
  363. </table>
  364. </td>
  365. <td class="mlabels-right">
  366. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  367. </tr>
  368. </table>
  369. </div><div class="memdoc">
  370. <dl class="section return"><dt>Returns</dt><dd>First border of the paint interval </dd></dl>
  371. </div>
  372. </div>
  373. <a id="acd78b70fae83854a148fa3d08b13c261"></a>
  374. <h2 class="memtitle"><span class="permalink"><a href="#acd78b70fae83854a148fa3d08b13c261">&#9670;&nbsp;</a></span>p2()</h2>
  375. <div class="memitem">
  376. <div class="memproto">
  377. <table class="mlabels">
  378. <tr>
  379. <td class="mlabels-left">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">double QwtScaleMap::p2 </td>
  383. <td>(</td>
  384. <td class="paramname"></td><td>)</td>
  385. <td> const</td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td class="mlabels-right">
  390. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  391. </tr>
  392. </table>
  393. </div><div class="memdoc">
  394. <dl class="section return"><dt>Returns</dt><dd>Second border of the paint interval </dd></dl>
  395. </div>
  396. </div>
  397. <a id="a456d76a849af8c465692c0481bdd12ad"></a>
  398. <h2 class="memtitle"><span class="permalink"><a href="#a456d76a849af8c465692c0481bdd12ad">&#9670;&nbsp;</a></span>pDist()</h2>
  399. <div class="memitem">
  400. <div class="memproto">
  401. <table class="mlabels">
  402. <tr>
  403. <td class="mlabels-left">
  404. <table class="memname">
  405. <tr>
  406. <td class="memname">double QwtScaleMap::pDist </td>
  407. <td>(</td>
  408. <td class="paramname"></td><td>)</td>
  409. <td> const</td>
  410. </tr>
  411. </table>
  412. </td>
  413. <td class="mlabels-right">
  414. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  415. </tr>
  416. </table>
  417. </div><div class="memdoc">
  418. <dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> - <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a>) </dd></dl>
  419. </div>
  420. </div>
  421. <a id="a64b15c76aa63a521447215018c75bf37"></a>
  422. <h2 class="memtitle"><span class="permalink"><a href="#a64b15c76aa63a521447215018c75bf37">&#9670;&nbsp;</a></span>s1()</h2>
  423. <div class="memitem">
  424. <div class="memproto">
  425. <table class="mlabels">
  426. <tr>
  427. <td class="mlabels-left">
  428. <table class="memname">
  429. <tr>
  430. <td class="memname">double QwtScaleMap::s1 </td>
  431. <td>(</td>
  432. <td class="paramname"></td><td>)</td>
  433. <td> const</td>
  434. </tr>
  435. </table>
  436. </td>
  437. <td class="mlabels-right">
  438. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  439. </tr>
  440. </table>
  441. </div><div class="memdoc">
  442. <dl class="section return"><dt>Returns</dt><dd>First border of the scale interval </dd></dl>
  443. </div>
  444. </div>
  445. <a id="a7c8c969923c15880c4620be1d814ef18"></a>
  446. <h2 class="memtitle"><span class="permalink"><a href="#a7c8c969923c15880c4620be1d814ef18">&#9670;&nbsp;</a></span>s2()</h2>
  447. <div class="memitem">
  448. <div class="memproto">
  449. <table class="mlabels">
  450. <tr>
  451. <td class="mlabels-left">
  452. <table class="memname">
  453. <tr>
  454. <td class="memname">double QwtScaleMap::s2 </td>
  455. <td>(</td>
  456. <td class="paramname"></td><td>)</td>
  457. <td> const</td>
  458. </tr>
  459. </table>
  460. </td>
  461. <td class="mlabels-right">
  462. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  463. </tr>
  464. </table>
  465. </div><div class="memdoc">
  466. <dl class="section return"><dt>Returns</dt><dd>Second border of the scale interval </dd></dl>
  467. </div>
  468. </div>
  469. <a id="a953eb3e6584d8a6ca4d5fff98a9a0aa0"></a>
  470. <h2 class="memtitle"><span class="permalink"><a href="#a953eb3e6584d8a6ca4d5fff98a9a0aa0">&#9670;&nbsp;</a></span>sDist()</h2>
  471. <div class="memitem">
  472. <div class="memproto">
  473. <table class="mlabels">
  474. <tr>
  475. <td class="mlabels-left">
  476. <table class="memname">
  477. <tr>
  478. <td class="memname">double QwtScaleMap::sDist </td>
  479. <td>(</td>
  480. <td class="paramname"></td><td>)</td>
  481. <td> const</td>
  482. </tr>
  483. </table>
  484. </td>
  485. <td class="mlabels-right">
  486. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  487. </tr>
  488. </table>
  489. </div><div class="memdoc">
  490. <dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> - <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a>) </dd></dl>
  491. </div>
  492. </div>
  493. <a id="a994240e446986112f196a65657dc9755"></a>
  494. <h2 class="memtitle"><span class="permalink"><a href="#a994240e446986112f196a65657dc9755">&#9670;&nbsp;</a></span>setPaintInterval()</h2>
  495. <div class="memitem">
  496. <div class="memproto">
  497. <table class="memname">
  498. <tr>
  499. <td class="memname">void QwtScaleMap::setPaintInterval </td>
  500. <td>(</td>
  501. <td class="paramtype">double&#160;</td>
  502. <td class="paramname"><em>p1</em>, </td>
  503. </tr>
  504. <tr>
  505. <td class="paramkey"></td>
  506. <td></td>
  507. <td class="paramtype">double&#160;</td>
  508. <td class="paramname"><em>p2</em>&#160;</td>
  509. </tr>
  510. <tr>
  511. <td></td>
  512. <td>)</td>
  513. <td></td><td></td>
  514. </tr>
  515. </table>
  516. </div><div class="memdoc">
  517. <p>Specify the borders of the paint device interval. </p>
  518. <dl class="params"><dt>Parameters</dt><dd>
  519. <table class="params">
  520. <tr><td class="paramname">p1</td><td>first border </td></tr>
  521. <tr><td class="paramname">p2</td><td>second border </td></tr>
  522. </table>
  523. </dd>
  524. </dl>
  525. </div>
  526. </div>
  527. <a id="aaa33bc8e1aed7aa17d345053194e7094"></a>
  528. <h2 class="memtitle"><span class="permalink"><a href="#aaa33bc8e1aed7aa17d345053194e7094">&#9670;&nbsp;</a></span>setScaleInterval()</h2>
  529. <div class="memitem">
  530. <div class="memproto">
  531. <table class="memname">
  532. <tr>
  533. <td class="memname">void QwtScaleMap::setScaleInterval </td>
  534. <td>(</td>
  535. <td class="paramtype">double&#160;</td>
  536. <td class="paramname"><em>s1</em>, </td>
  537. </tr>
  538. <tr>
  539. <td class="paramkey"></td>
  540. <td></td>
  541. <td class="paramtype">double&#160;</td>
  542. <td class="paramname"><em>s2</em>&#160;</td>
  543. </tr>
  544. <tr>
  545. <td></td>
  546. <td>)</td>
  547. <td></td><td></td>
  548. </tr>
  549. </table>
  550. </div><div class="memdoc">
  551. <p>Specify the borders of the scale interval. </p>
  552. <dl class="params"><dt>Parameters</dt><dd>
  553. <table class="params">
  554. <tr><td class="paramname">s1</td><td>first border </td></tr>
  555. <tr><td class="paramname">s2</td><td>second border </td></tr>
  556. </table>
  557. </dd>
  558. </dl>
  559. <dl class="section warning"><dt>Warning</dt><dd>scales might be aligned to transformation depending boundaries </dd></dl>
  560. </div>
  561. </div>
  562. <a id="ad8e971dd4be07801f0adc99549153718"></a>
  563. <h2 class="memtitle"><span class="permalink"><a href="#ad8e971dd4be07801f0adc99549153718">&#9670;&nbsp;</a></span>setTransformation()</h2>
  564. <div class="memitem">
  565. <div class="memproto">
  566. <table class="memname">
  567. <tr>
  568. <td class="memname">void QwtScaleMap::setTransformation </td>
  569. <td>(</td>
  570. <td class="paramtype"><a class="el" href="class_qwt_transform.html">QwtTransform</a> *&#160;</td>
  571. <td class="paramname"><em>transform</em></td><td>)</td>
  572. <td></td>
  573. </tr>
  574. </table>
  575. </div><div class="memdoc">
  576. <p>Initialize the map with a transformation </p>
  577. </div>
  578. </div>
  579. <a id="a6be600afa5bd75f5ff52b1f102b123b0"></a>
  580. <h2 class="memtitle"><span class="permalink"><a href="#a6be600afa5bd75f5ff52b1f102b123b0">&#9670;&nbsp;</a></span>transform() <span class="overload">[1/3]</span></h2>
  581. <div class="memitem">
  582. <div class="memproto">
  583. <table class="mlabels">
  584. <tr>
  585. <td class="mlabels-left">
  586. <table class="memname">
  587. <tr>
  588. <td class="memname">QPointF QwtScaleMap::transform </td>
  589. <td>(</td>
  590. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  591. <td class="paramname"><em>xMap</em>, </td>
  592. </tr>
  593. <tr>
  594. <td class="paramkey"></td>
  595. <td></td>
  596. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  597. <td class="paramname"><em>yMap</em>, </td>
  598. </tr>
  599. <tr>
  600. <td class="paramkey"></td>
  601. <td></td>
  602. <td class="paramtype">const QPointF &amp;&#160;</td>
  603. <td class="paramname"><em>pos</em>&#160;</td>
  604. </tr>
  605. <tr>
  606. <td></td>
  607. <td>)</td>
  608. <td></td><td></td>
  609. </tr>
  610. </table>
  611. </td>
  612. <td class="mlabels-right">
  613. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  614. </tr>
  615. </table>
  616. </div><div class="memdoc">
  617. <p>Transform a point from scale to paint coordinates</p>
  618. <dl class="params"><dt>Parameters</dt><dd>
  619. <table class="params">
  620. <tr><td class="paramname">xMap</td><td>X map </td></tr>
  621. <tr><td class="paramname">yMap</td><td>Y map </td></tr>
  622. <tr><td class="paramname">pos</td><td>Position in scale coordinates </td></tr>
  623. </table>
  624. </dd>
  625. </dl>
  626. <dl class="section return"><dt>Returns</dt><dd>Position in paint coordinates</dd></dl>
  627. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>
  628. </div>
  629. </div>
  630. <a id="af99eeda829142128f97e0b6c4fbf9e1f"></a>
  631. <h2 class="memtitle"><span class="permalink"><a href="#af99eeda829142128f97e0b6c4fbf9e1f">&#9670;&nbsp;</a></span>transform() <span class="overload">[2/3]</span></h2>
  632. <div class="memitem">
  633. <div class="memproto">
  634. <table class="mlabels">
  635. <tr>
  636. <td class="mlabels-left">
  637. <table class="memname">
  638. <tr>
  639. <td class="memname">QRectF QwtScaleMap::transform </td>
  640. <td>(</td>
  641. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  642. <td class="paramname"><em>xMap</em>, </td>
  643. </tr>
  644. <tr>
  645. <td class="paramkey"></td>
  646. <td></td>
  647. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  648. <td class="paramname"><em>yMap</em>, </td>
  649. </tr>
  650. <tr>
  651. <td class="paramkey"></td>
  652. <td></td>
  653. <td class="paramtype">const QRectF &amp;&#160;</td>
  654. <td class="paramname"><em>rect</em>&#160;</td>
  655. </tr>
  656. <tr>
  657. <td></td>
  658. <td>)</td>
  659. <td></td><td></td>
  660. </tr>
  661. </table>
  662. </td>
  663. <td class="mlabels-right">
  664. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  665. </tr>
  666. </table>
  667. </div><div class="memdoc">
  668. <p>Transform a rectangle from scale to paint coordinates</p>
  669. <dl class="params"><dt>Parameters</dt><dd>
  670. <table class="params">
  671. <tr><td class="paramname">xMap</td><td>X map </td></tr>
  672. <tr><td class="paramname">yMap</td><td>Y map </td></tr>
  673. <tr><td class="paramname">rect</td><td>Rectangle in scale coordinates </td></tr>
  674. </table>
  675. </dd>
  676. </dl>
  677. <dl class="section return"><dt>Returns</dt><dd>Rectangle in paint coordinates</dd></dl>
  678. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>
  679. </div>
  680. </div>
  681. <a id="a504f1627e0e02ddac03d2ce46507b865"></a>
  682. <h2 class="memtitle"><span class="permalink"><a href="#a504f1627e0e02ddac03d2ce46507b865">&#9670;&nbsp;</a></span>transform() <span class="overload">[3/3]</span></h2>
  683. <div class="memitem">
  684. <div class="memproto">
  685. <table class="mlabels">
  686. <tr>
  687. <td class="mlabels-left">
  688. <table class="memname">
  689. <tr>
  690. <td class="memname">double QwtScaleMap::transform </td>
  691. <td>(</td>
  692. <td class="paramtype">double&#160;</td>
  693. <td class="paramname"><em>s</em></td><td>)</td>
  694. <td> const</td>
  695. </tr>
  696. </table>
  697. </td>
  698. <td class="mlabels-right">
  699. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  700. </tr>
  701. </table>
  702. </div><div class="memdoc">
  703. <p>Transform a point related to the scale interval into an point related to the interval of the paint device</p>
  704. <dl class="params"><dt>Parameters</dt><dd>
  705. <table class="params">
  706. <tr><td class="paramname">s</td><td>Value relative to the coordinates of the scale </td></tr>
  707. </table>
  708. </dd>
  709. </dl>
  710. <dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
  711. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>
  712. </div>
  713. </div>
  714. </div><!-- contents -->
  715. </div><!-- doc-content -->
  716. <!-- start footer part -->
  717. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  718. <ul>
  719. <li class="navelem"><a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a></li>
  720. <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  721. </ul>
  722. </div>
  723. </body>
  724. </html>