LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
headstream.h
Go to the documentation of this file.
1
5#pragma once
6#include "headlistener.h"
7#include <memory>
8
9#ifdef WIN32
10# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
11# define DIMENCOSR_API __declspec(dllexport)
12# else
13# define DIMENCOSR_API __declspec(dllimport)
14# endif
15#else
16# define DIMENCOSR_API
17#endif
18
19namespace SR {
20
21class HeadTracker; //forward declaration
22
31private:
32 class Impl;
38#pragma warning(suppress: 4251)
39 std::unique_ptr<Impl> pimpl;
40public:
41 using Frame = SR_head;
42
53
58
62 void close();
63
69 void update(Frame& frame);
70};
71
72}
73
74#undef DIMENCOSR_API
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition: headlistener.h:16
Stream of SR_head objects.
Definition: headstream.h:30
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:31
#define DIMENCOSR_API
Definition: headstream.h:16
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible struct containing the position of head.
Definition: head.h:38