Eclipse SUMO - Simulation of Urban MObility
NIVissimNodeDef_Poly.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // -------------------
17 /****************************************************************************/
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 
26 #include <string>
27 #include <map>
28 #include <cassert>
29 #include <algorithm>
31 #include "NIVissimEdge.h"
32 #include "NIVissimNodeDef.h"
33 #include "NIVissimNodeDef_Poly.h"
34 #include "NIVissimConnection.h"
35 #include "NIVissimAbstractEdge.h"
36 #include <utils/geom/Boundary.h>
37 
38 
39 // ===========================================================================
40 // method definitions
41 // ===========================================================================
42 NIVissimNodeDef_Poly::NIVissimNodeDef_Poly(int id, const std::string& name,
43  const PositionVector& poly)
45  myPoly(poly) {}
46 
47 
49 
50 
51 bool
52 NIVissimNodeDef_Poly::dictionary(int id, const std::string& name,
53  const PositionVector& poly) {
54  NIVissimNodeDef_Poly* o = new NIVissimNodeDef_Poly(id, name, poly);
55  if (!NIVissimNodeDef::dictionary(id, o)) {
56  delete o;
57  assert(false);
58  return false;
59  }
60  return true;
61 }
62 
63 
64 /****************************************************************************/
65 
Boundary.h
NIVissimNodeDef::dictionary
static bool dictionary(int id, NIVissimNodeDef *o)
Definition: NIVissimNodeDef.cpp:52
NIVissimNodeParticipatingEdgeVector
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
Definition: NIVissimNodeParticipatingEdgeVector.h:30
NIVissimEdge.h
PositionVector
A list of positions.
Definition: PositionVector.h:46
NIVissimNodeDef.h
NIVissimNodeDef_Edges
Definition: NIVissimNodeDef_Edges.h:33
NIVissimNodeDef_Poly::NIVissimNodeDef_Poly
NIVissimNodeDef_Poly(int id, const std::string &name, const PositionVector &poly)
Definition: NIVissimNodeDef_Poly.cpp:42
NIVissimAbstractEdge.h
NIVissimConnection.h
NIVissimNodeDef_Poly
Definition: NIVissimNodeDef_Poly.h:33
NIVissimNodeDef_Poly.h
config.h
NIVissimNodeDef_Poly::~NIVissimNodeDef_Poly
virtual ~NIVissimNodeDef_Poly()
Definition: NIVissimNodeDef_Poly.cpp:48
NIVissimNodeDef_Poly::dictionary
static bool dictionary(int id, const std::string &name, const PositionVector &poly)
Definition: NIVissimNodeDef_Poly.cpp:52
PositionVector.h