Push() public method

public Push ( ) : void
return void
        private void RunTest(string framePath, Action<HandCollection> assertions)
        {
            var frameSize = new IntSize(640, 480);
            var frame = new DepthDataFrameRepository(frameSize).Load(framePath);
            using (var frameDataSource = new DepthFramePointerDataSource(frame))
            {
                var src = new HandDataSource(new ClusterShapeDataSource(new OpenNIClusterDataSource(frameDataSource, new ClusterDataSourceSettings())));
                frameDataSource.Push();

                assertions(src.CurrentValue);
            }
        }
Example #2
0
 private void RefreshDepthFrame()
 {
     using (var depthFrameSource = new DepthFramePointerDataSource(this.CurrentFrame.Frame))
     {
         this.clusterDataSource = new OpenNIClusterDataSource(depthFrameSource, this.clusterDataSourceSettings);
         this.shapeDataSource = new ClusterShapeDataSource(this.clusterDataSource, this.shapeDataSourceSettings);
         this.handDataSource = new HandDataSource(this.shapeDataSource, this.handDataSourceSettings);
         this.ToggleLayers();
         this.ImageSource = new DepthImageDataSource(depthFrameSource);
         depthFrameSource.Push();
     }
 }