middleware/src/Tracking/Events/LeftHandQuitListener.cs
changeset 0 6fefd4afe506
child 3 92f19af39024
equal deleted inserted replaced
-1:000000000000 0:6fefd4afe506
       
     1 /*
       
     2  * Projet : KINECT PROJECTS
       
     3  * Module : MIDDLEWARE
       
     4  * Sous-Module : Tracking
       
     5  * Classe : LeftHandQuitListener
       
     6  * 
       
     7  * Auteur : alexandre.bastien@iri.centrepompidou.fr
       
     8  * 
       
     9  * Fonctionnalités : Ce listener écoute l'événement du type : La main gauche est sortie du champ.
       
    10  * Il contient le code a être éxecuté au cas cet événement survient, à savoir :
       
    11  * - On affiche un visuel dans le debug.
       
    12  * - On notifie le serveur TUIO.
       
    13  */
       
    14 
       
    15 using System;
       
    16 using System.Collections.Generic;
       
    17 using System.Linq;
       
    18 using System.Text;
       
    19 using Microsoft.Kinect;
       
    20 
       
    21 namespace Trakers.Tracking.Events
       
    22 {
       
    23     public class LeftHandQuitListener
       
    24     {
       
    25         /*
       
    26         * Méthode appelée lorsque on a l'événement : La main gauche est sortie du champ.
       
    27         */
       
    28         public void ShowOnScreen(object o, LeftHandQuitEventArgs e)
       
    29         {
       
    30             Joint handJoint = e.handJoint;
       
    31             //On l'indique dans le debug.
       
    32             e.debug.showLeftHandRect(false);
       
    33             e.debug.showLeftHandCoord("");
       
    34             e.debug.ExceptionLbl.Background = System.Windows.Media.Brushes.Transparent;
       
    35             //On notifie le serveur TUIO.
       
    36             e.server.LeftHandQuit(o, e);
       
    37         }
       
    38     }
       
    39 }