root / TUIO_CPP / doc / _tuio_cursor_8h-source.html @ 91

View | Annotate | Download (7.6 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>TUIO C++ Developer API: TuioCursor.h Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
</head><body>
7
<!-- Generated by Doxygen 1.5.6 -->
8
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="annotated.html"><span>Classes</span></a></li>
13
      <li class="current"><a href="files.html"><span>Files</span></a></li>
14
    </ul>
15
  </div>
16
<h1>TuioCursor.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
17
<a name="l00002"></a>00002 <span class="comment"> TUIO C++ Library - part of the reacTIVision project</span>
18
<a name="l00003"></a>00003 <span class="comment"> http://reactivision.sourceforge.net/</span>
19
<a name="l00004"></a>00004 <span class="comment"> </span>
20
<a name="l00005"></a>00005 <span class="comment"> Copyright (c) 2005-2009 Martin Kaltenbrunner &lt;mkalten@iua.upf.edu&gt;</span>
21
<a name="l00006"></a>00006 <span class="comment"> </span>
22
<a name="l00007"></a>00007 <span class="comment"> This program is free software; you can redistribute it and/or modify</span>
23
<a name="l00008"></a>00008 <span class="comment"> it under the terms of the GNU General Public License as published by</span>
24
<a name="l00009"></a>00009 <span class="comment"> the Free Software Foundation; either version 2 of the License, or</span>
25
<a name="l00010"></a>00010 <span class="comment"> (at your option) any later version.</span>
26
<a name="l00011"></a>00011 <span class="comment"> </span>
27
<a name="l00012"></a>00012 <span class="comment"> This program is distributed in the hope that it will be useful,</span>
28
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
29
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
30
<a name="l00015"></a>00015 <span class="comment"> GNU General Public License for more details.</span>
31
<a name="l00016"></a>00016 <span class="comment"> </span>
32
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU General Public License</span>
33
<a name="l00018"></a>00018 <span class="comment"> along with this program; if not, write to the Free Software</span>
34
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
35
<a name="l00020"></a>00020 <span class="comment"> */</span>
36
<a name="l00021"></a>00021 
37
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef INCLUDED_TUIOCURSOR_H</span>
38
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_TUIOCURSOR_H</span>
39
<a name="l00024"></a>00024 <span class="preprocessor"></span>
40
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;math.h&gt;</span>
41
<a name="l00026"></a>00026 <span class="preprocessor">#include "TuioContainer.h"</span>
42
<a name="l00027"></a>00027 
43
<a name="l00028"></a>00028 <span class="keyword">namespace </span>TUIO {
44
<a name="l00029"></a>00029         
45
<a name="l00036"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html">00036</a>         <span class="keyword">class </span><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html">TuioCursor</a>: <span class="keyword">public</span> <a class="code" href="class_t_u_i_o_1_1_tuio_container.html">TuioContainer</a> {
46
<a name="l00037"></a>00037                 
47
<a name="l00038"></a>00038         <span class="keyword">protected</span>:
48
<a name="l00042"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">00042</a>                 <span class="keywordtype">int</span> <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">cursor_id</a>;
49
<a name="l00043"></a>00043                 
50
<a name="l00044"></a>00044         <span class="keyword">public</span>:
51
<a name="l00055"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#8901620d6aee4fef2d568e3d3c04a729">00055</a>                 <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#8901620d6aee4fef2d568e3d3c04a729">TuioCursor</a> (<a class="code" href="class_t_u_i_o_1_1_tuio_time.html">TuioTime</a> ttime, <span class="keywordtype">long</span> si, <span class="keywordtype">int</span> ci, <span class="keywordtype">float</span> xp, <span class="keywordtype">float</span> yp):<a class="code" href="class_t_u_i_o_1_1_tuio_container.html">TuioContainer</a>(ttime,si,xp,yp) {
52
<a name="l00056"></a>00056                         <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">cursor_id</a> = ci;
53
<a name="l00057"></a>00057                 };
54
<a name="l00058"></a>00058 
55
<a name="l00068"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#3ae0c962c0f2e722b4a16cf963b43c2a">00068</a>                 <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#8901620d6aee4fef2d568e3d3c04a729">TuioCursor</a> (<span class="keywordtype">long</span> si, <span class="keywordtype">int</span> ci, <span class="keywordtype">float</span> xp, <span class="keywordtype">float</span> yp):<a class="code" href="class_t_u_i_o_1_1_tuio_container.html">TuioContainer</a>(si,xp,yp) {
56
<a name="l00069"></a>00069                         <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">cursor_id</a> = ci;
57
<a name="l00070"></a>00070                 };
58
<a name="l00071"></a>00071                 
59
<a name="l00078"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#d894df065d0e0059e98da92ad83ed3ff">00078</a>                 <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#8901620d6aee4fef2d568e3d3c04a729">TuioCursor</a> (<a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html">TuioCursor</a> *tcur):<a class="code" href="class_t_u_i_o_1_1_tuio_container.html">TuioContainer</a>(tcur) {
60
<a name="l00079"></a>00079                         <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">cursor_id</a> = tcur-&gt;<a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#3e8ee1381e61eb54c7563e10a2fafb0b">getCursorID</a>();
61
<a name="l00080"></a>00080                 };
62
<a name="l00081"></a>00081                 
63
<a name="l00085"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#b791383734f2121d7bc217c108213e36">00085</a>                 <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#b791383734f2121d7bc217c108213e36">~TuioCursor</a>(){};
64
<a name="l00086"></a>00086                 
65
<a name="l00091"></a><a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#3e8ee1381e61eb54c7563e10a2fafb0b">00091</a>                 <span class="keywordtype">int</span> <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#3e8ee1381e61eb54c7563e10a2fafb0b">getCursorID</a>() {
66
<a name="l00092"></a>00092                         <span class="keywordflow">return</span> <a class="code" href="class_t_u_i_o_1_1_tuio_cursor.html#6ce31b46c0bb528acc3be28e5dd1e278">cursor_id</a>;
67
<a name="l00093"></a>00093                 };
68
<a name="l00094"></a>00094         };
69
<a name="l00095"></a>00095 };
70
<a name="l00096"></a>00096 <span class="preprocessor">#endif</span>
71
</pre></div></div>
72
<hr size="1"><address style="text-align: right;"><small>Generated on Mon May 18 10:29:40 2009 for TUIO C++ Developer API by&nbsp;
73
<a href="http://www.doxygen.org/index.html">
74
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
75
</body>
76
</html>