示例#1
0
 public HitGesture(List<Rect> hitRectangles, IPointConverter pointConverter, params JointType[] joints)
 {
     if (hitRectangles == null) throw new ArgumentNullException("hitRectangles");
     if (pointConverter == null) throw new ArgumentNullException("pointConverter");
     this.maxTimeToLive = 200;
     this.joints = joints;
     this.HitRectangles = hitRectangles.ToList();
     this.pointConverter = pointConverter;
 }
示例#2
0
 public HitGesture(List <Rect> hitRectangles, IPointConverter pointConverter, params JointType[] joints)
 {
     if (hitRectangles == null)
     {
         throw new ArgumentNullException("hitRectangles");
     }
     if (pointConverter == null)
     {
         throw new ArgumentNullException("pointConverter");
     }
     this.maxTimeToLive  = 200;
     this.joints         = joints;
     this.HitRectangles  = hitRectangles.ToList();
     this.pointConverter = pointConverter;
 }
示例#3
0
 public void InitializeSkeleton(GestureController gestureController, IPointConverter pointConverter)
 {
     gestureController.SkeletonPreProcessed += new EventHandler <SkeletonPreProcessedEventArgs>(gestureController_SkeletonPreProcessed);
     this.pointConverter = pointConverter;
     ActivateSkeletonProcessing();
 }
 public void InitializeSkeleton(GestureController gestureController, IPointConverter pointConverter)
 {
     gestureController.SkeletonPreProcessed += new EventHandler<SkeletonPreProcessedEventArgs>(gestureController_SkeletonPreProcessed);
     this.pointConverter = pointConverter;
     ActivateSkeletonProcessing();
 }