|
enum | DeviceEvent {
SCREEN_CHANGED,
CONNECTION_CLOSED,
DEVICE_CONNECTED,
DEVICE_DISCONNECTED,
TRACKING_STOPPED
} |
| event reated to the state of the eye tracker More...
|
|
enum | ReturnConnect { SUCCESS,
FAILURE,
VERSION_MISMATCH
} |
| return values of connect( ) More...
|
|
enum | ReturnSetActiveScreen { SUCCESS,
NOT_FOUND,
FAILURE
} |
| return values of setActiveScreen( ) More...
|
|
enum | ReturnStreamEyeImages { SUCCESS,
NOT_CONNECTED,
REMOTE_CONNECTION,
FAILURE
} |
| Return values of the streamEyeImages() function. More...
|
|
enum | ReturnNextData { SUCCESS,
TIMEOUT,
CONNECTION_CLOSED
} |
| Return values of the getNextEvent/getNextGazeSample functions. More...
|
|
enum | ReturnStart {
SUCCESS,
NOT_CONNECTED,
DEVICE_MISSING,
INVALID_FRAMERATE_MODE,
ALREADY_RUNNING_DIFFERENT_FRAMERATE,
FAILURE
} |
| return values of requestTracking( ) More...
|
|
enum | ReturnCalibrate {
SUCCESS,
NOT_CONNECTED,
NOT_TRACKING,
INVALID_CALIBRATION_MODE,
ALREADY_BUSY,
FAILURE
} |
| return values of calibrate( ) More...
|
|
enum | ReturnValidate {
SUCCESS,
NOT_CONNECTED,
NOT_TRACKING,
NOT_CALIBRATED,
ALREADY_BUSY,
FAILURE
} |
| return values of validate( ) More...
|
|
|
EL_EXPORT STDCALL | ELApi (const char *clientName) |
| constructor More...
|
|
EL_EXPORT STDCALL | ~ELApi () |
| destructor
|
|
| ELApi (const ELApi &)=delete |
|
ELApi & | operator= (const ELApi &)=delete |
|
| ELApi (ELApi &&)=delete |
|
ELApi & | operator= (ELApi &&)=delete |
|
EL_EXPORT void STDCALL | registerDeviceEventListener (ELDeviceEventCallback *callback) |
| Registers the event listener. An existing listener will be overwritten. More...
|
|
EL_EXPORT void STDCALL | registerGazeEventListener (ELGazeEventCallback *callback) |
| Registers the event listener. An existing listener will be overwritten. More...
|
|
EL_EXPORT void STDCALL | registerGazeSampleListener (ELGazeSampleCallback *callback) |
| Registers the gaze sample listener. An existing listener will be overwritten. More...
|
|
EL_EXPORT void STDCALL | registerEyeImageListener (ELEyeImageCallback *callback) |
| Registers the eye image listener. An existing listener will be overwritten. More...
|
|
EL_EXPORT ReturnConnect STDCALL | connect () |
| initialize connection to the server (method is blocking until connection established). The connection is only established for a local server (running on this machine). For connections to a remote server, More...
|
|
EL_EXPORT ReturnConnect STDCALL | connectRemote (ServerInfo server) |
| initialize connection to a remote server (method is blocking until connection established) More...
|
|
EL_EXPORT int32_t STDCALL | requestServerList (int32_t blockingDurationMS, ServerInfo *serverList, int32_t serverListLength) |
| Ping all running EyeLogic servers in the local network and wait some time for their response. More...
|
|
EL_EXPORT void STDCALL | disconnect () |
| closes connection to the server
|
|
EL_EXPORT bool STDCALL | isConnected () const |
| whether a connection to the server is established
|
|
EL_EXPORT void STDCALL | getActiveScreen (ScreenConfig &screenConfig) const |
| obtain configuration of active screen
|
|
EL_EXPORT int32_t STDCALL | getAvailableScreens (ScreenConfig *screenConfig, int32_t numScreenConfigs) const |
| Get a list of screens connected to the local machine. If there are more screens than 'numScreenConfigs' found, then only the first 'numScreenConfigs' ones are filled. More...
|
|
EL_EXPORT ReturnSetActiveScreen STDCALL | setActiveScreen (const char *screenID, DeviceGeometry deviceGeometry) |
| Make a screen connected to this machine to the active screen. More...
|
|
EL_EXPORT void STDCALL | getDeviceConfig (DeviceConfig &deviceConfig) const |
| obtain configuration of active device
|
|
EL_EXPORT ReturnStreamEyeImages STDCALL | streamEyeImages (bool enable) |
| Enabled/disables eye image stream. If enabled, eye images are received from eye image listeners,. More...
|
|
EL_EXPORT ReturnNextData STDCALL | getNextDeviceEvent (DeviceEvent &event, int32_t timeoutMillis) |
| Obtains the next unread event or blocks until a new event occurs or the given timeout is reached. More...
|
|
EL_EXPORT ReturnNextData STDCALL | getNextGazeSample (ELGazeSample &gazeSample, int32_t timeoutMillis) |
| Obtains the next unread gazeSample or blocks until a new GazeSample is received or the given timeout is reached. More...
|
|
EL_EXPORT ReturnNextData STDCALL | getNextEyeImage (ELEyeImage &eyeImage, int32_t timeoutMillis) |
| Obtains the next unread eye image or blocks until a new eye image is received or the given timeout is reached. More...
|
|
EL_EXPORT ReturnStart STDCALL | requestTracking (int32_t frameRateModeInd) |
| request tracking More...
|
|
EL_EXPORT void STDCALL | unrequestTracking () |
| unrequest tracking More...
|
|
EL_EXPORT ReturnCalibrate STDCALL | calibrate (int32_t calibrationModeInd) |
| perform calibration (method is blocking until calibration finished) More...
|
|
EL_EXPORT void STDCALL | abortCalibValidation () |
| abort a running calibration / validation
|
|
EL_EXPORT ReturnValidate STDCALL | validate (ELValidationResult &validationResult) |
| perform validation (method is blocking until validation finished) More...
|
|
main class for communication with the EyeLogic server
Obtains the next unread event or blocks until a new event occurs or the given timeout is reached.
The last incoming event is buffered internally and can be obtained by calling this method in a consecutive order. If there is no new event, the method blocks until an event occurs or the given timeout is reached. The method returns SUCCESS if and only if a new event is provided which was not returned before. Therefore, by checking the return value, you can assure to not handle any event twice.
If you want to catch events in a loop, be careful to not wait too long between the calls to this method. Otherwise, you may miss events. If you want to be 100% sure to not miss any event, consider to use the ELDeviceEventCallback mechanism.
- See also
- registerEventListener
- Parameters
-
event | If this method returns SUCCESS, this data structure is filled with the new (yet unhandled) event. In all other cases, this data structure is filled with the event which was returned last. |
timeoutMillis | duration in milliseconds, method returns at the latest after this time. May be 0 if the method should return immediatly. |
- Returns
- whether an event was received (SUCCESS) or the method terminated without a new event
Obtains the next unread gazeSample or blocks until a new GazeSample is received or the given timeout is reached.
The last incoming GazeSample is buffered internally and can be obtained by calling this method in a consecutive order. If there is no new GazeSample, the method blocks until a GazeSample arrives or the given timeout is reached. The method returns SUCCESS if and only if a new GazeSample is provided which was not returned before. Therefore, by checking the return value, you can assure to not handle any GazeSample twice.
If you want to catch GazeSamples in a loop, be careful to not wait too long between the calls to this method (at least once per frame). Otherwise, you may miss GazeSamples. If you want to be 100% sure to not miss any GazeSample, consider to use the ELGazeSampleCallback mechanism.
- See also
- registerGazeSampleListener
- Parameters
-
gazeSample | If this method returns SUCCESS, this data structure is filled with the new (yet unhandled) GazeSample. In all other cases, this data structure is filled with the GazeSample which was returned last. |
timeoutMillis | duration in milliseconds, method returns at the latest after this time. May be 0 if the method should return immediatly. |
- Returns
- whether a GazeSample was received (SUCCESS) or the method terminated without a new GazeSample