Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
predictingweavertracker.h
Go to the documentation of this file.
1
10#pragma once
11
15
16#ifdef WIN32
17# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
18# define DIMENCOSR_API __declspec(dllexport)
19# else
20# define DIMENCOSR_API __declspec(dllimport)
21# endif
22#else
23# define DIMENCOSR_API
24#endif
25
26namespace SR {
27
34 class Impl;
40#pragma warning(suppress: 4251)
41 std::unique_ptr<Impl> pimpl;
42
43public:
53
58
60
70 void predict(uint64_t latency, SR_weaverPosition& output);
71
80 void predict(uint64_t latency);
81
82 // Inherited via WeaverTracker
83 virtual std::string getName() override;
84 virtual std::string getDescription() override;
85 virtual void start() override;
86 virtual void stop() override;
87 virtual std::shared_ptr<WeaverPositionStream> openWeaverPositionStream(WeaverPositionListener* listener) override;
88 virtual void streamClosed(WeaverPositionStream* stream) override;
89
90 // Inherited via EyePairListener
91
97 virtual void accept(const SR_eyePair& frame) override;
98};
99
100}
101
102#undef DIMENCOSR_API
Interface for listening to SR_eyePair updates.
Definition: eyepairlistener.h:20
Sense class which provides face tracking functionality to the SR system.
Definition: eyetracker.h:40
Sense class which provides predictive weaver position tracking functionality.
Definition: predictingweavertracker.h:33
virtual void streamClosed(WeaverPositionStream *stream) override
Closes a specific WeaverPositionStream.
void predict(uint64_t latency)
Predict for a certain latency and trigger stream output Should not be used directly,...
void predict(uint64_t latency, SR_weaverPosition &output)
Predict for a certain latency and trigger stream output Should not be used directly,...
PredictingWeaverTracker(EyeTracker *rawEyeTracker)
Constructs a PredictingWeaverTracker.
virtual void accept(const SR_eyePair &frame) override
Receives SR_eyePair to filter and use in predictions.
virtual std::shared_ptr< WeaverPositionStream > openWeaverPositionStream(WeaverPositionListener *listener) override
Creates a WeaverPositionStream for listener to be connected to.
virtual std::string getDescription() override
Return a description of the sense.
static PredictingWeaverTracker * create(SRContext &context)
Returns a class of PredictingWeaverTracker.
virtual void start() override
Start continuous updates, default behaviour is defined in the updater() function.
virtual void stop() override
Stop continuous updates.
virtual std::string getName() override
Return the name of the sense.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Interface for listening to SR_weaverPosition updates.
Definition: weaverpositionlistener.h:20
Stream of SR_weaverPosition objects.
Definition: weaverpositionstream.h:35
Sense class which provides weave tracking functionality to the SR system.
Definition: weavertracker.h:40
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: predictingweavertracker.h:23
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:28
C-compatible struct containing the weaver position.
Definition: weaverposition.h:20