diff --git a/Enums.py b/Enums.py index 33c7487..3dbf24e 100644 --- a/Enums.py +++ b/Enums.py @@ -1,12 +1,31 @@ from enum import Enum + class DIRECTION(Enum): WEST = 0 EAST = 1 NORTH = 2 SOUTH = 3 - + + class COLLUMN_STYLE(Enum): INNER = 1 OUTER = 2 - BOTH = 3 \ No newline at end of file + 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 diff --git a/networks/geometry/Enums.py b/networks/geometry/Enums.py deleted file mode 100644 index 1def6ff..0000000 --- a/networks/geometry/Enums.py +++ /dev/null @@ -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 diff --git a/networks/geometry/Point2D.py b/networks/geometry/Point2D.py index f5db5ff..a03ad31 100644 --- a/networks/geometry/Point2D.py +++ b/networks/geometry/Point2D.py @@ -1,7 +1,7 @@ import numpy as np from typing import List from math import atan2, sqrt -from networks.geometry.Enums import ROTATION +from Enums import ROTATION class Point2D: diff --git a/networks/geometry/Segment2D.py b/networks/geometry/Segment2D.py index 2038335..a1d9c48 100644 --- a/networks/geometry/Segment2D.py +++ b/networks/geometry/Segment2D.py @@ -1,5 +1,5 @@ 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 math import sqrt diff --git a/networks/geometry/Segment3D.py b/networks/geometry/Segment3D.py index ff08f99..9322146 100644 --- a/networks/geometry/Segment3D.py +++ b/networks/geometry/Segment3D.py @@ -1,5 +1,5 @@ from typing import List -from networks.geometry.Enums import LINE_OVERLAP +from Enums import LINE_OVERLAP from networks.geometry.Point3D import Point3D