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