SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUITriggeredRerouter.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Reroutes vehicles passing an edge (gui-version)
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2012 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 GUITriggeredRerouter_h
23 #define GUITriggeredRerouter_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 // ===========================================================================
52  : public MSTriggeredRerouter,
54 public:
62  GUITriggeredRerouter(const std::string& id,
63  const std::vector<MSEdge*> &edges, SUMOReal prob,
64  const std::string& aXMLFilename, bool off);
65 
66 
69 
70 
71 
73 
74 
83  GUISUMOAbstractView& parent) ;
84 
85 
94  GUISUMOAbstractView& parent) ;
95 
96 
103 
104 
109  void drawGL(const GUIVisualizationSettings& s) const ;
111 
112 
113 
115  GUISUMOAbstractView& parent);
116 
117 public:
120  public:
121 
123  GUISUMOAbstractView& parent, GUIGlObject& o);
124 
126 
128  long onCmdOpenManip(FXObject*, FXSelector, void*);
129 
130  protected:
132 
133  };
134 
135 
137  FXDECLARE(GUIManip_TriggeredRerouter)
138  public:
139  enum {
145  };
148  const std::string& name, GUITriggeredRerouter& o,
149  int xpos, int ypos);
150 
152  virtual ~GUIManip_TriggeredRerouter();
153 
154  long onCmdOverride(FXObject*, FXSelector, void*);
155  long onCmdClose(FXObject*, FXSelector, void*);
156  long onCmdUserDef(FXObject*, FXSelector, void*);
157  long onUpdUserDef(FXObject*, FXSelector, void*);
158  long onCmdChangeOption(FXObject*, FXSelector, void*);
159 
160  private:
162 
164 
165  FXDataTarget myChosenTarget;
166 
168 
169  FXRealSpinDial* myUsageProbabilityDial;
170 
172 
174 
175  protected:
177 
178  };
179 
180 private:
182  typedef std::vector<Position> PosCont;
183 
185  typedef std::vector<SUMOReal> RotCont;
186 
187 private:
190 
193 
196 
197 };
198 
199 
200 #endif
201 
202 /****************************************************************************/
203