/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2012-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 Shape.cpp14/// @author Jakob Erdmann15/// @author Michael Behrisch16/// @date Oct 201217///18// A 2D- or 3D-Shape19/****************************************************************************/20#include <config.h>21#include <utils/gui/globjects/GUIGlObjectTypes.h>2223#include "Shape.h"2425// ===========================================================================26// static member definitions27// ===========================================================================28const std::string Shape::DEFAULT_TYPE = "";29const double Shape::DEFAULT_LAYER = 0;30const double Shape::DEFAULT_LINEWIDTH = 1;31const double Shape::DEFAULT_LAYER_POI = (double)GLO_POI;32const double Shape::DEFAULT_ANGLE = 0;33const std::string Shape::DEFAULT_IMG_FILE = "";34const double Shape::DEFAULT_IMG_WIDTH = 2.6;35const double Shape::DEFAULT_IMG_HEIGHT = 1;36const std::string Shape::DEFAULT_NAME = "";37const Parameterised::Map Shape::DEFAULT_PARAMETERS = Parameterised::Map();3839// ===========================================================================40// member definitions41// ===========================================================================4243Shape::Shape(const std::string& id, const std::string& type, const RGBColor& color, double layer,44double angle, const std::string& imgFile, const std::string& name) :45Named(id),46myType(type),47myColor(color),48myLayer(layer),49myNaviDegreeAngle(angle),50myImgFile(imgFile),51myName(name) {52}535455Shape::~Shape() {}565758/****************************************************************************/596061