LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
weavertracker.h
Go to the documentation of this file.
1
5#pragma once
6#include <map>
7#include <thread>
8#include <mutex>
9#include "weaverposition.h"
12
13#ifdef WIN32
14# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
15# define DIMENCOSR_API __declspec(dllexport)
16# else
17# define DIMENCOSR_API __declspec(dllimport)
18# endif
19#else
20# define DIMENCOSR_API
21#endif
22
23namespace SR {
24
36
37public:
47 static WeaverTracker* create(SRContext &context);
48
55 virtual std::shared_ptr<WeaverPositionStream> openWeaverPositionStream(WeaverPositionListener* listener) = 0;
56
62 virtual void streamClosed(WeaverPositionStream* stream) = 0;
63};
64
65}
66
67#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Class of objects dealing with Streams of data.
Definition: sense.h:37
Interface for listening to SR_weaverPosition updates.
Definition: weaverpositionlistener.h:15
Stream of SR_weaverPosition objects.
Definition: weaverpositionstream.h:30
Sense class which provides weave tracking functionality to the SR system.
Definition: weavertracker.h:35
static WeaverTracker * create(SRContext &context)
Creates a functional WeaverTracker instance.
virtual void streamClosed(WeaverPositionStream *stream)=0
Closes a specific WeaverPositionStream.
virtual std::shared_ptr< WeaverPositionStream > openWeaverPositionStream(WeaverPositionListener *listener)=0
Creates a WeaverPositionStream for listener to be connected to.
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
#define DIMENCOSR_API
Definition: weavertracker.h:20