Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
weaverpositionstream.h
Go to the documentation of this file.
1
10#pragma once
11#include "weaverposition.h"
13
14#ifdef WIN32
15# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
16# define DIMENCOSR_API __declspec(dllexport)
17# else
18# define DIMENCOSR_API __declspec(dllimport)
19# endif
20#else
21# define DIMENCOSR_API
22#endif
23
24namespace SR {
25
26class WeaverTracker; //forward declaration
27
36private:
37 class Impl;
38 Impl* pimpl;
39public:
41
51
56
60 void close();
61
67 void update(Frame frame);
68};
69
70}
71
72#undef DIMENCOSR_API
Interface for listening to SR_weaverPosition updates.
Definition: weaverpositionlistener.h:20
Stream of SR_weaverPosition objects.
Definition: weaverpositionstream.h:35
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
WeaverPositionStream(WeaverTracker *sense, WeaverPositionListener *listener)
Construct a new WeaverPositionStream.
void update(Frame frame)
Send new frame to listener.
void close()
Close the stream. (Called by sense)
Sense class which provides weave tracking functionality to the SR system.
Definition: weavertracker.h:40
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct containing the weaver position.
Definition: weaverposition.h:20
#define DIMENCOSR_API
Definition: weaverpositionstream.h:21