📄 class_qwt_picker_machine.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User's Guide: QwtPickerMachine Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>QwtPickerMachine Class Reference</h1><!-- doxytag: class="QwtPickerMachine" -->Inheritance diagram for QwtPickerMachine:<p><center><img src="class_qwt_picker_machine__inherit__graph.png" border="0" usemap="#_qwt_picker_machine__inherit__map" alt="Inheritance graph"></center><map name="_qwt_picker_machine__inherit__map"><area href="class_qwt_picker_click_point_machine.html" shape="rect" coords="188,7,380,31" alt=""><area href="class_qwt_picker_click_rect_machine.html" shape="rect" coords="190,55,379,79" alt=""><area href="class_qwt_picker_drag_point_machine.html" shape="rect" coords="188,103,380,127" alt=""><area href="class_qwt_picker_drag_rect_machine.html" shape="rect" coords="190,151,379,175" alt=""><area href="class_qwt_picker_polygon_machine.html" shape="rect" coords="195,199,374,223" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_picker_machine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A state machine for <a class="el" href="class_qwt_picker.html">QwtPicker</a> selections. <p><a class="el" href="class_qwt_picker_machine.html">QwtPickerMachine</a> accepts key and mouse events and translates them into selection commands.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#f48dc808ac5e125eeed41a4c0285d1ea">QwtEventPattern::MousePatternCode</a>, <a class="el" href="class_qwt_event_pattern.html#8fb57ceb9982d5583a1bf568e37d3007">QwtEventPattern::KeyPatternCode</a> </dd></dl><p><p>Definition at line <a class="el" href="qwt__picker__machine_8h-source.html#l00032">32</a> of file <a class="el" href="qwt__picker__machine_8h-source.html">qwt_picker_machine.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c173f6053e54747d7154bbc015763a22"></a><!-- doxytag: member="QwtPickerMachine::CommandList" ref="c173f6053e54747d7154bbc015763a22" args="" -->typedef QList< <a class="el" href="class_qwt_picker_machine.html#3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#c173f6053e54747d7154bbc015763a22">CommandList</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#3a8d3d4c107ce5f8351e4cbdd38c43f7">Command</a> { <br> <b>Begin</b>, <br> <b>Append</b>, <br> <b>Move</b>, <br> <b>End</b><br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#a1164dfb8ae6ac62fb3b6cb19efcb3e5">~QwtPickerMachine</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_picker_machine.html#c173f6053e54747d7154bbc015763a22">CommandList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#471bbb0faec23939aadb94e5e5f9ef73">transition</a> (const <a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a> &, const QEvent *)=0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#ce6daa55324a8daab3839cf8ba677a93">reset</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#9060b1036ef5125968fc7030681d73c0">state</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#569c426543e4a6aa15c221eb7c4910f0">setState</a> (int)</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_picker_machine.html#1f0f40e1fd28dd1296ee00720ccf49bb">QwtPickerMachine</a> ()</td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="3a8d3d4c107ce5f8351e4cbdd38c43f7"></a><!-- doxytag: member="QwtPickerMachine::Command" ref="3a8d3d4c107ce5f8351e4cbdd38c43f7" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_picker_machine.html#3a8d3d4c107ce5f8351e4cbdd38c43f7">QwtPickerMachine::Command</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Commands - the output of the state machine. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8h-source.html#l00036">36</a> of file <a class="el" href="qwt__picker__machine_8h-source.html">qwt_picker_machine.h</a>. </td> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a1164dfb8ae6ac62fb3b6cb19efcb3e5"></a><!-- doxytag: member="QwtPickerMachine::~QwtPickerMachine" ref="a1164dfb8ae6ac62fb3b6cb19efcb3e5" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtPickerMachine::~QwtPickerMachine </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8cpp-source.html#l00021">21</a> of file <a class="el" href="qwt__picker__machine_8cpp-source.html">qwt_picker_machine.cpp</a>. </td> </tr></table><a class="anchor" name="1f0f40e1fd28dd1296ee00720ccf49bb"></a><!-- doxytag: member="QwtPickerMachine::QwtPickerMachine" ref="1f0f40e1fd28dd1296ee00720ccf49bb" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtPickerMachine::QwtPickerMachine </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8cpp-source.html#l00015">15</a> of file <a class="el" href="qwt__picker__machine_8cpp-source.html">qwt_picker_machine.cpp</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="ce6daa55324a8daab3839cf8ba677a93"></a><!-- doxytag: member="QwtPickerMachine::reset" ref="ce6daa55324a8daab3839cf8ba677a93" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPickerMachine::reset </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the current state to 0. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8cpp-source.html#l00038">38</a> of file <a class="el" href="qwt__picker__machine_8cpp-source.html">qwt_picker_machine.cpp</a>.<p>References <a class="el" href="qwt__picker__machine_8cpp-source.html#l00032">setState()</a>. </td> </tr></table><a class="anchor" name="569c426543e4a6aa15c221eb7c4910f0"></a><!-- doxytag: member="QwtPickerMachine::setState" ref="569c426543e4a6aa15c221eb7c4910f0" args="(int)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPickerMachine::setState </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Change the current state. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8cpp-source.html#l00032">32</a> of file <a class="el" href="qwt__picker__machine_8cpp-source.html">qwt_picker_machine.cpp</a>.<p>Referenced by <a class="el" href="qwt__picker__machine_8cpp-source.html#l00038">reset()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00300">QwtPickerPolygonMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00234">QwtPickerDragRectMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00145">QwtPickerClickRectMachine::transition()</a>, and <a class="el" href="qwt__picker__machine_8cpp-source.html#l00081">QwtPickerDragPointMachine::transition()</a>. </td> </tr></table><a class="anchor" name="9060b1036ef5125968fc7030681d73c0"></a><!-- doxytag: member="QwtPickerMachine::state" ref="9060b1036ef5125968fc7030681d73c0" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int QwtPickerMachine::state </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return the current state. <p><p>Definition at line <a class="el" href="qwt__picker__machine_8cpp-source.html#l00026">26</a> of file <a class="el" href="qwt__picker__machine_8cpp-source.html">qwt_picker_machine.cpp</a>.<p>Referenced by <a class="el" href="qwt__picker__machine_8cpp-source.html#l00300">QwtPickerPolygonMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00234">QwtPickerDragRectMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00145">QwtPickerClickRectMachine::transition()</a>, and <a class="el" href="qwt__picker__machine_8cpp-source.html#l00081">QwtPickerDragPointMachine::transition()</a>. </td> </tr></table><a class="anchor" name="471bbb0faec23939aadb94e5e5f9ef73"></a><!-- doxytag: member="QwtPickerMachine::transition" ref="471bbb0faec23939aadb94e5e5f9ef73" args="(const QwtEventPattern &, const QEvent *)=0" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">virtual <a class="el" href="class_qwt_picker_machine.html#c173f6053e54747d7154bbc015763a22">CommandList</a> QwtPickerMachine::transition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a> & </td> <td class="mdname" nowrap>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QEvent * </td> <td class="mdname" nowrap></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Transition. <p><p>Implemented in <a class="el" href="class_qwt_picker_click_point_machine.html#458108629cdb78958b3c45a9df876088">QwtPickerClickPointMachine</a>, <a class="el" href="class_qwt_picker_drag_point_machine.html#f46c1217838359753d325739107d7833">QwtPickerDragPointMachine</a>, <a class="el" href="class_qwt_picker_click_rect_machine.html#6c495290237b9545ca15ef166c89e9bf">QwtPickerClickRectMachine</a>, <a class="el" href="class_qwt_picker_drag_rect_machine.html#16f6018d3572450f749c6bc3a3c8e4f5">QwtPickerDragRectMachine</a>, and <a class="el" href="class_qwt_picker_polygon_machine.html#744ff47737743d062c8f544f7a8383e5">QwtPickerPolygonMachine</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:24:42 2007 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -