GazeManager ClassC# SDK for The Eye Tribe Tracker
This singleton is the main entry point of the TET C# Client. It manages all routines associated to gaze control. Using this class a developer can 'calibrate' an eye tracking setup and attach listeners to recieve live data streams of GazeData updates.
Inheritance Hierarchy
System Object
  TETCSharpClient GazeManager

Namespace: TETCSharpClient
Assembly: TETCSharpClient (in TETCSharpClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class GazeManager : IGazeApiReponseListener, 
	IGazeApiConnectionListener

The GazeManager type exposes the following members.

Methods
  NameDescription
Public methodActivate(GazeManager ApiVersion, GazeManager ClientMode)
Activates TET C# Client and all underlying routines using default values. Should be called _only_ once when an application starts up. Calling thread will be locked during initialization.
Public methodActivate(GazeManager ApiVersion, GazeManager ClientMode, String, Int32)
Activates TET C# Client and all underlying routines. Should be called _only_ once when an application starts up. Calling thread will be locked during initialization.
Public methodAddCalibrationResultListener
Adds a ICalibrationResultListener to the TET C# client. This listener will recieve updates about calibration state changes.
Public methodAddConnectionStateListener
Adds a IConnectionStateListener to the TET C# client. This listener will recieve updates about change in connection state to the EyeTribe Server.
Public methodAddGazeListener
Adds a IGazeListener to the TET C# client. This listener will recieve GazeData updates when available
Public methodAddTrackerStateListener
Adds a ITrackerStateListener to the TET C# client. This listener will recieve updates about change of active screen index.
Public methodCalibrationAbort
Cancels an ongoing calibration process.
Public methodCalibrationClear
Resets calibration state, cancelling any previous calibrations.
Public methodCalibrationPointEnd
Called for every calibration point during a calibration process. This should be called 1-2 seconds after CalibrationPointStart(Int32, Int32) . The calibration process must be initiated by a call to CalibrationStart(Int16, ICalibrationProcessHandler) before calling this.
Public methodCalibrationPointStart
Called for every calibration point during a calibration process. This call should be followed by a call to CalibrationPointEnd  1-2 seconds later.

The calibration process must be initiated by a call to CalibrationStart(Int16, ICalibrationProcessHandler) before calling this.
Public methodCalibrationStart
Initiate a new calibration process. Must be called before any call to CalibrationPointStart(Int32, Int32) or CalibrationPointEnd  .

Any previous (and possible running) calibration process must be completed or aborted before calling this.

A full calibration process consists of a number of calls to CalibrationPointStart(Int32, Int32) and CalibrationPointEnd  matching the total number of clibration points set by the numCalibrationPoints parameter.
Public methodClearListeners
Clear all attached listeners, clears GazeData queue and stop broadcating
Public methodDeactivate
Deactivates TET C# Client and all under lying routines. Should be called when a application closes down.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNumCalibrationResultListeners
Gets current number of attached ICalibrationResultListener instances.
Public methodGetNumConnectionStateListeners
Gets current number of attached IConnectionStateListener instances.
Public methodGetNumGazeListeners
Gets current number of attached IGazeListener instances.
Public methodGetNumTrackerStateListeners
Gets current number of attached ITrackerStateListener instances.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodHasCalibrationResultListener
Checkes if a given instance of ICalibrationResultListener is currently attached.
Public methodHasConnectionStateListener
Checkes if a given instance of IConnectionStateListener is currently attached.
Public methodHasGazeListener
Checkes if a given instance of IGazeListener is currently attached.
Public methodHasTrackerStateListener
Checkes if a given instance of ITrackerStateListener is currently attached.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnGazeApiConnectionStateChanged
Internal callback method. Should not be called directly.
Public methodOnGazeApiResponse
Internal callback method. Should not be called directly.
Public methodRemoveCalibrationResultListener
Remove a ICalibrationResultListener from the TET C# client.
Public methodRemoveConnectionStateListener
Remove a IConnectionStateListener from the TET C# client.
Public methodRemoveGazeListener
Remove a IGazeListener from the TET C# client.
Public methodRemoveTrackerStateListener
Remove a ITrackerStateListener from the TET C# client.
Public methodSwitchScreen
Switch currently active screen. Enabled the user to take control of which screen is used for calibration and gaze control.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
Properties
  NameDescription
Protected propertyclientMode
Current running mode of this client
Public propertyFramerate
Number of frames per second delivered by Tracker Server
Public propertyStatic memberInstance
Public propertyIsActivated
Is the client library connected to Tracker Server and initialized?
Public propertyIsCalibrated
Is the client already calibrated?
Public propertyIsCalibrating
Is the client in the middle of a calibration process?
Public propertyIsConnectedObsolete.
Is the client library connected to Tracker Server?
Public propertyLastCalibrationResult
The lastest performed and valid CalibrationResult. Note the result is not nessesarily positive and clients should evaluate the result before using.
Public propertyScreenIndex
Index of currently used screen. Used for multiscreen setups.
Public propertyScreenPhysicalHeight
Physical height of screen in meters
Public propertyScreenPhysicalWidth
Physical width of screen in meters
Public propertyScreenResolutionHeight
Height of screen resolution in pixels
Public propertyScreenResolutionWidth
Width of screen resolution in pixels
Public propertyTrackerstate
The current state of the connected TrackerDevice.
Protected propertyversion
Current API version compliance of Tracker Server
Top
See Also