LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
world
display
display.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include "
sr/world/worldobject.h
"
8
#include "
sr/management/srcontext.h
"
9
10
#include <fstream>
11
12
#ifdef WIN32
13
# ifdef COMPILING_DLL_SimulatedRealityDisplays
14
# define DIMENCOSR_API __declspec(dllexport)
15
# else
16
# define DIMENCOSR_API __declspec(dllimport)
17
# endif
18
#else
19
# define DIMENCOSR_API
20
#endif
21
22
namespace
SR
{
23
30
class
DIMENCOSR_API
Display
:
public
WorldObject
{
31
public
:
39
static
Display
*
create
(
SRContext
&context);
40
47
virtual
~Display
() =
default
;
48
54
virtual
const
int
getResolutionHeight
() = 0;
55
61
virtual
const
int
getResolutionWidth
() = 0;
62
68
virtual
const
int
getPhysicalResolutionHeight
() = 0;
69
75
virtual
const
int
getPhysicalResolutionWidth
() = 0;
76
82
virtual
const
float
getPhysicalSizeHeight
() = 0;
83
89
virtual
const
float
getPhysicalSizeWidth
() = 0;
90
96
virtual
const
float
getDotPitch
() = 0;
97
103
virtual
SR_recti
getLocation
() = 0;
104
};
105
106
}
107
108
#undef DIMENCOSR_API
SR::Display
Class of WorldObject representing the SR display in real space.
Definition:
display.h:30
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:75
SR::WorldObject
Class representing both real and virtual objects as nodes in the World tree.
Definition:
worldobject.h:30
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
display.h:19
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
srcontext.h
SR_recti
C-compatible integer rectangle representation.
Definition:
types.h:107
worldobject.h
Generated by
1.9.2