|
GazeTracker
|
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... | |
| 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.
1.8.10