hub/city_model_structure/layer.py

50 lines
927 B
Python
Raw Normal View History

2020-06-09 14:07:47 -04:00
"""
Layers module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
from city_model_structure.material import Material
class Layer:
2020-06-10 11:08:38 -04:00
"""
Layer class
"""
def __init__(self):
self._material = None
2020-06-10 11:08:38 -04:00
self._thickness = None
@property
def material(self) -> Material:
2020-06-10 11:08:38 -04:00
"""
Get layer material
:return: Material
"""
return self._material
@material.setter
def material(self, value):
2020-06-10 11:08:38 -04:00
"""
Set layer material
:param value: Material
:return: None
"""
self._material = value
@property
2020-06-10 11:08:38 -04:00
def thickness(self):
"""
Get layer thickness in meters
:return: float
"""
return self._thickness
2020-06-10 11:08:38 -04:00
@thickness.setter
def thickness(self, value):
"""
Get layer thickness in meters
:param value: float
:return: None
"""
self._thickness = value