Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Types | Public Member Functions | List of all members
SR::HeadPoseStream Class Reference

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...
 

Detailed Description

Stream of SR_headPose objects.

Connects an HeadPoseTracker Sense to a HeadPoseListener object.

Member Typedef Documentation

◆ Frame

Constructor & Destructor Documentation

◆ HeadPoseStream()

SR::HeadPoseStream::HeadPoseStream ( HeadPoseTracker sense,
HeadPoseListener listener 
)

Construct a new HeadPoseStream.

Parameters
senserefers to the HeadPoseTracker providing updates
listenerrefers to the HeadPoseListener receiving updates

Called by the HeadPoseTracker when requested for an HeadPoseListener through an openHeadPoseStream call.

◆ ~HeadPoseStream()

SR::HeadPoseStream::~HeadPoseStream ( )

Member Function Documentation

◆ close()

void SR::HeadPoseStream::close ( )

Close the stream. (Called by sense)

◆ stopListening()

void SR::HeadPoseStream::stopListening ( )

Stop listening and notify sense to stop sending new frames. (Called by listener)

◆ update()

void SR::HeadPoseStream::update ( Frame frame)

Send new frame to listener.

Parameters
framerepresents a single update

The documentation for this class was generated from the following file: