Tobii Pro SDK Unity API
|
Provides methods and properties to manage and get data from an eye tracker. More...
Public Member Functions | |
GazeOutputFrequencyCollection | GetAllGazeOutputFrequencies () |
Gets a list of gaze output frequencies supported by the eye tracker. More... | |
float | GetGazeOutputFrequency () |
Gets the gaze output frequency of the eye tracker. More... | |
void | SetGazeOutputFrequency (float gazeOutputFrequency) |
Sets the gaze output frequency of the eye tracker. More... | |
EyeTrackingModeCollection | GetAllEyeTrackingModes () |
Gets a list of eye tracking modes supported by the eye tracker. More... | |
string | GetEyeTrackingMode () |
Gets the eye tracking mode of the eye tracker. More... | |
void | SetEyeTrackingMode (string eyeTrackingMode) |
Sets the eye tracking mode of the eye tracker. More... | |
CalibrationData | RetrieveCalibrationData () |
Gets the calibration data used currently by the eye tracker. This data can be saved to a file for later use. More... | |
void | ApplyCalibrationData (CalibrationData calibrationData) |
Sets the provided calibration data to the eye tracker, which means it will be active calibration. More... | |
bool | TryApplyLicenses (LicenseCollection licenses, out FailedLicenseCollection failedLicenses) |
Apply one or more licenses to unlock features of the eye tracker. A return value indicates whether all licenses where applied or not. More... | |
void | ClearAppliedLicenses () |
Clears any previously applied licenses. More... | |
TrackBox | GetTrackBox () |
Gets the track box of the eye tracker. More... | |
DisplayArea | GetDisplayArea () |
Gets the size and corners of the display area. More... | |
void | SetDisplayArea (DisplayArea displayArea) |
Sets the display area of the eye tracker. It is strongly recommended to use Eye Tracker Manager to calculate the display area coordinates as the origin of the User Coordinate System differs between eye tracker models." More... | |
void | SetDeviceName (string deviceName) |
Changes the device name. This is not supported by all eye trackers. More... | |
HMDLensConfiguration | GetHMDLensConfiguration () |
Gets the current lens configuration of the HMD based eye tracker. The lens configuration describes how the lenses of the HMD device are positioned. More... | |
void | SetHMDLensConfiguration (HMDLensConfiguration hmdLensConfiguration) |
Sets the lens configuration of the HMD based eye tracker. The lens configuration describes how the lenses of the HMD device are positioned. More... | |
Properties | |
Uri | Address [get] |
Gets the address (URI) of the eye tracker device. More... | |
string | DeviceName [get] |
Gets the name of the eye tracker. More... | |
string | SerialNumber [get] |
Gets the serial number of the eye tracker. All physical eye trackers have a unique serial number. More... | |
string | Model [get] |
Gets the model of the eye tracker. More... | |
string | FirmwareVersion [get] |
Gets the firmware version of the eye tracker. More... | |
Capabilities | DeviceCapabilities [get] |
Gets the capabilities of the device. More... | |
Events | |
EventHandler< GazeDataEventArgs > | GazeDataReceived |
Event fired when gaze data is received. More... | |
EventHandler< HMDGazeDataEventArgs > | HMDGazeDataReceived |
Event fired when HMD gaze data is received. More... | |
EventHandler< TimeSynchronizationReferenceEventArgs > | TimeSynchronizationReferenceReceived |
Occurs when the computer and the eye trackers clocks gets synchronized. To handle normal drifts between clocks the clocks are checked on regular basis, and this results in that the time stamps are adjusted for the drifts in the data streams. This drift handling is done in real time. The data received from this event could be used for an even more accurate drift adjustment in the post processing. More... | |
EventHandler< ExternalSignalValueEventArgs > | ExternalSignalReceived |
Occurs when the value of the external signal port (TTL input) on the eye tracker device changes. Not all eye trackers have a sampling trigger port. The sampling feature could be used to synchronize the eye tracker data with data from other devices. The sampling data contains a time reference that matches the time reference on the time synchronized gaze data. More... | |
EventHandler< EventErrorEventArgs > | EventErrorOccurred |
Fired when an error occurs on any of the other events for the eye tracker. More... | |
EventHandler< EyeImageEventArgs > | EyeImageReceived |
Occurs when a new eye image is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes. More... | |
EventHandler< EyeImageRawEventArgs > | EyeImageRawReceived |
Occurs when a new eye image raw is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes. More... | |
EventHandler< GazeOutputFrequencyEventArgs > | GazeOutputFrequencyChanged |
Occurs when the gaze output frequency has changed. More... | |
EventHandler< CalibrationModeEnteredEventArgs > | CalibrationModeEntered |
Occurs when the eye tracker enters calibration mode. More... | |
EventHandler< CalibrationModeLeftEventArgs > | CalibrationModeLeft |
Occurs when the eye tracker leaves calibration mode. More... | |
EventHandler< CalibrationChangedEventArgs > | CalibrationChanged |
Occurs when the calibration is changed for the eye tracker. More... | |
EventHandler< DisplayAreaEventArgs > | DisplayAreaChanged |
Occurs when the display area has changed. More... | |
EventHandler< ConnectionLostEventArgs > | ConnectionLost |
Occurs when the client loses connection to the eye tracker. More... | |
EventHandler< ConnectionRestoredEventArgs > | ConnectionRestored |
Occurs when connection to the eye tracker is restored. More... | |
EventHandler< TrackBoxEventArgs > | TrackBoxChanged |
Occurs when the track box size has changed. More... | |
EventHandler< EyeTrackingModeChangedEventArgs > | EyeTrackingModeChanged |
Occurs when the eye tracking mode has changed. More... | |
Provides methods and properties to manage and get data from an eye tracker.
void Tobii.Research.IEyeTracker.ApplyCalibrationData | ( | CalibrationData | calibrationData | ) |
Sets the provided calibration data to the eye tracker, which means it will be active calibration.
calibrationData | The calibration data to apply. |
void Tobii.Research.IEyeTracker.ClearAppliedLicenses | ( | ) |
Clears any previously applied licenses.
EyeTrackingModeCollection Tobii.Research.IEyeTracker.GetAllEyeTrackingModes | ( | ) |
Gets a list of eye tracking modes supported by the eye tracker.
GazeOutputFrequencyCollection Tobii.Research.IEyeTracker.GetAllGazeOutputFrequencies | ( | ) |
Gets a list of gaze output frequencies supported by the eye tracker.
DisplayArea Tobii.Research.IEyeTracker.GetDisplayArea | ( | ) |
Gets the size and corners of the display area.
string Tobii.Research.IEyeTracker.GetEyeTrackingMode | ( | ) |
Gets the eye tracking mode of the eye tracker.
float Tobii.Research.IEyeTracker.GetGazeOutputFrequency | ( | ) |
Gets the gaze output frequency of the eye tracker.
HMDLensConfiguration Tobii.Research.IEyeTracker.GetHMDLensConfiguration | ( | ) |
Gets the current lens configuration of the HMD based eye tracker. The lens configuration describes how the lenses of the HMD device are positioned.
TrackBox Tobii.Research.IEyeTracker.GetTrackBox | ( | ) |
Gets the track box of the eye tracker.
CalibrationData Tobii.Research.IEyeTracker.RetrieveCalibrationData | ( | ) |
Gets the calibration data used currently by the eye tracker. This data can be saved to a file for later use.
void Tobii.Research.IEyeTracker.SetDeviceName | ( | string | deviceName | ) |
Changes the device name. This is not supported by all eye trackers.
deviceName | The eye tracker's desired name. |
void Tobii.Research.IEyeTracker.SetDisplayArea | ( | DisplayArea | displayArea | ) |
Sets the display area of the eye tracker. It is strongly recommended to use Eye Tracker Manager to calculate the display area coordinates as the origin of the User Coordinate System differs between eye tracker models."
displayArea | The eye tracker's display area. |
void Tobii.Research.IEyeTracker.SetEyeTrackingMode | ( | string | eyeTrackingMode | ) |
Sets the eye tracking mode of the eye tracker.
eyeTrackingMode | The new eye tracking mode. The string must be from the list returned by GetAllEyeTrackingModes(). |
void Tobii.Research.IEyeTracker.SetGazeOutputFrequency | ( | float | gazeOutputFrequency | ) |
Sets the gaze output frequency of the eye tracker.
gazeOutputFrequency | The the gaze output frequency in hertz. The value must be from the list returned by GetAllGazeOutputFrequencies(). |
void Tobii.Research.IEyeTracker.SetHMDLensConfiguration | ( | HMDLensConfiguration | hmdLensConfiguration | ) |
Sets the lens configuration of the HMD based eye tracker. The lens configuration describes how the lenses of the HMD device are positioned.
hmdLensConfiguration | The lens configuration parameters to set. |
bool Tobii.Research.IEyeTracker.TryApplyLicenses | ( | LicenseCollection | licenses, |
out FailedLicenseCollection | failedLicenses | ||
) |
Apply one or more licenses to unlock features of the eye tracker. A return value indicates whether all licenses where applied or not.
licenses | A LicenseCollection containing the licenses to apply. |
failedLicenses | This method always return a FailedLicensesCollection. When this method is successful the collection is empty, when at least one license failed to be applied, then the collection contains the failed licenses together with a reason for failing. |
|
get |
Gets the address (URI) of the eye tracker device.
|
get |
Gets the capabilities of the device.
|
get |
Gets the name of the eye tracker.
|
get |
Gets the firmware version of the eye tracker.
|
get |
Gets the model of the eye tracker.
|
get |
Gets the serial number of the eye tracker. All physical eye trackers have a unique serial number.
EventHandler<CalibrationChangedEventArgs> Tobii.Research.IEyeTracker.CalibrationChanged |
Occurs when the calibration is changed for the eye tracker.
EventHandler<CalibrationModeEnteredEventArgs> Tobii.Research.IEyeTracker.CalibrationModeEntered |
Occurs when the eye tracker enters calibration mode.
EventHandler<CalibrationModeLeftEventArgs> Tobii.Research.IEyeTracker.CalibrationModeLeft |
Occurs when the eye tracker leaves calibration mode.
EventHandler<ConnectionLostEventArgs> Tobii.Research.IEyeTracker.ConnectionLost |
Occurs when the client loses connection to the eye tracker.
EventHandler<ConnectionRestoredEventArgs> Tobii.Research.IEyeTracker.ConnectionRestored |
Occurs when connection to the eye tracker is restored.
EventHandler<DisplayAreaEventArgs> Tobii.Research.IEyeTracker.DisplayAreaChanged |
Occurs when the display area has changed.
EventHandler<EventErrorEventArgs> Tobii.Research.IEyeTracker.EventErrorOccurred |
Fired when an error occurs on any of the other events for the eye tracker.
EventHandler<ExternalSignalValueEventArgs> Tobii.Research.IEyeTracker.ExternalSignalReceived |
Occurs when the value of the external signal port (TTL input) on the eye tracker device changes. Not all eye trackers have a sampling trigger port. The sampling feature could be used to synchronize the eye tracker data with data from other devices. The sampling data contains a time reference that matches the time reference on the time synchronized gaze data.
EventHandler<EyeImageRawEventArgs> Tobii.Research.IEyeTracker.EyeImageRawReceived |
Occurs when a new eye image raw is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes.
EventHandler<EyeImageEventArgs> Tobii.Research.IEyeTracker.EyeImageReceived |
Occurs when a new eye image is received, and the occurrence depends on the eye tracker model. Not all eye tracker models support this feature. If no one is listening to gaze data, the eye tracker will only deliver full images, otherwise either cropped or full images will be delivered depending on whether or not the eye tracker has detected eyes.
EventHandler<EyeTrackingModeChangedEventArgs> Tobii.Research.IEyeTracker.EyeTrackingModeChanged |
Occurs when the eye tracking mode has changed.
EventHandler<GazeDataEventArgs> Tobii.Research.IEyeTracker.GazeDataReceived |
Event fired when gaze data is received.
EventHandler<GazeOutputFrequencyEventArgs> Tobii.Research.IEyeTracker.GazeOutputFrequencyChanged |
Occurs when the gaze output frequency has changed.
EventHandler<HMDGazeDataEventArgs> Tobii.Research.IEyeTracker.HMDGazeDataReceived |
Event fired when HMD gaze data is received.
EventHandler<TimeSynchronizationReferenceEventArgs> Tobii.Research.IEyeTracker.TimeSynchronizationReferenceReceived |
Occurs when the computer and the eye trackers clocks gets synchronized. To handle normal drifts between clocks the clocks are checked on regular basis, and this results in that the time stamps are adjusted for the drifts in the data streams. This drift handling is done in real time. The data received from this event could be used for an even more accurate drift adjustment in the post processing.
EventHandler<TrackBoxEventArgs> Tobii.Research.IEyeTracker.TrackBoxChanged |
Occurs when the track box size has changed.