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
GUIE3Collector.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The gui-version of a MSE3Collector
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 GUIE3Collector_h
23
#define GUIE3Collector_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 <string>
36
#include <vector>
37
#include "
GUIDetectorWrapper.h
"
38
#include <
microsim/output/MSE3Collector.h
>
39
#include <
utils/geom/PositionVector.h
>
40
#include <
utils/common/ValueSource.h
>
41
42
43
// ===========================================================================
44
// class definitions
45
// ===========================================================================
53
class
GUIE3Collector
:
public
MSE3Collector
{
54
public
:
56
GUIE3Collector
(
const
std::string&
id
,
57
const
CrossSectionVector
& entries,
const
CrossSectionVector
& exits,
58
SUMOReal
haltingSpeedThreshold,
59
SUMOTime
haltingTimeThreshold);
60
62
~GUIE3Collector
();
63
64
68
const
CrossSectionVector
&
getEntries
()
const
;
69
70
74
const
CrossSectionVector
&
getExits
()
const
;
75
76
81
GUIDetectorWrapper
*
buildDetectorGUIRepresentation
();
82
83
84
public
:
89
class
MyWrapper
:
public
GUIDetectorWrapper
{
90
public
:
92
MyWrapper
(
GUIE3Collector
& detector);
93
95
~MyWrapper
();
96
97
99
100
108
GUIParameterTableWindow
*
getParameterWindow
(
109
GUIMainWindow
& app,
GUISUMOAbstractView
& parent);
110
111
117
Boundary
getCenteringBoundary
()
const
;
118
119
124
void
drawGL
(
const
GUIVisualizationSettings
& s)
const
;
126
127
129
GUIE3Collector
&
getDetector
();
130
131
132
protected
:
136
struct
SingleCrossingDefinition
{
138
Position
myFGPosition
;
140
SUMOReal
myFGRotation
;
141
};
142
143
protected
:
145
SingleCrossingDefinition
buildDefinition
(
const
MSCrossSection
& section);
146
148
void
drawSingleCrossing
(
const
Position
& pos,
SUMOReal
rot,
149
SUMOReal
upscale)
const
;
150
151
private
:
153
GUIE3Collector
&
myDetector
;
154
156
Boundary
myBoundary
;
157
159
typedef
std::vector<SingleCrossingDefinition>
CrossingDefinitions
;
160
162
CrossingDefinitions
myEntryDefinitions
;
163
165
CrossingDefinitions
myExitDefinitions
;
166
167
};
168
169
};
170
171
172
#endif
173
174
/****************************************************************************/
175
build
buildd
sumo-0.16.0~dfsg
src
guisim
GUIE3Collector.h
Generated on Tue Apr 16 2013 01:32:16 for SUMO - Simulation of Urban MObility by
1.8.3.1