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
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>
37
#include <
microsim/trigger/MSTriggeredRerouter.h
>
38
#include <
utils/foxtools/FXRealSpinDial.h
>
39
#include <
utils/gui/globjects/GUIGlObject_AbstractAdd.h
>
40
#include <
utils/gui/globjects/GUIGLObjectPopupMenu.h
>
41
#include <
gui/GUIManipulator.h
>
42
43
44
// ===========================================================================
45
// class definitions
46
// ===========================================================================
51
class
GUITriggeredRerouter
52
:
public
MSTriggeredRerouter
,
53
public
GUIGlObject_AbstractAdd
{
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
68
~GUITriggeredRerouter
() ;
69
70
71
73
74
82
GUIGLObjectPopupMenu
*
getPopUpMenu
(
GUIMainWindow
& app,
83
GUISUMOAbstractView
& parent) ;
84
85
93
GUIParameterTableWindow
*
getParameterWindow
(
GUIMainWindow
& app,
94
GUISUMOAbstractView
& parent) ;
95
96
102
Boundary
getCenteringBoundary
()
const
;
103
104
109
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
111
112
113
114
GUIManipulator
*
openManipulator
(
GUIMainWindow
& app,
115
GUISUMOAbstractView
& parent);
116
117
public
:
118
class
GUITriggeredRerouterPopupMenu
:
public
GUIGLObjectPopupMenu
{
119
FXDECLARE(
GUITriggeredRerouterPopupMenu
)
120
public
:
121
122
GUITriggeredRerouterPopupMenu
(
GUIMainWindow
& app,
123
GUISUMOAbstractView
& parent,
GUIGlObject
& o);
124
125
~GUITriggeredRerouterPopupMenu
() ;
126
128
long
onCmdOpenManip
(
FXObject
*, FXSelector,
void
*);
129
130
protected
:
131
GUITriggeredRerouterPopupMenu
() { }
132
133
};
134
135
136
class
GUIManip_TriggeredRerouter
:
public
GUIManipulator
{
137
FXDECLARE(
GUIManip_TriggeredRerouter
)
138
public
:
139
enum
{
140
MID_USER_DEF
=
FXDialogBox::ID_LAST
,
141
MID_PRE_DEF
,
142
MID_OPTION
,
143
MID_CLOSE
,
144
ID_LAST
145
};
147
GUIManip_TriggeredRerouter
(
GUIMainWindow
& app,
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
:
161
GUIMainWindow
*
myParent
;
162
163
FXint
myChosenValue
;
164
165
FXDataTarget
myChosenTarget
;
166
167
SUMOReal
myUsageProbability
;
168
169
FXRealSpinDial*
myUsageProbabilityDial
;
170
171
FXDataTarget
myUsageProbabilityTarget
;
172
173
GUITriggeredRerouter
*
myObject
;
174
175
protected
:
176
GUIManip_TriggeredRerouter
() { }
177
178
};
179
180
private
:
182
typedef
std::vector<Position>
PosCont
;
183
185
typedef
std::vector<SUMOReal>
RotCont
;
186
187
private
:
189
PosCont
myFGPositions
;
190
192
RotCont
myFGRotations
;
193
195
Boundary
myBoundary
;
196
197
};
198
199
200
#endif
201
202
/****************************************************************************/
203
build
buildd
sumo-0.15.0~dfsg
src
guisim
GUITriggeredRerouter.h
Generated on Wed Jul 18 2012 22:58:32 for SUMO - Simulation of Urban MObility by
1.8.1.1