Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
display.h
Go to the documentation of this file.
1
10#pragma once
11
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
27namespace SR {
28
36public:
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
Class of WorldObject representing the SR display in real space.
Definition: display.h:35
virtual SR_recti getLocation()=0
Finds the SR monitor and return it's location in the display configuration.
static Display * create(SRContext &context)
Creates an instance of a Display class.
virtual const float getPhysicalSizeWidth()=0
Get the physical width of the display.
virtual const float getDotPitch()=0
Get the dot pitch (pixel size)
virtual ~Display()=default
Destructor of the Display instance.
virtual const int getResolutionWidth()=0
Get the horizontal resolution that is accepted by the display.
virtual const int getResolutionHeight()=0
Get the vertical resolution that is accepted by the display.
virtual const int getPhysicalResolutionWidth()=0
Get the horizontal native resolution of the physical display itself.
virtual const int getPhysicalResolutionHeight()=0
Get the vertical native resolution of the physical display itself.
virtual const float getPhysicalSizeHeight()=0
Get the physical height of the display.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class representing both real and virtual objects as nodes in the World tree.
Definition: worldobject.h:35
#define DIMENCOSR_API
Definition: display.h:24
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible integer rectangle representation.
Definition: types.h:115