CCT.NUI.TestDataCollector.MainViewModel.RefreshDepthFrame C# (CSharp) Method

RefreshDepthFrame() private method

private RefreshDepthFrame ( ) : void
return void
        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);
                this.ImageSource.Start();
                this.handDataSource.Start();
                depthFrameSource.Push();
            }
        }