Eclipse SUMO - Simulation of Urban MObility
GUIParkingArea.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 area where vehicles can park next to the road (gui version)
16 /****************************************************************************/
17 #ifndef GUIParkingArea_h
18 #define GUIParkingArea_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>
31 #include <microsim/MSParkingArea.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:
63 
76  GUIParkingArea(const std::string& id,
77  const std::vector<std::string>& lines, MSLane& lane,
78  double frompos, double topos, unsigned int capacity,
79  double width, double length, double angle, const std::string& name,
80  bool onRoad);
81 
82 
85 
86 
87 
89 
90 
99  GUISUMOAbstractView& parent);
100 
101 
112  GUISUMOAbstractView& parent);
113 
114 
121 
123  const std::string getOptionalName() const;
124 
126  void addLotEntry(double x, double y, double z,
127  double width, double length, double angle);
128 
133  void drawGL(const GUIVisualizationSettings& s) const;
135 
136 
137 private:
139  std::vector<double> myShapeRotations;
140 
142  std::vector<double> myShapeLengths;
143 
146 
148  double mySignRot;
149 
152 
153 };
154 
155 
156 #endif
157 
158 /****************************************************************************/
A lane area vehicles can halt at.
Definition: MSParkingArea.h:59
void addLotEntry(double x, double y, double z, double width, double length, double angle)
extend boundary
Boundary myBoundary
the centering boundary
GUIParkingArea(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double frompos, double topos, unsigned int capacity, double width, double length, double angle, const std::string &name, bool onRoad)
Constructor.
Stores the information about how to visualize structures.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
The simulated network and simulation perfomer.
Definition: MSNet.h:92
std::vector< double > myShapeLengths
The lengths of the shape parts.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::vector< double > myShapeRotations
The rotations of the shape parts.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
const std::string getOptionalName() const
Returns the stopping place name.
The popup menu of a globject.
A lane area vehicles can halt at (gui-version)
~GUIParkingArea()
Destructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
A window containing a gl-object&#39;s parameter.
Position mySignPos
The position of the sign.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
double mySignRot
The rotation of the sign.