middleware/src/MainClass.cs
author bastiena
Tue, 20 Mar 2012 18:00:55 +0100
changeset 7 8a21bec5d45f
parent 3 92f19af39024
child 8 e4e7db2435f8
permissions -rw-r--r--
Middleware : No proximity bugs anymore. The skeleton disappear if a tracked person is too close or not tracked anymore. Processing : There are no laggs anymore when an user stay too long moving his hands and drawing tons of ellipses. (TUIO Cursors are not taken by their vectors, only the last position of the cursors are caught to be drawn).

/*
 * 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);*/
        }
    }
}