|
MasterScan
Lab_Matlab_control Master Branch
|
Superclass for objects that read data from an eye tracker.
dotsReadableEye extends the dotsReadable superclass with support for eye trackers that measure x and y point of gaze, and pupil size.
A note about Eye Tracker Coordinates:
dotsReadableEye transforms x and y position data from raw eye tracker coordinates into a user-defined coordinate system that might be more natural, such as degrees of visual angle.
Subclasses
dotsReadableEye itself is not a usable class. Rather, it provides a uniform interface and core functionality for subclasses. Subclasses should redefine the following methods in order to read actual data:
These are from the dotsReadable superclass. Subclasses must also define a new method:
This method should read and return new data from the eye tracker. The raw data will be transformed automatically into user-defined coordinates.

Properties and Events | |
| Property | x |
| the current "x" position of the eye in user-defined coordinates. | |
| Property | y |
| the current "y" position of the eye in user-defined coordinates. | |
| Property | pupil |
| the current pupil size, offset and scaled | |
| Property | time |
| The time of the most-recent sample (in ui time) | |
| Property | sampleFrequency |
| frequency in Hz of eye tracker data samples More... | |
| Property | readEventsOnly = true |
| Flag determining whether only to read event data see readNewData for details. More... | |
| Property | helpers |
| helper objects including screen ensemble | |
| gazeMonitor | |
| Gaze monitor properties. | |
Properties and Events inherited from dotsReadable | |
| Property | isAvailable = false |
| |
| Property | components |
| |
| Property | state |
| |
| Property | history |
| |
| Property | isAutoRead = true |
| |
| Property | eventDefinitions |
| |
| Property | initialEventQueueSize = 100 |
| |
| Property | clockFunction |
| |
| Property | filename |
| |
| Property | filepath |
| |
| Property | recordDuringCalibration = true |
| |
| Property | useGUI = false |
| Flag to use GUI for feedback, etc. | |
| Property | useExistingCalibration = false |
| Flag to skip calibration routine. | |
| Property | calibrationUI |
| Possibly use a keyboard or other UI to help with calibration. | |
| Property | deactivateEventsAtStartTrial =false |
| Flag to deactivate all events at the beginning of each trial. | |
Additional Inherited Members | |
Protected Properties inherited from dotsReadable | |
| Property | eventQueue |
| |
| Property | queueNext |
| |
| Property | queueLast =0 |
| |
| Property | isRecording =false |
| |
| Property | didCalibrate = true |
| Keep track of whether calibration occurs. | |
| Property | defaultEventPrefix = 'event' |
| Default prefix for event names: <prefix>_<componentName> | |
| Property | eventSets |
| Strutures with different named event definitions, in case we want to quickly swap between them. | |
Methods inherited from dotsReadable | |
| self | dotsReadable () |
| |
| initialize (self) | |
| |
| calibrate (self, varargin) | |
More... | |
| record (self, onFlag, filename) | |
More... | |
| reset (self, varargin) | |
| reset device More... | |
| close (self) | |
| |
| delete (self) | |
| |
| read (self) | |
More... | |
| flushData (self, waitForNoEvents) | |
More... | |
| logData (self) | |
More... | |
| stateAtTime | getState (self, time) |
More... | |
| value data | getValue (self, ID) |
More... | |
| event | defineEvent (self, name, varargin) |
More... | |
| defineEventsFromComponents (self, names, varargin) | |
| defineEventsFromComponents More... | |
| defineEventsFromStruct (self, eventStruct, setName, keepExisting, inactivate) | |
| defineEventsFromStruct More... | |
| showActiveEvents (self) | |
| Mostly for debugging. | |
| activateEventSet (self, name) | |
| Swap in a set of events. | |
| activateEvents (self) | |
| Activate all events. More... | |
| deactivateEvents (self) | |
| Deactivate all events. More... | |
| activeFlags | getActiveFlags (self) |
| Get all active flags. | |
| setActiveFlags (self, activeFlags) | |
| Set all active flags from array. | |
| setEventsActiveFlag (self, activateList, deactivateList) | |
| Set/unset activeFlag. More... | |
| name data | getNextEvent (self, isPeek, acceptedEvents) |
More... | |
| lastName lastID names IDs | getHappeningEvent (self, time) |
More... | |
| name waitTime data | waitForEvents (self, eventNames, maxWait) |
| Wait for event(s) | |
| nEvents | getNumberOfEvents (self) |
More... | |
| IDs | getComponentIDs (self) |
More... | |
| ID | getComponentID (self, nameOrID) |
| |
| name | getComponentName (self, nameOrID) |
| |
| indices | getComponentIndicesByID (self, IDs) |
| |
| indices | getComponentIndicesByName (self, names) |
| |
| time | getDeviceTime (self) |
| |
| setDeviceTime (self, val) | |
| |
| startTrial (self, varargin) | |
More... | |
| finishTrial (self, varargin) | |
More... | |
| plotData (self) | |
More... | |
| startTrialDevice (self, varargin) | |
| Overloaded methods. | |
Protected Methods inherited from dotsReadable | |
| isOpen | openDevice (self) |
More... | |
| closeDevice (self) | |
More... | |
| resetDevice (self, varargin) | |
| Reset the device. | |
| status | calibrateDevice (self, varargin) |
More... | |
| isRecording | startRecording (self) |
| |
| isRecording | stopRecording (self) |
| |
| components | openComponents (self) |
More... | |
| closeComponents (self) | |
More... | |
| newData | readNewData (self) |
More... | |
| isEvent | detectEvents (self, data) |
More... | |
| newSize | resizeEventQueue (self, minSize, doClear) |
More... | |
| nEvents | enqueueEvents (self, eventValues) |
More... | |
| eventValue nEvents | dequeueEvent (self, isPeek) |
More... | |
Static Methods inherited from dotsReadable | |
| static isHappening data readable | isEventHappening (readables, eventName) |
More... | |
| static didHappen waitTime data readable name | waitForEvent (readables, eventName, maxWait) |
More... | |
| static data | loadDataFile (filename, varargin) |
| Load data from file. More... | |
| Property sampleFrequency |
frequency in Hz of eye tracker data samples
Subclasses must supply the sample frequency of their eye tracker device.
| Property readEventsOnly = true |
Flag determining whether only to read event data see readNewData for details.
This defaults to 'true' because typically we assume that eye tracking data will be stored separately.
1.8.15