SUMO - Simulation of Urban MObility
GUIContainerStop.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A lane area vehicles can halt at (gui-version)
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef GUIContainerStop_h
22 #define GUIContainerStop_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <string>
36 #include <utils/common/Command.h>
43 #include <utils/geom/Position.h>
44 #include <gui/GUIManipulator.h>
46 
47 
48 // ===========================================================================
49 // class declarations
50 // ===========================================================================
51 class MSNet;
52 class MSLane;
53 class GUIManipulator;
54 
55 
56 // ===========================================================================
57 // class definitions
58 // ===========================================================================
71 public:
80  GUIContainerStop(const std::string& id,
81  const std::vector<std::string>& lines, MSLane& lane,
82  SUMOReal frompos, SUMOReal topos);
83 
84 
87 
88 
89 
91 
92 
101  GUISUMOAbstractView& parent);
102 
103 
114  GUISUMOAbstractView& parent);
115 
116 
123 
124 
129  void drawGL(const GUIVisualizationSettings& s) const;
131 
132 
133 private:
135  std::vector<SUMOReal> myFGShapeRotations;
136 
138  std::vector<SUMOReal> myFGShapeLengths;
139 
142 
145 
148 
149 
150 };
151 
152 
153 #endif
154 
155 /****************************************************************************/
156 
PositionVector myFGShape
The shape.
A lane area vehicles can halt at and load and unload containers.
SUMOReal myFGSignRot
The rotation of the sign.
Stores the information about how to visualize structures.
~GUIContainerStop()
Destructor.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
The simulated network and simulation perfomer.
Definition: MSNet.h:94
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A list of positions.
std::vector< SUMOReal > myFGShapeLengths
The lengths of the shape parts.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Position myFGSignPos
The position of the sign.
std::vector< SUMOReal > myFGShapeRotations
The rotations of the shape parts.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GUIContainerStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal frompos, SUMOReal topos)
Constructor.
A lane area vehicles can halt at (gui-version)
The popup menu of a globject.
#define SUMOReal
Definition: config.h:218
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
A window containing a gl-object's parameter.