Eclipse 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-2019 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 /****************************************************************************/
15 // A lane area vehicles can halt at (gui-version)
16 /****************************************************************************/
17 #ifndef GUIContainerStop_h
18 #define GUIContainerStop_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <vector>
27 #include <string>
28 #include <utils/common/Command.h>
35 #include <utils/geom/Position.h>
36 #include <gui/GUIManipulator.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class MSNet;
43 class MSLane;
44 class GUIManipulator;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
62 public:
71  GUIContainerStop(const std::string& id,
72  const std::vector<std::string>& lines, MSLane& lane,
73  double frompos, double topos, const std::string& name, int containerCapacity);
74 
75 
78 
79 
80 
82 
83 
92  GUISUMOAbstractView& parent);
93 
94 
105  GUISUMOAbstractView& parent);
106 
107 
114 
116  const std::string getOptionalName() const;
117 
122  void drawGL(const GUIVisualizationSettings& s) const;
124 
125 
126 private:
128  std::vector<double> myFGShapeRotations;
129 
131  std::vector<double> myFGShapeLengths;
132 
135 
138 
140  double myFGSignRot;
141 
142 
143 };
144 
145 
146 #endif
147 
148 /****************************************************************************/
149 
GUIGlObject.h
MSStoppingPlace
A lane area vehicles can halt at.
Definition: MSStoppingPlace.h:59
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
GUIContainerStop::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIContainerStop.cpp:119
GUIContainerStop::myFGSignPos
Position myFGSignPos
The position of the sign.
Definition: GUIContainerStop.h:137
GUIContainerStop::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIContainerStop.cpp:87
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIGLObjectPopupMenu.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
PositionVector
A list of positions.
Definition: PositionVector.h:45
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
GUIContainerStop::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIContainerStop.cpp:101
GUIContainerStop::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIContainerStop.cpp:171
VectorHelper.h
GUIContainerStop::myFGShapeRotations
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIContainerStop.h:128
GUIContainerStop::myFGSignRot
double myFGSignRot
The rotation of the sign.
Definition: GUIContainerStop.h:140
GUIContainerStop::myFGShape
PositionVector myFGShape
The shape.
Definition: GUIContainerStop.h:134
GUIManipulator.h
GUIContainerStop::myFGShapeLengths
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIContainerStop.h:131
GUIContainerStop
A lane area vehicles can halt at (gui-version)
Definition: GUIContainerStop.h:61
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIGlObject_AbstractAdd.h
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIManipulator
Definition: GUIManipulator.h:42
GUIContainerStop::GUIContainerStop
GUIContainerStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double frompos, double topos, const std::string &name, int containerCapacity)
Constructor.
Definition: GUIContainerStop.cpp:53
config.h
Command.h
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
MSStoppingPlace.h
PositionVector.h
GUIContainerStop::~GUIContainerStop
~GUIContainerStop()
Destructor.
Definition: GUIContainerStop.cpp:83
GUIContainerStop::getOptionalName
const std::string getOptionalName() const
Returns the stopping place name.
Definition: GUIContainerStop.cpp:178