|
0
|
1 |
using System; |
|
|
2 |
using System.Collections.Generic; |
|
|
3 |
using System.Drawing; |
|
|
4 |
using System.Linq; |
|
|
5 |
using System.Text; |
|
|
6 |
|
|
|
7 |
namespace Tuio |
|
|
8 |
{ |
|
|
9 |
/// <summary> |
|
|
10 |
/// TUIO cursor. |
|
|
11 |
/// |
|
|
12 |
/// (c) 2010 by Dominik Schmidt (schmidtd@comp.lancs.ac.uk) |
|
|
13 |
/// </summary> |
|
|
14 |
public class TuioCursor |
|
|
15 |
{ |
|
|
16 |
#region properties |
|
|
17 |
|
|
|
18 |
public int Id { get; private set; } |
|
|
19 |
|
|
|
20 |
public PointF Location { get; set; } |
|
|
21 |
|
|
|
22 |
public PointF Speed { get; set; } |
|
|
23 |
|
|
|
24 |
public float MotionAcceleration { get; set; } |
|
|
25 |
|
|
|
26 |
#endregion |
|
|
27 |
|
|
|
28 |
#region constructors |
|
|
29 |
|
|
|
30 |
public TuioCursor(int id, PointF location) |
|
|
31 |
{ |
|
|
32 |
Id = id; |
|
|
33 |
Location = location; |
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
#endregion |
|
|
37 |
|
|
|
38 |
} |
|
|
39 |
} |