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-2018 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 
81 
84 
85 
86 
88 
89 
98  GUISUMOAbstractView& parent);
99 
100 
111  GUISUMOAbstractView& parent);
112 
113 
120 
121 
126  void drawGL(const GUIVisualizationSettings& s) const;
128 
129 
130 private:
132  std::vector<double> myShapeRotations;
133 
135  std::vector<double> myShapeLengths;
136 
139 
141  double mySignRot;
142 
143 };
144 
145 
146 #endif
147 
148 /****************************************************************************/
A lane area vehicles can halt at.
Definition: MSParkingArea.h:59
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:85
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.
The popup menu of a globject.
A lane area vehicles can halt at (gui-version)
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)
Constructor.
~GUIParkingArea()
Destructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Representation of a lane in the micro simulation.
Definition: MSLane.h:71
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.