SUMO - Simulation of Urban MObility
GUIBusStop.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A lane area vehicles can halt at (gui-version)
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUIBusStop_h
23 #define GUIBusStop_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <vector>
36 #include <string>
37 #include <utils/common/Command.h>
44 #include <utils/geom/Position.h>
45 #include <gui/GUIManipulator.h>
47 
48 
49 // ===========================================================================
50 // class declarations
51 // ===========================================================================
52 class MSNet;
53 class MSLane;
54 class GUIManipulator;
55 
56 
57 // ===========================================================================
58 // class definitions
59 // ===========================================================================
72 public:
81  GUIBusStop(const std::string& id,
82  const std::vector<std::string>& lines, MSLane& lane,
83  SUMOReal frompos, SUMOReal topos);
84 
85 
87  ~GUIBusStop();
88 
89 
91  void addAccess(MSLane* lane, const SUMOReal pos);
92 
94 
95 
104  GUISUMOAbstractView& parent);
105 
106 
117  GUISUMOAbstractView& parent);
118 
119 
126 
127 
132  void drawGL(const GUIVisualizationSettings& s) const;
134 
135 
136 private:
138  std::vector<SUMOReal> myFGShapeRotations;
139 
141  std::vector<SUMOReal> myFGShapeLengths;
142 
145 
148 
151 
154 
155 
156 };
157 
158 
159 #endif
160 
161 /****************************************************************************/
162 
A lane area vehicles can halt at (gui-version)
Definition: GUIBusStop.h:71
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIBusStop.cpp:105
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:147
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIBusStop.cpp:134
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
The simulated network and simulation perfomer.
Definition: MSNet.h:93
GUIBusStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal frompos, SUMOReal topos)
Constructor.
Definition: GUIBusStop.cpp:66
std::vector< SUMOReal > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIBusStop.h:138
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A list of positions.
PositionVector myFGShape
The shape.
Definition: GUIBusStop.h:144
~GUIBusStop()
Destructor.
Definition: GUIBusStop.cpp:94
void addAccess(MSLane *lane, const SUMOReal pos)
adds an access point to this stop
Definition: GUIBusStop.cpp:98
std::vector< SUMOReal > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIBusStop.h:141
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIBusStop.cpp:185
PositionVector myAccessCoords
The coordinates of access points.
Definition: GUIBusStop.h:153
The popup menu of a globject.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIBusStop.cpp:119
#define SUMOReal
Definition: config.h:213
SUMOReal myFGSignRot
The rotation of the sign.
Definition: GUIBusStop.h:150
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
A window containing a gl-object&#39;s parameter.