SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUITrafficLightLogicWrapper.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A wrapper for tl-logics to allow their visualisation and interaction
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 GUITrafficLightLogicWrapper_h
23 #define GUITrafficLightLogicWrapper_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 
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
44 class GUIMainWindow;
45 
46 
47 // ===========================================================================
48 // class definition
49 // ===========================================================================
56 public:
59 
62 
63 
64 
66 
67 
76  GUISUMOAbstractView& parent);
77 
78 
87  GUISUMOAbstractView& parent);
88 
89 
96 
97 
102  void drawGL(const GUIVisualizationSettings& s) const;
104 
105 
107  void begin2TrackPhases();
108 
110  void showPhases();
111 
113  void switchTLSLogic(int to);
114 
116  int getLinkIndex(const MSLink* const link) const;
117 
118 
119 public:
127  public:
130  GUISUMOAbstractView& parent, GUIGlObject& o);
131 
134 
136  long onCmdShowPhases(FXObject*, FXSelector, void*);
137 
139  long onCmdBegin2TrackPhases(FXObject*, FXSelector, void*);
140 
141  long onCmdSwitchTLS2Off(FXObject*, FXSelector, void*);
142  long onCmdSwitchTLSLogic(FXObject*, FXSelector, void*);
143 
144  protected:
147 
148  };
149 
150 private:
153 
156 
159 
160 };
161 
162 
163 #endif
164 
165 /****************************************************************************/
166