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>
28
#include <
utils/gui/events/GUIEvent.h
>
29
30
31
// ===========================================================================
32
// class declarations
33
// ===========================================================================
34
class
GUISUMOAbstractView
;
35
36
37
// ===========================================================================
38
// class definitions
39
// ===========================================================================
45
class
GUIEvent_Screenshot
:
public
GUIEvent
{
46
public
:
48
GUIEvent_Screenshot
(
GUISUMOAbstractView
* view,
49
const
std::string& file)
50
:
GUIEvent
(
EVENT_SCREENSHOT
),
51
myView
(view),
myFile
(file) {
52
}
53
55
~GUIEvent_Screenshot
() { }
56
57
public
:
59
GUISUMOAbstractView
*
const
myView
;
60
62
const
std::string
myFile
;
63
64
private
:
66
GUIEvent_Screenshot
&
operator=
(
const
GUIEvent_Screenshot
& s);
67
};
68
69
70
#endif
71
72
/****************************************************************************/
73
GUIEvent.h
config.h
GUIEvent_Screenshot::~GUIEvent_Screenshot
~GUIEvent_Screenshot()
destructor
Definition:
GUIEvent_Screenshot.h:55
GUIEvent_Screenshot::GUIEvent_Screenshot
GUIEvent_Screenshot(GUISUMOAbstractView *view, const std::string &file)
constructor
Definition:
GUIEvent_Screenshot.h:48
GUIEvent_Screenshot::myFile
const std::string myFile
the name of the file to save to
Definition:
GUIEvent_Screenshot.h:62
GUIEvent
Definition:
GUIEvent.h:82
GUISUMOAbstractView
Definition:
GUISUMOAbstractView.h:74
EVENT_SCREENSHOT
Send when a screenshot is requested;.
Definition:
GUIEvent.h:68
GUIEvent_Screenshot::myView
GUISUMOAbstractView *const myView
the view to save
Definition:
GUIEvent_Screenshot.h:59
GUIEvent_Screenshot
Definition:
GUIEvent_Screenshot.h:45
GUIEvent_Screenshot::operator=
GUIEvent_Screenshot & operator=(const GUIEvent_Screenshot &s)
Invalidated assignment operator.
src
gui
GUIEvent_Screenshot.h
Generated on Tue Sep 18 2018 00:12:27 for SUMO - Simulation of Urban MObility by
1.8.13