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 /****************************************************************************/
17 // Event send when the simulation has been loaded by GUILadThread
18 /****************************************************************************/
19 #ifndef GUIEvent_SimulationLoaded_h
20 #define GUIEvent_SimulationLoaded_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <iostream>
31 #include <utils/common/SUMOTime.h>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class GUINet;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
50 public:
53  SUMOTime startTime, SUMOTime endTime,
54  const std::string& file,
55  const std::vector<std::string>& settingsFiles,
56  const bool osgView,
57  const bool viewportFromRegistry)
59  myNet(net), myBegin(startTime), myEnd(endTime),
60  myFile(file), mySettingsFiles(settingsFiles),
61  myOsgView(osgView),
62  myViewportFromRegistry(viewportFromRegistry)
63  { }
64 
67 
68 public:
71 
74 
76  const SUMOTime myEnd;
77 
79  const std::string myFile;
80 
82  const std::vector<std::string> mySettingsFiles;
83 
85  const bool myOsgView;
86 
89 
90 private:
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
GUIEvent_SimulationLoaded
Definition: GUIEvent_SimulationLoaded.h:49
SUMOTime.h
GUIEvent_SimulationLoaded::~GUIEvent_SimulationLoaded
~GUIEvent_SimulationLoaded()
destructor
Definition: GUIEvent_SimulationLoaded.h:66
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
GUIEvent_SimulationLoaded::myBegin
const SUMOTime myBegin
the time the simulation shall start with
Definition: GUIEvent_SimulationLoaded.h:73
GUIEvent_SimulationLoaded::myFile
const std::string myFile
the name of the loaded file
Definition: GUIEvent_SimulationLoaded.h:79
GUIEvent_SimulationLoaded::mySettingsFiles
const std::vector< std::string > mySettingsFiles
the name of the settings file to load
Definition: GUIEvent_SimulationLoaded.h:82
EVENT_SIMULATION_LOADED
@ EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition: GUIEvent.h:36
GUIEvent_SimulationLoaded::myOsgView
const bool myOsgView
whether to load the OpenSceneGraph view
Definition: GUIEvent_SimulationLoaded.h:85
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:52
GUIEvent
Definition: GUIEvent.h:76
GUIEvent_SimulationLoaded::myEnd
const SUMOTime myEnd
the time the simulation shall end with
Definition: GUIEvent_SimulationLoaded.h:76
GUIEvent.h
config.h
GUIEvent_SimulationLoaded::myViewportFromRegistry
const bool myViewportFromRegistry
whether loading viewport from registry
Definition: GUIEvent_SimulationLoaded.h:88
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:70
GUINet
A MSNet extended by some values for usage within the gui.
Definition: GUINet.h:82