private void volumeBtn_Click(object sender, RoutedEventArgs e) { ScanLoader newScanWindow = new ScanLoader((int)ScanLoader.OperationModes.CaptureNewCloud); newScanWindow.Owner = this; newScanWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; newScanWindow.Show(); }
/// <summary> /// performs a simple stitch test (deprecated? robin?) /// </summary> /// <param name="sender">the object</param> /// <param name="e">the routed event</param> private void SimpleStitchTest_Click(object sender, RoutedEventArgs e) { List <PointCloud> pc = pcdl; pcd = new PointCloud(); //instantiate the stitcher stitcher = new BoundingBox(); //jam points into stitcher stitcher.add(pc); stitcher.stitch(); pcd = stitcher.getResult(); windowViewer.Close(); windowScanner = new ScanLoader(pcd); windowScanner.Owner = this; windowScanner.Show(); }
/// <summary> /// displays a new scan loader screen /// </summary> /// <param name="sender">the object</param> /// <param name="e">the routed event</param> private void NewScan_Click(object sender, RoutedEventArgs e) { if (this.noSensor()) { return; } this.shutAnyWindows(); this.resetButtons(); this.kinectInterp.calibrate(); windowScanner = new ScanLoader((int)ScanLoader.OperationModes.CaptureNewCloud); windowScanner.Owner = this; windowScanner.Show(); windowHistory = new HistoryLoader(); windowHistory.Owner = this; windowHistory.history.Visibility = Visibility.Collapsed; }