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
GUIInductLoop.h
Go to the documentation of this file.
1
/****************************************************************************/
10
// The gui-version of the MSInductLoop, together with the according
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13
// Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
14
/****************************************************************************/
15
//
16
// This file is part of SUMO.
17
// SUMO is free software: you can redistribute it and/or modify
18
// it under the terms of the GNU General Public License as published by
19
// the Free Software Foundation, either version 3 of the License, or
20
// (at your option) any later version.
21
//
22
/****************************************************************************/
23
#ifndef GUIInductLoop_h
24
#define GUIInductLoop_h
25
26
27
// ===========================================================================
28
// included modules
29
// ===========================================================================
30
#ifdef _MSC_VER
31
#include <
windows_config.h
>
32
#else
33
#include <
config.h
>
34
#endif
35
36
#include <
utils/foxtools/MFXMutex.h
>
37
#include <
microsim/output/MSInductLoop.h
>
38
#include <
utils/geom/Position.h
>
39
#include "
GUIDetectorWrapper.h
"
40
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
55
class
GUIInductLoop
:
public
MSInductLoop
{
56
public
:
64
GUIInductLoop
(
const
std::string&
id
,
MSLane
*
const
lane,
SUMOReal
position,
bool
splitByType);
65
66
68
~GUIInductLoop
();
69
70
76
void
reset
();
77
78
82
virtual
GUIDetectorWrapper
*
buildDetectorGUIRepresentation
();
83
84
93
std::vector<VehicleData>
collectVehiclesOnDet
(
SUMOTime
t)
const
;
94
95
96
protected
:
99
108
void
enterDetectorByMove
(
SUMOVehicle
& veh,
SUMOReal
entryTimestep);
109
110
119
void
leaveDetectorByMove
(
SUMOVehicle
& veh,
SUMOReal
leaveTimestep);
120
121
129
void
leaveDetectorByLaneChange
(
SUMOVehicle
& veh,
SUMOReal
lastPos);
131
132
133
134
135
public
:
140
class
MyWrapper
:
public
GUIDetectorWrapper
{
141
public
:
143
MyWrapper
(
GUIInductLoop
& detector,
SUMOReal
pos);
144
146
~MyWrapper
();
147
148
150
151
159
GUIParameterTableWindow
*
getParameterWindow
(
160
GUIMainWindow
& app,
GUISUMOAbstractView
& parent);
161
162
168
Boundary
getCenteringBoundary
()
const
;
169
170
175
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
177
178
180
GUIInductLoop
&
getLoop
();
181
182
183
private
:
185
GUIInductLoop
&
myDetector
;
186
188
Boundary
myBoundary
;
189
191
Position
myFGPosition
;
192
194
SUMOReal
myFGRotation
;
195
197
SUMOReal
myPosition
;
198
199
private
:
201
MyWrapper
(
const
MyWrapper
&);
202
204
MyWrapper
&
operator=
(
const
MyWrapper
&);
205
206
};
207
208
210
mutable
MFXMutex
myLock
;
211
212
};
213
214
215
#endif
216
217
/****************************************************************************/
218
tmp
buildd
sumo-0.21.0+dfsg
src
guisim
GUIInductLoop.h
Generated on Thu Nov 20 2014 19:49:53 for SUMO - Simulation of Urban MObility by
1.8.1.2