Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
weavertracker
weavertracker.h
Go to the documentation of this file.
1
10
#pragma once
11
#include <map>
12
#include <thread>
13
#include <mutex>
14
#include "
weaverposition.h
"
15
#include "
weaverpositionstream.h
"
16
#include "
sr/management/srcontext.h
"
17
18
#ifdef WIN32
19
# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
20
# define DIMENCOSR_API __declspec(dllexport)
21
# else
22
# define DIMENCOSR_API __declspec(dllimport)
23
# endif
24
#else
25
# define DIMENCOSR_API
26
#endif
27
28
namespace
SR
{
29
40
class
DIMENCOSR_API
WeaverTracker
:
public
Sense
{
41
42
public
:
52
static
WeaverTracker
*
create
(
SRContext
&context);
53
60
virtual
std::shared_ptr<WeaverPositionStream>
openWeaverPositionStream
(
WeaverPositionListener
* listener) = 0;
61
67
virtual
void
streamClosed
(
WeaverPositionStream
* stream) = 0;
68
};
69
70
}
71
72
#undef DIMENCOSR_API
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
SR::WeaverPositionListener
Interface for listening to SR_weaverPosition updates.
Definition:
weaverpositionlistener.h:20
SR::WeaverPositionStream
Stream of SR_weaverPosition objects.
Definition:
weaverpositionstream.h:35
SR::WeaverTracker
Sense class which provides weave tracking functionality to the SR system.
Definition:
weavertracker.h:40
SR::WeaverTracker::create
static WeaverTracker * create(SRContext &context)
Creates a functional WeaverTracker instance.
SR::WeaverTracker::streamClosed
virtual void streamClosed(WeaverPositionStream *stream)=0
Closes a specific WeaverPositionStream.
SR::WeaverTracker::openWeaverPositionStream
virtual std::shared_ptr< WeaverPositionStream > openWeaverPositionStream(WeaverPositionListener *listener)=0
Creates a WeaverPositionStream for listener to be connected to.
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
weaverposition.h
weaverpositionstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
weavertracker.h:25
Generated by
1.9.2