Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Stream of SR_eyePair objects. More...
#include <eyepairstream.h>
Public Types | |
using | Frame = SR_eyePair |
Public Member Functions | |
EyePairStream (EyeTracker *sense, EyePairListener *listener) | |
Construct a new EyePairStream. More... | |
~EyePairStream () | |
void | stopListening () |
Stop listening and notify sense to stop sending new frames. (Called by listener) More... | |
void | close () |
Close the stream. (Called by sense) More... | |
void | update (Frame frame) |
Send new frame to listener. More... | |
Stream of SR_eyePair objects.
Connects an EyeTracker Sense to a EyePairListener object.
using SR::EyePairStream::Frame = SR_eyePair |
SR::EyePairStream::EyePairStream | ( | EyeTracker * | sense, |
EyePairListener * | listener | ||
) |
Construct a new EyePairStream.
sense | refers to the EyeTracker providing updates |
listener | refers to the EyePairListener receiving updates |
Called by the EyeTracker when requested for an EyePairListener through an openEyePairStream call.
SR::EyePairStream::~EyePairStream | ( | ) |
void SR::EyePairStream::close | ( | ) |
Close the stream. (Called by sense)
void SR::EyePairStream::stopListening | ( | ) |
Stop listening and notify sense to stop sending new frames. (Called by listener)
void SR::EyePairStream::update | ( | Frame | frame | ) |
Send new frame to listener.
frame | represents a single update |