SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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-sim.org/
12 // Copyright (C) 2001-2013 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 
90 
92 
93 
102  GUISUMOAbstractView& parent);
103 
104 
115  GUISUMOAbstractView& parent);
116 
117 
124 
125 
130  void drawGL(const GUIVisualizationSettings& s) const;
132 
133 
134 private:
136  std::vector<SUMOReal> myFGShapeRotations;
137 
139  std::vector<SUMOReal> myFGShapeLengths;
140 
143 
146 
149 
150 
151 };
152 
153 
154 #endif
155 
156 /****************************************************************************/
157 
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:98
Stores the information about how to visualize structures.
Position myFGSignPos
The position of the sign.
Definition: GUIBusStop.h:145
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIBusStop.cpp:127
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
The simulated network and simulation perfomer.
Definition: MSNet.h:89
GUIBusStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal frompos, SUMOReal topos)
Constructor.
Definition: GUIBusStop.cpp:67
std::vector< SUMOReal > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIBusStop.h:136
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A lane area vehicles can halt at.
Definition: MSBusStop.h:63
A list of positions.
PositionVector myFGShape
The shape.
Definition: GUIBusStop.h:142
~GUIBusStop()
Destructor.
Definition: GUIBusStop.cpp:94
std::vector< SUMOReal > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIBusStop.h:139
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIBusStop.cpp:179
The popup menu of a globject.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIBusStop.cpp:112
#define SUMOReal
Definition: config.h:215
SUMOReal myFGSignRot
The rotation of the sign.
Definition: GUIBusStop.h:148
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
A window containing a gl-object&#39;s parameter.