Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
headposetracker.h
Go to the documentation of this file.
1
10#pragma once
11#include "headposestream.h"
13
14#ifdef WIN32
15# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
16# define DIMENCOSR_API __declspec(dllexport)
17# else
18# define DIMENCOSR_API __declspec(dllimport)
19# endif
20#else
21# define DIMENCOSR_API
22#endif
23
24namespace SR {
25
37
38public:
48 static HeadPoseTracker* create(SRContext &context);
49
56 virtual std::shared_ptr<HeadPoseStream> openHeadPoseStream(HeadPoseListener* listener) = 0;
57
63 virtual void streamClosed(HeadPoseStream* stream) = 0;
64};
65
66}
67
68#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
Sense class which provides head pose tracking functionality to the SR system.
Definition: headposetracker.h:36
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:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
#define DIMENCOSR_API
Definition: headposetracker.h:21
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25