|
0
|
1 |
/* |
|
3
|
2 |
* Projet : TraKERS |
|
0
|
3 |
* Module : MIDDLEWARE |
|
|
4 |
* Classe : MainClass |
|
|
5 |
* |
|
|
6 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
7 |
* |
|
|
8 |
* Fonctionnalités : Classe principale du Middleware, elle lance le sous-module Tracking en instanciant la classe |
|
|
9 |
* KinectMain. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
using System; |
|
|
13 |
using System.Collections.Generic; |
|
|
14 |
using System.Linq; |
|
|
15 |
using System.Text; |
|
|
16 |
|
|
|
17 |
using Trakers.Debug; |
|
|
18 |
using Trakers.Tracking; |
|
|
19 |
using Trakers.Communication; |
|
|
20 |
using System.Windows.Media.Media3D; |
|
|
21 |
using System.Drawing; |
|
|
22 |
using System.Threading; |
|
|
23 |
using System.IO; |
|
3
|
24 |
using System.Resources; |
|
|
25 |
using System.Reflection; |
|
|
26 |
using Tuio; |
|
0
|
27 |
|
|
|
28 |
namespace Trakers |
|
|
29 |
{ |
|
|
30 |
public class MainClass |
|
|
31 |
{ |
|
|
32 |
[STAThread] |
|
|
33 |
public static void Main() |
|
|
34 |
{ |
|
3
|
35 |
//Crée le gestionnaire de ressources. |
|
|
36 |
ResourceManager rm = new ResourceManager("Trakers.Properties.resources", Assembly.GetExecutingAssembly()); |
|
|
37 |
//Fait appel à la classe qui gère la Kinect. |
|
|
38 |
KinectMain kinectMain = new KinectMain(rm); |
|
|
39 |
|
|
|
40 |
/*TuioServer s = new TuioServer("127.0.0.1", 80); |
|
|
41 |
|
|
|
42 |
s.AddTuioCursor(0, new Point3D(100, 100, 1)); |
|
|
43 |
for (int i = 0; i < 10000; i++) |
|
|
44 |
{ |
|
|
45 |
Thread.Sleep(100); |
|
|
46 |
s.UpdateTuioCursor(0, new Point3D(100, 100, 1)); |
|
|
47 |
Console.Out.WriteLine("ref"); |
|
|
48 |
} |
|
|
49 |
s.DeleteTuioCursor(0);*/ |
|
0
|
50 |
} |
|
|
51 |
} |
|
|
52 |
} |