コード例 #1
0
        private void DisplayGazeLeft(GazeDataEye gazeDataEye)
        {
            Point p      = new Point(gazeDataEye.GazePointOnDisplayNormalized.X, gazeDataEye.GazePointOnDisplayNormalized.Y);
            var   circle = DrawCircle(Denormalize(p), 5, true, Brushes.Green);

            circle.Loaded += new RoutedEventHandler(CircleLoaded);
        }
コード例 #2
0
 public void LogEye(string eyeName, GazeDataEye eye)
 {
     LogLine(MakeEyeLabel(eyeName, "EyePositionFromEyeTrackerMM"), eye.EyePositionFromEyeTrackerMM.ToString());
     LogLine(MakeEyeLabel(eyeName, "EyePostitionInTrackBoxNormalized"), eye.EyePositionInTrackBoxNormalized.ToString());
     LogLine(MakeEyeLabel(eyeName, "GazePointFromEyeTrackerMM"), eye.GazePointFromEyeTrackerMM.ToString());
     LogLine(MakeEyeLabel(eyeName, "GazePointOnDisplayNormalized"), eye.GazePointOnDisplayNormalized.ToString());
 }
コード例 #3
0
 private void DisplayGazeRight(GazeDataEye gazeDataEye)
 {
     Point p = new Point(gazeDataEye.GazePointOnDisplayNormalized.X, gazeDataEye.GazePointOnDisplayNormalized.Y);
     var circle = DrawCircle(Denormalize(p), 5, true, Brushes.Red);
     circle.Loaded += new RoutedEventHandler(CircleLoaded);
 }
コード例 #4
0
 private void DisplayEyeRight(GazeDataEye gazeDataEye)
 {
     Point p = new Point(1 - gazeDataEye.EyePositionInTrackBoxNormalized.X, gazeDataEye.EyePositionInTrackBoxNormalized.Y);
     lastDrawedRight = DrawCircle(Denormalize(p), (1 - gazeDataEye.EyePositionInTrackBoxNormalized.Z) * 50, true, Brushes.Red);
 }
コード例 #5
0
        private void DisplayEyeLeft(GazeDataEye gazeDataEye)
        {
            Point p = new Point(1 - gazeDataEye.EyePositionInTrackBoxNormalized.X, gazeDataEye.EyePositionInTrackBoxNormalized.Y);

            lastDrawedLeft = DrawCircle(Denormalize(p), (1 - gazeDataEye.EyePositionInTrackBoxNormalized.Z) * 50, true, Brushes.Green);
        }