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-2020 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
19 // A lane area vehicles can halt at (gui-version)
20 /****************************************************************************/
21 #pragma once
22 #include <config.h>
23 
24 #include <vector>
25 #include <string>
26 #include <utils/common/Command.h>
33 #include <utils/geom/Position.h>
34 #include <gui/GUIManipulator.h>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MSNet;
41 class MSLane;
42 class GUIManipulator;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
60 public:
69  GUIContainerStop(const std::string& id,
70  const std::vector<std::string>& lines, MSLane& lane,
71  double frompos, double topos, const std::string& name,
72  int containerCapacity, double parkingLength);
73 
74 
77 
78 
79 
81 
82 
91  GUISUMOAbstractView& parent);
92 
93 
104  GUISUMOAbstractView& parent);
105 
106 
113 
115  const std::string getOptionalName() const;
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 };
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:39
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, const std::string &name, int containerCapacity, double parkingLength)
Constructor.
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
double myFGSignRot
The rotation of the sign.
PositionVector myFGShape
The shape.
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Position myFGSignPos
The position of the sign.
~GUIContainerStop()
Destructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
const std::string getOptionalName() const
Returns the stopping place name.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
The popup menu of a globject.
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
The simulated network and simulation perfomer.
Definition: MSNet.h:89
A lane area vehicles can halt at.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:36
A list of positions.