-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathutils.py
46 lines (35 loc) · 866 Bytes
/
utils.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
44
45
46
from enum import Enum
class Direction(str, Enum):
UP = "UP"
DOWN = "DOWN"
LEFT = "LEFT"
RIGHT = "RIGHT"
UP_LEFT = "UP_LEFT"
UP_RIGHT = "UP_RIGHT"
DOWN_LEFT = "DOWN_LEFT"
DOWN_RIGHT = "DOWN_RIGHT"
class Rotation(str, Enum):
CW = "CW"
CCW = "CCW"
CW2 = "CW2"
class Mirror(str, Enum):
VERTICAL = "VERTICAL"
HORIZONTAL = "HORIZONTAL"
DIAGONAL_LEFT = "DIAGONAL_LEFT" # \
DIAGONAL_RIGHT = "DIAGONAL_RIGHT" # /
class ImagePoints(str, Enum):
TOP = "TOP"
BOTTOM = "BOTTOM"
LEFT = "LEFT"
RIGHT = "RIGHT"
TOP_LEFT = "TOP_LEFT"
TOP_RIGHT = "TOP_RIGHT"
BOTTOM_LEFT = "BOTTOM_LEFT"
BOTTOM_RIGHT = "BOTTOM_RIGHT"
class RelativePosition(str, Enum):
SOURCE = "SOURCE"
TARGET = "TARGET"
MIDDLE = "MIDDLE"
class ObjectProperty(Enum):
SYMMETRICAL = 0
HOLLOW = 1