SUMO - Simulation of Urban MObility
GUIEvent_Screenshot.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // Event send when a screenshot should be made
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2002-2015 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUIEvent_Screenshot_h
21 #define GUIEvent_Screenshot_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <iostream>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
52 class GUIEvent_Screenshot : public GUIEvent {
53 public:
56  const std::string& file)
58  myView(view), myFile(file)
59  { }
60 
63 
64 public:
67 
69  const std::string myFile;
70 
71 private:
74 };
75 
76 
77 #endif
78 
79 /****************************************************************************/
80 
~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:64
GUISUMOAbstractView *const myView
the view to save
GUIEvent_Screenshot & operator=(const GUIEvent_Screenshot &s)
Invalidated assignment operator.