|
0
|
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 |
/* |
|
3
|
11 |
* Projet : TraKERS |
|
0
|
12 |
* Module : MIDDLEWARE |
|
|
13 |
* Classe : MainClass |
|
|
14 |
* |
|
|
15 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
16 |
* |
|
|
17 |
* Fonctionnalités : Classe principale du Middleware, elle lance le sous-module Tracking en instanciant la classe |
|
|
18 |
* KinectMain. |
|
|
19 |
*/ |
|
|
20 |
|
|
|
21 |
using System; |
|
|
22 |
using System.Collections.Generic; |
|
|
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; |
|
3
|
33 |
using System.Resources; |
|
|
34 |
using System.Reflection; |
|
|
35 |
using Tuio; |
|
0
|
36 |
|
|
|
37 |
namespace Trakers |
|
|
38 |
{ |
|
|
39 |
public class MainClass |
|
|
40 |
{ |
|
|
41 |
[STAThread] |
|
|
42 |
public static void Main() |
|
|
43 |
{ |
|
3
|
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. |
|
|
47 |
KinectMain kinectMain = new KinectMain(rm); |
|
|
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);*/ |
|
0
|
59 |
} |
|
|
60 |
} |
|
|
61 |
} |