SUMO - Simulation of Urban MObility
GUIParkingArea.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A area where vehicles can park next to the road (gui version)
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUIParkingArea_h
21 #define GUIParkingArea_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
34 #include <string>
35 #include <utils/common/Command.h>
38 #include <microsim/MSParkingArea.h>
42 #include <utils/geom/Position.h>
43 #include <gui/GUIManipulator.h>
45 
46 
47 // ===========================================================================
48 // class declarations
49 // ===========================================================================
50 class MSNet;
51 class MSLane;
52 class GUIManipulator;
53 
54 
55 // ===========================================================================
56 // class definitions
57 // ===========================================================================
70 public:
71 
84  GUIParkingArea(const std::string& id,
85  const std::vector<std::string>& lines, MSLane& lane,
86  double frompos, double topos, unsigned int capacity,
87  double width, double length, double angle);
88 
89 
92 
93 
94 
96 
97 
106  GUISUMOAbstractView& parent);
107 
108 
119  GUISUMOAbstractView& parent);
120 
121 
128 
129 
134  void drawGL(const GUIVisualizationSettings& s) const;
136 
137 
138 private:
140  std::vector<double> myShapeRotations;
141 
143  std::vector<double> myShapeLengths;
144 
147 
149  double mySignRot;
150 
151 };
152 
153 
154 #endif
155 
156 /****************************************************************************/
A lane area vehicles can halt at.
Definition: MSParkingArea.h:66
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:48
The simulated network and simulation perfomer.
Definition: MSNet.h:94
std::vector< double > myShapeLengths
The lengths of the shape parts.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
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:79
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.