33 private BuildingMode buildingMode;
34 internal BuildingMode BuildingMode {
get {
return buildingMode; } }
39 private LaneType currentLaneType;
43 internal LaneType CurrentLaneType {
get {
return currentLaneType; } }
51 this.messenger = messenger;
53 geometricTopology => this.geometricTopology = geometricTopology);
55 cellularTopology => this.cellularTopology = cellularTopology);
57 (geometricTopology, parameters) => buildingMode = BuildingMode.None);
60 i => buildingMode = i);
68 internal void BuildNewStraightLane(Point startPoint, Point endPoint)
81 internal void BuildNewBezierLaneLane(Point startPoint, Point firstControlPoint, Point secondControlPoint,
84 geometricTopology.
AddLane(
new BezierLane(startPoint, firstControlPoint, secondControlPoint, endPoint));
88 internal static void CreateGeneratorForLane(
Lane laneWhereGeneratorToAdd)
Class representing geometric topology of road network.
Represents single straight lane.
Represents generator of cars.
Viewmodel for construction panel.
Class representing messenger for communicating between viewmodels.
StartNode StartNode
Node on the input end of lane.
Class for sending message with built cellular topology.
Represents single bezier lane.
Contains information about change of lane type and actual current lane type.
Viewmodel for canvas panel.
Message for sending information about modification of geometric topology.
void AddLane(Lane newLane)
Adds new lane to geometric topology.
Message for sending geometric topology to other viewmodels after creating or opening geomtric topolog...
Message about change of the CurrentBuildingMode containing new value as parameter ...
Message for sending geometric topology simulation control viewmodel to build cellular topology from i...
Class representing cellular topology.
Viewmodel for simulation control.