Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
headstream.h
Go to the documentation of this file.
1
10#pragma once
11#include "headlistener.h"
12#include <memory>
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 HeadTracker; //forward declaration
27
36private:
37 class Impl;
43#pragma warning(suppress: 4251)
44 std::unique_ptr<Impl> pimpl;
45public:
46 using Frame = SR_head;
47
58
63
67 void close();
68
74 void update(Frame& frame);
75};
76
77}
78
79#undef DIMENCOSR_API
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition: headlistener.h:21
Stream of SR_head objects.
Definition: headstream.h:35
HeadStream(HeadTracker *sense, HeadListener *listener)
Construct a new HeadStream.
void update(Frame &frame)
Send new frame to listener.
void close()
Close the stream. (Called by sense)
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
Sense class which provides face tracking functionality to the SR system.
Definition: headtracker.h:36
#define DIMENCOSR_API
Definition: headstream.h:21
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct containing the position of head.
Definition: head.h:43