Example #1
0
 private void SetUpKinect()
 {
     _kinect.ChangeMaxSkeletonPositions(.6f, .6f);
     _kinect.ElevationAngleInitialPosition = Convert.ToInt32(ConfigurationManager.AppSettings["ElevationLevel"]);
     _kinect.CameraDataUpdated            += KinectCameraDataUpdated;
     //_kinect.PropertyChanged += _kinect_PropertyChanged;
     _kinect.UserCreated += KinectUserCreated;
     _kinect.UserRemoved += KinectUserRemoved;
     _kinect.StartKinect();
 }
 private void InitKinect()
 {
     _kinectUsers = new List <User>();
     _kinect      = MyKinect.Instance;
     _kinect.ChangeMaxSkeletonPositions(.5f, .5f);
     _kinect.ElevationAngleInitialPosition = 0;
     _kinect.UserCreated += KinectUserCreated;
     _kinect.UserRemoved += _kinect_UserRemoved;
     //_kinect.KinectStarted += new EventHandler<KinectEventArgs>(_kinect_KinectStarted);
     _kinect.StartKinect();
 }
Example #3
0
        private KinectManager()
        {
            EventIntervalInMilliseconds = 2000;
            _kinect = MyKinect.Instance;
            _kinect.SingleUserMode = true;
            _kinect.ChangeMaxSkeletonPositions(.5f, .5f);
            ConfigurationViewModel = new ConfigureKinectViewModel();
            _calibrationView       = new Calibration();
            _calibrationViewModel  = CalibrationViewModel.Current;

            if (_calibrationViewModel != null)
            {
                _calibrationViewModel.SaveCalibrationData += CalibrationView_SaveCalibrationData;
                _calibrationViewModel.CountDownFinished   += CalibrationView_CountDownFinished;
            }
        }