Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
eyepairstream.h
Go to the documentation of this file.
1
10#pragma once
11#include "eyepair.h"
12#include "eyepairlistener.h"
13#include <memory>
14
15#ifdef WIN32
16# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
17# define DIMENCOSR_API __declspec(dllexport)
18# else
19# define DIMENCOSR_API __declspec(dllimport)
20# endif
21#else
22# define DIMENCOSR_API
23#endif
24
25namespace SR {
26
27class EyeTracker; //forward declaration
28
37private:
38 class Impl;
44#pragma warning(suppress: 4251)
45 std::unique_ptr<Impl> pimpl;
46public:
48
59
64
68 void close();
69
75 void update(Frame frame);
76};
77
78}
79
80#undef DIMENCOSR_API
Interface for listening to SR_eyePair updates.
Definition: eyepairlistener.h:20
Stream of SR_eyePair objects.
Definition: eyepairstream.h:36
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:40
#define DIMENCOSR_API
Definition: eyepairstream.h:22
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:28