Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
switchablehint.h
Go to the documentation of this file.
1
10#pragma once
11
13
14#ifdef WIN32
15# ifdef COMPILING_DLL_SimulatedRealityDisplays
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
24namespace SR {
25
35public:
44
48 virtual ~SwitchableLensHint() {};
49
53 virtual void enable() = 0;
54
58 virtual void disable() = 0;
59
65 virtual bool isEnabled() = 0;
66
74 virtual bool isEnabledByPreference() = 0;
75};
76
77}
78
79#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
Pure virtual interface for controlling switchable lenses from applications.
Definition: switchablehint.h:34
virtual bool isEnabledByPreference()=0
This function returns true if any of already connected applications enabled the lense,...
static SwitchableLensHint * create(SRContext &context)
Creates a functional SwitchableLensHints instance.
virtual void enable()=0
Expresses preference to enable the lens such that it affects the light transmitted through it.
virtual void disable()=0
Expresses preference to disable the lens to minimize the effect on the light transmitted through it.
virtual bool isEnabled()=0
Checks whether the Lens is currently enabled.
virtual ~SwitchableLensHint()
Virtual destructor.
Definition: switchablehint.h:48
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: switchablehint.h:21