コード例 #1
0
        private void OnGetCalibrationCompleted(Calibration calibration, Tobii.Gaze.Core.ErrorCode errorCode)
        {
            LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX = calibration;

            CalibrationError errorCalibracion = new CalibrationError(LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX.GetCalibrationPointDataItems());

            LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorLeftPx  = errorCalibracion.meanCalibrationErrorLeftPx;
            LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorRightPx = errorCalibracion.meanCalibrationErrorRightPx;

            Console.WriteLine("EyetrackingEngine.OnGetCalibrationCompleted. errorCode: " + errorCode.ToString() +
                              "error: " +
                              errorCalibracion.meanCalibrationErrorLeftPx.ToString() + ", " +
                              errorCalibracion.meanCalibrationErrorRightPx.ToString());

            if (OnGetCalibrationCompletedEvent != null)
            {
                OnGetCalibrationCompletedEvent(this, new CalibrationReadyEventArgs(errorCalibracion.CalibrationPointDataL));
            }
        }
コード例 #2
0
        private void OnGetCalibrationCompleted(Calibration calibration, Tobii.Gaze.Core.ErrorCode errorCode)
        {
            LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX = calibration;

            CalibrationError errorCalibracion = new CalibrationError(LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX.GetCalibrationPointDataItems());
            LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorLeftPx = errorCalibracion.meanCalibrationErrorLeftPx;
            LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorRightPx = errorCalibracion.meanCalibrationErrorRightPx;

            Console.WriteLine("EyetrackingEngine.OnGetCalibrationCompleted. errorCode: " + errorCode.ToString() +
                "error: " +
                errorCalibracion.meanCalibrationErrorLeftPx.ToString() + ", " +
                errorCalibracion.meanCalibrationErrorRightPx.ToString());

            if (OnGetCalibrationCompletedEvent != null)
                OnGetCalibrationCompletedEvent(this, new CalibrationReadyEventArgs(errorCalibracion.CalibrationPointDataL));
        }