LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
headposetracker.h
Go to the documentation of this file.
1
5#pragma once
6#include "headposestream.h"
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
32
33public:
43 static HeadPoseTracker* create(SRContext &context);
44
51 virtual std::shared_ptr<HeadPoseStream> openHeadPoseStream(HeadPoseListener* listener) = 0;
52
58 virtual void streamClosed(HeadPoseStream* stream) = 0;
59};
60
61}
62
63#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
Sense class which provides head pose tracking functionality to the SR system.
Definition: headposetracker.h:31
virtual void streamClosed(HeadPoseStream *stream)=0
Closes a specific HeadPoseStream.
virtual std::shared_ptr< HeadPoseStream > openHeadPoseStream(HeadPoseListener *listener)=0
Creates a HeadPoseStream for listener to be connected to.
static HeadPoseTracker * create(SRContext &context)
Creates a functional HeadPoseTracker instance.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Class of objects dealing with Streams of data.
Definition: sense.h:37
#define DIMENCOSR_API
Definition: headposetracker.h:16
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20