1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPickerMachine Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.4.6 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<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>
23
<map name="_qwt_picker_machine__inherit__map">
24
<area href="class_qwt_picker_click_point_machine.html" shape="rect" coords="188,7,380,31" alt="">
25
<area href="class_qwt_picker_click_rect_machine.html" shape="rect" coords="190,55,379,79" alt="">
26
<area href="class_qwt_picker_drag_point_machine.html" shape="rect" coords="188,103,380,127" alt="">
27
<area href="class_qwt_picker_drag_rect_machine.html" shape="rect" coords="190,151,379,175" alt="">
28
<area href="class_qwt_picker_polygon_machine.html" shape="rect" coords="195,199,374,223" alt="">
30
<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>
31
A state machine for <a class="el" href="class_qwt_picker.html">QwtPicker</a> selections.
33
<a class="el" href="class_qwt_picker_machine.html">QwtPickerMachine</a> accepts key and mouse events and translates them into selection commands.<p>
34
<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>
39
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">
41
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c173f6053e54747d7154bbc015763a22"></a><!-- doxytag: member="QwtPickerMachine::CommandList" ref="c173f6053e54747d7154bbc015763a22" args="" -->
43
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>
45
<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>
46
<b>Begin</b>,
48
<b>Append</b>,
50
<b>Move</b>,
52
<b>End</b>
56
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
57
<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>
59
<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>
61
<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>
63
<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>
65
<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>
67
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
68
<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>
71
<hr><h2>Member Enumeration Documentation</h2>
72
<a class="anchor" name="3a8d3d4c107ce5f8351e4cbdd38c43f7"></a><!-- doxytag: member="QwtPickerMachine::Command" ref="3a8d3d4c107ce5f8351e4cbdd38c43f7" args="" --><p>
73
<table class="mdTable" cellpadding="2" cellspacing="0">
76
<table cellpadding="0" cellspacing="0" border="0">
78
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_picker_machine.html#3a8d3d4c107ce5f8351e4cbdd38c43f7">QwtPickerMachine::Command</a> </td>
84
<table cellspacing="5" cellpadding="0" border="0">
92
Commands - the output of the state machine.
96
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>
99
<hr><h2>Constructor & Destructor Documentation</h2>
100
<a class="anchor" name="a1164dfb8ae6ac62fb3b6cb19efcb3e5"></a><!-- doxytag: member="QwtPickerMachine::~QwtPickerMachine" ref="a1164dfb8ae6ac62fb3b6cb19efcb3e5" args="()" --><p>
101
<table class="mdTable" cellpadding="2" cellspacing="0">
104
<table cellpadding="0" cellspacing="0" border="0">
106
<td class="md" nowrap valign="top">QwtPickerMachine::~QwtPickerMachine </td>
107
<td class="md" valign="top">( </td>
108
<td class="mdname1" valign="top" nowrap> </td>
109
<td class="md" valign="top"> ) </td>
110
<td class="md" nowrap><code> [virtual]</code></td>
116
<table cellspacing="5" cellpadding="0" border="0">
128
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>
131
<a class="anchor" name="1f0f40e1fd28dd1296ee00720ccf49bb"></a><!-- doxytag: member="QwtPickerMachine::QwtPickerMachine" ref="1f0f40e1fd28dd1296ee00720ccf49bb" args="()" --><p>
132
<table class="mdTable" cellpadding="2" cellspacing="0">
135
<table cellpadding="0" cellspacing="0" border="0">
137
<td class="md" nowrap valign="top">QwtPickerMachine::QwtPickerMachine </td>
138
<td class="md" valign="top">( </td>
139
<td class="mdname1" valign="top" nowrap> </td>
140
<td class="md" valign="top"> ) </td>
141
<td class="md" nowrap><code> [protected]</code></td>
147
<table cellspacing="5" cellpadding="0" border="0">
159
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>
162
<hr><h2>Member Function Documentation</h2>
163
<a class="anchor" name="ce6daa55324a8daab3839cf8ba677a93"></a><!-- doxytag: member="QwtPickerMachine::reset" ref="ce6daa55324a8daab3839cf8ba677a93" args="()" --><p>
164
<table class="mdTable" cellpadding="2" cellspacing="0">
167
<table cellpadding="0" cellspacing="0" border="0">
169
<td class="md" nowrap valign="top">void QwtPickerMachine::reset </td>
170
<td class="md" valign="top">( </td>
171
<td class="mdname1" valign="top" nowrap> </td>
172
<td class="md" valign="top"> ) </td>
173
<td class="md" nowrap></td>
179
<table cellspacing="5" cellpadding="0" border="0">
187
Set the current state to 0.
191
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>.
193
References <a class="el" href="qwt__picker__machine_8cpp-source.html#l00032">setState()</a>. </td>
196
<a class="anchor" name="569c426543e4a6aa15c221eb7c4910f0"></a><!-- doxytag: member="QwtPickerMachine::setState" ref="569c426543e4a6aa15c221eb7c4910f0" args="(int)" --><p>
197
<table class="mdTable" cellpadding="2" cellspacing="0">
200
<table cellpadding="0" cellspacing="0" border="0">
202
<td class="md" nowrap valign="top">void QwtPickerMachine::setState </td>
203
<td class="md" valign="top">( </td>
204
<td class="md" nowrap valign="top">int </td>
205
<td class="mdname1" valign="top" nowrap> </td>
206
<td class="md" valign="top"> ) </td>
207
<td class="md" nowrap></td>
213
<table cellspacing="5" cellpadding="0" border="0">
221
Change the current state.
225
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>.
227
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>
230
<a class="anchor" name="9060b1036ef5125968fc7030681d73c0"></a><!-- doxytag: member="QwtPickerMachine::state" ref="9060b1036ef5125968fc7030681d73c0" args="() const " --><p>
231
<table class="mdTable" cellpadding="2" cellspacing="0">
234
<table cellpadding="0" cellspacing="0" border="0">
236
<td class="md" nowrap valign="top">int QwtPickerMachine::state </td>
237
<td class="md" valign="top">( </td>
238
<td class="mdname1" valign="top" nowrap> </td>
239
<td class="md" valign="top"> ) </td>
240
<td class="md" nowrap> const</td>
246
<table cellspacing="5" cellpadding="0" border="0">
254
Return the current state.
258
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>.
260
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>
263
<a class="anchor" name="471bbb0faec23939aadb94e5e5f9ef73"></a><!-- doxytag: member="QwtPickerMachine::transition" ref="471bbb0faec23939aadb94e5e5f9ef73" args="(const QwtEventPattern &, const QEvent *)=0" --><p>
264
<table class="mdTable" cellpadding="2" cellspacing="0">
267
<table cellpadding="0" cellspacing="0" border="0">
269
<td class="md" nowrap valign="top">virtual <a class="el" href="class_qwt_picker_machine.html#c173f6053e54747d7154bbc015763a22">CommandList</a> QwtPickerMachine::transition </td>
270
<td class="md" valign="top">( </td>
271
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a> & </td>
272
<td class="mdname" nowrap>, </td>
275
<td class="md" nowrap align="right"></td>
277
<td class="md" nowrap>const QEvent * </td>
278
<td class="mdname" nowrap></td>
282
<td class="md">) </td>
283
<td class="md" colspan="2"><code> [pure virtual]</code></td>
289
<table cellspacing="5" cellpadding="0" border="0">
301
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>
304
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:24:42 2007 for Qwt User's Guide by
305
<a href="http://www.doxygen.org/index.html">
306
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>