50 lines
938 B
Python
50 lines
938 B
Python
|
"""
|
||
|
Layers module
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||
|
"""
|
||
|
from city_model_structure.attributes.material import Material
|
||
|
|
||
|
|
||
|
class Layer:
|
||
|
"""
|
||
|
Layer class
|
||
|
"""
|
||
|
def __init__(self):
|
||
|
self._material = None
|
||
|
self._thickness = None
|
||
|
|
||
|
@property
|
||
|
def material(self) -> Material:
|
||
|
"""
|
||
|
Get layer material
|
||
|
:return: Material
|
||
|
"""
|
||
|
return self._material
|
||
|
|
||
|
@material.setter
|
||
|
def material(self, value):
|
||
|
"""
|
||
|
Set layer material
|
||
|
:param value: Material
|
||
|
:return: None
|
||
|
"""
|
||
|
self._material = value
|
||
|
|
||
|
@property
|
||
|
def thickness(self):
|
||
|
"""
|
||
|
Get layer thickness in meters
|
||
|
:return: float
|
||
|
"""
|
||
|
return self._thickness
|
||
|
|
||
|
@thickness.setter
|
||
|
def thickness(self, value):
|
||
|
"""
|
||
|
Get layer thickness in meters
|
||
|
:param value: float
|
||
|
:return: None
|
||
|
"""
|
||
|
self._thickness = value
|