SUMO - Simulation of Urban MObility
GUITrafficLightLogicWrapper.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // A wrapper for tl-logics to allow their visualisation and interaction
20 /****************************************************************************/
21 #ifndef GUITrafficLightLogicWrapper_h
22 #define GUITrafficLightLogicWrapper_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
43 class GUIMainWindow;
44 
45 
46 // ===========================================================================
47 // class definition
48 // ===========================================================================
55 public:
58 
61 
62 
63 
65 
66 
75  GUISUMOAbstractView& parent);
76 
77 
86  GUISUMOAbstractView& parent);
87 
88 
95 
96 
101  void drawGL(const GUIVisualizationSettings& s) const;
103 
104 
106  void begin2TrackPhases();
107 
109  void showPhases();
110 
112  void switchTLSLogic(int to);
113 
115  int getLinkIndex(const MSLink* const link) const;
116 
117 
118 public:
126  public:
129  GUISUMOAbstractView& parent, GUIGlObject& o);
130 
133 
135  long onCmdShowPhases(FXObject*, FXSelector, void*);
136 
138  long onCmdBegin2TrackPhases(FXObject*, FXSelector, void*);
139 
140  long onCmdSwitchTLS2Off(FXObject*, FXSelector, void*);
141  long onCmdSwitchTLSLogic(FXObject*, FXSelector, void*);
142 
143  protected:
146 
147  };
148 
149 private:
152 
155 
158 
159 };
160 
161 
162 #endif
163 
164 /****************************************************************************/
165 
long onCmdBegin2TrackPhases(FXObject *, FXSelector, void *)
Called if the phases shall be begun to track.
Stores the information about how to visualize structures.
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:47
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 drawGL(const GUIVisualizationSettings &s) const
Draws the object.
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.
int getLinkIndex(const MSLink *const link) const
Returns the index of the given link within the according tls.
The popup menu of a globject.
GUITrafficLightLogicWrapper(MSTLLogicControl &control, MSTrafficLightLogic &tll)
Constructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
The parent class for traffic light logics.
A window containing a gl-object&#39;s parameter.
long onCmdShowPhases(FXObject *, FXSelector, void *)
Called if the phases shall be shown.