Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIEvent_SimulationLoaded.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2002-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
21// Event sent when the simulation has been loaded by GUILoadThread
22/****************************************************************************/
23#pragma once
24#include <config.h>
25
26#include <string>
27#include <iostream>
30
31
32// ===========================================================================
33// class declarations
34// ===========================================================================
35class GUINet;
36
37
38// ===========================================================================
39// class definitions
40// ===========================================================================
48public:
51 SUMOTime startTime, SUMOTime endTime,
52 const std::string& file,
53 const std::vector<std::string>& settingsFiles,
54 const bool osgView,
55 const bool viewportFromRegistry)
57 myNet(net), myBegin(startTime), myEnd(endTime),
58 myFile(file), mySettingsFiles(settingsFiles),
59 myOsgView(osgView),
60 myViewportFromRegistry(viewportFromRegistry)
61 { }
62
65
66public:
69
72
75
77 const std::string myFile;
78
80 const std::vector<std::string> mySettingsFiles;
81
83 const bool myOsgView;
84
87
88private:
91};
long long int SUMOTime
Definition GUI.h:36
GUIEventType
Definition GUIEvent.h:32
@ SIMULATION_LOADED
send when a simulation has been loaded
const SUMOTime myBegin
the time the simulation shall start with
GUIEvent_SimulationLoaded(GUINet *net, SUMOTime startTime, SUMOTime endTime, const std::string &file, const std::vector< std::string > &settingsFiles, const bool osgView, const bool viewportFromRegistry)
constructor
const std::vector< std::string > mySettingsFiles
the name of the settings file to load
const bool myOsgView
whether to load the OpenSceneGraph view
const SUMOTime myEnd
the time the simulation shall end with
GUIEvent_SimulationLoaded & operator=(const GUIEvent_SimulationLoaded &s)
Invalidated assignment operator.
const bool myViewportFromRegistry
whether loading viewport from registry
const std::string myFile
the name of the loaded file
A MSNet extended by some values for usage within the gui.
Definition GUINet.h:82