SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUICalibrator.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Changes flow and speed on a set of lanes (gui version)
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUICalibrator_h
23 #define GUICalibrator_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <vector>
36 #include <string>
41 #include <gui/GUIManipulator.h>
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
54 public:
61  GUICalibrator(const std::string& id,
62  MSEdge* edge, SUMOReal pos,
63  const std::string& aXMLFilename,
64  const std::string& outputFilename,
65  const SUMOTime freq,
66  const MSRouteProbe* probe);
67 
68 
71 
72 
73 
75 
76 
85  GUISUMOAbstractView& parent);
86 
87 
96  GUISUMOAbstractView& parent);
97 
98 
105 
106 
111  void drawGL(const GUIVisualizationSettings& s) const;
113 
114 
115 
117  GUISUMOAbstractView& parent);
118 
119 public:
121  FXDECLARE(GUICalibratorPopupMenu)
122  public:
123 
125  GUISUMOAbstractView& parent, GUIGlObject& o);
126 
128 
130  long onCmdOpenManip(FXObject*, FXSelector, void*);
131 
132  protected:
134 
135  };
136 
138  FXDECLARE(GUIManip_Calibrator)
139  public:
140  enum {
146  };
149  const std::string& name, GUICalibrator& o,
150  int xpos, int ypos);
151 
153  virtual ~GUIManip_Calibrator();
154 
155  long onCmdOverride(FXObject*, FXSelector, void*);
156  long onCmdClose(FXObject*, FXSelector, void*);
157  long onCmdUserDef(FXObject*, FXSelector, void*);
158  long onUpdUserDef(FXObject*, FXSelector, void*);
159  long onCmdPreDef(FXObject*, FXSelector, void*);
160  long onUpdPreDef(FXObject*, FXSelector, void*);
161  long onCmdChangeOption(FXObject*, FXSelector, void*);
162 
163  private:
165 
167 
168  FXDataTarget myChosenTarget;
169 
171 
172  FXDataTarget mySpeedTarget;
173 
174  FXRealSpinDial* myUserDefinedSpeed;
175 
176  FXComboBox* myPredefinedValues;
177 
179 
180  protected:
182 
183  };
184 
185 private:
187  typedef std::vector<Position> PosCont;
188 
190  typedef std::vector<SUMOReal> RotCont;
191 
192 private:
195 
198 
201 
204 
205 };
206 
207 
208 #endif
209 
210 /****************************************************************************/
211