Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
headposestream.h
Go to the documentation of this file.
1
10#pragma once
11#include "headposelistener.h"
12#include "head.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 HeadPoseTracker; //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_headPose updates This interface is supported from Eye Tracker version 1...
Definition: headposelistener.h:21
Stream of SR_headPose objects.
Definition: headposestream.h:36
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:36
#define DIMENCOSR_API
Definition: headposestream.h:22
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
Definition: head.h:16