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

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

Detailed Description

Stream of SR_weaverPosition objects.

Connects an WeaverTracker Sense to a WeaverPositionListener object.

Member Typedef Documentation

◆ Frame

Constructor & Destructor Documentation

◆ WeaverPositionStream()

SR::WeaverPositionStream::WeaverPositionStream ( WeaverTracker sense,
WeaverPositionListener listener 
)

Construct a new WeaverPositionStream.

Parameters
senserefers to the WeaverTracker providing updates
listenerrefers to the WeaverPositionListener receiving updates

Called by the WeaverTracker when requested for an WeaverPositionListener through an openWeaverPositionStream call.

Member Function Documentation

◆ close()

void SR::WeaverPositionStream::close ( )

Close the stream. (Called by sense)

◆ stopListening()

void SR::WeaverPositionStream::stopListening ( )

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

◆ update()

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

Send new frame to listener.

Parameters
framerepresents a single update

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