Ejemplo n.º 1
0
        private void Setup()
        {
            foreach (var modeCombination in ModeCombination.ValidCombinations)
            {
                this.comboMode.Items.Add(modeCombination);
            }
            //this.factory = new OpenNIDataSourceFactory("mouse_config.xml");
            this.factory = new SDKDataSourceFactory();

            var depthImageDataSource = this.factory.CreateDepthImageDataSource();
            depthImageDataSource.NewDataAvailable += new Core.NewDataHandler<ImageSource>(MainWindow_NewDataAvailable);
            //this.trackingClusterDataSource = this.factory.CreateTrackingClusterDataSource();
            depthImageDataSource.Start();
            CreateController();
        }
Ejemplo n.º 2
0
        private void Setup()
        {
            foreach (var modeCombination in ModeCombination.ValidCombinations)
            {
                this.comboMode.Items.Add(modeCombination);
            }
            //this.factory = new OpenNIDataSourceFactory("mouse_config.xml");
            this.factory = new SDKDataSourceFactory();

            var depthImageDataSource = this.factory.CreateDepthImageDataSource();

            depthImageDataSource.NewDataAvailable += new Core.NewDataHandler <ImageSource>(MainWindow_NewDataAvailable);
            //this.trackingClusterDataSource = this.factory.CreateTrackingClusterDataSource();
            depthImageDataSource.Start();
            CreateController();
        }