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 /****************************************************************************/
16 // A lane area vehicles can halt at (gui-version)
17 /****************************************************************************/
18 #ifndef GUIBusStop_h
19 #define GUIBusStop_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <vector>
28 #include <string>
29 #include <utils/common/Command.h>
36 #include <utils/geom/Position.h>
37 #include <gui/GUIManipulator.h>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class MSNet;
44 class MSLane;
45 class GUIManipulator;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
63 public:
72  GUIBusStop(const std::string& id,
73  const std::vector<std::string>& lines, MSLane& lane,
74  double frompos, double topos, const std::string name, int personCapacity);
75 
76 
78  ~GUIBusStop();
79 
80 
82  bool addAccess(MSLane* lane, const double pos, const double length);
83 
85 
86 
95  GUISUMOAbstractView& parent);
96 
97 
108  GUISUMOAbstractView& parent);
109 
110 
117 
119  const std::string getOptionalName() const;
120 
125  void drawGL(const GUIVisualizationSettings& s) const;
126 
132 
133 
134 private:
136  std::vector<double> myFGShapeRotations;
137 
139  std::vector<double> myFGShapeLengths;
140 
143 
146 
148  double myFGSignRot;
149 
151  double myWidth;
152 
155 
157  mutable double myPersonExaggeration;
158 
159 
160 };
161 
162 
163 #endif
164 
165 /****************************************************************************/
166 
GUIBusStop::~GUIBusStop
~GUIBusStop()
Destructor.
Definition: GUIBusStop.cpp:87
GUIBusStop::getOptionalName
const std::string getOptionalName() const
Returns the street name.
Definition: GUIBusStop.cpp:202
GUIGlObject.h
MSStoppingPlace
A lane area vehicles can halt at.
Definition: MSStoppingPlace.h:59
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
GUIBusStop::myWidth
double myWidth
The visual width of the stoppling place.
Definition: GUIBusStop.h:151
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
GUIBusStop::getWaitPosition
Position getWaitPosition(MSTransportable *person) const
Returns the next free waiting place for pedestrians / containers.
Definition: GUIBusStop.cpp:207
GUIBusStop::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIBusStop.cpp:134
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIGLObjectPopupMenu.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
MSTransportable
Definition: MSTransportable.h:58
PositionVector
A list of positions.
Definition: PositionVector.h:45
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
GUIBusStop::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIBusStop.cpp:115
VectorHelper.h
GUIManipulator.h
GUIBusStop::addAccess
bool addAccess(MSLane *lane, const double pos, const double length)
adds an access point to this stop
Definition: GUIBusStop.cpp:91
GUIBusStop::myAccessCoords
PositionVector myAccessCoords
The coordinates of access points.
Definition: GUIBusStop.h:154
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIGlObject_AbstractAdd.h
GUIBusStop::myFGSignRot
double myFGSignRot
The rotation of the sign.
Definition: GUIBusStop.h:148
GUIBusStop::myPersonExaggeration
double myPersonExaggeration
The current person exaggeration.
Definition: GUIBusStop.h:157
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIManipulator
Definition: GUIManipulator.h:42
GUIBusStop::GUIBusStop
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:55
GUIBusStop::myFGShape
PositionVector myFGShape
The shape.
Definition: GUIBusStop.h:142
GUIBusStop::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIBusStop.cpp:101
config.h
GUIBusStop
A lane area vehicles can halt at (gui-version)
Definition: GUIBusStop.h:62
Command.h
GUIBusStop::myFGSignPos
Position myFGSignPos
The position of the sign.
Definition: GUIBusStop.h:145
GUIBusStop::myFGShapeRotations
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIBusStop.h:136
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
MSStoppingPlace.h
GUIBusStop::myFGShapeLengths
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIBusStop.h:139
PositionVector.h
GUIBusStop::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIBusStop.cpp:192