C# Class ATUAV_RT.FixationDetector

GazeDataHandler that detects fixations. GazeDataReceived method must be subscribed to gaze data events for fixations to be detected. Fixation start, update and end events can be subscribed to through the FixationDetector property. FixDetector written by Oleg Špakov at the University of Tampere in Tampere, Finland. http://www.sis.uta.fi/~csolsp/projects.php Documentation available through download link above.
Inheritance: GazeDataSynchronizedHandler
Show file Open project: ATUAV/ATUAV Class Usage Examples

Public Properties

Property Type Description
SCREEN_HEIGHT double
SCREEN_WIDTH double

Public Methods

Method Description
FixationDetector ( SyncManager syncManager ) : System

Initializes fixation detector to Tobii Studio default

Protected Methods

Method Description
GazeDataReceivedSynchronized ( object sender, GazeDataEventArgs e ) : void

Forwards 2D gaze points to fixation detector. Gaze points are only forwarded if CPU and Eyetracker clocks are synchronized and validity is < 2. If both eyes are valid gaze point coordinates are averaged, if only one eye is valid, only that eye's gaze point is used.

GazeDataReceivedSynchronized ( object sender, GazeDataItem gazePoint ) : void

Forwards 2D gaze points to fixation detector. Gaze points are only forwarded if CPU and Eyetracker clocks are synchronized and validity is < 2. If both eyes are valid gaze point coordinates are averaged, if only one eye is valid, only that eye's gaze point is used.

Private Methods

Method Description
getTimestampOffset ( int milliseconds ) : int

Sets the first timestamp to be at time zero, offsets all subsequent timestamps accordingly. Only call this method when SyncManager is Synchronized.

Method Details

FixationDetector() public method

Initializes fixation detector to Tobii Studio default
public FixationDetector ( SyncManager syncManager ) : System
syncManager SyncManager
return System

GazeDataReceivedSynchronized() protected method

Forwards 2D gaze points to fixation detector. Gaze points are only forwarded if CPU and Eyetracker clocks are synchronized and validity is < 2. If both eyes are valid gaze point coordinates are averaged, if only one eye is valid, only that eye's gaze point is used.
protected GazeDataReceivedSynchronized ( object sender, GazeDataEventArgs e ) : void
sender object
e GazeDataEventArgs GazeDataItem to process
return void

GazeDataReceivedSynchronized() protected method

Forwards 2D gaze points to fixation detector. Gaze points are only forwarded if CPU and Eyetracker clocks are synchronized and validity is < 2. If both eyes are valid gaze point coordinates are averaged, if only one eye is valid, only that eye's gaze point is used.
protected GazeDataReceivedSynchronized ( object sender, GazeDataItem gazePoint ) : void
sender object
gazePoint GazeDataItem
return void

Property Details

SCREEN_HEIGHT public static property

public static double SCREEN_HEIGHT
return double

SCREEN_WIDTH public static property

public static double SCREEN_WIDTH
return double