Eclipse SUMO - Simulation of Urban MObility
GUIBusStop.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // A lane area vehicles can halt at (gui-version)
18 /****************************************************************************/
19 #ifndef GUIBusStop_h
20 #define GUIBusStop_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <vector>
29 #include <string>
30 #include <utils/common/Command.h>
37 #include <utils/geom/Position.h>
38 #include <gui/GUIManipulator.h>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class MSNet;
45 class MSLane;
46 class GUIManipulator;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
64 public:
73  GUIBusStop(const std::string& id,
74  const std::vector<std::string>& lines, MSLane& lane,
75  double frompos, double topos, const std::string name, int personCapacity);
76 
77 
79  ~GUIBusStop();
80 
81 
83  bool addAccess(MSLane* lane, const double pos, const double length);
84 
86 
87 
96  GUISUMOAbstractView& parent);
97 
98 
109  GUISUMOAbstractView& parent);
110 
111 
118 
120  const std::string getOptionalName() const;
121 
126  void drawGL(const GUIVisualizationSettings& s) const;
127 
133 
134 
135 private:
137  std::vector<double> myFGShapeRotations;
138 
140  std::vector<double> myFGShapeLengths;
141 
144 
147 
149  double myFGSignRot;
150 
152  double myWidth;
153 
156 
158  mutable double myPersonExaggeration;
159 
160 
161 };
162 
163 
164 #endif
165 
166 /****************************************************************************/
167 
A lane area vehicles can halt at (gui-version)
Definition: GUIBusStop.h:63
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIBusStop.cpp:102
A lane area vehicles can halt at.
Stores the information about how to visualize structures.
Position myFGSignPos
The position of the sign.
Definition: GUIBusStop.h:146
double myFGSignRot
The rotation of the sign.
Definition: GUIBusStop.h:149
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIBusStop.cpp:193
const std::string getOptionalName() const
Returns the street name.
Definition: GUIBusStop.cpp:203
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
The simulated network and simulation perfomer.
Definition: MSNet.h:92
GUIBusStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double frompos, double topos, const std::string name, int personCapacity)
Constructor.
Definition: GUIBusStop.cpp:56
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
A list of positions.
PositionVector myFGShape
The shape.
Definition: GUIBusStop.h:143
~GUIBusStop()
Destructor.
Definition: GUIBusStop.cpp:88
bool addAccess(MSLane *lane, const double pos, const double length)
adds an access point to this stop
Definition: GUIBusStop.cpp:92
double myPersonExaggeration
The current person exaggeration.
Definition: GUIBusStop.h:158
double myWidth
The visual width of the stoppling place.
Definition: GUIBusStop.h:152
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIBusStop.cpp:135
PositionVector myAccessCoords
The coordinates of access points.
Definition: GUIBusStop.h:155
The popup menu of a globject.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIBusStop.cpp:116
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIBusStop.h:137
Position getWaitPosition(MSTransportable *person) const
Returns the next free waiting place for pedestrians / containers.
Definition: GUIBusStop.cpp:208
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIBusStop.h:140
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
A window containing a gl-object&#39;s parameter.