SUMO - Simulation of Urban MObility
GUIChargingStation.h
Go to the documentation of this file.
1 /****************************************************************************/
11 // A lane area vehicles can halt at (gui-version)
12 /****************************************************************************/
13 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
14 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 #ifndef GUIChargingStation_h
25 #define GUIChargingStation_h
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include <vector>
38 #include <string>
39 #include <utils/common/Command.h>
43 #include <guisim/GUIBusStop.h>
47 #include <utils/geom/Position.h>
48 #include <gui/GUIManipulator.h>
50 
51 
52 // ===========================================================================
53 // class declarations
54 // ===========================================================================
55 class MSNet;
56 class MSLane;
57 class GUIManipulator;
58 
59 
60 // ===========================================================================
61 // class definitions
62 // ===========================================================================
75 public:
86  GUIChargingStation(const std::string& id, MSLane& lane, double frompos, double topos,
87  double chargingPower, double efficiency, bool chargeInTransit, int chargeDelay);
88 
91 
93 
94 
103 
114 
121 
126  void drawGL(const GUIVisualizationSettings& s) const;
128 
129 private:
131  std::vector<double> myFGShapeRotations;
132 
134  std::vector<double> myFGShapeLengths;
135 
138 
141 
143  double myFGSignRot;
144 };
145 
146 #endif
147 
PositionVector myFGShape
The shape.
~GUIChargingStation()
Destructor.
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Stores the information about how to visualize structures.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
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.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Position myFGSignPos
The position of the sign.
The popup menu of a globject.
A lane area vehicles can halt at (gui-version)
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
double myFGSignRot
The rotation of the sign.
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
GUIChargingStation(const std::string &id, MSLane &lane, double frompos, double topos, double chargingPower, double efficiency, bool chargeInTransit, int chargeDelay)
Constructor.
A window containing a gl-object&#39;s parameter.