Eclipse SUMO - Simulation of Urban MObility
GUIEvent_SimulationLoaded.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Event send when the simulation has been loaded by GUILadThread
19 /****************************************************************************/
20 #ifndef GUIEvent_SimulationLoaded_h
21 #define GUIEvent_SimulationLoaded_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
30 #include <iostream>
32 #include <utils/common/SUMOTime.h>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class GUINet;
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
51 public:
54  SUMOTime startTime, SUMOTime endTime,
55  const std::string& file,
56  const std::vector<std::string>& settingsFiles,
57  const bool osgView,
58  const bool viewportFromRegistry)
60  myNet(net), myBegin(startTime), myEnd(endTime),
61  myFile(file), mySettingsFiles(settingsFiles),
62  myOsgView(osgView),
63  myViewportFromRegistry(viewportFromRegistry)
64  { }
65 
68 
69 public:
72 
75 
77  const SUMOTime myEnd;
78 
80  const std::string myFile;
81 
83  const std::vector<std::string> mySettingsFiles;
84 
86  const bool myOsgView;
87 
90 
91 private:
94 };
95 
96 
97 #endif
98 
99 /****************************************************************************/
100 
GUIEvent_SimulationLoaded
Definition: GUIEvent_SimulationLoaded.h:50
SUMOTime.h
GUIEvent_SimulationLoaded::~GUIEvent_SimulationLoaded
~GUIEvent_SimulationLoaded()
destructor
Definition: GUIEvent_SimulationLoaded.h:67
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
GUIEvent_SimulationLoaded::myBegin
const SUMOTime myBegin
the time the simulation shall start with
Definition: GUIEvent_SimulationLoaded.h:74
GUIEvent_SimulationLoaded::myFile
const std::string myFile
the name of the loaded file
Definition: GUIEvent_SimulationLoaded.h:80
GUIEvent_SimulationLoaded::mySettingsFiles
const std::vector< std::string > mySettingsFiles
the name of the settings file to load
Definition: GUIEvent_SimulationLoaded.h:83
EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition: GUIEvent.h:37
GUIEvent_SimulationLoaded::myOsgView
const bool myOsgView
whether to load the OpenSceneGraph view
Definition: GUIEvent_SimulationLoaded.h:86
GUIEvent_SimulationLoaded::GUIEvent_SimulationLoaded
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
Definition: GUIEvent_SimulationLoaded.h:53
GUIEvent
Definition: GUIEvent.h:77
GUIEvent_SimulationLoaded::myEnd
const SUMOTime myEnd
the time the simulation shall end with
Definition: GUIEvent_SimulationLoaded.h:77
GUIEvent.h
config.h
GUIEvent_SimulationLoaded::myViewportFromRegistry
const bool myViewportFromRegistry
whether loading viewport from registry
Definition: GUIEvent_SimulationLoaded.h:89
GUIEvent_SimulationLoaded::operator=
GUIEvent_SimulationLoaded & operator=(const GUIEvent_SimulationLoaded &s)
Invalidated assignment operator.
GUIEvent_SimulationLoaded::myNet
GUINet * myNet
the loaded net
Definition: GUIEvent_SimulationLoaded.h:71
GUINet
A MSNet extended by some values for usage within the gui.
Definition: GUINet.h:83