added new annotation types
This commit is contained in:
@@ -5,9 +5,12 @@ Exposes core data transfer objects and enums for use throughout the project.
|
||||
|
||||
from .angle_enum import AngleEnum
|
||||
from .annotation import Annotation
|
||||
from .colour_enum import ColourEnum
|
||||
from .contact_enum import ContactEnum
|
||||
from .depth_enum import DepthEnum
|
||||
from .distance_enum import DistanceEnum
|
||||
from .job import Job
|
||||
from .lighting_enum import LightingEnum
|
||||
from .point_of_view_enum import PointOfViewEnum
|
||||
|
||||
__all__ = [
|
||||
@@ -17,4 +20,7 @@ __all__ = [
|
||||
"DistanceEnum",
|
||||
"Job",
|
||||
"PointOfViewEnum",
|
||||
"ColourEnum",
|
||||
"DepthEnum",
|
||||
"LightingEnum",
|
||||
]
|
||||
|
||||
@@ -1,16 +1,29 @@
|
||||
"""Definition of Annotation DTO."""
|
||||
|
||||
from .type_checking_base_model import TypeCheckingBaseModel
|
||||
from .distance_enum import DistanceEnum
|
||||
from .angle_enum import AngleEnum
|
||||
from .point_of_view_enum import PointOfViewEnum
|
||||
from .colour_enum import ColourEnum
|
||||
from .contact_enum import ContactEnum
|
||||
from .depth_enum import DepthEnum
|
||||
from .distance_enum import DistanceEnum
|
||||
from .lighting_enum import LightingEnum
|
||||
from .point_of_view_enum import PointOfViewEnum
|
||||
|
||||
|
||||
class Annotation(TypeCheckingBaseModel):
|
||||
"""Data Transfer Object representing an Annotation."""
|
||||
|
||||
distance: DistanceEnum
|
||||
angle: AngleEnum
|
||||
point_of_view: PointOfViewEnum
|
||||
angle_uncertainty: bool
|
||||
colour: ColourEnum
|
||||
colour_uncertainty: bool
|
||||
contact: ContactEnum
|
||||
contact_uncertainty: bool
|
||||
depth: DepthEnum
|
||||
depth_uncertainty: bool
|
||||
distance: DistanceEnum
|
||||
distance_uncertainty: bool
|
||||
lighting: LightingEnum
|
||||
lighting_uncertainty: bool
|
||||
point_of_view: PointOfViewEnum
|
||||
point_of_view_uncertainty: bool
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
"""Definition of ColourEnum DTO."""
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
|
||||
class ColourEnum(StrEnum):
|
||||
"""Enumeration for Colour values."""
|
||||
|
||||
HIGH = "high"
|
||||
MEDIUM = "medium"
|
||||
LOW = "low"
|
||||
@@ -0,0 +1,11 @@
|
||||
"""Definition of DepthEnum DTO."""
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
|
||||
class DepthEnum(StrEnum):
|
||||
"""Enumeration for Depth values."""
|
||||
|
||||
HIGH = "high"
|
||||
MEDIUM = "medium"
|
||||
LOW = "low"
|
||||
@@ -0,0 +1,11 @@
|
||||
"""Definition of LightingEnum DTO."""
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
|
||||
class LightingEnum(StrEnum):
|
||||
"""Enumeration for Lighting values."""
|
||||
|
||||
HIGH = "high"
|
||||
MEDIUM = "medium"
|
||||
LOW = "low"
|
||||
Reference in New Issue
Block a user