예제 #1
0
 private void OnGestureBegining(Object src, BeginGestureEventArgs e)
 {
     RaiseGestureBegin(src, e);
 }
예제 #2
0
 protected void RaiseGestureBegining(object sender, BeginGestureEventArgs e)
 {
     if (GestureBegining != null)
     {
         GestureBegining(sender, e);
     }
 }
예제 #3
0
 protected virtual void RaiseGestureBegin(Object sender, BeginGestureEventArgs e)
 {
     if (GestureBegin != null)
     {
         GestureBegin(this, e);
     }
 }
예제 #4
0
 /// <summary>
 /// Callback when gestures checker detect a gesture begining
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnGestureBegining(object sender, BeginGestureEventArgs e)
 {
     // If event emit by a gesture
     if (e.Gesture != EnumGesture.GESTURE_NONE)
     {
         if (m_refFlagGesturesBegin.ContainsKey(e.Gesture))
         {
             m_refFlagGesturesBegin[e.Gesture] = true;
         }
     }
     // If event emit by a posture
     else if (PropertiesPluginKinect.Instance.SavePosturerecognize != EnumPosture.POSTURE_NONE)
     {
         if (PropertiesPluginKinect.Instance.SavePosturerecognize != e.Posture)
         {
             RaiseUserGestureProgress(ConvertPostureEnum(e.Posture), 0f);
         }
     }
 }