|
def | __init__ (self, str clientName) |
| constructor More...
|
|
def | __del__ (self) |
| destructor
|
|
def | registerGazeSampleCallback (self, GazeSampleCallback sampleCallback) |
| registers sample callback listener More...
|
|
def | registerEyeImageCallback (self, EyeImageCallback eyeImageCallback) |
| registers eye image callback listener More...
|
|
def | registerDeviceEventCallback (self, DeviceEventCallback deviceEventCallback) |
| registers event callback listener More...
|
|
ReturnConnect | connect (self) |
| initialize connection to the server (method is blocking until connection established). More...
|
|
ReturnConnect | connectRemote (self, ServerInfo server) |
| initialize connection to a remote server (method is blocking until connection established) More...
|
|
[ServerInfo] | requestServerList (self, c_int32 blockingDurationMS, c_int32 maxNumServer) |
| Ping all running EyeLogic servers in the local network and wait some time for their response. More...
|
|
def | disconnect (self) |
| closes connection to the server
|
|
bool | isConnected (self) |
| whether a connection to the server is established
|
|
ScreenConfig | getActiveScreen (self) |
| get stimulus screen configuration More...
|
|
[ScreenConfig] | getAvailableScreens (self) |
| Get a list of screens connected to the local machine. More...
|
|
ReturnSetActiveScreen | setActiveScreen (self, str id, DeviceGeometry deviceGeometry) |
| Make a screen connected to this machine to the active screen. More...
|
|
DeviceConfig | getDeviceConfig (self) |
| get configuration of actual eye tracker device More...
|
|
ReturnStreamEyeImages | streamEyeImages (self, c_bool enable) |
| Enabled/disables eye image stream. More...
|
|
(ReturnNextData, ELDeviceEvent) | getNextDeviceEvent (self, c_int timeoutMillis) |
| Obtains the next unread event or blocks until a new event occurs or the given timeout is reached. More...
|
|
(ReturnNextData, ELGazeSample) | getNextGazeSample (self, c_int timeoutMillis) |
| Obtains the next unread gazeSample or blocks until a new GazeSample is received or the given timeout is reached. More...
|
|
(ReturnNextData, ELEyeImage) | getNextEyeImage (self, c_int timeoutMillis) |
| Obtains the next unread eye image or blocks until a new eye image is received or the given timeout is reached. More...
|
|
ReturnStart | requestTracking (self, c_int frameRateModeInd) |
| request tracking More...
|
|
def | unrequestTracking (self) |
| unrequest tracking More...
|
|
def | calibrate (self, c_int calibrationModeInd) |
| perform calibration (method is blocking until calibration finished) More...
|
|
def | calibrateCustom (self, c_int calibrationModeInd, c_int backgroundColor, str targetFilename) |
| perform calibration (method is blocking until calibration finished) More...
|
|
def | abortCalibValidation (self) |
| abort a running calibration / validation
|
|
(ReturnValidate, ValidationResult) | validate (self) |
| perform validation (method is blocking until calibration finished) - calibration must be performed prior More...
|
|
(ReturnValidate, ValidationResult) | validateCustom (self, c_int backgroundColor, str targetFilename) |
| perform validation (method is blocking until calibration finished) - calibration must be performed prior 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 ELEventCallback mechanism.
- See also
- registerEventListener
- Parameters
-
timeoutMillis | duration in milliseconds, method returns at the latest after this time. May be 0 if the method should return immediatly. |
- Returns
- first: new (yet unhandled) event. second: whether an event was received (SUCCESS) or the method terminated without a new event
Obtains the next unread eye image or blocks until a new eye image is received or the given timeout is reached.
The last incoming eye image is buffered internally and can be obtained by calling this method in a consecutive order. If there is no new eye image, the method blocks until an eye image is received or the given timeout is reached. The method returns SUCCESS if and only if a new eye image is provided which was not returned before. Therefore, by checking the return value, you can assure to not handle any eye image twice.
If you want to catch EyeImages 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 EyeImages. If you want to be 100% sure to not miss any EyeImages, consider to use the ELEyeImagesCallback mechanism.
- See also
- registerEyeImagesListener
- Parameters
-
timeoutMillis | duration in milliseconds, method returns at the latest after this time. May be 0 if the method should return immediatly. |
- Returns
- first: new (yet unhandled) EyeImages. second: whether an event was received (SUCCESS)
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
-
timeoutMillis | duration in milliseconds, method returns at the latest after this time. May be 0 if the method should return immediatly. |
- Returns
- first: new (yet unhandled) GazeSample. second: whether an event was received (SUCCESS) or the method terminated without a new GazeSample