public BaseGesture(GestureController gestureController, double timeOffset, DB.Gesture gesture) : base(gesture)
        {
            logger.AddLogAppender <ConsoleAppender>();

            this.gestureController = gestureController;
            this.timeOffset        = timeOffset;
        }
示例#2
0
        public void AddGesture(DB.Gesture gesture, double timeOffset)
        {
            BaseGesture newGesture = null;

            switch (gesture.GestureType)
            {
            case Gestures.ExtendedHand:
                newGesture = new ExtendedHand(gesture, this, timeOffset);
                break;

            case Gestures.Fist:
                newGesture = new Fist(gesture, this, timeOffset);
                break;
            }

            gestures.Add(newGesture);
        }
示例#3
0
 public ExtendedHand(DB.Gesture gesture, GestureController gestureController, double timeOffset) : base(gestureController, timeOffset, gesture)
 {
 }
示例#4
0
 public Fist(DB.Gesture gesture, GestureController gestureController, double timeOffset) : base(gestureController, timeOffset, gesture)
 {
 }