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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // -------------------
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 
32 #include <string>
33 #include <map>
34 #include <cassert>
35 #include <algorithm>
37 #include "NIVissimEdge.h"
38 #include "NIVissimNodeDef.h"
39 #include "NIVissimNodeDef_Poly.h"
40 #include "NIVissimConnection.h"
41 #include "NIVissimAbstractEdge.h"
42 #include <utils/geom/Boundary.h>
43 
44 
45 // ===========================================================================
46 // method definitions
47 // ===========================================================================
48 NIVissimNodeDef_Poly::NIVissimNodeDef_Poly(int id, const std::string& name,
49  const PositionVector& poly)
51  myPoly(poly) {}
52 
53 
55 
56 
57 bool
58 NIVissimNodeDef_Poly::dictionary(int id, const std::string& name,
59  const PositionVector& poly) {
60  NIVissimNodeDef_Poly* o = new NIVissimNodeDef_Poly(id, name, poly);
61  if (!NIVissimNodeDef::dictionary(id, o)) {
62  delete o;
63  assert(false);
64  return false;
65  }
66  return true;
67 }
68 
69 
70 /****************************************************************************/
71 
NIVissimNodeDef_Poly(int id, const std::string &name, const PositionVector &poly)
A list of positions.
static bool dictionary(int id, NIVissimNodeDef *o)
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
static bool dictionary(int id, const std::string &name, const PositionVector &poly)