33 lines
662 B
Python
33 lines
662 B
Python
"""
|
|
Tree module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
|
|
"""
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
|
|
class Tree(CityObject):
|
|
"""
|
|
Tree(CityObject) class
|
|
"""
|
|
def __init__(self, lod, surfaces, name, height, canopy):
|
|
super().__init__(lod, surfaces, name)
|
|
self._height = height
|
|
self._canopy = canopy
|
|
|
|
@property
|
|
def height(self):
|
|
"""
|
|
Get height of tree in meters
|
|
:return: height
|
|
"""
|
|
return self._height
|
|
|
|
@property
|
|
def canopy(self):
|
|
"""
|
|
Get canopy of tree
|
|
:return: canopy
|
|
"""
|
|
return self._canopy
|