16# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
17# define DIMENCOSR_API __declspec(dllexport)
19# define DIMENCOSR_API __declspec(dllimport)
40#pragma warning(suppress: 4251)
41 std::unique_ptr<Impl> pimpl;
90 virtual void stop()
override;
Interface for listening to SR_eyePair updates.
Definition: eyepairlistener.h:20
Stream of SR_eyePair objects.
Definition: eyepairstream.h:36
Sense class which provides face tracking functionality to the SR system.
Definition: eyetracker.h:40
Sense class which provides predictive eye tracking functionality.
Definition: predictingeyetracker.h:33
virtual std::string getName() override
Return the name of the sense.
virtual std::string getDescription() override
Return a description of the sense.
virtual std::shared_ptr< EyePairStream > openEyePairStream(EyePairListener *listener) override
Creates a EyePairStream for listener to be connected to.
virtual void start() override
Start continuous updates, default behaviour is defined in the updater() function.
PredictingEyeTracker(EyeTracker *rawEyeTracker)
Constructs a PredictingEyeTracker.
virtual void streamClosed(EyePairStream *stream) override
Closes a specific EyePairStream.
void predict(uint64_t latency, SR_eyePair &output)
Predict for a certain latency, output an SR_eyePair and trigger stream output.
void predict(uint64_t latency)
Predict for a certain latency and trigger stream output.
virtual void stop() override
Stop continuous updates.
virtual void accept(const SR_eyePair &frame) override
Receives SR_eyePair to filter and use in predictions.
static PredictingEyeTracker * create(SRContext &context)
Returns a class of PredictingEyeTracker.
void setFaceLostDelay(uint64_t delay)
Set the delay from the moment the eyetracker loses the user to the moment the eye position for both e...
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: predictingeyetracker.h:22
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:28