Esempio n. 1
0
        private void StartTracking()
        {
            this.kinect = new Kinect();

            Helper.ShowKinectPreview(this.kinect, this);
            Helper.DisplayKinectStatus(this.kinect, this.status);

            this.tracker_lefthand.StartTracking(
                GenericActionFactory.Create<MoveableBodyPart>(this.kinect, (s) => s.LeftHand));

            this.tracker_handspring.StartTracking(
                GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand));

            this.tracker_righthand.StartTracking(
                GenericActionFactory.Create<MoveableBodyPart>(this.kinect, (s) => s.RightHand));

            this.tracker_sizeablesquare.StartTracking(
                GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand));

            this.tracker_distance.StartTracking(
                GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand));

            this.tracker_rollingdice.StartTracking(
                GenericActionFactory.Create<ReformBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand));

            this.Dip(() => this.StartTrackingOnHighlightCanvas());

            this.SetupNext();
        }
Esempio n. 2
0
 public void Init()
 {
     KSensor = new Kinect();
 }