Ejemplo n.º 1
0
        private void SessionStarted(object sender, PointEventArgs e)
        {
            handDetected = true;
            slider2D.Reposition(new XnMPoint(e.Point.X, e.Point.Y, e.Point.Z));

            handHandler = new HandHandler();
            handHandler.DropSessionTrigger += new EventHandler <EventArgs>(handHandler_DropSessionTrigger);

            if (HandDetected != null)
            {
                HandDetected(sender, e);
            }
        }
Ejemplo n.º 2
0
        private void sessionManager_SessionEnded(object sender, EventArgs e)
        {
            if (handHandler != null)
            {
                handHandler.Dispose();
                handHandler = null;
            }

            if (SessionEnded != null)
            {
                SessionEnded(sender, e);
            }
        }
Ejemplo n.º 3
0
        private void SessionStarted(object sender, PointEventArgs e)
        {
            handDetected = true;
            slider2D.Reposition(new XnMPoint(e.Point.X, e.Point.Y, e.Point.Z));

            handHandler = new HandHandler();
            handHandler.DropSessionTrigger += new EventHandler<EventArgs>(handHandler_DropSessionTrigger);

            if (HandDetected != null)
            {
                HandDetected(sender, e);
            }
        }
Ejemplo n.º 4
0
        private void sessionManager_SessionEnded(object sender, EventArgs e)
        {
            if (handHandler != null)
            {
                handHandler.Dispose();
                handHandler = null;
            }

            if (SessionEnded != null)
            {
                SessionEnded(sender, e);
            }
        }