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-2021 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 /****************************************************************************/
20 // A lane area vehicles can halt at (gui-version)
21 /****************************************************************************/
22 #pragma once
23 #include <config.h>
24 
25 #include <vector>
26 #include <string>
27 #include <utils/common/Command.h>
29 #include <utils/common/RGBColor.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,
74  int containerCapacity, double parkingLength, const RGBColor& color);
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 };
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:60
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:70
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:121
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:89
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIGLObjectPopupMenu.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:37
PositionVector
A list of positions.
Definition: PositionVector.h:43
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:45
GUIContainerStop::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIContainerStop.cpp:103
RGBColor.h
GUIContainerStop::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIContainerStop.cpp:173
VectorHelper.h
RGBColor
Definition: RGBColor.h:37
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:61
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, double parkingLength, const RGBColor &color)
Constructor.
Definition: GUIContainerStop.cpp:54
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:39
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:37
GUIGlObject_AbstractAdd.h
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:44
GUIManipulator
Definition: GUIManipulator.h:40
config.h
Command.h
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:499
MSStoppingPlace.h
PositionVector.h
GUIContainerStop::~GUIContainerStop
~GUIContainerStop()
Destructor.
Definition: GUIContainerStop.cpp:85
GUIContainerStop::getOptionalName
const std::string getOptionalName() const
Returns the stopping place name.
Definition: GUIContainerStop.cpp:180