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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // A lane area vehicles can halt at (gui-version)
20 /****************************************************************************/
21 #ifndef GUIBusStop_h
22 #define GUIBusStop_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <string>
36 #include <utils/common/Command.h>
43 #include <utils/geom/Position.h>
44 #include <gui/GUIManipulator.h>
46 
47 
48 // ===========================================================================
49 // class declarations
50 // ===========================================================================
51 class MSNet;
52 class MSLane;
53 class GUIManipulator;
54 
55 
56 // ===========================================================================
57 // class definitions
58 // ===========================================================================
71 public:
80  GUIBusStop(const std::string& id,
81  const std::vector<std::string>& lines, MSLane& lane,
82  double frompos, double topos, const std::string name);
83 
84 
86  ~GUIBusStop();
87 
88 
90  void addAccess(MSLane* lane, const double pos);
91 
93 
94 
103  GUISUMOAbstractView& parent);
104 
105 
116  GUISUMOAbstractView& parent);
117 
118 
125 
126 
131  void drawGL(const GUIVisualizationSettings& s) const;
133 
134 
135 private:
137  std::vector<double> myFGShapeRotations;
138 
140  std::vector<double> myFGShapeLengths;
141 
144 
147 
149  double myFGSignRot;
150 
153 
154 
155 };
156 
157 
158 #endif
159 
160 /****************************************************************************/
161 
A lane area vehicles can halt at (gui-version)
Definition: GUIBusStop.h:70
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIBusStop.cpp:103
A lane area vehicles can halt at.
void addAccess(MSLane *lane, const double pos)
adds an access point to this stop
Definition: GUIBusStop.cpp:96
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:189
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:47
The simulated network and simulation perfomer.
Definition: MSNet.h:90
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
A list of positions.
PositionVector myFGShape
The shape.
Definition: GUIBusStop.h:143
~GUIBusStop()
Destructor.
Definition: GUIBusStop.cpp:92
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIBusStop.cpp:133
PositionVector myAccessCoords
The coordinates of access points.
Definition: GUIBusStop.h:152
The popup menu of a globject.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIBusStop.cpp:117
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIBusStop.h:137
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:77
A window containing a gl-object&#39;s parameter.
GUIBusStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double frompos, double topos, const std::string name)
Constructor.
Definition: GUIBusStop.cpp:62