Exemple #1
0
        public KinectDevice()
        {
            _faceTracker        = new FaceDataTracker();
            _skeletonTracker    = new SkeletonDataTracker();
            _streamWriter       = new StreamWriter();
            _interactionTracker = new InteractionDataTracker();

            SensorChooser.KinectChanged += OnKinectChanged;

            SensorChooser.PropertyChanged += (sender, args) =>
            { if (args.PropertyName == "Status")
              {
                  HandleSensorChooserStatusChanged();
              }
            };
            try
            {
                SensorChooser.Start();
            }
            catch (Exception e)
            {
                Console.WriteLine(Converter.EncodeError(e.Message));
                throw;
            }
        }
        public KinectDevice()
        {
            _faceTracker = new FaceDataTracker();
            _skeletonTracker = new SkeletonDataTracker();
            _streamWriter = new StreamWriter();
            _interactionTracker = new InteractionDataTracker();

            SensorChooser.KinectChanged += OnKinectChanged;

            SensorChooser.PropertyChanged += (sender, args) =>
                { if (args.PropertyName == "Status") HandleSensorChooserStatusChanged(); };
            try
            {
                SensorChooser.Start();
            }
            catch (Exception e)
            {
                Console.WriteLine(Converter.EncodeError(e.Message));
                throw;
            }
        }