Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIVissimNodeDef.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2002-2024 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
19
// -------------------
20
/****************************************************************************/
21
#pragma once
22
#include <config.h>
23
24
#include <string>
25
#include <map>
26
#include <
utils/geom/Boundary.h
>
27
#include "
NIVissimExtendedEdgePointVector.h
"
28
#include "
NIVissimNodeCluster.h
"
29
30
31
class
NIVissimNodeDef
{
32
public
:
33
NIVissimNodeDef
(
int
id
,
const
std::string& name);
34
virtual
~NIVissimNodeDef
();
35
int
buildNodeCluster
();
36
// virtual void computeBounding() = 0;
37
// bool partialWithin(const AbstractPoly &p, double off=0.0) const;
38
// virtual void searchAndSetConnections() = 0;
39
virtual
double
getEdgePosition
(
int
edgeid)
const
= 0;
40
41
public
:
42
static
bool
dictionary
(
int
id
,
NIVissimNodeDef
* o);
43
static
NIVissimNodeDef
*
dictionary
(
int
id
);
44
// static std::vector<int> getWithin(const AbstractPoly &p, double off=0.0);
45
// static void buildNodeClusters();
46
// static void dict_assignConnectionsToNodes();
47
static
void
clearDict
();
48
static
int
getMaxID
();
49
protected
:
50
int
myID
;
51
std::string
myName
;
52
53
private
:
54
typedef
std::map<int, NIVissimNodeDef*>
DictType
;
55
static
DictType
myDict
;
56
static
int
myMaxID
;
57
};
Boundary.h
NIVissimExtendedEdgePointVector.h
NIVissimNodeCluster.h
NIVissimNodeDef
Definition
NIVissimNodeDef.h:31
NIVissimNodeDef::clearDict
static void clearDict()
Definition
NIVissimNodeDef.cpp:117
NIVissimNodeDef::myDict
static DictType myDict
Definition
NIVissimNodeDef.h:55
NIVissimNodeDef::~NIVissimNodeDef
virtual ~NIVissimNodeDef()
Definition
NIVissimNodeDef.cpp:46
NIVissimNodeDef::myMaxID
static int myMaxID
Definition
NIVissimNodeDef.h:56
NIVissimNodeDef::myName
std::string myName
Definition
NIVissimNodeDef.h:51
NIVissimNodeDef::dictionary
static bool dictionary(int id, NIVissimNodeDef *o)
Definition
NIVissimNodeDef.cpp:50
NIVissimNodeDef::myID
int myID
Definition
NIVissimNodeDef.h:50
NIVissimNodeDef::buildNodeCluster
int buildNodeCluster()
NIVissimNodeDef::getMaxID
static int getMaxID()
Definition
NIVissimNodeDef.cpp:126
NIVissimNodeDef::getEdgePosition
virtual double getEdgePosition(int edgeid) const =0
NIVissimNodeDef::DictType
std::map< int, NIVissimNodeDef * > DictType
Definition
NIVissimNodeDef.h:54
src
netimport
vissim
tempstructs
NIVissimNodeDef.h
Generated on Tue Nov 5 2024 00:10:30 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8