hub/city_model_structure/level_of_detail.py

62 lines
1.3 KiB
Python
Raw Normal View History

2022-11-25 15:03:27 -05:00
"""
Level of detail module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
2022-11-25 15:03:27 -05:00
class LevelOfDetail:
"""
Level of detail for the city class
"""
def __init__(self):
self._geometry = None
self._construction = None
self._usage = None
@property
def geometry(self):
"""
Get the city minimal geometry level of detail from 0 to 4
:return: int
2022-11-25 15:03:27 -05:00
"""
return self._geometry
@geometry.setter
def geometry(self, value):
"""
Set the city minimal geometry level of detail from 0 to 4
2022-11-25 15:03:27 -05:00
"""
self._geometry = value
@property
def construction(self):
"""
Get the city minimal construction level of detail, 1 or 2
:return: int
2022-11-25 15:03:27 -05:00
"""
return self._construction
@construction.setter
def construction(self, value):
"""
Set the city minimal construction level of detail, 1 or 2
2022-11-25 15:03:27 -05:00
"""
self._construction = value
@property
def usage(self):
"""
Get the city minimal usage level of detail, 1 or 2
:return: int
2022-11-25 15:03:27 -05:00
"""
return self._usage
@usage.setter
def usage(self, value):
"""
Set the city minimal usage level of detail, 1 or 2
2022-11-25 15:03:27 -05:00
"""
self._usage = value