Пример #1
0
        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)
 {
 }