private void Setup() { foreach (var modeCombination in ModeCombination.ValidCombinations) { this.comboMode.Items.Add(modeCombination); } this.factory = new OpenNIDataSourceFactory("mouse_config.xml"); this.trackingClusterDataSource = this.factory.CreateTrackingClusterDataSource(); var depthImageDataSource = this.factory.CreateDepthImageDataSource(); depthImageDataSource.NewDataAvailable += new Core.NewDataHandler <ImageSource>(MainWindow_NewDataAvailable); depthImageDataSource.Start(); CreateController(); }
public MouseController(IHandDataSource handSource, TrackingClusterDataSource trackingClusterDataSource) : this(handSource) { this.trackingClusterDataSource = trackingClusterDataSource; }
public HandTrackingCursorMode(TrackingClusterDataSource trackingClusterDataSource) { this.trackingClusterDataSource = trackingClusterDataSource; }