Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
headtracker
headposetracker.h
Go to the documentation of this file.
1
10
#pragma once
11
#include "
headposestream.h
"
12
#include "
sr/management/srcontext.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
24
namespace
SR
{
25
36
class
DIMENCOSR_API
HeadPoseTracker
:
public
Sense
{
37
38
public
:
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
SR::HeadPoseListener
Interface for listening to SR_headPose updates This interface is supported from Eye Tracker version 1...
Definition:
headposelistener.h:21
SR::HeadPoseStream
Stream of SR_headPose objects.
Definition:
headposestream.h:36
SR::HeadPoseTracker
Sense class which provides head pose tracking functionality to the SR system.
Definition:
headposetracker.h:36
SR::HeadPoseTracker::streamClosed
virtual void streamClosed(HeadPoseStream *stream)=0
Closes a specific HeadPoseStream.
SR::HeadPoseTracker::openHeadPoseStream
virtual std::shared_ptr< HeadPoseStream > openHeadPoseStream(HeadPoseListener *listener)=0
Creates a HeadPoseStream for listener to be connected to.
SR::HeadPoseTracker::create
static HeadPoseTracker * create(SRContext &context)
Creates a functional HeadPoseTracker instance.
SR::SRContext
Maintains WorldObject and Sense objects during the application lifetime.
Definition:
srcontext.h:80
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:42
headposestream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
headposetracker.h:21
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
Generated by
1.9.2