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 /****************************************************************************/
14 // A area where vehicles can park next to the road (gui version)
15 /****************************************************************************/
16 #ifndef GUIParkingArea_h
17 #define GUIParkingArea_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <vector>
26 #include <string>
27 #include <utils/common/Command.h>
30 #include <microsim/MSParkingArea.h>
34 #include <utils/geom/Position.h>
35 #include <gui/GUIManipulator.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSNet;
42 class MSLane;
43 class GUIManipulator;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
61 public:
62 
75  GUIParkingArea(const std::string& id,
76  const std::vector<std::string>& lines, MSLane& lane,
77  double frompos, double topos, unsigned int capacity,
78  double width, double length, double angle, const std::string& name,
79  bool onRoad);
80 
81 
84 
85 
86 
88 
89 
98  GUISUMOAbstractView& parent);
99 
100 
111  GUISUMOAbstractView& parent);
112 
113 
120 
122  const std::string getOptionalName() const;
123 
125  void addLotEntry(double x, double y, double z,
126  double width, double length, double angle);
127 
132  void drawGL(const GUIVisualizationSettings& s) const;
134 
135 
136 private:
138  std::vector<double> myShapeRotations;
139 
141  std::vector<double> myShapeLengths;
142 
145 
147  double mySignRot;
148 
151 
152 };
153 
154 
155 #endif
156 
157 /****************************************************************************/
GUIGlObject.h
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
MSParkingArea
A lane area vehicles can halt at.
Definition: MSParkingArea.h:59
GUIParkingArea::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIParkingArea.cpp:87
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
GUIParkingArea
A lane area vehicles can halt at (gui-version)
Definition: GUIParkingArea.h:60
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIGLObjectPopupMenu.h
GUIParkingArea::addLotEntry
void addLotEntry(double x, double y, double z, double width, double length, double angle)
extend boundary
Definition: GUIParkingArea.cpp:205
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
VectorHelper.h
GUIParkingArea::~GUIParkingArea
~GUIParkingArea()
Destructor.
Definition: GUIParkingArea.cpp:83
GUIParkingArea::myShapeLengths
std::vector< double > myShapeLengths
The lengths of the shape parts.
Definition: GUIParkingArea.h:141
GUIManipulator.h
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIParkingArea::mySignPos
Position mySignPos
The position of the sign.
Definition: GUIParkingArea.h:144
GUIGlObject_AbstractAdd.h
MSParkingArea.h
GUIParkingArea::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIParkingArea.cpp:119
GUIParkingArea::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIParkingArea.cpp:101
GUIParkingArea::mySignRot
double mySignRot
The rotation of the sign.
Definition: GUIParkingArea.h:147
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIManipulator
Definition: GUIManipulator.h:42
GUIParkingArea::myBoundary
Boundary myBoundary
the centering boundary
Definition: GUIParkingArea.h:150
GUIParkingArea::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIParkingArea.cpp:215
GUIParkingArea::GUIParkingArea
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.
Definition: GUIParkingArea.cpp:55
config.h
GUIParkingArea::getOptionalName
const std::string getOptionalName() const
Returns the stopping place name.
Definition: GUIParkingArea.cpp:221
Command.h
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
MSStoppingPlace.h
GUIParkingArea::myShapeRotations
std::vector< double > myShapeRotations
The rotations of the shape parts.
Definition: GUIParkingArea.h:138