SUMO - Simulation of Urban MObility
GUIEvent_Screenshot Class Reference

#include <GUIEvent_Screenshot.h>

Inheritance diagram for GUIEvent_Screenshot:
Inheritance graph
Collaboration diagram for GUIEvent_Screenshot:
Collaboration graph

Public Member Functions

GUIEventType getOwnType () const
 returns the event type More...
 
 GUIEvent_Screenshot (GUISUMOAbstractView *view, const std::string &file)
 constructor More...
 
 ~GUIEvent_Screenshot ()
 destructor More...
 

Data Fields

const std::string myFile
 the name of the file to save to More...
 
GUISUMOAbstractView *const myView
 the view to save More...
 

Protected Attributes

GUIEventType myType
 the type of the event More...
 

Private Member Functions

GUIEvent_Screenshotoperator= (const GUIEvent_Screenshot &s)
 Invalidated assignment operator. More...
 

Detailed Description

Throw to GUIApplicationWindow from GUIRunThread to trigger a screenshot

Definition at line 52 of file GUIEvent_Screenshot.h.

Constructor & Destructor Documentation

◆ GUIEvent_Screenshot()

GUIEvent_Screenshot::GUIEvent_Screenshot ( GUISUMOAbstractView view,
const std::string &  file 
)
inline

constructor

Definition at line 55 of file GUIEvent_Screenshot.h.

◆ ~GUIEvent_Screenshot()

GUIEvent_Screenshot::~GUIEvent_Screenshot ( )
inline

destructor

Definition at line 62 of file GUIEvent_Screenshot.h.

Member Function Documentation

◆ getOwnType()

GUIEventType GUIEvent::getOwnType ( ) const
inlineinherited

◆ operator=()

GUIEvent_Screenshot& GUIEvent_Screenshot::operator= ( const GUIEvent_Screenshot s)
private

Invalidated assignment operator.

Field Documentation

◆ myFile

const std::string GUIEvent_Screenshot::myFile

the name of the file to save to

Definition at line 69 of file GUIEvent_Screenshot.h.

Referenced by GUIApplicationWindow::handleEvent_Screenshot().

◆ myType

GUIEventType GUIEvent::myType
protectedinherited

the type of the event

Definition at line 99 of file GUIEvent.h.

Referenced by GUIEvent::getOwnType(), and GUIEvent_Message::GUIEvent_Message().

◆ myView

GUISUMOAbstractView* const GUIEvent_Screenshot::myView

the view to save

Definition at line 66 of file GUIEvent_Screenshot.h.

Referenced by GUIApplicationWindow::handleEvent_Screenshot().


The documentation for this class was generated from the following file: