SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIChrgStn.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-2015 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 GUIChrgStn_h
25 #define GUIChrgStn_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:
84  GUIChrgStn(const std::string& id,
85  const std::vector<std::string>& lines, MSLane& lane,
86  SUMOReal frompos, SUMOReal topos,
87  SUMOReal new_chrgpower, SUMOReal new_efficiency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay);
88 
89 
91  ~GUIChrgStn();
92 
93 
95 
96 
105  GUISUMOAbstractView& parent);
106 
107 
118  GUISUMOAbstractView& parent);
119 
120 
127 
128 
133  void drawGL(const GUIVisualizationSettings& s) const;
135 
136 private:
139 
142 
145 
148 
149 private:
151  std::vector<SUMOReal> myFGShapeRotations;
152 
154  std::vector<SUMOReal> myFGShapeLengths;
155 
158 
161 
164 };
165 
166 
167 #endif
168 
Position myFGSignPos
The position of the sign.
Definition: GUIChrgStn.h:160
A lane area vehicles can halt at (gui-version)
Definition: GUIChrgStn.h:74
std::vector< SUMOReal > myFGShapeLengths
The lengths of the shape parts.
Definition: GUIChrgStn.h:154
Stores the information about how to visualize structures.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIChrgStn.cpp:123
std::vector< SUMOReal > myFGShapeRotations
The rotations of the shape parts.
Definition: GUIChrgStn.h:151
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIChrgStn.cpp:104
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
The simulated network and simulation perfomer.
Definition: MSNet.h:94
SUMOReal efficiency
efficiency of the Charging Station
Definition: GUIChrgStn.h:141
PositionVector myFGShape
The shape.
Definition: GUIChrgStn.h:157
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIChrgStn.cpp:143
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIChrgStn.cpp:135
A list of positions.
SUMOReal chrgpower
chrgpower of the Charging Station
Definition: GUIChrgStn.h:138
GUIChrgStn(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal frompos, SUMOReal topos, SUMOReal new_chrgpower, SUMOReal new_efficiency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay)
Constructor.
Definition: GUIChrgStn.cpp:68
SUMOReal myFGSignRot
The rotation of the sign.
Definition: GUIChrgStn.h:163
The popup menu of a globject.
SUMOReal chargeInTransit
allow charge in transit
Definition: GUIChrgStn.h:144
SUMOReal chargeDelay
charge delay
Definition: GUIChrgStn.h:147
#define SUMOReal
Definition: config.h:215
~GUIChrgStn()
Destructor.
Definition: GUIChrgStn.cpp:99
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
A window containing a gl-object&#39;s parameter.