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
GUI_E2_ZS_Collector.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The gui-version of the MS_E2_ZS_Collector
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 GUI_E2_ZS_Collector_h
23
#define GUI_E2_ZS_Collector_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 <
microsim/output/MSE2Collector.h
>
36
#include <
microsim/MSNet.h
>
37
#include <
utils/geom/Position.h
>
38
#include <
utils/geom/PositionVector.h
>
39
#include <
utils/common/VectorHelper.h
>
40
#include <
utils/common/ValueSource.h
>
41
#include "
GUIDetectorWrapper.h
"
42
43
44
// ===========================================================================
45
// class declarations
46
// ===========================================================================
47
class
GUILaneWrapper
;
48
class
GUI_E2_ZS_CollectorOverLanes
;
49
50
51
// ===========================================================================
52
// class definitions
53
// ===========================================================================
63
class
GUI_E2_ZS_Collector
:
public
MSE2Collector
{
64
public
:
77
GUI_E2_ZS_Collector
(
const
std::string&
id
,
DetectorUsage
usage,
78
MSLane
*
const
lane,
SUMOReal
startPos,
SUMOReal
detLength,
79
SUMOTime
haltingTimeThreshold,
SUMOReal
haltingSpeedThreshold,
80
SUMOReal
jamDistThreshold) ;
81
82
84
~GUI_E2_ZS_Collector
() ;
85
86
91
virtual
GUIDetectorWrapper
*
buildDetectorGUIRepresentation
();
92
93
94
public
:
99
class
MyWrapper
:
public
GUIDetectorWrapper
{
100
public
:
102
MyWrapper
(
GUI_E2_ZS_Collector
& detector) ;
103
105
~MyWrapper
() ;
106
107
109
110
118
GUIParameterTableWindow
*
getParameterWindow
(
119
GUIMainWindow
& app,
GUISUMOAbstractView
& parent) ;
120
121
127
Boundary
getCenteringBoundary
()
const
;
128
129
134
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
136
137
139
GUI_E2_ZS_Collector
&
getDetector
();
140
141
142
private
:
144
GUI_E2_ZS_Collector
&
myDetector
;
145
147
Boundary
myBoundary
;
148
150
PositionVector
myFullGeometry
;
151
153
std::vector<SUMOReal>
myShapeLengths
;
154
156
std::vector<SUMOReal>
myShapeRotations
;
157
158
private
:
160
MyWrapper
(
const
MyWrapper
&);
161
163
MyWrapper
&
operator=
(
const
MyWrapper
&);
164
165
};
166
167
};
168
169
170
#endif
171
172
/****************************************************************************/
173
build
buildd
sumo-0.15.0~dfsg
src
guisim
GUI_E2_ZS_Collector.h
Generated on Wed Jul 18 2012 22:58:31 for SUMO - Simulation of Urban MObility by
1.8.1.1