コード例 #1
0
        // ジェスチャーを検出した
        void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
        {
            gestureStatus = GestureStatus.Recognized;

              // 手のトラッキングを開始する
              hands.StartTracking(e.EndPosition);
        }
コード例 #2
0
 // ジェスチャーを検出した
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     gestureStatus = GestureStatus.Recognized;
 }
コード例 #3
0
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Debug.Log(e.Gesture);
     if(e.Gesture==WAVE){
         this.hands.StartTracking(e.EndPosition);
     }else if(e.Gesture==CLICK){
         Debug.Log("Pausa");
         isMenu=true;
         audio.Pause();
         seleccionarCamara(CAMARA_MENU);
     }
 }
コード例 #4
0
 void gestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Trace.WriteLine("Gesture recognized");
     gestureGenerator.RemoveGesture(e.Gesture);
     handsGenerator.StartTracking(e.EndPosition);
 }
コード例 #5
0
ファイル: CubeController.cs プロジェクト: salder45/santuario
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     if(e.Gesture==WAVE){
         this.hands.StartTracking(e.EndPosition);
     }
 }
コード例 #6
0
ファイル: MainWindow.cs プロジェクト: faddison/KMouse
 void gestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     //MessageBox.Show("Gesture recognized");
     this.handsGenerator.StartTracking(e.EndPosition);
     this.gestureGenerator.RemoveGesture("Wave");
     this.gestureGenerator.RemoveGesture("Click");
 }
コード例 #7
0
    void gestures_GestureRecognized(object Sender, GestureRecognizedEventArgs e)
    {
        // wave stealing
        if (handId != -1 && e.Gesture == "Wave" && StealOnWave) {
            EndSession();
        }

        if (handId == -1) {
            if (e.Gesture == "RaiseHand" && ExperimentalGestureless) {
                int user = WhichUserDoesThisPointBelongTo(e.IdentifiedPosition);
                if (0 == user) {
                    // false positive if no one raised their hand, miss detect if user
                    // isn't on usermap (at this during this frame at the gesture position)
                    return;
                }

                // TODO: make sure point is in a good position relative to the CoM of the user
                // TODO: possibly take top user point into account?
                //Vector3 CoM = Point3DToVector3(userGenerator.GetCoM(user));
                //Vector3 gesturePoint = Point3DToVector3(e.IdentifiedPosition);
                this.hands.StartTracking(e.IdentifiedPosition);
            }

            if ( (e.Gesture == "Wave" && DetectWave) ||
                 (e.Gesture == "Click" && DetectPush) ) {
                this.hands.StartTracking (e.IdentifiedPosition);
            }
        }
    }
コード例 #8
0
 //START-HAND Tracking
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Debug.Log("Algo --> "+e.Gesture);
     if(e.Gesture=="Wave"){
         this.hands.StartTracking(e.EndPosition);
         Debug.Log("Tracking ");
     }
 }
コード例 #9
0
        void _GestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
        {
            if (!this.Enabled)
            {
                return;
            }

            lock (_ListenerLock)
            {
                if (_EventHandlers.ContainsKey(e.Gesture))
                {
                    _EventHandlers[e.Gesture].ForEach(l =>
                    {
                        if (this.ParkEngine.ContainsName(l))
                        {
                            var handler = this.ParkEngine.GetElementByName(l) as ITimelineExecutable;

                            if (handler != null)
                            {
                                handler.Execute(this, new KinectGesture(e.Gesture, 100f, e.IdentifiedPosition.ToVector3(), e.EndPosition.ToVector3()));
                            }
                        }
                    });
                }
            }

            this.LogProvider.Write(string.Format("Gesture '{0}' recognised", e.Gesture), LogLevel.Notice);
        }
コード例 #10
0
ファイル: NiteOpenNet.cs プロジェクト: timofei7/TiNWii
 void HandleGestureGestureRecognized(object sender, GestureRecognizedEventArgs ge)
 {
     // these points don't appear useful haha
     Vector3 point = new Vector3(ge.IdentifiedPosition.X, ge.IdentifiedPosition.Y, ge.IdentifiedPosition.Z);
     Vector3 spoint = Camera.mainCamera.WorldToScreenPoint(point);
     HUD.text = (HUD.text + "\nGesture Recognized: " + ge.Gesture + " at: " + spoint.ToString());
 }