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); } }
/// <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"); }
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())); }
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 }; }
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 }; }
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(); }
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)); }
static void control_PointCreate(object sender, PointBasedEventArgs e) { Active = true; }
/// <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; }
void point_PointUpdate(object sender, PointBasedEventArgs e) { this.Point = new Point3D(e.Position.X, e.Position.Y, e.Position.Z); }
static void pointControl_PointCreate(object sender, PointBasedEventArgs e) { Console.WriteLine("Point created"); }
/// <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"); }