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 /****************************************************************************/
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, const std::string& name, int containerCapacity);
75 
76 
79 
80 
81 
83 
84 
93  GUISUMOAbstractView& parent);
94 
95 
106  GUISUMOAbstractView& parent);
107 
108 
115 
117  const std::string getOptionalName() const;
118 
123  void drawGL(const GUIVisualizationSettings& s) const;
125 
126 
127 private:
129  std::vector<double> myFGShapeRotations;
130 
132  std::vector<double> myFGShapeLengths;
133 
136 
139 
141  double myFGSignRot;
142 
143 
144 };
145 
146 
147 #endif
148 
149 /****************************************************************************/
150 
GUIGlObject.h
MSStoppingPlace
A lane area vehicles can halt at.
Definition: MSStoppingPlace.h:60
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:63
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
GUIContainerStop::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIContainerStop.cpp:120
GUIContainerStop::myFGSignPos
Position myFGSignPos
The position of the sign.
Definition: GUIContainerStop.h:138
GUIContainerStop::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIContainerStop.cpp:88
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:92
GUIGLObjectPopupMenu.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:40
PositionVector
A list of positions.
Definition: PositionVector.h:46
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:48
GUIContainerStop::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIContainerStop.cpp:102
GUIContainerStop::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIContainerStop.cpp:172
VectorHelper.h
GUIContainerStop::myFGShapeRotations
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIContainerStop.h:129
GUIContainerStop::myFGSignRot
double myFGSignRot
The rotation of the sign.
Definition: GUIContainerStop.h:141
GUIContainerStop::myFGShape
PositionVector myFGShape
The shape.
Definition: GUIContainerStop.h:135
GUIManipulator.h
GUIContainerStop::myFGShapeLengths
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIContainerStop.h:132
GUIContainerStop
A lane area vehicles can halt at (gui-version)
Definition: GUIContainerStop.h:62
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GUIGlObject_AbstractAdd.h
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIManipulator
Definition: GUIManipulator.h:43
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:54
config.h
Command.h
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:346
MSStoppingPlace.h
PositionVector.h
GUIContainerStop::~GUIContainerStop
~GUIContainerStop()
Destructor.
Definition: GUIContainerStop.cpp:84
GUIContainerStop::getOptionalName
const std::string getOptionalName() const
Returns the stopping place name.
Definition: GUIContainerStop.cpp:179