Пример #1
0
        public void handsGenerator_HandDestroy(object sender, HandDestroyEventArgs e)
        {
            Trace.WriteLine("Hand lost");
            IsTracking = false;
            //gestureGenerator.AddGesture("Wave");

            if (HandDestroy != null)
            {
                HandDestroy(this, e);
            }
        }
        // 手の検出終了
        void hands_HandDestroy(object sender, HandDestroyEventArgs e)
        {
            // 1.1.0.41 ではHandGenerator.StopTrackingでHandDestroyイベントが
              // 呼び出されるようで再帰になってしまう。
              // そのためトラッキング停止状態でない場合のみ、トラッキング停止をする
              if (handStates != HandStatus.NoTracking) {
            handStates = HandStatus.NoTracking;
            handPoints.Clear();

            // トラッキングの停止
            hands.StopTracking(e.UserID);
              }
        }
Пример #3
0
 void hands_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     transform.position=new Vector3(xMedia,yMedia,zMedia);
 }
Пример #4
0
 public void handsGenerator_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     Trace.WriteLine("Hand lost");
     gestureGenerator.AddGesture("Wave");
 }
Пример #5
0
 void hands_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     Debug.Log("Mano destroy");
 }
Пример #6
0
 void handsGenerator_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     // gesture generator?
     this.frame = 0;
     this.shouldDrawHands = false;
     //MessageBox.Show("Hand being destroyed.");
     history.Remove(e.UserID);
     if (history.Count == 0)
     {
         try
         {
             gestureGenerator.AddGesture("Wave");
             this.gestureGenerator.AddGesture("Click");
         }
         catch (StatusException ex)
         {
             ex.ToString();
         }
     }
 }
Пример #7
0
 void hands_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     //Debug.Log("Mano destroy");
     transform.position=new Vector3(xMedia,yMedia,zMedia);
 }
    void hands_HandDestroy(object Sender, HandDestroyEventArgs e)
    {
        handId = -1;

        foreach (GameObject obj in new List<GameObject>(Listeners)) {
            if (!obj) continue;
            NotifyHandDestroy(obj);
        }
        OnSessionEnded();
        this.gestures.StartGenerating();
    }
 void HandTracker_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     lastHandDetectConfidence = 0;
     sensor.HandTracker.HandDestroy -= HandTracker_HandDestroy;
 }
 void hands_HandDestroy(object sender,HandDestroyEventArgs e)
 {
     Debug.Log("Destroy");
     tracking.Remove(e.UserID);
 }
Пример #11
0
        void HandTracker_HandDestroy(object sender, HandDestroyEventArgs e)
        {
            Dispatcher.BeginInvoke((Action)delegate()
            {
                if (!handPoints.ContainsKey(e.UserID))
                {
                    return;
                }

                canvas.Children.Remove(handPoints[e.UserID]);
            });
        }
Пример #12
0
 void HandleHandsGeneratorHandDestroy(object sender, HandDestroyEventArgs e)
 {
     handExists = false;
     Debug.Log("Deleted Hand: " + e.UserID);
     //nOn.HUD.text = "Deleted Hand:" + e.UserID;
     nOn.handsGenerator.HandUpdate -= HandleHandsGeneratorHandUpdate;
     smoothedDefectsSize = 0f;
 }
Пример #13
0
 void hands_HandDestroy(object sender, HandDestroyEventArgs e)
 {
     determinaCentro();
     acomodaManoDerecha();
 }