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-2018 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 /****************************************************************************/
15 // Event send when a screenshot should be made
16 /****************************************************************************/
17 #ifndef GUIEvent_Screenshot_h
18 #define GUIEvent_Screenshot_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <iostream>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
45 class GUIEvent_Screenshot : public GUIEvent {
46 public:
49  const std::string& file)
51  myView(view), myFile(file) {
52  }
53 
56 
57 public:
60 
62  const std::string myFile;
63 
64 private:
67 };
68 
69 
70 #endif
71 
72 /****************************************************************************/
73 
~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;.
Definition: GUIEvent.h:68
GUISUMOAbstractView *const myView
the view to save
GUIEvent_Screenshot & operator=(const GUIEvent_Screenshot &s)
Invalidated assignment operator.