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
NIVissimNodeDef_Edges.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// -------------------
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
10
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef NIVissimNodeDef_Edges_h
21
#define NIVissimNodeDef_Edges_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
34
#include <string>
35
#include <map>
36
#include "
NIVissimNodeParticipatingEdgeVector.h
"
37
#include "
NIVissimExtendedEdgePoint.h
"
38
#include "
NIVissimNodeDef.h
"
39
40
class
NIVissimNodeDef_Edges
:
41
public
NIVissimNodeDef
{
42
public
:
43
NIVissimNodeDef_Edges
(
int
id
,
const
std::string& name,
44
const
NIVissimNodeParticipatingEdgeVector
& edges);
45
virtual
~NIVissimNodeDef_Edges
();
46
static
bool
dictionary
(
int
id
,
const
std::string& name,
47
const
NIVissimNodeParticipatingEdgeVector
& edges);
48
// virtual void computeBounding();
49
virtual
void
searchAndSetConnections
();
50
virtual
SUMOReal
getEdgePosition
(
int
edgeid)
const
;
51
55
class
id_matches
{
56
public
:
57
explicit
id_matches
(
int
id
) :
myEdgeID
(id) { }
58
bool
operator()
(
NIVissimNodeParticipatingEdge
* e) {
59
return
e->
getID
() ==
myEdgeID
;
60
}
61
private
:
62
int
myEdgeID
;
63
};
64
65
class
lying_within_match
{
66
public
:
67
explicit
lying_within_match
(
NIVissimNodeParticipatingEdge
* e) :
myEdge
(e) { }
68
bool
operator()
(
NIVissimExtendedEdgePoint
* e) {
69
return
e->
getEdgeID
() ==
myEdge
->
getID
() &&
70
myEdge
->
positionLiesWithin
(e->
getPosition
());
71
}
72
private
:
73
NIVissimNodeParticipatingEdge
*
myEdge
;
74
};
75
76
protected
:
77
NIVissimNodeParticipatingEdgeVector
myEdges
;
78
};
79
80
81
#endif
82
83
/****************************************************************************/
84
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
netimport
vissim
tempstructs
NIVissimNodeDef_Edges.h
Generated on Mon Mar 24 2014 09:53:13 for SUMO - Simulation of Urban MObility by
1.8.1.2