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
GUISettingsHandler.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The handler for parsing gui settings from xml.
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 GUISettingsHandler_h
23
#define GUISettingsHandler_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 <
utils/gui/windows/GUISUMOAbstractView.h
>
36
#include <
utils/xml/SUMOSAXHandler.h
>
37
#include <
utils/xml/XMLSubSys.h
>
38
39
40
// ===========================================================================
41
// class definitions
42
// ===========================================================================
46
class
GUISettingsHandler
:
public
SUMOSAXHandler
{
47
public
:
51
GUISettingsHandler
(
const
std::string& content,
bool
isFile =
true
);
52
53
55
~GUISettingsHandler
();
56
57
58
60
61
68
void
myStartElement
(
int
element,
const
SUMOSAXAttributes
& attrs);
70
71
72
76
std::string
addSettings
(
GUISUMOAbstractView
* view = 0)
const
;
77
78
82
void
setViewport
(
GUISUMOAbstractView
* view)
const
;
83
84
90
void
setViewport
(
SUMOReal
& zoom,
SUMOReal
& xoff,
SUMOReal
& yoff)
const
;
91
92
97
void
setSnapshots
(
GUISUMOAbstractView
* view)
const
;
98
99
103
bool
hasDecals
()
const
;
104
105
109
const
std::vector<GUISUMOAbstractView::Decal>&
getDecals
()
const
;
110
111
115
SUMOReal
getDelay
()
const
;
116
117
118
private
:
120
GUIVisualizationSettings
mySettings
;
121
123
SUMOReal
myDelay
;
124
126
SUMOReal
myZoom
,
myXPos
,
myYPos
;
127
129
std::map<SUMOTime, std::string>
mySnapshots
;
130
132
std::vector<GUISUMOAbstractView::Decal>
myDecals
;
133
135
int
myCurrentColorer
;
136
138
GUIColorScheme
*
myCurrentScheme
;
139
140
private
:
141
143
GUIVisualizationTextSettings
parseTextSettings
(
144
const
std::string& prefix,
const
SUMOSAXAttributes
& attrs,
145
GUIVisualizationTextSettings
defaults);
146
147
};
148
149
#endif
150
151
/****************************************************************************/
build
buildd
sumo-0.16.0~dfsg
src
utils
gui
settings
GUISettingsHandler.h
Generated on Tue Apr 16 2013 01:32:16 for SUMO - Simulation of Urban MObility by
1.8.3.1