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