LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
sense
core
sense.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include <string>
8
#include <chrono>
9
#include <thread>
10
#include <mutex>
11
12
#include "
transformation.h
"
13
14
#ifdef WIN32
15
# ifdef COMPILING_DLL_SimulatedRealityCore
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
26
//Forward declaration
27
class
SRContext
;
28
37
class
DIMENCOSR_API
Sense
{
38
friend
class
SRContext
;
39
40
protected
:
41
//Defines the position and orientation of the Sense with respect to a fixed space, often related to the display
42
Transformation
calibration
;
43
44
public
:
46
void
setCalibration
(
Transformation
calibration);
47
49
Transformation
getCalibration
();
50
52
virtual
~Sense
() {};
53
55
virtual
std::string
getName
() = 0;
56
58
virtual
std::string
getDescription
() = 0;
59
61
virtual
void
start
() = 0;
62
64
virtual
void
stop
() = 0;
65
};
66
67
}
68
69
#undef DIMENCOSR_API
SRContext
void * SRContext
Definition:
admin_c.h:10
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
SR::Sense::start
virtual void start()=0
Start continuous updates, default behaviour is defined in the updater() function.
SR::Sense::setCalibration
void setCalibration(Transformation calibration)
Sets a Transformation object to represent the sense's calibration with respect to the display.
SR::Sense::getName
virtual std::string getName()=0
Return the name of the sense.
SR::Sense::~Sense
virtual ~Sense()
Ensures the proper destruction of the sense implementation.
Definition:
sense.h:52
SR::Sense::getCalibration
Transformation getCalibration()
Gets callibration.
SR::Sense::getDescription
virtual std::string getDescription()=0
Return a description of the sense.
SR::Sense::stop
virtual void stop()=0
Stop continuous updates.
SR::Sense::calibration
Transformation calibration
Definition:
sense.h:42
SR::Transformation
Class of objects defining the relation between different coordinate systems.
Definition:
transformation.h:27
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
sense.h:21
transformation.h
Generated by
1.9.2