Exemplo n.º 1
0
 /// <summary>
 /// Initiate a new calibration process. Must be called before any call to {@link TETCSharpClient.GazeManager.CalibrationPointStart()}
 /// or {@link TETCSharpClient.GazeManager.CalibrationPointEnd()}.
 /// <p>
 /// Any previous (and possible running) calibration process must be completed or aborted before calling this.
 /// <p>
 /// A full calibration process consists of a number of calls to {@link TETCSharpClient.GazeManager.CalibrationPointStart()}
 /// and {@link TETCSharpClient.GazeManager.CalibrationPointEnd()} matching the total number of clibration points set by the
 /// numCalibrationPoints parameter.
 /// </summary>
 /// <param name="numCalibrationPoints"/>The number of calibration points that will be used in this calibration</param>
 /// <param name="listener"/>The {@link TETCSharpClient.GazeCalibrationListener} instance that will receive callbacks during the
 /// calibration process</param>
 public void CalibrationStart(short numCalibrationPoints, ICalibrationProcessHandler listener)
 {
     if (isActive)
     {
         if (!IsCalibrating)
         {
             sampledCalibrationPoints = 0;
             totalCalibrationPoints   = numCalibrationPoints;
             calibrationListener      = listener;
             apiManager.RequestCalibrationStart(numCalibrationPoints);
         }
         else
         {
             Debug.WriteLine(
                 "Calibration process already running. Call CalibrationAbort() before starting new process");
         }
     }
     else
     {
         Debug.WriteLine("TET C# Client not activated!");
     }
 }
Exemplo n.º 2
0
 public static GazeManager CalibrationStart(GazeManager gazemanager, Int32 numCalibrationPoints, ICalibrationProcessHandler listener)
 {
     GazeManager.Instance.CalibrationStart(Convert.ToInt16(numCalibrationPoints), listener);
     return(gazemanager);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initiate a new calibration process. Must be called before any call to {@link TETCSharpClient.GazeManager.CalibrationPointStart()}
 /// or {@link TETCSharpClient.GazeManager.CalibrationPointEnd()}.
 /// <p>
 /// Any previous (and possible running) calibration process must be completed or aborted before calling this.
 /// <p>
 /// A full calibration process consists of a number of calls to {@link TETCSharpClient.GazeManager.CalibrationPointStart()} 
 /// and {@link TETCSharpClient.GazeManager.CalibrationPointEnd()} matching the total number of clibration points set by the
 /// numCalibrationPoints parameter.
 /// </summary>
 /// <param name="numCalibrationPoints"/>The number of calibration points that will be used in this calibration</param>
 /// <param name="listener"/>The {@link TETCSharpClient.GazeCalibrationListener} instance that will receive callbacks during the 
 /// calibration process</param>
 public void CalibrationStart(short numCalibrationPoints, ICalibrationProcessHandler listener)
 {
     if (isActive)
     {
         if (!IsCalibrating)
         {
             sampledCalibrationPoints = 0;
             totalCalibrationPoints = numCalibrationPoints;
             calibrationListener = listener;
             apiManager.RequestCalibrationStart(numCalibrationPoints);
         }
         else
             Debug.WriteLine(
                 "Calibration process already running. Call CalibrationAbort() before starting new process");
     }
     else
         Debug.WriteLine("TET C# Client not activated!");
 }