LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
sense
headtracker
headposetracker.h
Go to the documentation of this file.
1
5
#pragma once
6
#include "
headposestream.h
"
7
#include "
sr/management/srcontext.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
19
namespace
SR
{
20
31
class
DIMENCOSR_API
HeadPoseTracker
:
public
Sense
{
32
33
public
:
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
SR::HeadPoseListener
Interface for listening to SR_headPose updates This interface is supported from Eye Tracker version 1...
Definition:
headposelistener.h:16
SR::HeadPoseStream
Stream of SR_headPose objects.
Definition:
headposestream.h:31
SR::HeadPoseTracker
Sense class which provides head pose tracking functionality to the SR system.
Definition:
headposetracker.h:31
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:75
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:37
headposestream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
headposetracker.h:16
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
srcontext.h
Generated by
1.9.2