SUMO - Simulation of Urban MObility
GUIContainerStop.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-2018 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 GUIContainerStop_h
19 #define GUIContainerStop_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  GUIContainerStop(const std::string& id,
73  const std::vector<std::string>& lines, MSLane& lane,
74  double frompos, double topos);
75 
76 
79 
80 
81 
83 
84 
93  GUISUMOAbstractView& parent);
94 
95 
106  GUISUMOAbstractView& parent);
107 
108 
115 
116 
121  void drawGL(const GUIVisualizationSettings& s) const;
123 
124 
125 private:
127  std::vector<double> myFGShapeRotations;
128 
130  std::vector<double> myFGShapeLengths;
131 
134 
137 
139  double myFGSignRot;
140 
141 
142 };
143 
144 
145 #endif
146 
147 /****************************************************************************/
148 
PositionVector myFGShape
The shape.
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
A lane area vehicles can halt at.
Stores the information about how to visualize structures.
~GUIContainerStop()
Destructor.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
The simulated network and simulation perfomer.
Definition: MSNet.h:84
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
A list of positions.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Position myFGSignPos
The position of the sign.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
double myFGSignRot
The rotation of the sign.
A lane area vehicles can halt at (gui-version)
GUIContainerStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double frompos, double topos)
Constructor.
The popup menu of a globject.
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Representation of a lane in the micro simulation.
Definition: MSLane.h:78
A window containing a gl-object&#39;s parameter.