middleware/src/MainClass.cs
changeset 3 92f19af39024
parent 0 6fefd4afe506
child 8 e4e7db2435f8
equal deleted inserted replaced
2:11234537653b 3:92f19af39024
     1 /*
     1 /*
     2  * Projet : KINECT PROJECTS
     2  * Projet : TraKERS
     3  * Module : MIDDLEWARE
     3  * Module : MIDDLEWARE
     4  * Classe : MainClass
     4  * Classe : MainClass
     5  * 
     5  * 
     6  * Auteur : alexandre.bastien@iri.centrepompidou.fr
     6  * Auteur : alexandre.bastien@iri.centrepompidou.fr
     7  * 
     7  * 
    19 using Trakers.Communication;
    19 using Trakers.Communication;
    20 using System.Windows.Media.Media3D;
    20 using System.Windows.Media.Media3D;
    21 using System.Drawing;
    21 using System.Drawing;
    22 using System.Threading;
    22 using System.Threading;
    23 using System.IO;
    23 using System.IO;
       
    24 using System.Resources;
       
    25 using System.Reflection;
       
    26 using Tuio;
    24 
    27 
    25 namespace Trakers
    28 namespace Trakers
    26 {
    29 {
    27     public class MainClass
    30     public class MainClass
    28     {
    31     {
    29         [STAThread]
    32         [STAThread]
    30         public static void Main()
    33         public static void Main()
    31         {
    34         {
    32             KinectMain kinectMain = new KinectMain();
    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);*/
    33         }
    50         }
    34     }
    51     }
    35 }
    52 }