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.sourceforge.net/
13
// Copyright (C) 2001-2012 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 declarations
44
// ===========================================================================
45
class
GUILaneWrapper
;
46
47
48
// ===========================================================================
49
// class definitions
50
// ===========================================================================
61
class
GUIInductLoop
:
public
MSInductLoop
{
62
public
:
70
GUIInductLoop
(
const
std::string&
id
,
MSLane
*
const
lane,
SUMOReal
position,
bool
splitByType) ;
71
72
74
~GUIInductLoop
() ;
75
76
82
void
reset
() ;
83
84
88
virtual
GUIDetectorWrapper
*
buildDetectorGUIRepresentation
();
89
90
99
std::vector<VehicleData>
collectVehiclesOnDet
(
SUMOTime
t)
const
;
100
101
102
protected
:
105
114
void
enterDetectorByMove
(
SUMOVehicle
& veh,
SUMOReal
entryTimestep) ;
115
116
125
void
leaveDetectorByMove
(
SUMOVehicle
& veh,
SUMOReal
leaveTimestep) ;
126
127
134
void
leaveDetectorByLaneChange
(
SUMOVehicle
& veh) ;
136
137
138
139
140
public
:
145
class
MyWrapper
:
public
GUIDetectorWrapper
{
146
public
:
148
MyWrapper
(
GUIInductLoop
& detector,
149
GUILaneWrapper
& wrapper,
150
SUMOReal
pos) ;
151
153
~MyWrapper
() ;
154
155
157
158
166
GUIParameterTableWindow
*
getParameterWindow
(
167
GUIMainWindow
& app,
GUISUMOAbstractView
& parent) ;
168
169
175
Boundary
getCenteringBoundary
()
const
;
176
177
182
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
184
185
187
GUIInductLoop
&
getLoop
();
188
189
190
private
:
192
GUIInductLoop
&
myDetector
;
193
195
Boundary
myBoundary
;
196
198
Position
myFGPosition
;
199
201
SUMOReal
myFGRotation
;
202
204
SUMOReal
myPosition
;
205
206
private
:
208
MyWrapper
(
const
MyWrapper
&);
209
211
MyWrapper
&
operator=
(
const
MyWrapper
&);
212
213
};
214
215
217
mutable
MFXMutex
myLock
;
218
219
};
220
221
222
#endif
223
224
/****************************************************************************/
225
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
guisim
GUIInductLoop.h
Generated on Mon Mar 24 2014 09:53:09 for SUMO - Simulation of Urban MObility by
1.8.1.2