コード例 #1
0
        public MovingGestureTree BuildMovingGestureTree(GestureBuilderParameters gestureBuilderParameters, bool addWhenBuilt)
        {
            MovingGestureTree movingGestureTree = gestureBuilder.BuildMovingGestureTree(gestureBuilderParameters);

            if (addWhenBuilt)
            {
                AddMovingGestureTree(movingGestureTree);
            }

            return(movingGestureTree);
        }
コード例 #2
0
ファイル: GestureBuilderForm.cs プロジェクト: rjabaker/Skynet
        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");
        }
コード例 #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();
            }
コード例 #4
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();
            }
コード例 #5
0
 public void AddMovingGestureTree(MovingGestureTree movingGestureTree)
 {
     movingGestureTree.CalculateRuntimeParameters();
     movingGestureTrees.Add(movingGestureTree);
     movingGestureTree.GestureCaptured += new GestureUtilities.GestureCapturedEventHandler(movingGestureTree_GestureCaptured);
 }
コード例 #6
0
ファイル: GestureController.cs プロジェクト: rjabaker/Skynet
 public void AddMovingGestureTree(MovingGestureTree movingGestureTree)
 {
     movingGestureTree.CalculateRuntimeParameters();
     movingGestureTrees.Add(movingGestureTree);
     movingGestureTree.GestureCaptured += new GestureUtilities.GestureCapturedEventHandler(movingGestureTree_GestureCaptured);
 }