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-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 /****************************************************************************/
18 // A lane area vehicles can halt at (gui-version)
19 /****************************************************************************/
20 #ifndef GUIContainerStop_h
21 #define GUIContainerStop_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
34 #include <string>
35 #include <utils/common/Command.h>
42 #include <utils/geom/Position.h>
43 #include <gui/GUIManipulator.h>
45 
46 
47 // ===========================================================================
48 // class declarations
49 // ===========================================================================
50 class MSNet;
51 class MSLane;
52 class GUIManipulator;
53 
54 
55 // ===========================================================================
56 // class definitions
57 // ===========================================================================
70 public:
79  GUIContainerStop(const std::string& id,
80  const std::vector<std::string>& lines, MSLane& lane,
81  double frompos, double topos);
82 
83 
86 
87 
88 
90 
91 
100  GUISUMOAbstractView& parent);
101 
102 
113  GUISUMOAbstractView& parent);
114 
115 
122 
123 
128  void drawGL(const GUIVisualizationSettings& s) const;
130 
131 
132 private:
134  std::vector<double> myFGShapeRotations;
135 
137  std::vector<double> myFGShapeLengths;
138 
141 
144 
146  double myFGSignRot;
147 
148 
149 };
150 
151 
152 #endif
153 
154 /****************************************************************************/
155 
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:47
The simulated network and simulation perfomer.
Definition: MSNet.h:90
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
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:77
A window containing a gl-object&#39;s parameter.