SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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.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 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
35
#include <
gui/GUITLLogicPhasesTrackerWindow.h
>
36
#include <
utils/gui/globjects/GUIGlObject.h
>
37
#include <
utils/gui/globjects/GUIGLObjectPopupMenu.h
>
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
MSTrafficLightLogic
;
44
class
GUIMainWindow
;
45
46
47
// ===========================================================================
48
// class definition
49
// ===========================================================================
55
class
GUITrafficLightLogicWrapper
:
public
GUIGlObject
{
56
public
:
58
GUITrafficLightLogicWrapper
(
MSTLLogicControl
& control,
MSTrafficLightLogic
& tll) ;
59
61
~GUITrafficLightLogicWrapper
() ;
62
63
64
66
67
75
GUIGLObjectPopupMenu
*
getPopUpMenu
(
GUIMainWindow
& app,
76
GUISUMOAbstractView
& parent) ;
77
78
86
GUIParameterTableWindow
*
getParameterWindow
(
GUIMainWindow
& app,
87
GUISUMOAbstractView
& parent) ;
88
89
95
Boundary
getCenteringBoundary
()
const
;
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
:
125
class
GUITrafficLightLogicWrapperPopupMenu
:
public
GUIGLObjectPopupMenu
{
126
FXDECLARE(
GUITrafficLightLogicWrapperPopupMenu
)
127
public
:
129
GUITrafficLightLogicWrapperPopupMenu
(
GUIMainWindow
& app,
130
GUISUMOAbstractView
& parent,
GUIGlObject
& o);
131
133
~GUITrafficLightLogicWrapperPopupMenu
() ;
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
:
146
GUITrafficLightLogicWrapperPopupMenu
() { }
147
148
};
149
150
private
:
152
MSTLLogicControl
&
myTLLogicControl
;
153
155
MSTrafficLightLogic
&
myTLLogic
;
156
158
GUIMainWindow
*
myApp
;
159
160
};
161
162
163
#endif
164
165
/****************************************************************************/
166
build
buildd
sumo-0.15.0~dfsg
src
guisim
GUITrafficLightLogicWrapper.h
Generated on Wed Jul 18 2012 22:58:32 for SUMO - Simulation of Urban MObility by
1.8.1.1