GazeTracker
Public Member Functions | List of all members
GazeTrackerDoc Class Reference

The document. More...

#include <GazeTrackerDoc.h>

Inherits IMouseHandler.

Public Member Functions

void StartGazeTracking ()
 This method contains the main application loop of the GazeTracker sample application. More...
 
void OnLeftButtonDown (float x, float y)
 This method handles user mouse clicks. More...
 

Detailed Description

The document.

Main application document.

Definition at line 75 of file GazeTrackerDoc.h.

Member Function Documentation

void GazeTrackerDoc::OnLeftButtonDown ( float  x,
float  y 
)

This method handles user mouse clicks.

The method check if the user has clicked on currently displayed calibration point and passes it to the tracker using VisageSDK::VisageTracker::AddGazeCalibrationPoint().

void GazeTrackerDoc::StartGazeTracking ( )

This method contains the main application loop of the GazeTracker sample application.

This method handles initalization of VisageTracker object, initialization of screen space gaze tracking system, calibration of gaze tracking system and rendering of results.

The method initalizes screen space gaze tracking system by calling VisageSDK::VisageTracker::InitOnlineGazeCalibration and reads calibration data by calling Repository::ReadFromFile().

In each iteration of the main application loop method GazeRenderer::Redraw() is called to display the calibration data or the estimated screen space gaze point. Additonally, the latest tracking data is aquired from Observer and displayed on the screen.


The documentation for this class was generated from the following file: