Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
headtracker.h
Go to the documentation of this file.
1
10#pragma once
11#include "headstream.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 HeadTracker* create(SRContext &context);
49
56 virtual std::shared_ptr<HeadStream> openHeadStream(HeadListener* listener) = 0;
57
63 virtual void streamClosed(HeadStream* stream) = 0;
64};
65
66}
67
68#undef DIMENCOSR_API
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition: headlistener.h:21
Stream of SR_head objects.
Definition: headstream.h:35
Sense class which provides face tracking functionality to the SR system.
Definition: headtracker.h:36
static HeadTracker * create(SRContext &context)
Creates a functional HeadTracker instance.
virtual void streamClosed(HeadStream *stream)=0
Closes a specific HeadStream.
virtual std::shared_ptr< HeadStream > openHeadStream(HeadListener *listener)=0
Creates a HeadStream for listener to be connected to.
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: headtracker.h:21
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25