示例#1
0
        private void DisplayPoints()
        {
            if (!isRunning)
            {
                return;
            }

            // Add point to display canvas
            CanvasCalibration.Children.Add(currentPoint);
            Canvas.SetTop(currentPoint, currentPoint.Point.Y - pointDiameter / 2);
            Canvas.SetLeft(currentPoint, currentPoint.Point.X - pointDiameter / 2);

            // When point shrunk, signal Eye tracker, eg. EyeTrackerPointEnd.
            currentPoint.OnPointDisplayed += PointStop;

            // When point displayed, animate transition to next point (if any)
            currentPoint.OnPointDisplayed += AnimateBetweenPoints;

            // Signal eye tracker, new point starting
            //GTCommands.Instance.Calibration.PointStart(InstancePoint.Number, InstancePoint.Point);
            EyeTrackerPointStart(currentPoint);

            // Starts scale animation (to fixate)
            currentPoint.RunScalePointAnimation();
        }
示例#2
0
        private void StartWithFirstFakePoint(Point start, Point end)
        {
            fakePoint = new CalibrationPoint(
                -1,
                TrackingScreen.TrackingScreenCenter,
                pointDiameter,
                ColorPoints,
                2000);

            // Add point to display canvas
            CanvasCalibration.Children.Add(fakePoint);
            Canvas.SetTop(fakePoint, fakePoint.Point.Y - pointDiameter / 2);
            Canvas.SetLeft(fakePoint, fakePoint.Point.X - pointDiameter / 2);

            fakePoint.RunScalePointAnimation();
            fakePoint.OnPointDisplayed += fakePoint_PointDisplayedAction;
        }
        private void StartWithFirstFakePoint(Point start, Point end)
        {
            fakePoint = new CalibrationPoint(
                -1,
                TrackingScreen.TrackingScreenCenter,
                pointDiameter,
                ColorPoints,
                1000);

            // Add point to display canvas
            CanvasCalibration.Children.Add(fakePoint);
            Canvas.SetTop(fakePoint, fakePoint.Point.Y - pointDiameter / 2);
            Canvas.SetLeft(fakePoint, fakePoint.Point.X - pointDiameter / 2);

            fakePoint.RunScalePointAnimation();
            fakePoint.OnPointDisplayed += fakePoint_PointDisplayedAction;
        }