forked from s_ranjbar/city_retrofit
33 lines
643 B
Python
33 lines
643 B
Python
"""
|
|
Tree module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
|
"""
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
|
|
class Tree(CityObject):
|
|
"""
|
|
Tree(CityObject) class
|
|
"""
|
|
def __init__(self, lod, height, canopy):
|
|
super().__init__(lod)
|
|
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
|