LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
headposestream.h
Go to the documentation of this file.
1
5#pragma once
6#include "headposelistener.h"
7#include "head.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 HeadPoseTracker; //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_headPose updates This interface is supported from Eye Tracker version 1...
Definition: headposelistener.h:16
Stream of SR_headPose objects.
Definition: headposestream.h:31
void close()
Close the stream. (Called by sense)
void update(Frame &frame)
Send new frame to listener.
HeadPoseStream(HeadPoseTracker *sense, HeadPoseListener *listener)
Construct a new HeadPoseStream.
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
Sense class which provides head pose tracking functionality to the SR system.
Definition: headposetracker.h:31
#define DIMENCOSR_API
Definition: headposestream.h:17
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
Definition: head.h:11