Ejemplo n.º 1
0
        public MovingGestureTree BuildMovingGestureTree(GestureBuilderParameters gestureBuilderParameters, bool addWhenBuilt)
        {
            MovingGestureTree movingGestureTree = gestureBuilder.BuildMovingGestureTree(gestureBuilderParameters);

            if (addWhenBuilt)
            {
                AddMovingGestureTree(movingGestureTree);
            }

            return(movingGestureTree);
        }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
            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 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();
            }
Ejemplo n.º 5
0
 public void AddMovingGestureTree(MovingGestureTree movingGestureTree)
 {
     movingGestureTree.CalculateRuntimeParameters();
     movingGestureTrees.Add(movingGestureTree);
     movingGestureTree.GestureCaptured += new GestureUtilities.GestureCapturedEventHandler(movingGestureTree_GestureCaptured);
 }
Ejemplo n.º 6
0
 public void AddMovingGestureTree(MovingGestureTree movingGestureTree)
 {
     movingGestureTree.CalculateRuntimeParameters();
     movingGestureTrees.Add(movingGestureTree);
     movingGestureTree.GestureCaptured += new GestureUtilities.GestureCapturedEventHandler(movingGestureTree_GestureCaptured);
 }