middleware/Tracking/Gestures/SwipeDetector.cs
changeset 17 fda26bfcabef
parent 15 4b78f179e7ce
child 27 6c08d4d7219e
equal deleted inserted replaced
16:a9ebacd6c089 17:fda26bfcabef
    22 using System;
    22 using System;
    23 using System.Collections.Generic;
    23 using System.Collections.Generic;
    24 using System.Linq;
    24 using System.Linq;
    25 using System.Text;
    25 using System.Text;
    26 using Microsoft.Kinect;
    26 using Microsoft.Kinect;
       
    27 using Trakers.Debug;
    27 
    28 
    28 namespace Trakers.MainModule.Gestures
    29 namespace Trakers.Tracking.Gestures
    29 {
    30 {
    30     public class SwipeDetector : GestureDetector
    31     public class SwipeDetector : GestureDetector
    31     {
    32     {
    32         public enum Direction {LEFT, RIGHT, TOP, DOWN};
    33         public enum Direction {LEFT, RIGHT, TOP, DOWN};
    33 
    34 
    34         public SwipeDetector() : base()
    35         public SwipeDetector(DebugWindow _debug) : base(_debug)
    35         {
    36         {
    36             gesturePeriod = (float)0.5;
    37             gesturePeriod = (float)0.5;
    37             indexesPerSecond = 30;
    38             indexesPerSecond = 30;
    38             indexesToCheck = (int)(gesturePeriod * indexesPerSecond);
    39             indexesToCheck = (int)(gesturePeriod * indexesPerSecond);
    39         }
    40         }