SUMO - Simulation of Urban MObility
GUIChargingStation.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 /****************************************************************************/
21 // A lane area vehicles can halt at (gui-version)
22 /****************************************************************************/
23 #ifndef GUIChargingStation_h
24 #define GUIChargingStation_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <vector>
37 #include <string>
38 #include <utils/common/Command.h>
42 #include <guisim/GUIBusStop.h>
46 #include <utils/geom/Position.h>
47 #include <gui/GUIManipulator.h>
49 
50 
51 // ===========================================================================
52 // class declarations
53 // ===========================================================================
54 class MSNet;
55 class MSLane;
56 class GUIManipulator;
57 
58 
59 // ===========================================================================
60 // class definitions
61 // ===========================================================================
74 public:
85  GUIChargingStation(const std::string& id, MSLane& lane, double frompos, double topos,
86  double chargingPower, double efficiency, bool chargeInTransit, int chargeDelay);
87 
90 
92 
93 
102 
113 
120 
125  void drawGL(const GUIVisualizationSettings& s) const;
127 
128 private:
130  std::vector<double> myFGShapeRotations;
131 
133  std::vector<double> myFGShapeLengths;
134 
137 
140 
142  double myFGSignRot;
143 };
144 
145 #endif
146 
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:47
The simulated network and simulation perfomer.
Definition: MSNet.h:90
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:45
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:77
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.