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