middleware/src/MainClass.cs
author bastiena
Thu, 15 Mar 2012 13:33:21 +0100
changeset 3 92f19af39024
parent 0 6fefd4afe506
child 8 e4e7db2435f8
permissions -rw-r--r--
Middleware : Swipe & Push & Jump(Experimental) Detectors ant events added Server modified for gesture detection TUIO Server C# Modified : Hand cursors redirected to /TUIO/3DCur channel New kind of OSC message created (TuioString) for gesture detection, using /TUIO/_siP channel. TUIO Processing Java Modified : Hand cursors redirected to /TUIO/3DCur channel New kind of OSC message created (TuioString) for gesture detection, using /TUIO/_siP channel. Front Processing : Mask added and modifications in the drawing process New front for gesture detection (just showing a text message in the mask for the moment)

/*
 * Projet : TraKERS
 * Module : MIDDLEWARE
 * Classe : MainClass
 * 
 * Auteur : alexandre.bastien@iri.centrepompidou.fr
 * 
 * Fonctionnalités : Classe principale du Middleware, elle lance le sous-module Tracking en instanciant la classe
 * KinectMain.
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Trakers.Debug;
using Trakers.Tracking;
using Trakers.Communication;
using System.Windows.Media.Media3D;
using System.Drawing;
using System.Threading;
using System.IO;
using System.Resources;
using System.Reflection;
using Tuio;

namespace Trakers
{
    public class MainClass
    {
        [STAThread]
        public static void Main()
        {
            //Crée le gestionnaire de ressources.
            ResourceManager rm = new ResourceManager("Trakers.Properties.resources", Assembly.GetExecutingAssembly());
            //Fait appel à la classe qui gère la Kinect.
            KinectMain kinectMain = new KinectMain(rm);

            /*TuioServer s = new TuioServer("127.0.0.1", 80);

            s.AddTuioCursor(0, new Point3D(100, 100, 1));
            for (int i = 0; i < 10000; i++)
            {
                Thread.Sleep(100);
                s.UpdateTuioCursor(0, new Point3D(100, 100, 1));
                Console.Out.WriteLine("ref");
            }
            s.DeleteTuioCursor(0);*/
        }
    }
}