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