17 * Fonctionnalités : Classe principale du Middleware, elle lance le sous-module Tracking en instanciant la classe |
17 * Fonctionnalités : Classe principale du Middleware, elle lance le sous-module Tracking en instanciant la classe |
18 * KinectMain. |
18 * KinectMain. |
19 */ |
19 */ |
20 |
20 |
21 using System; |
21 using System; |
22 using System.Collections.Generic; |
22 using Trakers.MainModule; |
23 using System.Linq; |
|
24 using System.Text; |
|
25 |
|
26 using Trakers.Debug; |
|
27 using Trakers.Tracking; |
|
28 using Trakers.Communication; |
|
29 using System.Windows.Media.Media3D; |
|
30 using System.Drawing; |
|
31 using System.Threading; |
|
32 using System.IO; |
|
33 using System.Resources; |
|
34 using System.Reflection; |
|
35 using Tuio; |
|
36 |
23 |
37 namespace Trakers |
24 namespace Trakers |
38 { |
25 { |
39 public class MainClass |
26 public class MainClass |
40 { |
27 { |
41 [STAThread] |
28 [STAThread] |
42 public static void Main() |
29 public static void Main() |
43 { |
30 { |
44 //Crée le gestionnaire de ressources. |
|
45 ResourceManager rm = new ResourceManager("Trakers.Properties.resources", Assembly.GetExecutingAssembly()); |
|
46 //Fait appel à la classe qui gère la Kinect. |
31 //Fait appel à la classe qui gère la Kinect. |
47 KinectMain kinectMain = new KinectMain(rm); |
32 KinectMain kinectMain = new KinectMain(); |
48 |
|
49 /*TuioServer s = new TuioServer("127.0.0.1", 80); |
|
50 |
|
51 s.AddTuioCursor(0, new Point3D(100, 100, 1)); |
|
52 for (int i = 0; i < 10000; i++) |
|
53 { |
|
54 Thread.Sleep(100); |
|
55 s.UpdateTuioCursor(0, new Point3D(100, 100, 1)); |
|
56 Console.Out.WriteLine("ref"); |
|
57 } |
|
58 s.DeleteTuioCursor(0);*/ |
|
59 } |
33 } |
60 } |
34 } |
61 } |
35 } |