Sense class which provides predictive eye tracking functionality.
More...
#include <predictingeyetracker.h>
Sense class which provides predictive eye tracking functionality.
◆ PredictingEyeTracker()
SR::PredictingEyeTracker::PredictingEyeTracker |
( |
EyeTracker * |
rawEyeTracker | ) |
|
◆ accept()
virtual void SR::PredictingEyeTracker::accept |
( |
const SR_eyePair & |
frame | ) |
|
|
overridevirtual |
◆ create()
Returns a class of PredictingEyeTracker.
Only one PredictingEyeTracker can be created per context, if one has already been created a pointer to that one is returned. If one had not been created yet, a new one will be added to the context.
- Parameters
-
◆ getDescription()
virtual std::string SR::PredictingEyeTracker::getDescription |
( |
| ) |
|
|
overridevirtual |
Return a description of the sense.
Implements SR::Sense.
◆ getName()
virtual std::string SR::PredictingEyeTracker::getName |
( |
| ) |
|
|
overridevirtual |
Return the name of the sense.
Implements SR::Sense.
◆ openEyePairStream()
◆ predict() [1/2]
void SR::PredictingEyeTracker::predict |
( |
uint64_t |
latency | ) |
|
Predict for a certain latency and trigger stream output.
Listeners will receive a new SR_eyePair after predict is called
- Parameters
-
uint64_t | latency in microseconds to predict for |
◆ predict() [2/2]
void SR::PredictingEyeTracker::predict |
( |
uint64_t |
latency, |
|
|
SR_eyePair & |
output |
|
) |
| |
Predict for a certain latency, output an SR_eyePair and trigger stream output.
Listeners will receive a new SR_eyePair after predict is called
- Parameters
-
uint64_t | latency in microseconds to predict for |
SR_eyePair | to output |
◆ setFaceLostDelay()
void SR::PredictingEyeTracker::setFaceLostDelay |
( |
uint64_t |
delay | ) |
|
Set the delay from the moment the eyetracker loses the user to the moment the eye position for both eyes will start moving to the default position.
The default position of the eyes is (0, 100, 600). As it is the same for the left and right eye, this effectively causes a transition from 3D to 2D. However, the lens will remain on and eyetracking will remain active, continuously looking for a new user to track.
- Parameters
-
uint64_t | delay in milliseconds |
◆ start()
virtual void SR::PredictingEyeTracker::start |
( |
| ) |
|
|
overridevirtual |
Start continuous updates, default behaviour is defined in the updater() function.
Implements SR::Sense.
◆ stop()
virtual void SR::PredictingEyeTracker::stop |
( |
| ) |
|
|
overridevirtual |
Stop continuous updates.
Implements SR::Sense.
◆ streamClosed()
virtual void SR::PredictingEyeTracker::streamClosed |
( |
EyePairStream * |
stream | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: