/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2019-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 MSDynamicShapeUpdater.cpp14/// @author Leonhard Luecken15/// @date 08 Apr 201916///17//18/****************************************************************************/19#include "MSDynamicShapeUpdater.h"20#include "utils/vehicle/SUMOVehicle.h"2122//#define DEBUG_DYNAMIC_SHAPES2324void25MSDynamicShapeUpdater::vehicleStateChanged(const SUMOVehicle* const vehicle, MSNet::VehicleState to, const std::string& /* info */) {2627/// @brief Definition of a vehicle state28switch (to) {29/// @brief The vehicle arrived at his destination (is deleted)30case MSNet::VehicleState::ARRIVED: {31#ifdef DEBUG_DYNAMIC_SHAPES32std::cout << "MSDynamicShapeUpdater: Vehicle '" << vehicle->getID() << "' has arrived. Informing ShapeContainer." << std::endl;33#endif34myShapeContainer.removeTrackers(vehicle->getID());35}36break;37/// @brief The vehicle is involved in a collision38case MSNet::VehicleState::COLLISION:39// TODO: can this lead to removal without calling arrived?40break;41default:42{}43}44}454647