123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtPickerMachine Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_picker_machine.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-types">Public Types</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="class_qwt_picker_machine-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtPickerMachine Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A state machine for <a class="el" href="class_qwt_picker.html" title="QwtPicker provides selections on a widget.">QwtPicker</a> selections.
- <a href="class_qwt_picker_machine.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__picker__machine_8h_source.html">qwt_picker_machine.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtPickerMachine:</div>
- <div class="dyncontent">
- <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>
- <map name="_qwt_picker_machine_inherit__map" id="a_qwt_picker_machine_inherit__map">
- <area shape="rect" title="A state machine for QwtPicker selections." alt="" coords="5,157,136,184"/>
- <area shape="rect" href="class_qwt_picker_click_point_machine.html" title="A state machine for point selections." alt="" coords="184,5,375,32"/>
- <area shape="rect" href="class_qwt_picker_click_rect_machine.html" title="A state machine for rectangle selections." alt="" coords="185,56,373,83"/>
- <area shape="rect" href="class_qwt_picker_drag_line_machine.html" title="A state machine for line selections." alt="" coords="188,107,371,133"/>
- <area shape="rect" href="class_qwt_picker_drag_point_machine.html" title="A state machine for point selections." alt="" coords="185,157,374,184"/>
- <area shape="rect" href="class_qwt_picker_drag_rect_machine.html" title="A state machine for rectangle selections." alt="" coords="186,208,373,235"/>
- <area shape="rect" href="class_qwt_picker_polygon_machine.html" title="A state machine for polygon selections." alt="" coords="191,259,368,285"/>
- <area shape="rect" href="class_qwt_picker_tracker_machine.html" title="A state machine for indicating mouse movements." alt="" coords="193,309,366,336"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:a24a9faf12cfa5746eee839a2c0bb937d"><td class="memItemLeft" align="right" valign="top">enum  </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,
- <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937dae65a34cc1ca5d818eb65c05b2484d855">PointSelection</a>,
- <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937da9f540e78958e8e238240584120e8af1d">RectSelection</a>,
- <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937dac74671ee5ba5d6fd0410f71db1aa3b97">PolygonSelection</a>
- }</td></tr>
- <tr class="separator:a24a9faf12cfa5746eee839a2c0bb937d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="memItemLeft" align="right" valign="top"><a id="a3a8d3d4c107ce5f8351e4cbdd38c43f7"></a>enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> { <br />
-   <b>Begin</b>,
- <b>Append</b>,
- <b>Move</b>,
- <b>Remove</b>,
- <br />
-   <b>End</b>
- <br />
- }</td></tr>
- <tr class="memdesc:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="mdescLeft"> </td><td class="mdescRight">Commands - the output of a state machine. <br /></td></tr>
- <tr class="separator:a3a8d3d4c107ce5f8351e4cbdd38c43f7"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="memItemLeft" align="right" valign="top"><a id="ab27bc3f70d48aa145db9ebbfdba34e15"></a>
-  </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>
- <tr class="memdesc:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:ab27bc3f70d48aa145db9ebbfdba34e15"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="memItemLeft" align="right" valign="top"><a id="aa1164dfb8ae6ac62fb3b6cb19efcb3e5"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#aa1164dfb8ae6ac62fb3b6cb19efcb3e5">~QwtPickerMachine</a> ()</td></tr>
- <tr class="memdesc:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:aa1164dfb8ae6ac62fb3b6cb19efcb3e5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acf7b57003bec437ce1ecf83e6d544968"><td class="memItemLeft" align="right" valign="top"><a id="acf7b57003bec437ce1ecf83e6d544968"></a>
- virtual QList< <a class="el" href="class_qwt_picker_machine.html#a3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> > </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> &, const QEvent *)=0</td></tr>
- <tr class="memdesc:acf7b57003bec437ce1ecf83e6d544968"><td class="mdescLeft"> </td><td class="mdescRight">Transition. <br /></td></tr>
- <tr class="separator:acf7b57003bec437ce1ecf83e6d544968"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ace6daa55324a8daab3839cf8ba677a93"><td class="memItemLeft" align="right" valign="top"><a id="ace6daa55324a8daab3839cf8ba677a93"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#ace6daa55324a8daab3839cf8ba677a93">reset</a> ()</td></tr>
- <tr class="memdesc:ace6daa55324a8daab3839cf8ba677a93"><td class="mdescLeft"> </td><td class="mdescRight">Set the current state to 0. <br /></td></tr>
- <tr class="separator:ace6daa55324a8daab3839cf8ba677a93"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a36293ce5cc8fc0ca68740ba928e8f049"><td class="memItemLeft" align="right" valign="top"><a id="a36293ce5cc8fc0ca68740ba928e8f049"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a36293ce5cc8fc0ca68740ba928e8f049">state</a> () const</td></tr>
- <tr class="memdesc:a36293ce5cc8fc0ca68740ba928e8f049"><td class="mdescLeft"> </td><td class="mdescRight">Return the current state. <br /></td></tr>
- <tr class="separator:a36293ce5cc8fc0ca68740ba928e8f049"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a569c426543e4a6aa15c221eb7c4910f0"><td class="memItemLeft" align="right" valign="top"><a id="a569c426543e4a6aa15c221eb7c4910f0"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a569c426543e4a6aa15c221eb7c4910f0">setState</a> (int)</td></tr>
- <tr class="memdesc:a569c426543e4a6aa15c221eb7c4910f0"><td class="mdescLeft"> </td><td class="mdescRight">Change the current state. <br /></td></tr>
- <tr class="separator:a569c426543e4a6aa15c221eb7c4910f0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9020aadf1a13436b4ea072b9ab57d112"><td class="memItemLeft" align="right" valign="top"><a id="a9020aadf1a13436b4ea072b9ab57d112"></a>
- <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">SelectionType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a9020aadf1a13436b4ea072b9ab57d112">selectionType</a> () const</td></tr>
- <tr class="memdesc:a9020aadf1a13436b4ea072b9ab57d112"><td class="mdescLeft"> </td><td class="mdescRight">Return the selection type. <br /></td></tr>
- <tr class="separator:a9020aadf1a13436b4ea072b9ab57d112"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <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>
- <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>
- <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>
- </div><h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="a24a9faf12cfa5746eee839a2c0bb937d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a24a9faf12cfa5746eee839a2c0bb937d">◆ </a></span>SelectionType</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_picker_machine.html#a24a9faf12cfa5746eee839a2c0bb937d">QwtPickerMachine::SelectionType</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937da326bcc03f7a99aa5970d875f3db46888"></a>NoSelection </td><td class="fielddoc"><p>The state machine not usable for any type of selection. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937dae65a34cc1ca5d818eb65c05b2484d855"></a>PointSelection </td><td class="fielddoc"><p>The state machine is for selecting a single point. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937da9f540e78958e8e238240584120e8af1d"></a>RectSelection </td><td class="fielddoc"><p>The state machine is for selecting a rectangle (2 points). </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a24a9faf12cfa5746eee839a2c0bb937dac74671ee5ba5d6fd0410f71db1aa3b97"></a>PolygonSelection </td><td class="fielddoc"><p>The state machine is for selecting a polygon (many points). </p>
- </td></tr>
- </table>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_picker_machine.html">QwtPickerMachine</a></li>
- <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>
- </ul>
- </div>
- </body>
- </html>
|