|
4
|
1 |
/* |
|
8
|
2 |
* This file is part of the TraKERS\Middleware package. |
|
|
3 |
* |
|
|
4 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
|
5 |
* |
|
|
6 |
* For the full copyright and license information, please view the LICENSE_MIDDLEWARE |
|
|
7 |
* file that was distributed with this source code. |
|
|
8 |
*/ |
|
|
9 |
|
|
|
10 |
/* |
|
4
|
11 |
* Projet : TraKERS |
|
|
12 |
* Module : MIDDLEWARE |
|
|
13 |
* Sous-Module : Tracking/Events |
|
|
14 |
* Classe : PushEventArgs |
|
|
15 |
* |
|
|
16 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
17 |
* |
|
|
18 |
* Fonctionnalités : Cette classe contient les membres utilisés lors de l'appel au listener correspondant |
|
|
19 |
* à l'événement : L'utilisateur a effectué un push. |
|
|
20 |
*/ |
|
|
21 |
|
|
|
22 |
using System; |
|
|
23 |
using System.Collections.Generic; |
|
|
24 |
using System.Linq; |
|
|
25 |
using System.Text; |
|
|
26 |
using Trakers.Communication; |
|
|
27 |
using Trakers.Tracking.Gestures; |
|
|
28 |
|
|
|
29 |
namespace Trakers.Tracking.Events |
|
|
30 |
{ |
|
|
31 |
public class PushEventArgs : EventArgs |
|
|
32 |
{ |
|
|
33 |
//Fenêtre de debug. |
|
|
34 |
public readonly Debug.DebugWindow debug; |
|
|
35 |
//Serveur TUIO. |
|
|
36 |
public readonly Server server; |
|
|
37 |
//Direction du push. |
|
|
38 |
public readonly PushDetector.Direction direction; |
|
|
39 |
//Main ayant réalisé le push. |
|
|
40 |
public readonly PushDetector.Hand hand; |
|
|
41 |
|
|
|
42 |
/* |
|
|
43 |
* Constructeur : Il prend l'affichage de debug, le serveur TUIO et la direction du swipe. |
|
|
44 |
*/ |
|
|
45 |
public PushEventArgs(Debug.DebugWindow _debug, Server _server, PushDetector.Direction _direction, PushDetector.Hand _hand) |
|
|
46 |
{ |
|
|
47 |
debug = _debug; |
|
|
48 |
server = _server; |
|
|
49 |
direction = _direction; |
|
|
50 |
hand = _hand; |
|
|
51 |
} |
|
|
52 |
} |
|
|
53 |
} |