/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2002-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 GUIEvent_SimulationLoaded.h14/// @author Daniel Krajzewicz15/// @author Sascha Krieg16/// @author Michael Behrisch17/// @author Jakob Erdmann18/// @date Sept 200219///20// Event sent when the simulation has been loaded by GUILoadThread21/****************************************************************************/22#pragma once23#include <config.h>2425#include <string>26#include <iostream>27#include <utils/gui/events/GUIEvent.h>28#include <utils/common/SUMOTime.h>293031// ===========================================================================32// class declarations33// ===========================================================================34class GUINet;353637// ===========================================================================38// class definitions39// ===========================================================================40/**41* @class GUIEvent_SimulationLoaded42*43* Throw to GUIApplicationWindow from GUILoadThread after a simulation has44* been loaded or the loading process failed45*/46class GUIEvent_SimulationLoaded : public GUIEvent {47public:48/// constructor49GUIEvent_SimulationLoaded(GUINet* net,50SUMOTime startTime, SUMOTime endTime,51const std::string& file,52const std::vector<std::string>& settingsFiles,53const bool osgView,54const bool viewportFromRegistry)55: GUIEvent(GUIEventType::SIMULATION_LOADED),56myNet(net), myBegin(startTime), myEnd(endTime),57myFile(file), mySettingsFiles(settingsFiles),58myOsgView(osgView),59myViewportFromRegistry(viewportFromRegistry)60{ }6162/// destructor63~GUIEvent_SimulationLoaded() { }6465public:66/// the loaded net67GUINet* myNet;6869/// the time the simulation shall start with70const SUMOTime myBegin;7172/// the time the simulation shall end with73const SUMOTime myEnd;7475/// the name of the loaded file76const std::string myFile;7778/// the name of the settings file to load79const std::vector<std::string> mySettingsFiles;8081/// whether to load the OpenSceneGraph view82const bool myOsgView;8384/// @brief whether loading viewport from registry85const bool myViewportFromRegistry;8687private:88/// @brief Invalidated assignment operator89GUIEvent_SimulationLoaded& operator=(const GUIEvent_SimulationLoaded& s);90};919293