Ejemplo n.º 1
0
        public InteractionManager(KinectSensor sensor, RemoScheduler _remoScheduler)
        {
            leftHandLocation  = new Point();
            rightHandLocation = new Point();
            remoScheduler     = _remoScheduler;

            interactionController = new InteractionController();
            interactionController.setSensor(sensor);
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            InitializeTrayIcon();

            remoScheduler = new RemoScheduler();

            // add timer for clearing last detected gesture
            _clearTimer          = new System.Timers.Timer(1000);
            _clearTimer.Elapsed += new ElapsedEventHandler(clearTimer_Elapsed);

            Loaded += OnLoaded;
        }
Ejemplo n.º 3
0
        public GestureManager(KinectSensor sensor, InteractionManager _interactionManager, RemoScheduler _remoScheduler)
        {
            _sensor            = sensor;
            interactionManager = _interactionManager;

            remoScheduler = _remoScheduler;


            // initialize the gesture recognizer
            gestureController = new GestureController();

            RegisterGestures();
            isPaused = true;

            gestureController.GestureRecognized += OnGestureRecognized;
            sensor.SkeletonFrameReady           += OnSkeletonFrameReady;
        }