public CalibrationController(MainWindow mainWindow, TrackerController trackerController) { this.trackerController = trackerController; this.mainWindow = mainWindow; calibrationPoints.Left = new List <Point>(); calibrationPoints.Left.Add(new Point(0.1, 0.1)); calibrationPoints.Left.Add(new Point(0.1, 0.5)); calibrationPoints.Left.Add(new Point(0.1, 0.9)); calibrationPoints.Left.Add(new Point(0.5, 0.1)); calibrationPoints.Left.Add(new Point(0.5, 0.9)); calibrationPoints.Left.Add(new Point(0.9, 0.1)); calibrationPoints.Left.Add(new Point(0.9, 0.5)); calibrationPoints.Left.Add(new Point(0.9, 0.9)); calibrationPoints.Left.Add(new Point(0.5, 0.5)); calibrationPoints.Right = new List <Point>(); calibrationPoints.Right.Add(new Point(0.1, 0.1)); calibrationPoints.Right.Add(new Point(0.1, 0.5)); calibrationPoints.Right.Add(new Point(0.1, 0.9)); calibrationPoints.Right.Add(new Point(0.5, 0.1)); calibrationPoints.Right.Add(new Point(0.5, 0.5)); calibrationPoints.Right.Add(new Point(0.5, 0.9)); calibrationPoints.Right.Add(new Point(0.9, 0.1)); calibrationPoints.Right.Add(new Point(0.9, 0.5)); calibrationPoints.Right.Add(new Point(0.9, 0.9)); currentPointLeft = calibrationPoints.Left.GetEnumerator(); currentPointRight = calibrationPoints.Right.GetEnumerator(); gui = new CalibrationGUI(); gui.CalibrationCanceled += this.CalibrationCanceledEventHandler; gui.Show(); trackerController.tracker.StartCalibrationAsync(CalibrationStarted); }
public CalibrationController(MainWindow mainWindow, TrackerController trackerController) { this.trackerController = trackerController; this.mainWindow = mainWindow; calibrationPoints.Left = new List<Point>(); calibrationPoints.Left.Add(new Point(0.1, 0.1)); calibrationPoints.Left.Add(new Point(0.1, 0.5)); calibrationPoints.Left.Add(new Point(0.1, 0.9)); calibrationPoints.Left.Add(new Point(0.5, 0.1)); calibrationPoints.Left.Add(new Point(0.5, 0.9)); calibrationPoints.Left.Add(new Point(0.9, 0.1)); calibrationPoints.Left.Add(new Point(0.9, 0.5)); calibrationPoints.Left.Add(new Point(0.9, 0.9)); calibrationPoints.Left.Add(new Point(0.5, 0.5)); calibrationPoints.Right = new List<Point>(); calibrationPoints.Right.Add(new Point(0.1, 0.1)); calibrationPoints.Right.Add(new Point(0.1, 0.5)); calibrationPoints.Right.Add(new Point(0.1, 0.9)); calibrationPoints.Right.Add(new Point(0.5, 0.1)); calibrationPoints.Right.Add(new Point(0.5, 0.5)); calibrationPoints.Right.Add(new Point(0.5, 0.9)); calibrationPoints.Right.Add(new Point(0.9, 0.1)); calibrationPoints.Right.Add(new Point(0.9, 0.5)); calibrationPoints.Right.Add(new Point(0.9, 0.9)); currentPointLeft = calibrationPoints.Left.GetEnumerator(); currentPointRight = calibrationPoints.Right.GetEnumerator(); gui = new CalibrationGUI(); gui.CalibrationCanceled += this.CalibrationCanceledEventHandler; gui.Show(); trackerController.tracker.StartCalibrationAsync(CalibrationStarted); }
public MainWindow() { trackerController = new TrackerController(); InitializeComponent(); }