hub/city_model_structure/transport/walkway_node.py

37 lines
916 B
Python
Raw Normal View History

2021-08-17 12:52:48 -04:00
"""
2021-08-17 13:30:51 -04:00
Walkway node module
2021-08-17 12:52:48 -04:00
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
Contributor Milad milad.aghamohamadnia@concordia.ca
Contributor Guille guille.gutierrezmorote@concordia.ca
"""
from typing import List
from city_model_structure.transport.traffic_node import TrafficNode
class WalkwayNode(TrafficNode):
"""
2021-08-17 13:30:51 -04:00
WalkwayNode class
2021-08-17 12:52:48 -04:00
"""
def __init__(self, name, coordinates, edges=None, shape=None):
2021-08-17 13:30:51 -04:00
super().__init__(name, coordinates, edges=edges, node_type='WalkwayNode')
2021-08-17 12:52:48 -04:00
self._shape = shape
@property
def shape(self) -> List[List[float]]:
"""
List of positions (positions in m)
:return: [[x, y, (z)]]
"""
return self._shape
@shape.setter
def shape(self, value):
"""
List of positions setter
:param value: [[x, y, (z)]]
"""
self._shape = value