SUMO - Simulation of Urban MObility
GUIEvent_Screenshot.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // Event send when a screenshot should be made
18 /****************************************************************************/
19 #ifndef GUIEvent_Screenshot_h
20 #define GUIEvent_Screenshot_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <string>
33 #include <iostream>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 class GUIEvent_Screenshot : public GUIEvent {
52 public:
55  const std::string& file)
57  myView(view), myFile(file) {
58  }
59 
62 
63 public:
66 
68  const std::string myFile;
69 
70 private:
73 };
74 
75 
76 #endif
77 
78 /****************************************************************************/
79 
~GUIEvent_Screenshot()
destructor
GUIEvent_Screenshot(GUISUMOAbstractView *view, const std::string &file)
constructor
const std::string myFile
the name of the file to save to
Send when a screenshot is requested; View and file name are stored within the event.
Definition: GUIEvent.h:66
GUISUMOAbstractView *const myView
the view to save
GUIEvent_Screenshot & operator=(const GUIEvent_Screenshot &s)
Invalidated assignment operator.