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
GUIPolygon.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The GUI-version of a polygon
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 GUIPolygon_h
23
#define GUIPolygon_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 <
utils/foxtools/MFXMutex.h
>
37
#include <
utils/shapes/Polygon.h
>
38
#include <
utils/gui/globjects/GUIGlObject_AbstractAdd.h
>
39
#include <
utils/gui/globjects/GLIncludes.h
>
40
using namespace
SUMO;
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
45
/*
46
* @class GUIPolygon
47
* @brief The GUI-version of a polygon
48
*/
49
class
GUIPolygon
:
public
Polygon
,
public
GUIGlObject_AbstractAdd
{
50
public
:
61
GUIPolygon
(
const
std::string&
id
,
const
std::string& type,
62
const
RGBColor
& color,
const
PositionVector
& shape,
bool
fill,
63
SUMOReal
layer = 0,
SUMOReal
angle = 0,
const
std::string& imgFile =
""
);
64
66
~
GUIPolygon
();
67
68
69
71
72
80
GUIGLObjectPopupMenu
* getPopUpMenu(
GUIMainWindow
& app,
81
GUISUMOAbstractView
& parent);
82
83
91
GUIParameterTableWindow
* getParameterWindow(
GUIMainWindow
& app,
92
GUISUMOAbstractView
& parent);
93
94
100
Boundary
getCenteringBoundary()
const
;
101
102
107
void
drawGL(
const
GUIVisualizationSettings
& s)
const
;
109
110
112
virtual
void
setShape(
const
PositionVector
& shape);
113
114
115
private
:
117
mutable
MFXMutex
myLock
;
118
120
mutable
GLuint
myDisplayList
;
121
123
void
storeTesselation()
const
;
124
125
};
126
127
128
#endif
129
130
/****************************************************************************/
131
build
buildd
sumo-0.16.0~dfsg
src
utils
gui
globjects
GUIPolygon.h
Generated on Tue Apr 16 2013 01:32:16 for SUMO - Simulation of Urban MObility by
1.8.3.1