Path: blob/main/src/netimport/vissim/tempstructs/NIVissimNodeDef_Poly.cpp
169684 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file NIVissimNodeDef_Poly.cpp14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date Sept 200217///18// -------------------19/****************************************************************************/20#include <config.h>212223#include <string>24#include <map>25#include <cassert>26#include <algorithm>27#include <utils/geom/PositionVector.h>28#include "NIVissimEdge.h"29#include "NIVissimNodeDef.h"30#include "NIVissimNodeDef_Poly.h"31#include "NIVissimConnection.h"32#include "NIVissimAbstractEdge.h"33#include <utils/geom/Boundary.h>343536// ===========================================================================37// method definitions38// ===========================================================================39NIVissimNodeDef_Poly::NIVissimNodeDef_Poly(int id, const std::string& name,40const PositionVector& poly)41: NIVissimNodeDef_Edges(id, name, NIVissimNodeParticipatingEdgeVector()),42myPoly(poly) {}434445NIVissimNodeDef_Poly::~NIVissimNodeDef_Poly() {}464748bool49NIVissimNodeDef_Poly::dictionary(int id, const std::string& name,50const PositionVector& poly) {51NIVissimNodeDef_Poly* o = new NIVissimNodeDef_Poly(id, name, poly);52if (!NIVissimNodeDef::dictionary(id, o)) {53delete o;54assert(false);55return false;56}57return true;58}596061/****************************************************************************/626364