Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
world
display
display.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
sr/world/worldobject.h
"
13
#include "
sr/management/srcontext.h
"
14
15
#include <fstream>
16
17
#ifdef WIN32
18
# ifdef COMPILING_DLL_SimulatedRealityDisplays
19
# define DIMENCOSR_API __declspec(dllexport)
20
# else
21
# define DIMENCOSR_API __declspec(dllimport)
22
# endif
23
#else
24
# define DIMENCOSR_API
25
#endif
26
27
namespace
SR
{
28
35
class
DIMENCOSR_API
Display
:
public
WorldObject
{
36
public
:
44
static
Display
*
create
(
SRContext
&context);
45
52
virtual
~Display
() =
default
;
53
59
virtual
const
int
getResolutionHeight
() = 0;
60
66
virtual
const
int
getResolutionWidth
() = 0;
67
73
virtual
const
int
getPhysicalResolutionHeight
() = 0;
74
80
virtual
const
int
getPhysicalResolutionWidth
() = 0;
81
87
virtual
const
float
getPhysicalSizeHeight
() = 0;
88
94
virtual
const
float
getPhysicalSizeWidth
() = 0;
95
101
virtual
const
float
getDotPitch
() = 0;
102
108
virtual
SR_recti
getLocation
() = 0;
109
};
110
111
}
112
113
#undef DIMENCOSR_API
SR::Display
Class of WorldObject representing the SR display in real space.
Definition:
display.h:35
SR::Display::getLocation
virtual SR_recti getLocation()=0
Finds the SR monitor and return it's location in the display configuration.
SR::Display::create
static Display * create(SRContext &context)
Creates an instance of a Display class.
SR::Display::getPhysicalSizeWidth
virtual const float getPhysicalSizeWidth()=0
Get the physical width of the display.
SR::Display::getDotPitch
virtual const float getDotPitch()=0
Get the dot pitch (pixel size)
SR::Display::~Display
virtual ~Display()=default
Destructor of the Display instance.
SR::Display::getResolutionWidth
virtual const int getResolutionWidth()=0
Get the horizontal resolution that is accepted by the display.
SR::Display::getResolutionHeight
virtual const int getResolutionHeight()=0
Get the vertical resolution that is accepted by the display.
SR::Display::getPhysicalResolutionWidth
virtual const int getPhysicalResolutionWidth()=0
Get the horizontal native resolution of the physical display itself.
SR::Display::getPhysicalResolutionHeight
virtual const int getPhysicalResolutionHeight()=0
Get the vertical native resolution of the physical display itself.
SR::Display::getPhysicalSizeHeight
virtual const float getPhysicalSizeHeight()=0
Get the physical height of the display.
SR::SRContext
Maintains WorldObject and Sense objects during the application lifetime.
Definition:
srcontext.h:80
SR::WorldObject
Class representing both real and virtual objects as nodes in the World tree.
Definition:
worldobject.h:35
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
display.h:24
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
SR_recti
C-compatible integer rectangle representation.
Definition:
types.h:115
worldobject.h
Generated by
1.9.2