Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Sense class which provides predictive weaver position tracking functionality. More...
#include <predictingweavertracker.h>
Public Member Functions | |
PredictingWeaverTracker (EyeTracker *rawEyeTracker) | |
Constructs a PredictingWeaverTracker. More... | |
~PredictingWeaverTracker () | |
void | predict (uint64_t latency, SR_weaverPosition &output) |
Predict for a certain latency and trigger stream output Should not be used directly, for weaving use DX11Weaver/DX12Weaver/GLWeaver instead. More... | |
void | predict (uint64_t latency) |
Predict for a certain latency and trigger stream output Should not be used directly, for weaving use DX11Weaver/DX12Weaver/GLWeaver instead. More... | |
virtual std::string | getName () override |
Return the name of the sense. More... | |
virtual std::string | getDescription () override |
Return a description of the sense. More... | |
virtual void | start () override |
Start continuous updates, default behaviour is defined in the updater() function. More... | |
virtual void | stop () override |
Stop continuous updates. More... | |
virtual std::shared_ptr< WeaverPositionStream > | openWeaverPositionStream (WeaverPositionListener *listener) override |
Creates a WeaverPositionStream for listener to be connected to. More... | |
virtual void | streamClosed (WeaverPositionStream *stream) override |
Closes a specific WeaverPositionStream. More... | |
virtual void | accept (const SR_eyePair &frame) override |
Receives SR_eyePair to filter and use in predictions. More... | |
Public Member Functions inherited from SR::Sense | |
void | setCalibration (Transformation calibration) |
Sets a Transformation object to represent the sense's calibration with respect to the display. More... | |
Transformation | getCalibration () |
Gets callibration. More... | |
virtual | ~Sense () |
Ensures the proper destruction of the sense implementation. More... | |
Static Public Member Functions | |
static PredictingWeaverTracker * | create (SRContext &context) |
Returns a class of PredictingWeaverTracker. More... | |
Static Public Member Functions inherited from SR::WeaverTracker | |
static WeaverTracker * | create (SRContext &context) |
Creates a functional WeaverTracker instance. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SR::Sense | |
Transformation | calibration |
Sense class which provides predictive weaver position tracking functionality.
SR::PredictingWeaverTracker::PredictingWeaverTracker | ( | EyeTracker * | rawEyeTracker | ) |
Constructs a PredictingWeaverTracker.
SR::PredictingWeaverTracker::~PredictingWeaverTracker | ( | ) |
|
overridevirtual |
Receives SR_eyePair to filter and use in predictions.
frame | of incoming SR_eyePair |
Implements SR::EyePairListener.
|
static |
Returns a class of PredictingWeaverTracker.
Only one PredictingWeaverTracker 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.
context | to contain the PredictingWeaverTracker |
|
overridevirtual |
Return a description of the sense.
Implements SR::Sense.
|
overridevirtual |
Return the name of the sense.
Implements SR::Sense.
|
overridevirtual |
Creates a WeaverPositionStream for listener
to be connected to.
listener | will receive weaver position updates from now on |
Implements SR::WeaverTracker.
void SR::PredictingWeaverTracker::predict | ( | uint64_t | latency | ) |
Predict for a certain latency and trigger stream output Should not be used directly, for weaving use DX11Weaver/DX12Weaver/GLWeaver instead.
Listeners will receive a new SR_weaverPosition after predict is called
uint64_t | latency in microseconds to predict for |
void SR::PredictingWeaverTracker::predict | ( | uint64_t | latency, |
SR_weaverPosition & | output | ||
) |
Predict for a certain latency and trigger stream output Should not be used directly, for weaving use DX11Weaver/DX12Weaver/GLWeaver instead.
Listeners will receive a new SR_weaverPosition after predict is called
uint64_t | latency in microseconds to predict for |
SR_weaverPosition | to output |
|
overridevirtual |
Start continuous updates, default behaviour is defined in the updater() function.
Implements SR::Sense.
|
overridevirtual |
Stop continuous updates.
Implements SR::Sense.
|
overridevirtual |
Closes a specific WeaverPositionStream.
stream | will no longer supply weaverposition updates |
Implements SR::WeaverTracker.