SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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.dlr.de/
12 // Copyright (C) 2001-2015 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 
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
long onCmdBegin2TrackPhases(FXObject *, FXSelector, void *)
Called if the phases shall be begun to track.
Stores the information about how to visualize structures.
int getLinkIndex(const MSLink *const link) const
Returns the index of the given link within the according tls.
void begin2TrackPhases()
Builds a GUITLLogicPhasesTrackerWindow which will receive new phases.
MSTLLogicControl & myTLLogicControl
Reference to the according tls.
GUIMainWindow * myApp
The main application.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void showPhases()
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
A class that stores and controls tls and switching of their programs.
void switchTLSLogic(int to)
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
MSTrafficLightLogic & myTLLogic
The wrapped tl-logic.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
The popup menu of a globject.
GUITrafficLightLogicWrapper(MSTLLogicControl &control, MSTrafficLightLogic &tll)
Constructor.
The parent class for traffic light logics.
A window containing a gl-object's parameter.
long onCmdShowPhases(FXObject *, FXSelector, void *)
Called if the phases shall be shown.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.