Eclipse 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-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 /****************************************************************************/
18 // A lane area vehicles can halt at (gui-version)
19 /****************************************************************************/
20 #ifndef GUIChargingStation_h
21 #define GUIChargingStation_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <vector>
30 #include <string>
31 #include <utils/common/Command.h>
35 #include <guisim/GUIBusStop.h>
39 #include <utils/geom/Position.h>
40 #include <gui/GUIManipulator.h>
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class MSNet;
47 class MSLane;
48 class GUIManipulator;
49 
50 
51 // ===========================================================================
52 // class definitions
53 // ===========================================================================
66 public:
77  GUIChargingStation(const std::string& id, MSLane& lane, double frompos, double topos,
78  const std::string& name,
79  double chargingPower, double efficiency, bool chargeInTransit, double chargeDelay);
80 
83 
85 
86 
95 
106 
113 
115  const std::string getOptionalName() const;
116 
121  void drawGL(const GUIVisualizationSettings& s) const;
123 
124 private:
126  std::vector<double> myFGShapeRotations;
127 
129  std::vector<double> myFGShapeLengths;
130 
133 
136 
138  double myFGSignRot;
139 };
140 
141 #endif
142 
GUIGlObject.h
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIGLObjectPopupMenu.h
MSChargingStation.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
PositionVector
A list of positions.
Definition: PositionVector.h:45
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
GUIChargingStation::myFGShape
PositionVector myFGShape
The shape.
Definition: GUIChargingStation.h:132
GUIChargingStation::~GUIChargingStation
~GUIChargingStation()
Destructor.
Definition: GUIChargingStation.cpp:84
GUIChargingStation::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIChargingStation.cpp:111
VectorHelper.h
GUIManipulator.h
GUIChargingStation::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIChargingStation.cpp:131
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
GUIChargingStation::myFGSignPos
Position myFGSignPos
The position of the sign.
Definition: GUIChargingStation.h:135
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
MSChargingStation
Definition: MSChargingStation.h:50
GUIGlObject_AbstractAdd.h
GUIChargingStation::getOptionalName
const std::string getOptionalName() const
Returns the stopping place name.
Definition: GUIChargingStation.cpp:190
GUIChargingStation::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIChargingStation.cpp:123
GUIChargingStation::myFGShapeLengths
std::vector< double > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIChargingStation.h:129
GUIChargingStation::myFGSignRot
double myFGSignRot
The rotation of the sign.
Definition: GUIChargingStation.h:138
Position.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIManipulator
Definition: GUIManipulator.h:42
GUIChargingStation
A lane area vehicles can halt at (gui-version)
Definition: GUIChargingStation.h:65
config.h
GUIChargingStation::GUIChargingStation
GUIChargingStation(const std::string &id, MSLane &lane, double frompos, double topos, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, double chargeDelay)
Constructor.
Definition: GUIChargingStation.cpp:55
Command.h
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
GUIBusStop.h
GUIChargingStation::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIChargingStation.cpp:89
PositionVector.h
GUIChargingStation::myFGShapeRotations
std::vector< double > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIChargingStation.h:126