class_qwt_point_mapper.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  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: QwtPointMapper 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_point_mapper.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-types">Public Types</a> &#124;
  85. <a href="#pub-methods">Public Member Functions</a> &#124;
  86. <a href="class_qwt_point_mapper-members.html">List of all members</a> </div>
  87. <div class="headertitle">
  88. <div class="title">QwtPointMapper Class Reference</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>A helper class for translating a series of points.
  92. <a href="class_qwt_point_mapper.html#details">More...</a></p>
  93. <p><code>#include &lt;<a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>&gt;</code></p>
  94. <table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  96. Public Types</h2></td></tr>
  97. <tr class="memitem:aafc07ceadb3f311057037ca8680e1c23"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> { <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3">RoundPoints</a> = 0x01,
  98. <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4">WeedOutPoints</a> = 0x02
  99. }</td></tr>
  100. <tr class="memdesc:aafc07ceadb3f311057037ca8680e1c23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags affecting the transformation process. <a href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">More...</a><br /></td></tr>
  101. <tr class="separator:aafc07ceadb3f311057037ca8680e1c23"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:af7a8c38f6dd7faf8396a87a882e2f967"><td class="memItemLeft" align="right" valign="top">typedef QFlags&lt; <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a></td></tr>
  103. <tr class="memdesc:af7a8c38f6dd7faf8396a87a882e2f967"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags affecting the transformation process. <a href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">More...</a><br /></td></tr>
  104. <tr class="separator:af7a8c38f6dd7faf8396a87a882e2f967"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. </table><table class="memberdecls">
  106. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  107. Public Member Functions</h2></td></tr>
  108. <tr class="memitem:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memItemLeft" align="right" valign="top"><a id="a6e5eabb9c1af9b035023376fa2e1c472"></a>
  109. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e5eabb9c1af9b035023376fa2e1c472">QwtPointMapper</a> ()</td></tr>
  110. <tr class="memdesc:a6e5eabb9c1af9b035023376fa2e1c472"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  111. <tr class="separator:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memItemLeft" align="right" valign="top"><a id="aabe6a70dae5784e8b67f4527c51e0c09"></a>
  113. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aabe6a70dae5784e8b67f4527c51e0c09">~QwtPointMapper</a> ()</td></tr>
  114. <tr class="memdesc:aabe6a70dae5784e8b67f4527c51e0c09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  115. <tr class="separator:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:ab556bd339cca487f25e2d894c51abe85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags</a> (<a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a>)</td></tr>
  117. <tr class="separator:ab556bd339cca487f25e2d894c51abe85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags</a> () const</td></tr>
  119. <tr class="separator:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>, bool on=true)</td></tr>
  121. <tr class="separator:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a5083f71473fd88e23363a587d84779f3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a5083f71473fd88e23363a587d84779f3">testFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>) const</td></tr>
  123. <tr class="separator:a5083f71473fd88e23363a587d84779f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a03910571df91575456e98134f6543650"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect</a> (const QRectF &amp;)</td></tr>
  125. <tr class="separator:a03910571df91575456e98134f6543650"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a22846085780856a6ca36776d387d5b21"><td class="memItemLeft" align="right" valign="top">QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect</a> () const</td></tr>
  127. <tr class="separator:a22846085780856a6ca36776d387d5b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a394341ccba09dd293dddc7bb4f599891"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">toPolygonF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
  129. <tr class="memdesc:a394341ccba09dd293dddc7bb4f599891"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygonF. <a href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">More...</a><br /></td></tr>
  130. <tr class="separator:a394341ccba09dd293dddc7bb4f599891"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memItemLeft" align="right" valign="top">QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">toPolygon</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
  132. <tr class="memdesc:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygon. <a href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">More...</a><br /></td></tr>
  133. <tr class="separator:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ad580fc22b1bfcc353e711712cad15ae0"><td class="memItemLeft" align="right" valign="top">QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">toPoints</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
  135. <tr class="memdesc:ad580fc22b1bfcc353e711712cad15ae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygon. <a href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">More...</a><br /></td></tr>
  136. <tr class="separator:ad580fc22b1bfcc353e711712cad15ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">toPointsF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
  138. <tr class="memdesc:a69d9ab6398de007d851e7d386ec5dfb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series into a QPolygonF. <a href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">More...</a><br /></td></tr>
  139. <tr class="separator:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a48feb94a44632dafc78405e7a42ee65e"><td class="memItemLeft" align="right" valign="top">QImage&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">toImage</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to, const QPen &amp;, bool antialiased, uint numThreads) const</td></tr>
  141. <tr class="memdesc:a48feb94a44632dafc78405e7a42ee65e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series into a QImage. <a href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">More...</a><br /></td></tr>
  142. <tr class="separator:a48feb94a44632dafc78405e7a42ee65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. </table>
  144. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  145. <div class="textblock"><p>A helper class for translating a series of points. </p>
  146. <p><a class="el" href="class_qwt_point_mapper.html" title="A helper class for translating a series of points.">QwtPointMapper</a> is a collection of methods and optimizations for translating a series of points into paint device coordinates. It is used by <a class="el" href="class_qwt_plot_curve.html" title="A plot item, that represents a series of points.">QwtPlotCurve</a> but might also be useful for similar plot items displaying a <a class="el" href="class_qwt_series_data.html">QwtSeriesData&lt;QPointF&gt;</a>. </p>
  147. </div><h2 class="groupheader">Member Typedef Documentation</h2>
  148. <a id="af7a8c38f6dd7faf8396a87a882e2f967"></a>
  149. <h2 class="memtitle"><span class="permalink"><a href="#af7a8c38f6dd7faf8396a87a882e2f967">&#9670;&nbsp;</a></span>TransformationFlags</h2>
  150. <div class="memitem">
  151. <div class="memproto">
  152. <table class="memname">
  153. <tr>
  154. <td class="memname">typedef QFlags&lt;<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>&gt; <a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">QwtPointMapper::TransformationFlags</a></td>
  155. </tr>
  156. </table>
  157. </div><div class="memdoc">
  158. <p>Flags affecting the transformation process. </p>
  159. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
  160. </div>
  161. </div>
  162. <h2 class="groupheader">Member Enumeration Documentation</h2>
  163. <a id="aafc07ceadb3f311057037ca8680e1c23"></a>
  164. <h2 class="memtitle"><span class="permalink"><a href="#aafc07ceadb3f311057037ca8680e1c23">&#9670;&nbsp;</a></span>TransformationFlag</h2>
  165. <div class="memitem">
  166. <div class="memproto">
  167. <table class="memname">
  168. <tr>
  169. <td class="memname">enum <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">QwtPointMapper::TransformationFlag</a></td>
  170. </tr>
  171. </table>
  172. </div><div class="memdoc">
  173. <p>Flags affecting the transformation process. </p>
  174. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
  175. <table class="fieldtable">
  176. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3"></a>RoundPoints&#160;</td><td class="fielddoc"><p>Round points to integer values. </p>
  177. </td></tr>
  178. <tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4"></a>WeedOutPoints&#160;</td><td class="fielddoc"><p>Try to remove points, that are translated to the same position. </p>
  179. </td></tr>
  180. </table>
  181. </div>
  182. </div>
  183. <h2 class="groupheader">Member Function Documentation</h2>
  184. <a id="a22846085780856a6ca36776d387d5b21"></a>
  185. <h2 class="memtitle"><span class="permalink"><a href="#a22846085780856a6ca36776d387d5b21">&#9670;&nbsp;</a></span>boundingRect()</h2>
  186. <div class="memitem">
  187. <div class="memproto">
  188. <table class="memname">
  189. <tr>
  190. <td class="memname">QRectF QwtPointMapper::boundingRect </td>
  191. <td>(</td>
  192. <td class="paramname"></td><td>)</td>
  193. <td> const</td>
  194. </tr>
  195. </table>
  196. </div><div class="memdoc">
  197. <dl class="section return"><dt>Returns</dt><dd>Bounding rectangle </dd></dl>
  198. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect()</a> </dd></dl>
  199. </div>
  200. </div>
  201. <a id="a3bed903e8aeaebd8153c6c75121bfb01"></a>
  202. <h2 class="memtitle"><span class="permalink"><a href="#a3bed903e8aeaebd8153c6c75121bfb01">&#9670;&nbsp;</a></span>flags()</h2>
  203. <div class="memitem">
  204. <div class="memproto">
  205. <table class="memname">
  206. <tr>
  207. <td class="memname"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">QwtPointMapper::TransformationFlags</a> QwtPointMapper::flags </td>
  208. <td>(</td>
  209. <td class="paramname"></td><td>)</td>
  210. <td> const</td>
  211. </tr>
  212. </table>
  213. </div><div class="memdoc">
  214. <dl class="section return"><dt>Returns</dt><dd>Flags affecting the transformation process </dd></dl>
  215. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>
  216. </div>
  217. </div>
  218. <a id="a03910571df91575456e98134f6543650"></a>
  219. <h2 class="memtitle"><span class="permalink"><a href="#a03910571df91575456e98134f6543650">&#9670;&nbsp;</a></span>setBoundingRect()</h2>
  220. <div class="memitem">
  221. <div class="memproto">
  222. <table class="memname">
  223. <tr>
  224. <td class="memname">void QwtPointMapper::setBoundingRect </td>
  225. <td>(</td>
  226. <td class="paramtype">const QRectF &amp;&#160;</td>
  227. <td class="paramname"><em>rect</em></td><td>)</td>
  228. <td></td>
  229. </tr>
  230. </table>
  231. </div><div class="memdoc">
  232. <p>Set a bounding rectangle for the point mapping algorithm</p>
  233. <p>A valid bounding rectangle can be used for optimizations</p>
  234. <dl class="params"><dt>Parameters</dt><dd>
  235. <table class="params">
  236. <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
  237. </table>
  238. </dd>
  239. </dl>
  240. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a> </dd></dl>
  241. </div>
  242. </div>
  243. <a id="a6e03e14718d3d66a0f6a02fec7fcaeed"></a>
  244. <h2 class="memtitle"><span class="permalink"><a href="#a6e03e14718d3d66a0f6a02fec7fcaeed">&#9670;&nbsp;</a></span>setFlag()</h2>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">void QwtPointMapper::setFlag </td>
  250. <td>(</td>
  251. <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>&#160;</td>
  252. <td class="paramname"><em>flag</em>, </td>
  253. </tr>
  254. <tr>
  255. <td class="paramkey"></td>
  256. <td></td>
  257. <td class="paramtype">bool&#160;</td>
  258. <td class="paramname"><em>on</em> = <code>true</code>&#160;</td>
  259. </tr>
  260. <tr>
  261. <td></td>
  262. <td>)</td>
  263. <td></td><td></td>
  264. </tr>
  265. </table>
  266. </div><div class="memdoc">
  267. <p>Modify a flag affecting the transformation process</p>
  268. <dl class="params"><dt>Parameters</dt><dd>
  269. <table class="params">
  270. <tr><td class="paramname">flag</td><td>Flag type </td></tr>
  271. <tr><td class="paramname">on</td><td>Value</td></tr>
  272. </table>
  273. </dd>
  274. </dl>
  275. <dl class="section see"><dt>See also</dt><dd>flag(), <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
  276. </div>
  277. </div>
  278. <a id="ab556bd339cca487f25e2d894c51abe85"></a>
  279. <h2 class="memtitle"><span class="permalink"><a href="#ab556bd339cca487f25e2d894c51abe85">&#9670;&nbsp;</a></span>setFlags()</h2>
  280. <div class="memitem">
  281. <div class="memproto">
  282. <table class="memname">
  283. <tr>
  284. <td class="memname">void QwtPointMapper::setFlags </td>
  285. <td>(</td>
  286. <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a>&#160;</td>
  287. <td class="paramname"><em>flags</em></td><td>)</td>
  288. <td></td>
  289. </tr>
  290. </table>
  291. </div><div class="memdoc">
  292. <p>Set the flags affecting the transformation process</p>
  293. <dl class="params"><dt>Parameters</dt><dd>
  294. <table class="params">
  295. <tr><td class="paramname">flags</td><td>Flags </td></tr>
  296. </table>
  297. </dd>
  298. </dl>
  299. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>
  300. </div>
  301. </div>
  302. <a id="a5083f71473fd88e23363a587d84779f3"></a>
  303. <h2 class="memtitle"><span class="permalink"><a href="#a5083f71473fd88e23363a587d84779f3">&#9670;&nbsp;</a></span>testFlag()</h2>
  304. <div class="memitem">
  305. <div class="memproto">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">bool QwtPointMapper::testFlag </td>
  309. <td>(</td>
  310. <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>&#160;</td>
  311. <td class="paramname"><em>flag</em></td><td>)</td>
  312. <td> const</td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <dl class="section return"><dt>Returns</dt><dd>True, when the flag is set </dd></dl>
  317. <dl class="params"><dt>Parameters</dt><dd>
  318. <table class="params">
  319. <tr><td class="paramname">flag</td><td>Flag type </td></tr>
  320. </table>
  321. </dd>
  322. </dl>
  323. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
  324. </div>
  325. </div>
  326. <a id="a48feb94a44632dafc78405e7a42ee65e"></a>
  327. <h2 class="memtitle"><span class="permalink"><a href="#a48feb94a44632dafc78405e7a42ee65e">&#9670;&nbsp;</a></span>toImage()</h2>
  328. <div class="memitem">
  329. <div class="memproto">
  330. <table class="memname">
  331. <tr>
  332. <td class="memname">QImage QwtPointMapper::toImage </td>
  333. <td>(</td>
  334. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  335. <td class="paramname"><em>xMap</em>, </td>
  336. </tr>
  337. <tr>
  338. <td class="paramkey"></td>
  339. <td></td>
  340. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  341. <td class="paramname"><em>yMap</em>, </td>
  342. </tr>
  343. <tr>
  344. <td class="paramkey"></td>
  345. <td></td>
  346. <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
  347. <td class="paramname"><em>series</em>, </td>
  348. </tr>
  349. <tr>
  350. <td class="paramkey"></td>
  351. <td></td>
  352. <td class="paramtype">int&#160;</td>
  353. <td class="paramname"><em>from</em>, </td>
  354. </tr>
  355. <tr>
  356. <td class="paramkey"></td>
  357. <td></td>
  358. <td class="paramtype">int&#160;</td>
  359. <td class="paramname"><em>to</em>, </td>
  360. </tr>
  361. <tr>
  362. <td class="paramkey"></td>
  363. <td></td>
  364. <td class="paramtype">const QPen &amp;&#160;</td>
  365. <td class="paramname"><em>pen</em>, </td>
  366. </tr>
  367. <tr>
  368. <td class="paramkey"></td>
  369. <td></td>
  370. <td class="paramtype">bool&#160;</td>
  371. <td class="paramname"><em>antialiased</em>, </td>
  372. </tr>
  373. <tr>
  374. <td class="paramkey"></td>
  375. <td></td>
  376. <td class="paramtype">uint&#160;</td>
  377. <td class="paramname"><em>numThreads</em>&#160;</td>
  378. </tr>
  379. <tr>
  380. <td></td>
  381. <td>)</td>
  382. <td></td><td> const</td>
  383. </tr>
  384. </table>
  385. </div><div class="memdoc">
  386. <p>Translate a series into a QImage. </p>
  387. <dl class="params"><dt>Parameters</dt><dd>
  388. <table class="params">
  389. <tr><td class="paramname">xMap</td><td>x map </td></tr>
  390. <tr><td class="paramname">yMap</td><td>y map </td></tr>
  391. <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
  392. <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
  393. <tr><td class="paramname">to</td><td>Index of the last point to be painted </td></tr>
  394. <tr><td class="paramname">pen</td><td>Pen used for drawing a point of the image, where a point is mapped to </td></tr>
  395. <tr><td class="paramname">antialiased</td><td>True, when the dots should be displayed antialiased </td></tr>
  396. <tr><td class="paramname">numThreads</td><td>Number of threads to be used for rendering. If numThreads is set to 0, the system specific ideal thread count is used.</td></tr>
  397. </table>
  398. </dd>
  399. </dl>
  400. <dl class="section return"><dt>Returns</dt><dd>Image displaying the series </dd></dl>
  401. </div>
  402. </div>
  403. <a id="ad580fc22b1bfcc353e711712cad15ae0"></a>
  404. <h2 class="memtitle"><span class="permalink"><a href="#ad580fc22b1bfcc353e711712cad15ae0">&#9670;&nbsp;</a></span>toPoints()</h2>
  405. <div class="memitem">
  406. <div class="memproto">
  407. <table class="memname">
  408. <tr>
  409. <td class="memname">QPolygon QwtPointMapper::toPoints </td>
  410. <td>(</td>
  411. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  412. <td class="paramname"><em>xMap</em>, </td>
  413. </tr>
  414. <tr>
  415. <td class="paramkey"></td>
  416. <td></td>
  417. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  418. <td class="paramname"><em>yMap</em>, </td>
  419. </tr>
  420. <tr>
  421. <td class="paramkey"></td>
  422. <td></td>
  423. <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
  424. <td class="paramname"><em>series</em>, </td>
  425. </tr>
  426. <tr>
  427. <td class="paramkey"></td>
  428. <td></td>
  429. <td class="paramtype">int&#160;</td>
  430. <td class="paramname"><em>from</em>, </td>
  431. </tr>
  432. <tr>
  433. <td class="paramkey"></td>
  434. <td></td>
  435. <td class="paramtype">int&#160;</td>
  436. <td class="paramname"><em>to</em>&#160;</td>
  437. </tr>
  438. <tr>
  439. <td></td>
  440. <td>)</td>
  441. <td></td><td> const</td>
  442. </tr>
  443. </table>
  444. </div><div class="memdoc">
  445. <p>Translate a series of points into a QPolygon. </p>
  446. <ul>
  447. <li>WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
  448. <li>WeedOutPoints &amp; !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
  449. <li>!WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
  450. </ul>
  451. <dl class="params"><dt>Parameters</dt><dd>
  452. <table class="params">
  453. <tr><td class="paramname">xMap</td><td>x map </td></tr>
  454. <tr><td class="paramname">yMap</td><td>y map </td></tr>
  455. <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
  456. <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
  457. <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  458. </table>
  459. </dd>
  460. </dl>
  461. <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
  462. </div>
  463. </div>
  464. <a id="a69d9ab6398de007d851e7d386ec5dfb7"></a>
  465. <h2 class="memtitle"><span class="permalink"><a href="#a69d9ab6398de007d851e7d386ec5dfb7">&#9670;&nbsp;</a></span>toPointsF()</h2>
  466. <div class="memitem">
  467. <div class="memproto">
  468. <table class="memname">
  469. <tr>
  470. <td class="memname">QPolygonF QwtPointMapper::toPointsF </td>
  471. <td>(</td>
  472. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  473. <td class="paramname"><em>xMap</em>, </td>
  474. </tr>
  475. <tr>
  476. <td class="paramkey"></td>
  477. <td></td>
  478. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  479. <td class="paramname"><em>yMap</em>, </td>
  480. </tr>
  481. <tr>
  482. <td class="paramkey"></td>
  483. <td></td>
  484. <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
  485. <td class="paramname"><em>series</em>, </td>
  486. </tr>
  487. <tr>
  488. <td class="paramkey"></td>
  489. <td></td>
  490. <td class="paramtype">int&#160;</td>
  491. <td class="paramname"><em>from</em>, </td>
  492. </tr>
  493. <tr>
  494. <td class="paramkey"></td>
  495. <td></td>
  496. <td class="paramtype">int&#160;</td>
  497. <td class="paramname"><em>to</em>&#160;</td>
  498. </tr>
  499. <tr>
  500. <td></td>
  501. <td>)</td>
  502. <td></td><td> const</td>
  503. </tr>
  504. </table>
  505. </div><div class="memdoc">
  506. <p>Translate a series into a QPolygonF. </p>
  507. <ul>
  508. <li>WeedOutPoints &amp; RoundPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
  509. <li>WeedOutPoints &amp; RoundPoints &amp; !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
  510. <li>WeedOutPoints &amp; !RoundPoints All consecutive points that are mapped to the same position will one point</li>
  511. <li>!WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
  512. </ul>
  513. <p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
  514. <dl class="params"><dt>Parameters</dt><dd>
  515. <table class="params">
  516. <tr><td class="paramname">xMap</td><td>x map </td></tr>
  517. <tr><td class="paramname">yMap</td><td>y map </td></tr>
  518. <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
  519. <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
  520. <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  521. </table>
  522. </dd>
  523. </dl>
  524. <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
  525. </div>
  526. </div>
  527. <a id="ab1dde54ddb1c522e17e28ff47fbaa82a"></a>
  528. <h2 class="memtitle"><span class="permalink"><a href="#ab1dde54ddb1c522e17e28ff47fbaa82a">&#9670;&nbsp;</a></span>toPolygon()</h2>
  529. <div class="memitem">
  530. <div class="memproto">
  531. <table class="memname">
  532. <tr>
  533. <td class="memname">QPolygon QwtPointMapper::toPolygon </td>
  534. <td>(</td>
  535. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  536. <td class="paramname"><em>xMap</em>, </td>
  537. </tr>
  538. <tr>
  539. <td class="paramkey"></td>
  540. <td></td>
  541. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  542. <td class="paramname"><em>yMap</em>, </td>
  543. </tr>
  544. <tr>
  545. <td class="paramkey"></td>
  546. <td></td>
  547. <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
  548. <td class="paramname"><em>series</em>, </td>
  549. </tr>
  550. <tr>
  551. <td class="paramkey"></td>
  552. <td></td>
  553. <td class="paramtype">int&#160;</td>
  554. <td class="paramname"><em>from</em>, </td>
  555. </tr>
  556. <tr>
  557. <td class="paramkey"></td>
  558. <td></td>
  559. <td class="paramtype">int&#160;</td>
  560. <td class="paramname"><em>to</em>&#160;</td>
  561. </tr>
  562. <tr>
  563. <td></td>
  564. <td>)</td>
  565. <td></td><td> const</td>
  566. </tr>
  567. </table>
  568. </div><div class="memdoc">
  569. <p>Translate a series of points into a QPolygon. </p>
  570. <p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
  571. <dl class="params"><dt>Parameters</dt><dd>
  572. <table class="params">
  573. <tr><td class="paramname">xMap</td><td>x map </td></tr>
  574. <tr><td class="paramname">yMap</td><td>y map </td></tr>
  575. <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
  576. <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
  577. <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  578. </table>
  579. </dd>
  580. </dl>
  581. <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
  582. </div>
  583. </div>
  584. <a id="a394341ccba09dd293dddc7bb4f599891"></a>
  585. <h2 class="memtitle"><span class="permalink"><a href="#a394341ccba09dd293dddc7bb4f599891">&#9670;&nbsp;</a></span>toPolygonF()</h2>
  586. <div class="memitem">
  587. <div class="memproto">
  588. <table class="memname">
  589. <tr>
  590. <td class="memname">QPolygonF QwtPointMapper::toPolygonF </td>
  591. <td>(</td>
  592. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  593. <td class="paramname"><em>xMap</em>, </td>
  594. </tr>
  595. <tr>
  596. <td class="paramkey"></td>
  597. <td></td>
  598. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  599. <td class="paramname"><em>yMap</em>, </td>
  600. </tr>
  601. <tr>
  602. <td class="paramkey"></td>
  603. <td></td>
  604. <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
  605. <td class="paramname"><em>series</em>, </td>
  606. </tr>
  607. <tr>
  608. <td class="paramkey"></td>
  609. <td></td>
  610. <td class="paramtype">int&#160;</td>
  611. <td class="paramname"><em>from</em>, </td>
  612. </tr>
  613. <tr>
  614. <td class="paramkey"></td>
  615. <td></td>
  616. <td class="paramtype">int&#160;</td>
  617. <td class="paramname"><em>to</em>&#160;</td>
  618. </tr>
  619. <tr>
  620. <td></td>
  621. <td>)</td>
  622. <td></td><td> const</td>
  623. </tr>
  624. </table>
  625. </div><div class="memdoc">
  626. <p>Translate a series of points into a QPolygonF. </p>
  627. <p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
  628. <p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
  629. <dl class="params"><dt>Parameters</dt><dd>
  630. <table class="params">
  631. <tr><td class="paramname">xMap</td><td>x map </td></tr>
  632. <tr><td class="paramname">yMap</td><td>y map </td></tr>
  633. <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
  634. <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
  635. <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  636. </table>
  637. </dd>
  638. </dl>
  639. <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
  640. </div>
  641. </div>
  642. </div><!-- contents -->
  643. </div><!-- doc-content -->
  644. <!-- start footer part -->
  645. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  646. <ul>
  647. <li class="navelem"><a class="el" href="class_qwt_point_mapper.html">QwtPointMapper</a></li>
  648. <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>
  649. </ul>
  650. </div>
  651. </body>
  652. </html>