Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
core
sense.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include <string>
13
#include <chrono>
14
#include <thread>
15
#include <mutex>
16
17
#include "
transformation.h
"
18
19
#ifdef WIN32
20
# ifdef COMPILING_DLL_SimulatedRealityCore
21
# define DIMENCOSR_API __declspec(dllexport)
22
# else
23
# define DIMENCOSR_API __declspec(dllimport)
24
# endif
25
#else
26
# define DIMENCOSR_API
27
#endif
28
29
namespace
SR
{
30
31
//Forward declaration
32
class
SRContext
;
33
42
class
DIMENCOSR_API
Sense
{
43
friend
class
SRContext
;
44
45
protected
:
46
//Defines the position and orientation of the Sense with respect to a fixed space, often related to the display
47
Transformation
calibration
;
48
49
public
:
51
void
setCalibration
(
Transformation
calibration);
52
54
Transformation
getCalibration
();
55
57
virtual
~Sense
() {};
58
60
virtual
std::string
getName
() = 0;
61
63
virtual
std::string
getDescription
() = 0;
64
66
virtual
void
start
() = 0;
67
69
virtual
void
stop
() = 0;
70
};
71
72
}
73
74
#undef DIMENCOSR_API
SRContext
void * SRContext
Definition:
admin_c.h:15
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::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:57
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:47
SR::Transformation
Class of objects defining the relation between different coordinate systems.
Definition:
transformation.h:32
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
sense.h:26
transformation.h
Generated by
1.9.2