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