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
GUIViewTraffic.h
Go to the documentation of this file.
1
/****************************************************************************/
10
// A view on the simulation; this view is a microscopic one
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
13
// Copyright (C) 2001-2013 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 GUIViewTraffic_h
24
#define GUIViewTraffic_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 <string>
37
#include <
utils/geom/Boundary.h
>
38
#include <
utils/geom/Position.h
>
39
#include <
utils/common/RGBColor.h
>
40
#include <
utils/geom/PositionVector.h
>
41
#include <
utils/shapes/Polygon.h
>
42
#include "
GUISUMOViewParent.h
"
43
#include <
utils/gui/windows/GUISUMOAbstractView.h
>
44
45
46
// ===========================================================================
47
// class declarations
48
// ===========================================================================
49
class
GUINet
;
50
class
GUISUMOViewParent
;
51
class
GUIVehicle
;
52
class
GUILaneWrapper
;
53
class
MSRoute
;
54
55
56
// ===========================================================================
57
// class definitions
58
// ===========================================================================
63
class
GUIViewTraffic
:
public
GUISUMOAbstractView
{
64
public
:
66
GUIViewTraffic
(FXComposite* p,
GUIMainWindow
& app,
67
GUISUMOViewParent
* parent,
GUINet
& net, FXGLVisual* glVis,
68
FXGLCanvas
* share);
70
virtual
~GUIViewTraffic
();
71
73
virtual
void
buildViewToolBars
(
GUIGlChildWindow
&);
74
75
79
void
startTrack
(
int
id
);
80
81
84
void
stopTrack
();
85
86
90
int
getTrackedID
()
const
;
91
92
bool
setColorScheme
(
const
std::string& name);
93
95
void
onGamingClick
(
Position
pos);
96
98
SUMOTime
getCurrentTimeStep
()
const
;
99
100
protected
:
101
int
doPaintGL
(
int
mode,
const
Boundary
& bound);
102
103
104
private
:
105
int
myTrackedID
;
106
107
protected
:
108
GUIViewTraffic
() { }
109
110
};
111
112
113
#endif
114
115
/****************************************************************************/
116
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
gui
GUIViewTraffic.h
Generated on Sun Jun 16 2013 07:07:23 for SUMO - Simulation of Urban MObility by
1.8.1.2