SUMO - Simulation of Urban MObility
TraCIAPI::GUIScope Class Reference

Scope for interaction with the gui. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::GUIScope:
TraCIAPI::TraCIScopeWrapper

Public Member Functions

TraCIBoundary getBoundary (const std::string &viewID=DEFAULT_VIEW) const
 
std::vector< std::string > getIDList () const
 
TraCIPosition getOffset (const std::string &viewID=DEFAULT_VIEW) const
 
std::string getSchema (const std::string &viewID=DEFAULT_VIEW) const
 
SUMOReal getZoom (const std::string &viewID=DEFAULT_VIEW) const
 
 GUIScope (TraCIAPI &parent)
 
void screenshot (const std::string &viewID, const std::string &filename) const
 
void setBoundary (const std::string &viewID, SUMOReal xmin, SUMOReal ymin, SUMOReal xmax, SUMOReal ymax) const
 
void setOffset (const std::string &viewID, SUMOReal x, SUMOReal y) const
 
void setSchema (const std::string &viewID, const std::string &schemeName) const
 
void setZoom (const std::string &viewID, SUMOReal zoom) const
 
void trackVehicle (const std::string &viewID, const std::string &vehID) const
 
virtual ~GUIScope ()
 

Protected Attributes

TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 

Private Member Functions

 GUIScope (const GUIScope &src)
 invalidated copy constructor More...
 
GUIScopeoperator= (const GUIScope &src)
 invalidated assignment operator More...
 

Detailed Description

Scope for interaction with the gui.

Definition at line 253 of file TraCIAPI.h.

Constructor & Destructor Documentation

TraCIAPI::GUIScope::GUIScope ( TraCIAPI parent)
inline

Definition at line 255 of file TraCIAPI.h.

virtual TraCIAPI::GUIScope::~GUIScope ( )
inlinevirtual

Definition at line 256 of file TraCIAPI.h.

TraCIAPI::GUIScope::GUIScope ( const GUIScope src)
private

invalidated copy constructor

Member Function Documentation

TraCIAPI::TraCIBoundary TraCIAPI::GUIScope::getBoundary ( const std::string &  viewID = DEFAULT_VIEW) const

Definition at line 579 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_BOUNDARY.

std::vector< std::string > TraCIAPI::GUIScope::getIDList ( ) const

Definition at line 559 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and ID_LIST.

TraCIAPI::TraCIPosition TraCIAPI::GUIScope::getOffset ( const std::string &  viewID = DEFAULT_VIEW) const

Definition at line 569 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_OFFSET.

std::string TraCIAPI::GUIScope::getSchema ( const std::string &  viewID = DEFAULT_VIEW) const

Definition at line 574 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_SCHEMA.

SUMOReal TraCIAPI::GUIScope::getZoom ( const std::string &  viewID = DEFAULT_VIEW) const

Definition at line 564 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_ZOOM.

GUIScope& TraCIAPI::GUIScope::operator= ( const GUIScope src)
private

invalidated assignment operator

void TraCIAPI::GUIScope::screenshot ( const std::string &  viewID,
const std::string &  filename 
) const

Definition at line 619 of file TraCIAPI.cpp.

References CMD_SET_GUI_VARIABLE, VAR_SCREENSHOT, and tcpip::Storage::writeString().

void TraCIAPI::GUIScope::setBoundary ( const std::string &  viewID,
SUMOReal  xmin,
SUMOReal  ymin,
SUMOReal  xmax,
SUMOReal  ymax 
) const
void TraCIAPI::GUIScope::setOffset ( const std::string &  viewID,
SUMOReal  x,
SUMOReal  y 
) const
void TraCIAPI::GUIScope::setSchema ( const std::string &  viewID,
const std::string &  schemeName 
) const
void TraCIAPI::GUIScope::setZoom ( const std::string &  viewID,
SUMOReal  zoom 
) const

Definition at line 585 of file TraCIAPI.cpp.

References CMD_SET_GUI_VARIABLE, VAR_VIEW_ZOOM, and tcpip::Storage::writeDouble().

void TraCIAPI::GUIScope::trackVehicle ( const std::string &  viewID,
const std::string &  vehID 
) const

Field Documentation

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 190 of file TraCIAPI.h.

Referenced by TraCIAPI::EdgeScope::getIDList().


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