Tobii Pro SDK C API
tobii_research_eyetracker.h
Go to the documentation of this file.
1 
14 #ifndef TOBII_RESEARCH_EYETRACKER_H_
15 #define TOBII_RESEARCH_EYETRACKER_H_
16 
17 #include "tobii_research.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
26 typedef enum {
31 
36 
41 
46 
51 
56 
61 
66 
71 
77 
81 typedef struct {
86 
91 
96 
101 
106 
111 
116 
122 
131 
136 
141 
146 
151 
156 
161 
166 
171 
177 
182 typedef struct {
187 
192 
196  float height;
197 
202 
207 
211  float width;
213 
217 typedef struct {
221  void* data;
225  size_t size;
227 
231 typedef struct {
235  float* frequencies;
241 
245 typedef struct {
249  char** modes;
253  size_t mode_count;
255 
259 typedef struct {
269 
280  TobiiResearchEyeTracker* eyetracker, char** address);
291  TobiiResearchEyeTracker* eyetracker, char** serial_number);
292 
303  TobiiResearchEyeTracker* eyetracker, char** device_name);
304 
313  TobiiResearchEyeTracker* eyetracker, char** model);
314 
323  TobiiResearchEyeTracker* eyetracker, char** fw_version);
324 
333  TobiiResearchEyeTracker* eyetracker, TobiiResearchCapabilities* capabilities);
334 
347  TobiiResearchEyeTracker* eyetracker,
349 
357 
370  TobiiResearchEyeTracker* eyetracker,
371  const TobiiResearchCalibrationData* data);
372 
383  TobiiResearchEyeTracker* eyetracker,
384  TobiiResearchGazeOutputFrequencies** frequencies);
385 
393 
404  TobiiResearchEyeTracker* eyetracker,
405  float* gaze_output_frequency);
406 
417  TobiiResearchEyeTracker* eyetracker,
418  float gaze_output_frequency);
419 
430  TobiiResearchEyeTracker* eyetracker,
432 
433 
441 
452  TobiiResearchEyeTracker* eyetracker,
453  char** eye_tracking_mode);
454 
465  TobiiResearchEyeTracker* eyetracker,
466  const char* eye_tracking_mode);
467 
478  TobiiResearchEyeTracker* eyetracker,
479  TobiiResearchTrackBox* track_box);
480 
496  TobiiResearchEyeTracker* eyetracker,
497  const void** license_key,
498  size_t* license_keys_size,
499  TobiiResearchLicenseValidationResult* validation_results,
500  size_t number_of_licenses);
501 
502 
510  TobiiResearchEyeTracker* eyetracker);
511 
522  TobiiResearchEyeTracker* eyetracker,
523  TobiiResearchDisplayArea* display_area);
524 
537  TobiiResearchEyeTracker* eyetracker,
538  const TobiiResearchDisplayArea* display_area);
539 
550  TobiiResearchEyeTracker* eyetracker,
551  const char* device_name);
552 
564  TobiiResearchEyeTracker* eyetracker,
565  TobiiResearchHMDLensConfiguration* lens_configuration);
566 
578  TobiiResearchEyeTracker* eyetracker,
579  const TobiiResearchHMDLensConfiguration* lens_configuration);
580 
581 #ifdef __cplusplus
582 }
583 #endif
584 #endif /* TOBII_RESEARCH_EYETRACKER_H_ */
TobiiResearchStatus
Definition: tobii_research.h:45
Definition: tobii_research_eyetracker.h:145
Definition: tobii_research_eyetracker.h:30
void * data
Definition: tobii_research_eyetracker.h:221
TobiiResearchLicenseValidationResult
Definition: tobii_research_eyetracker.h:126
TobiiResearchPoint3D top_right
Definition: tobii_research_eyetracker.h:206
Definition: tobii_research_eyetracker.h:40
size_t frequency_count
Definition: tobii_research_eyetracker.h:239
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_eye_tracking_mode(TobiiResearchEyeTracker *eyetracker, char **eye_tracking_mode)
Gets the eye tracking mode of the eye tracker.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_retrieve_calibration_data(TobiiResearchEyeTracker *eyetracker, TobiiResearchCalibrationData **data)
Gets the calibration data used currently by the eye tracker.
Definition: tobii_research_eyetracker.h:60
Definition: tobii_research_eyetracker.h:70
Definition: tobii_research_eyetracker.h:50
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_address(TobiiResearchEyeTracker *eyetracker, char **address)
Gets the address (URI) of the eye tracker device.
TobiiResearchPoint3D top_left
Definition: tobii_research_eyetracker.h:201
Definition: tobii_research_eyetracker.h:75
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_clear_applied_licenses(TobiiResearchEyeTracker *eyetracker)
Clears any previously applied licenses.
Definition: tobii_research_eyetracker.h:150
Definition: tobii_research_eyetracker.h:231
Definition: tobii_research_eyetracker.h:81
Definition: tobii_research_eyetracker.h:35
TobiiResearchPoint3D bottom_right
Definition: tobii_research_eyetracker.h:191
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_firmware_version(TobiiResearchEyeTracker *eyetracker, char **fw_version)
Gets the firmware version of the eye tracker.
Definition: tobii_research_eyetracker.h:245
TobiiResearchCapabilities
Definition: tobii_research_eyetracker.h:26
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_device_name(TobiiResearchEyeTracker *eyetracker, const char *device_name)
Changes the device name. This is not supported by all eye trackers.
Definition: tobii_research_eyetracker.h:182
float * frequencies
Definition: tobii_research_eyetracker.h:235
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:304
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_apply_calibration_data(TobiiResearchEyeTracker *eyetracker, const TobiiResearchCalibrationData *data)
Sets the provided calibration data to the eye tracker, which means it will be active calibration...
TobiiResearchPoint3D front_lower_left
Definition: tobii_research_eyetracker.h:105
Definition: tobii_research_eyetracker.h:130
TobiiResearchPoint3D left
Definition: tobii_research_eyetracker.h:263
Definition: tobii_research_eyetracker.h:165
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_serial_number(TobiiResearchEyeTracker *eyetracker, char **serial_number)
Gets the serial number of the eye tracker. All physical eye trackers have a unique serial number...
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_gaze_output_frequency(TobiiResearchEyeTracker *eyetracker, float *gaze_output_frequency)
Gets the gaze output frequency of the eye tracker.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_display_area(TobiiResearchEyeTracker *eyetracker, const TobiiResearchDisplayArea *display_area)
Sets the display area of the eye tracker. It is strongly recommended to use Eye Tracker Manager to ca...
Definition: tobii_research_eyetracker.h:55
TobiiResearchPoint3D right
Definition: tobii_research_eyetracker.h:267
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_eye_tracking_modes(TobiiResearchEyeTrackingModes *modes)
Free memory allocation for the eye tracking modes received via tobii_research_get_all_eye_tracking_mo...
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_model(TobiiResearchEyeTracker *eyetracker, char **model)
Gets the model of the eye tracker.
Definition: tobii_research.h:388
TobiiResearchPoint3D back_upper_left
Definition: tobii_research_eyetracker.h:95
Definition: tobii_research_eyetracker.h:217
TobiiResearchPoint3D front_upper_right
Definition: tobii_research_eyetracker.h:120
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_hmd_lens_configuration(TobiiResearchEyeTracker *eyetracker, TobiiResearchHMDLensConfiguration *lens_configuration)
Gets the current lens configuration of the HMD based eye tracker. The lens configuration describes ho...
Definition: tobii_research_eyetracker.h:45
Definition: tobii_research_eyetracker.h:135
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_apply_licenses(TobiiResearchEyeTracker *eyetracker, const void **license_key, size_t *license_keys_size, TobiiResearchLicenseValidationResult *validation_results, size_t number_of_licenses)
Apply one or more licenses to unlock features of the eye tracker.
size_t mode_count
Definition: tobii_research_eyetracker.h:253
TobiiResearchPoint3D back_lower_right
Definition: tobii_research_eyetracker.h:90
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_gaze_output_frequencies(TobiiResearchGazeOutputFrequencies *frequencies)
Free memory allocation for the gaze output frequencies received via tobii_research_free_gaze_output_f...
Definition: tobii_research_eyetracker.h:170
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_track_box(TobiiResearchEyeTracker *eyetracker, TobiiResearchTrackBox *track_box)
Gets the track box of the eye tracker.
Generic SDK functions.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_capabilities(TobiiResearchEyeTracker *eyetracker, TobiiResearchCapabilities *capabilities)
Gets the capabilities of the device.
TobiiResearchPoint3D back_upper_right
Definition: tobii_research_eyetracker.h:100
Definition: tobii_research_eyetracker.h:65
float width
Definition: tobii_research_eyetracker.h:211
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_gaze_output_frequency(TobiiResearchEyeTracker *eyetracker, float gaze_output_frequency)
Sets the gaze output frequency of the eye tracker.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_all_eye_tracking_modes(TobiiResearchEyeTracker *eyetracker, TobiiResearchEyeTrackingModes **modes)
Gets a all eye tracking modes supported by the eye tracker.
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_eye_tracking_mode(TobiiResearchEyeTracker *eyetracker, const char *eye_tracking_mode)
Sets the eye tracking mode of the eye tracker.
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:38
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_all_gaze_output_frequencies(TobiiResearchEyeTracker *eyetracker, TobiiResearchGazeOutputFrequencies **frequencies)
Gets an array of gaze output frequencies supported by the eye tracker.
TobiiResearchPoint3D front_lower_right
Definition: tobii_research_eyetracker.h:110
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_hmd_lens_configuration(TobiiResearchEyeTracker *eyetracker, const TobiiResearchHMDLensConfiguration *lens_configuration)
Sets the lens configuration of the HMD based eye tracker. The lens configuration describes how the le...
float height
Definition: tobii_research_eyetracker.h:196
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_display_area(TobiiResearchEyeTracker *eyetracker, TobiiResearchDisplayArea *display_area)
Gets the size and corners of the display area.
size_t size
Definition: tobii_research_eyetracker.h:225
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_calibration_data(TobiiResearchCalibrationData *data)
Free memory allocation for the calibration data received via tobii_research_retrieve_calibration_data...
char ** modes
Definition: tobii_research_eyetracker.h:249
TobiiResearchPoint3D back_lower_left
Definition: tobii_research_eyetracker.h:85
Definition: tobii_research_eyetracker.h:175
#define TOBII_RESEARCH_API
Definition: tobii_research.h:37
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_device_name(TobiiResearchEyeTracker *eyetracker, char **device_name)
Gets the name of the eye tracker.
Definition: tobii_research_eyetracker.h:155
Definition: tobii_research_eyetracker.h:259
TobiiResearchPoint3D bottom_left
Definition: tobii_research_eyetracker.h:186
Definition: tobii_research_eyetracker.h:160
TobiiResearchPoint3D front_upper_left
Definition: tobii_research_eyetracker.h:115