示例#1
0
 static void pointControl_PointUpdate(object sender, PointBasedEventArgs e)
 {
     if (points.ContainsKey((uint)e.Id))
     {
         points[(uint)e.Id] = new Point3D(e.Position.X, e.Position.Y, e.Position.Z);
     }
 }
示例#2
0
 static void pointControl_PointUpdate(object sender, PointBasedEventArgs e)
 {
     if (points.ContainsKey((uint)e.Id))
     {
         points[(uint)e.Id] = new Point3D(e.Position.X, e.Position.Y, e.Position.Z);
     }
 }
示例#3
0
        /// <summary>
        /// Event handler for when the Kinect updates its hand tracking estimate
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        static void control_PointUpdate(object sender, PointBasedEventArgs e)
        {
            PositionX = e.Position.X;
            PositionY = e.Position.Y + adjustedHeight * 15;

            if (PositionX <= leftBoundary)
            {
                NearLeft = true;
            }
            else if (PositionX >= rightBoundary)
            {
                NearRight = true;
            }
            else if (PositionY >= topBoundary)
            {
                NearTop = true;
            }
            else if (PositionY <= botBoundary)
            {
                NearBottom = true;
            }
            else
            {
                NearLeft = NearRight = NearTop = NearBottom = false;
            }

            Trace.WriteLine("xpos " + PositionX + " ypos " + PositionY + "\n");
        }
示例#4
0
        static void pointControl_PointCreate(object sender, PointBasedEventArgs e)
        {
            if (points.ContainsKey((uint)e.Id))
                points.Remove((uint)e.Id);

            points.Add((uint)e.Id, new Point3D(
                e.Position.X, e.Position.Y, e.Position.Z));
        }
 protected override void OnPointCreate(object sender, PointBasedEventArgs e)
 {
     base.OnPointCreate(sender, e);
     Kinect.Active = true;
     KinectPoints.Points.Add(e.Id, new Point3D(e.Position.X, e.Position.Y, e.Position.Z));
     Trace.WriteLine(
         string.Format("Point added {0}", e.Id.ToString()));
 }
示例#6
0
 protected override void OnPointCreate(object sender, PointBasedEventArgs e)
 {
     base.OnPointCreate(sender, e);
     Kinect.Active = true;
     KinectPoints.Points.Add(e.Id, new Point3D(e.Position.X, e.Position.Y, e.Position.Z));
     Trace.WriteLine(
         string.Format("Point added {0}", e.Id.ToString()));
 }
示例#7
0
 protected override void OnPointUpdate(object sender, PointBasedEventArgs e)
 {
     base.OnPointUpdate(sender, e);
     KinectPoints.Points[e.Id] = new Point3D()
     {
         X = e.Position.X, Y = e.Position.Y, Z = e.Position.Z
     };
 }
示例#8
0
 static void pointControl_PointUpdate(object sender, PointBasedEventArgs e)
 {
     Console.WriteLine("Point {3}: {0}, {1}, {2}",
                       e.Position.X,
                       e.Position.Y,
                       e.Position.Z,
                       e.Id);
 }
 void point_PointUpdate(object sender, PointBasedEventArgs e)
 {
     Point = new Point3D()
     {
         X = e.Position.X,
         Y = e.Position.Y,
         Z = e.Position.Z
     };
 }
示例#10
0
 static void control_PointUpdate(object sender, PointBasedEventArgs e)
 {
     Point = new Point3D()
     {
         X = e.Position.X,
         Y = e.Position.Y,
         Z = e.Position.Z
     };
     SmoothPoint = GetSmoothPoint();
 }
示例#11
0
        static void pointControl_PointCreate(object sender, PointBasedEventArgs e)
        {
            if (points.ContainsKey((uint)e.Id))
            {
                points.Remove((uint)e.Id);
            }

            points.Add((uint)e.Id, new Point3D(
                           e.Position.X, e.Position.Y, e.Position.Z));
        }
示例#12
0
 void point_PointUpdate(object sender, PointBasedEventArgs e)
 {
     Point = new Point3D()
     {
         X = e.Position.X,
         Y = e.Position.Y,
         Z = e.Position.Z
     };
 }
示例#13
0
 static void control_PointCreate(object sender, PointBasedEventArgs e)
 {
     Active = true;
 }
示例#14
0
 /// <summary>
 /// Event handler for when a hand is detected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void control_PointCreate(object sender, PointBasedEventArgs e)
 {
     Active = true;
 }      
示例#15
0
 void point_PointUpdate(object sender, PointBasedEventArgs e)
 {
     this.Point = new Point3D(e.Position.X, e.Position.Y, e.Position.Z);
 }
示例#16
0
 static void pointControl_PointCreate(object sender, PointBasedEventArgs e)
 {
     Console.WriteLine("Point created");
 }
 void point_PointUpdate(object sender, PointBasedEventArgs e)
 {
     this.Point = new Point3D(e.Position.X, e.Position.Y, e.Position.Z);
 }
 protected override void OnPointUpdate(object sender, PointBasedEventArgs e)
 {
     base.OnPointUpdate(sender, e);
     KinectPoints.Points[e.Id] = new Point3D() { X = e.Position.X, Y = e.Position.Y, Z = e.Position.Z };
 }
示例#19
0
        /// <summary>
        /// Event handler for when the Kinect updates its hand tracking estimate
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        static void control_PointUpdate(object sender, PointBasedEventArgs e)
        {
            PositionX = e.Position.X;
            PositionY = e.Position.Y + adjustedHeight * 15;

            if (PositionX <= leftBoundary)
                NearLeft = true;
            else if (PositionX >= rightBoundary)
                NearRight = true;
            else if (PositionY >= topBoundary)
                NearTop = true;
            else if (PositionY <= botBoundary)
                NearBottom = true;
            else
                NearLeft = NearRight = NearTop = NearBottom = false;

            Trace.WriteLine("xpos " + PositionX + " ypos " + PositionY + "\n");
        }