Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
display
switchablehint.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
sr/management/srcontext.h
"
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
24
namespace
SR
{
25
34
class
DIMENCOSR_API
SwitchableLensHint
:
public
Sense
{
35
public
:
43
static
SwitchableLensHint
*
create
(
SRContext
&context);
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
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::SwitchableLensHint
Pure virtual interface for controlling switchable lenses from applications.
Definition:
switchablehint.h:34
SR::SwitchableLensHint::isEnabledByPreference
virtual bool isEnabledByPreference()=0
This function returns true if any of already connected applications enabled the lense,...
SR::SwitchableLensHint::create
static SwitchableLensHint * create(SRContext &context)
Creates a functional SwitchableLensHints instance.
SR::SwitchableLensHint::enable
virtual void enable()=0
Expresses preference to enable the lens such that it affects the light transmitted through it.
SR::SwitchableLensHint::disable
virtual void disable()=0
Expresses preference to disable the lens to minimize the effect on the light transmitted through it.
SR::SwitchableLensHint::isEnabled
virtual bool isEnabled()=0
Checks whether the Lens is currently enabled.
SR::SwitchableLensHint::~SwitchableLensHint
virtual ~SwitchableLensHint()
Virtual destructor.
Definition:
switchablehint.h:48
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
switchablehint.h:21
Generated by
1.9.2