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
GUIShapeContainer.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// Storage for geometrical objects extended by mutexes
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef GUIShapeContainer_h
22
#define GUIShapeContainer_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <
utils/shapes/ShapeContainer.h
>
35
#include <
utils/gui/globjects/GUIGlObject.h
>
36
#include <
utils/foxtools/MFXMutex.h
>
37
38
// ===========================================================================
39
// class declarations
40
// ===========================================================================
41
class
SUMORTree
;
42
class
Position
;
43
class
MFXMutex
;
44
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
54
class
GUIShapeContainer
:
public
ShapeContainer
{
55
public
:
57
GUIShapeContainer
(
SUMORTree
& vis);
58
59
61
virtual
~GUIShapeContainer
();
62
74
virtual
bool
addPolygon
(
const
std::string&
id
,
const
std::string& type,
75
const
RGBColor
& color,
SUMOReal
layer,
76
SUMOReal
angle,
const
std::string& imgFile,
77
const
PositionVector
& shape,
bool
fill);
78
79
92
virtual
bool
addPOI
(
const
std::string&
id
,
const
std::string& type,
93
const
RGBColor
& color,
SUMOReal
layer,
SUMOReal
angle,
const
std::string& imgFile,
94
const
Position
& pos,
SUMOReal
width,
SUMOReal
height);
95
96
97
102
virtual
bool
removePolygon
(
const
std::string&
id
);
103
104
109
virtual
bool
removePOI
(
const
std::string&
id
);
110
111
112
117
virtual
void
movePOI
(
const
std::string&
id
,
const
Position
& pos);
118
119
124
virtual
void
reshapePolygon
(
const
std::string&
id
,
const
PositionVector
& shape);
125
126
127
129
std::vector<GUIGlID>
getPOIIds
()
const
;
131
std::vector<GUIGlID>
getPolygonIDs
()
const
;
132
133
134
private
:
136
mutable
MFXMutex
myLock
;
137
139
SUMORTree
&
myVis
;
140
141
};
142
143
144
#endif
145
146
/****************************************************************************/
147
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
guisim
GUIShapeContainer.h
Generated on Sun Jun 16 2013 07:07:20 for SUMO - Simulation of Urban MObility by
1.8.1.2