コード例 #1
0
ファイル: PairingRecognizer.cs プロジェクト: ase-lab/MSEAPI
        /// <summary>
        /// This function is called when the Gesture Recognizer recognizes a Pair gesture. This function determines 
        /// which Person is performing this gesture, and changes the PairingState of that Person.
        /// </summary>s
        /// <param name="sender"> The Gesture Recognizer</param>
        /// <param name="e"> The Gesture Event Arguments, which includes the tracking id</param>
        public void PersonPairAttempt(object sender, GestureEventArgs e)
        {
            logger.TraceEvent(TraceEventType.Information, 0, "Person Wave Gesture Recognized");

            //Cast Into List Containing PairablePersons
            List<PairablePerson> pairablePersons = locator.Persons.OfType<PairablePerson>().ToList<PairablePerson>();

            PersonPairAttempt(e.TrackingId.ToString(), pairablePersons);
        }
コード例 #2
0
ファイル: GestureController.cs プロジェクト: ase-lab/MSEAPI
 /// <summary>
 /// Handles the GestureRecognized event of the g control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="KinectSkeltonTracker.GestureEventArgs"/> instance containing the event data.</param>
 //private void Gesture_GestureRecognized(object sender, GestureEventArgs e)
 private void OnGestureRecognized(object sender, GestureEventArgs e)
 {
     if (this.GestureRecognized != null)
     {
         this.GestureRecognized(this, e);
     }
 }