public MovingGestureTree BuildMovingGestureTree(GestureBuilderParameters gestureBuilderParameters, bool addWhenBuilt) { MovingGestureTree movingGestureTree = gestureBuilder.BuildMovingGestureTree(gestureBuilderParameters); if (addWhenBuilt) { AddMovingGestureTree(movingGestureTree); } return(movingGestureTree); }
private void BuildMovingGestureTree() { IGesture gesture = null; DateTime start = (DateTime)gestureStartTimeListBox.SelectedItem; DateTime end = (DateTime)gestureEndTimeListBox.SelectedItem; GestureBuilderParameters parameters = new GestureBuilderParameters(gesture, renderCanvas.SkeletonRenderFrames, start, end, GestureBuilder.BuildStrategy.StandardTolerance); GestureBuilder builder = new GestureBuilder(); movingGestureTree = builder.BuildMovingGestureTree(parameters); renderCanvas.SaveCanvasFrames("C:\\Users\\Robert\\Documents\\GitHub\\docs\\files\\render bin\\gesture_8_half_wave.xml"); Serializer.SerializeToXml<MovingGestureTree>(movingGestureTree, "C:\\Users\\Robert\\Documents\\GitHub\\docs\\files\\gesture bin\\gesture_7_half_wave.xml"); }
public StandardToleranceMethod(GestureBuilderParameters parameters) { this.movingGestureTree = new MovingGestureTree(); this.parameters = parameters; this.gestureStartDateTime = DateTime.MinValue; this.gestureEndDateTime = DateTime.MinValue; this.captureTimeTolerance = TimeSpan.Zero; this.gestureDuration = TimeSpan.Zero; this.rawFramesCapture = new SkeletonRenderFrames(); this.framesCapture = new SkeletonRenderFrames(); }
public void AddMovingGestureTree(MovingGestureTree movingGestureTree) { movingGestureTree.CalculateRuntimeParameters(); movingGestureTrees.Add(movingGestureTree); movingGestureTree.GestureCaptured += new GestureUtilities.GestureCapturedEventHandler(movingGestureTree_GestureCaptured); }