Merge Enums to general file

This commit is contained in:
2024-06-13 15:52:16 +02:00
parent 143a574235
commit d76f4aefa9
5 changed files with 24 additions and 23 deletions

View File

@@ -1,12 +1,31 @@
from enum import Enum from enum import Enum
class DIRECTION(Enum): class DIRECTION(Enum):
WEST = 0 WEST = 0
EAST = 1 EAST = 1
NORTH = 2 NORTH = 2
SOUTH = 3 SOUTH = 3
class COLLUMN_STYLE(Enum): class COLLUMN_STYLE(Enum):
INNER = 1 INNER = 1
OUTER = 2 OUTER = 2
BOTH = 3 BOTH = 3
class LINE_OVERLAP(Enum):
NONE = 0
MAJOR = 1
MINOR = 2
class LINE_THICKNESS_MODE(Enum):
MIDDLE = 0
DRAW_COUNTERCLOCKWISE = 1
DRAW_CLOCKWISE = 2
class ROTATION(Enum):
CLOCKWISE = 0
COUNTERCLOCKWISE = 1

View File

@@ -1,18 +0,0 @@
from enum import Enum
class LINE_OVERLAP(Enum):
NONE = 0
MAJOR = 1
MINOR = 2
class LINE_THICKNESS_MODE(Enum):
MIDDLE = 0
DRAW_COUNTERCLOCKWISE = 1
DRAW_CLOCKWISE = 2
class ROTATION(Enum):
CLOCKWISE = 0
COUNTERCLOCKWISE = 1

View File

@@ -1,7 +1,7 @@
import numpy as np import numpy as np
from typing import List from typing import List
from math import atan2, sqrt from math import atan2, sqrt
from networks.geometry.Enums import ROTATION from Enums import ROTATION
class Point2D: class Point2D:

View File

@@ -1,5 +1,5 @@
from typing import List from typing import List
from networks.geometry.Enums import LINE_OVERLAP, LINE_THICKNESS_MODE from Enums import LINE_OVERLAP, LINE_THICKNESS_MODE
from networks.geometry.Point2D import Point2D from networks.geometry.Point2D import Point2D
from math import sqrt from math import sqrt

View File

@@ -1,5 +1,5 @@
from typing import List from typing import List
from networks.geometry.Enums import LINE_OVERLAP from Enums import LINE_OVERLAP
from networks.geometry.Point3D import Point3D from networks.geometry.Point3D import Point3D