LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
eyepairstream.h
Go to the documentation of this file.
1
5#pragma once
6#include "eyepair.h"
7#include "eyepairlistener.h"
8#include <memory>
9
10#ifdef WIN32
11# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
12# define DIMENCOSR_API __declspec(dllexport)
13# else
14# define DIMENCOSR_API __declspec(dllimport)
15# endif
16#else
17# define DIMENCOSR_API
18#endif
19
20namespace SR {
21
22class EyeTracker; //forward declaration
23
32private:
33 class Impl;
39#pragma warning(suppress: 4251)
40 std::unique_ptr<Impl> pimpl;
41public:
43
54
59
63 void close();
64
70 void update(Frame frame);
71};
72
73}
74
75#undef DIMENCOSR_API
Interface for listening to SR_eyePair updates.
Definition: eyepairlistener.h:15
Stream of SR_eyePair objects.
Definition: eyepairstream.h:31
EyePairStream(EyeTracker *sense, EyePairListener *listener)
Construct a new EyePairStream.
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
void close()
Close the stream. (Called by sense)
void update(Frame frame)
Send new frame to listener.
Sense class which provides face tracking functionality to the SR system.
Definition: eyetracker.h:35
#define DIMENCOSR_API
Definition: eyepairstream.h:17
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:23