class_qwt_picker_machine.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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: QwtPickerMachine 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_picker_machine.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_picker_machine-members.html">List of all members</a> </div>
  87. <div class="headertitle">
  88. <div class="title">QwtPickerMachine Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>A state machine for <a class="el" href="class_qwt_picker.html" title="QwtPicker provides selections on a widget.">QwtPicker</a> selections.
  92. <a href="class_qwt_picker_machine.html#details">More...</a></p>
  93. <p><code>#include &lt;<a class="el" href="qwt__picker__machine_8h_source.html">qwt_picker_machine.h</a>&gt;</code></p>
  94. <div class="dynheader">
  95. Inheritance diagram for QwtPickerMachine:</div>
  96. <div class="dyncontent">
  97. <div class="center"><img src="class_qwt_picker_machine__inherit__graph.png" border="0" usemap="#a_qwt_picker_machine_inherit__map" alt="Inheritance graph"/></div>
  98. <map name="_qwt_picker_machine_inherit__map" id="a_qwt_picker_machine_inherit__map">
  99. <area shape="rect" title="A state machine for QwtPicker selections." alt="" coords="5,157,136,184"/>
  100. <area shape="rect" href="class_qwt_picker_click_point_machine.html" title="A state machine for point selections." alt="" coords="184,5,375,32"/>
  101. <area shape="rect" href="class_qwt_picker_click_rect_machine.html" title="A state machine for rectangle selections." alt="" coords="185,56,373,83"/>
  102. <area shape="rect" href="class_qwt_picker_drag_line_machine.html" title="A state machine for line selections." alt="" coords="188,107,371,133"/>
  103. <area shape="rect" href="class_qwt_picker_drag_point_machine.html" title="A state machine for point selections." alt="" coords="185,157,374,184"/>
  104. <area shape="rect" href="class_qwt_picker_drag_rect_machine.html" title="A state machine for rectangle selections." alt="" coords="186,208,373,235"/>
  105. <area shape="rect" href="class_qwt_picker_polygon_machine.html" title="A state machine for polygon selections." alt="" coords="191,259,368,285"/>
  106. <area shape="rect" href="class_qwt_picker_tracker_machine.html" title="A state machine for indicating mouse movements." alt="" coords="193,309,366,336"/>
  107. </map>
  108. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  109. <table class="memberdecls">
  110. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  111. Public Types</h2></td></tr>
  112. <tr class="memitem:a24a9faf12cfa5746eee839a2c0bb937d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">SelectionType</a> { <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937da326bcc03f7a99aa5970d875f3db46888">NoSelection</a> = -1,
  113. <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937dae65a34cc1ca5d818eb65c05b2484d855">PointSelection</a>,
  114. <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937da9f540e78958e8e238240584120e8af1d">RectSelection</a>,
  115. <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937dac74671ee5ba5d6fd0410f71db1aa3b97">PolygonSelection</a>
  116. }</td></tr>
  117. <tr class="separator:a24a9faf12cfa5746eee839a2c0bb937d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="memItemLeft" align="right" valign="top"><a id="a3a8d3d4c107ce5f8351e4cbdd38c43f7"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> { <br />
  119. &#160;&#160;<b>Begin</b>,
  120. <b>Append</b>,
  121. <b>Move</b>,
  122. <b>Remove</b>,
  123. <br />
  124. &#160;&#160;<b>End</b>
  125. <br />
  126. }</td></tr>
  127. <tr class="memdesc:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Commands - the output of a state machine. <br /></td></tr>
  128. <tr class="separator:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. </table><table class="memberdecls">
  130. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  131. Public Member Functions</h2></td></tr>
  132. <tr class="memitem:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="memItemLeft" align="right" valign="top"><a id="ab27bc3f70d48aa145db9ebbfdba34e15"></a>
  133. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#ab27bc3f70d48aa145db9ebbfdba34e15">QwtPickerMachine</a> (<a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">SelectionType</a>)</td></tr>
  134. <tr class="memdesc:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  135. <tr class="separator:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="memItemLeft" align="right" valign="top"><a id="aa1164dfb8ae6ac62fb3b6cb19efcb3e5"></a>
  137. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#aa1164dfb8ae6ac62fb3b6cb19efcb3e5">~QwtPickerMachine</a> ()</td></tr>
  138. <tr class="memdesc:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  139. <tr class="separator:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:acf7b57003bec437ce1ecf83e6d544968"><td class="memItemLeft" align="right" valign="top"><a id="acf7b57003bec437ce1ecf83e6d544968"></a>
  141. virtual QList&lt; <a class="el" href="class_qwt_picker_machine.html#a3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#acf7b57003bec437ce1ecf83e6d544968">transition</a> (const <a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a> &amp;, const QEvent *)=0</td></tr>
  142. <tr class="memdesc:acf7b57003bec437ce1ecf83e6d544968"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transition. <br /></td></tr>
  143. <tr class="separator:acf7b57003bec437ce1ecf83e6d544968"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:ace6daa55324a8daab3839cf8ba677a93"><td class="memItemLeft" align="right" valign="top"><a id="ace6daa55324a8daab3839cf8ba677a93"></a>
  145. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#ace6daa55324a8daab3839cf8ba677a93">reset</a> ()</td></tr>
  146. <tr class="memdesc:ace6daa55324a8daab3839cf8ba677a93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the current state to 0. <br /></td></tr>
  147. <tr class="separator:ace6daa55324a8daab3839cf8ba677a93"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a36293ce5cc8fc0ca68740ba928e8f049"><td class="memItemLeft" align="right" valign="top"><a id="a36293ce5cc8fc0ca68740ba928e8f049"></a>
  149. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a36293ce5cc8fc0ca68740ba928e8f049">state</a> () const</td></tr>
  150. <tr class="memdesc:a36293ce5cc8fc0ca68740ba928e8f049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current state. <br /></td></tr>
  151. <tr class="separator:a36293ce5cc8fc0ca68740ba928e8f049"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a569c426543e4a6aa15c221eb7c4910f0"><td class="memItemLeft" align="right" valign="top"><a id="a569c426543e4a6aa15c221eb7c4910f0"></a>
  153. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a569c426543e4a6aa15c221eb7c4910f0">setState</a> (int)</td></tr>
  154. <tr class="memdesc:a569c426543e4a6aa15c221eb7c4910f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the current state. <br /></td></tr>
  155. <tr class="separator:a569c426543e4a6aa15c221eb7c4910f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a9020aadf1a13436b4ea072b9ab57d112"><td class="memItemLeft" align="right" valign="top"><a id="a9020aadf1a13436b4ea072b9ab57d112"></a>
  157. <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">SelectionType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a9020aadf1a13436b4ea072b9ab57d112">selectionType</a> () const</td></tr>
  158. <tr class="memdesc:a9020aadf1a13436b4ea072b9ab57d112"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the selection type. <br /></td></tr>
  159. <tr class="separator:a9020aadf1a13436b4ea072b9ab57d112"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. </table>
  161. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  162. <div class="textblock"><p>A state machine for <a class="el" href="class_qwt_picker.html" title="QwtPicker provides selections on a widget.">QwtPicker</a> selections. </p>
  163. <p><a class="el" href="class_qwt_picker_machine.html" title="A state machine for QwtPicker selections.">QwtPickerMachine</a> accepts key and mouse events and translates them into selection commands.</p>
  164. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea" title="Symbolic mouse input codes.">QwtEventPattern::MousePatternCode</a>, <a class="el" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007" title="Symbolic keyboard input codes.">QwtEventPattern::KeyPatternCode</a> </dd></dl>
  165. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  166. <a id="a24a9faf12cfa5746eee839a2c0bb937d"></a>
  167. <h2 class="memtitle"><span class="permalink"><a href="#a24a9faf12cfa5746eee839a2c0bb937d">&#9670;&nbsp;</a></span>SelectionType</h2>
  168. <div class="memitem">
  169. <div class="memproto">
  170. <table class="memname">
  171. <tr>
  172. <td class="memname">enum <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">QwtPickerMachine::SelectionType</a></td>
  173. </tr>
  174. </table>
  175. </div><div class="memdoc">
  176. <p>Type of a selection. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_picker_machine.html#a9020aadf1a13436b4ea072b9ab57d112" title="Return the selection type.">selectionType()</a> </dd></dl>
  177. <table class="fieldtable">
  178. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937da326bcc03f7a99aa5970d875f3db46888"></a>NoSelection&#160;</td><td class="fielddoc"><p>The state machine not usable for any type of selection. </p>
  179. </td></tr>
  180. <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937dae65a34cc1ca5d818eb65c05b2484d855"></a>PointSelection&#160;</td><td class="fielddoc"><p>The state machine is for selecting a single point. </p>
  181. </td></tr>
  182. <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937da9f540e78958e8e238240584120e8af1d"></a>RectSelection&#160;</td><td class="fielddoc"><p>The state machine is for selecting a rectangle (2 points). </p>
  183. </td></tr>
  184. <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937dac74671ee5ba5d6fd0410f71db1aa3b97"></a>PolygonSelection&#160;</td><td class="fielddoc"><p>The state machine is for selecting a polygon (many points). </p>
  185. </td></tr>
  186. </table>
  187. </div>
  188. </div>
  189. </div><!-- contents -->
  190. </div><!-- doc-content -->
  191. <!-- start footer part -->
  192. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  193. <ul>
  194. <li class="navelem"><a class="el" href="class_qwt_picker_machine.html">QwtPickerMachine</a></li>
  195. <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>
  196. </ul>
  197. </div>
  198. </body>
  199. </html>