-
Notifications
You must be signed in to change notification settings - Fork 1
/
Projection.py
43 lines (35 loc) · 961 Bytes
/
Projection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from abc import abstractmethod
class Projection:
def __init__(self, resolution, frequency):
# Tuple Resolution of display/screen in pixels (Width, Height)
if resolution[0] < resolution[1]:
self.resolution = reversed(resolution)
else:
self.resolution = resolution
# Frequency Projections
self.frequency = frequency
self.calibration = None
@abstractmethod
def setPattern(self, pattern):
# To override
pass
@abstractmethod
def displayPatterns(self, patterns, camera):
# To override
pass
@abstractmethod
def getResolution(self):
# To override
pass
@abstractmethod
def setResolution(self, resolution):
# To override
pass
@abstractmethod
def quit_and_close(self):
# To override
pass
@abstractmethod
def getStatus(self):
# To override
pass