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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A area where vehicles can park next to the road (gui version)
18 /****************************************************************************/
19 #ifndef GUIParkingArea_h
20 #define GUIParkingArea_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <vector>
33 #include <string>
34 #include <utils/common/Command.h>
37 #include <microsim/MSParkingArea.h>
41 #include <utils/geom/Position.h>
42 #include <gui/GUIManipulator.h>
44 
45 
46 // ===========================================================================
47 // class declarations
48 // ===========================================================================
49 class MSNet;
50 class MSLane;
51 class GUIManipulator;
52 
53 
54 // ===========================================================================
55 // class definitions
56 // ===========================================================================
69 public:
70 
83  GUIParkingArea(const std::string& id,
84  const std::vector<std::string>& lines, MSLane& lane,
85  double frompos, double topos, unsigned int capacity,
86  double width, double length, double angle);
87 
88 
91 
92 
93 
95 
96 
105  GUISUMOAbstractView& parent);
106 
107 
118  GUISUMOAbstractView& parent);
119 
120 
127 
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 
150 };
151 
152 
153 #endif
154 
155 /****************************************************************************/
A lane area vehicles can halt at.
Definition: MSParkingArea.h:65
Stores the information about how to visualize structures.
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)
Constructor.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:47
The simulated network and simulation perfomer.
Definition: MSNet.h:90
std::vector< double > myShapeLengths
The lengths of the shape parts.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
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()
Destructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
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.