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
GUICalibrator.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Changes flow and speed on a set of lanes (gui version)
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 GUICalibrator_h
23
#define GUICalibrator_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/MSCalibrator.h
>
38
#include <
utils/gui/globjects/GUIGlObject_AbstractAdd.h
>
39
#include <
utils/gui/globjects/GUIGLObjectPopupMenu.h
>
40
#include <
utils/foxtools/FXRealSpinDial.h
>
41
#include <
gui/GUIManipulator.h
>
42
43
44
// ===========================================================================
45
// class definitions
46
// ===========================================================================
53
class
GUICalibrator
:
public
MSCalibrator
,
public
GUIGlObject_AbstractAdd
{
54
public
:
61
GUICalibrator
(
const
std::string&
id
,
62
MSEdge
* edge,
SUMOReal
pos,
63
const
std::string& aXMLFilename,
64
const
std::string& outputFilename,
65
const
SUMOTime
freq,
66
const
MSRouteProbe
* probe);
67
68
70
~GUICalibrator
();
71
72
73
75
76
84
GUIGLObjectPopupMenu
*
getPopUpMenu
(
GUIMainWindow
& app,
85
GUISUMOAbstractView
& parent);
86
87
95
GUIParameterTableWindow
*
getParameterWindow
(
GUIMainWindow
& app,
96
GUISUMOAbstractView
& parent);
97
98
104
Boundary
getCenteringBoundary
()
const
;
105
106
111
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
113
114
115
116
GUIManipulator
*
openManipulator
(
GUIMainWindow
& app,
117
GUISUMOAbstractView
& parent);
118
119
public
:
120
class
GUICalibratorPopupMenu
:
public
GUIGLObjectPopupMenu
{
121
FXDECLARE(
GUICalibratorPopupMenu
)
122
public
:
123
124
GUICalibratorPopupMenu
(
GUIMainWindow
& app,
125
GUISUMOAbstractView
& parent,
GUIGlObject
& o);
126
127
~GUICalibratorPopupMenu
();
128
130
long
onCmdOpenManip
(
FXObject
*, FXSelector,
void
*);
131
132
protected
:
133
GUICalibratorPopupMenu
() { }
134
135
};
136
137
class
GUIManip_Calibrator
:
public
GUIManipulator
{
138
FXDECLARE(
GUIManip_Calibrator
)
139
public
:
140
enum
{
141
MID_USER_DEF
=
FXDialogBox::ID_LAST
,
142
MID_PRE_DEF
,
143
MID_OPTION
,
144
MID_CLOSE
,
145
ID_LAST
146
};
148
GUIManip_Calibrator
(
GUIMainWindow
& app,
149
const
std::string& name,
GUICalibrator
& o,
150
int
xpos,
int
ypos);
151
153
virtual
~GUIManip_Calibrator
();
154
155
long
onCmdOverride
(
FXObject
*, FXSelector,
void
*);
156
long
onCmdClose
(
FXObject
*, FXSelector,
void
*);
157
long
onCmdUserDef
(
FXObject
*, FXSelector,
void
*);
158
long
onUpdUserDef
(
FXObject
*, FXSelector,
void
*);
159
long
onCmdPreDef
(
FXObject
*, FXSelector,
void
*);
160
long
onUpdPreDef
(
FXObject
*, FXSelector,
void
*);
161
long
onCmdChangeOption
(
FXObject
*, FXSelector,
void
*);
162
163
private
:
164
GUIMainWindow
*
myParent
;
165
166
FXint
myChosenValue
;
167
168
FXDataTarget
myChosenTarget
;
169
170
SUMOReal
mySpeed
;
171
172
FXDataTarget
mySpeedTarget
;
173
174
FXRealSpinDial*
myUserDefinedSpeed
;
175
176
FXComboBox*
myPredefinedValues
;
177
178
GUICalibrator
*
myObject
;
179
180
protected
:
181
GUIManip_Calibrator
() { }
182
183
};
184
185
private
:
187
typedef
std::vector<Position>
PosCont
;
188
190
typedef
std::vector<SUMOReal>
RotCont
;
191
192
private
:
194
PosCont
myFGPositions
;
195
197
RotCont
myFGRotations
;
198
200
Boundary
myBoundary
;
201
203
bool
myShowAsKMH
;
204
205
};
206
207
208
#endif
209
210
/****************************************************************************/
211
tmp
buildd
sumo-0.21.0+dfsg
src
guisim
GUICalibrator.h
Generated on Thu Nov 20 2014 19:49:53 for SUMO - Simulation of Urban MObility by
1.8.1.2