Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netimport/vissim/tempstructs/NIVissimNodeDef.h
169684 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2002-2025 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
/****************************************************************************/
14
/// @file NIVissimNodeDef.h
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @date Sept 2002
18
///
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
};
58
59