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

Scope for interaction with the gui. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::GUIScope:
Inheritance graph
Collaboration diagram for TraCIAPI::GUIScope:
Collaboration graph

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 272 of file TraCIAPI.h.

Constructor & Destructor Documentation

§ GUIScope() [1/2]

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

Definition at line 274 of file TraCIAPI.h.

§ ~GUIScope()

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

§ GUIScope() [2/2]

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

invalidated copy constructor

Member Function Documentation

§ getBoundary()

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

Definition at line 715 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_BOUNDARY.

§ getIDList()

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

Definition at line 695 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, ID_LIST, and SUMOReal.

§ getOffset()

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

Definition at line 705 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_OFFSET.

§ getSchema()

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

Definition at line 710 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_SCHEMA.

Referenced by TraCITestClient::testAPI().

§ getZoom()

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

Definition at line 700 of file TraCIAPI.cpp.

References CMD_GET_GUI_VARIABLE, and VAR_VIEW_ZOOM.

§ operator=()

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

invalidated assignment operator

§ screenshot()

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

§ setBoundary()

void TraCIAPI::GUIScope::setBoundary ( const std::string &  viewID,
SUMOReal  xmin,
SUMOReal  ymin,
SUMOReal  xmax,
SUMOReal  ymax 
) const

§ setOffset()

void TraCIAPI::GUIScope::setOffset ( const std::string &  viewID,
SUMOReal  x,
SUMOReal  y 
) const

§ setSchema()

void TraCIAPI::GUIScope::setSchema ( const std::string &  viewID,
const std::string &  schemeName 
) const

§ setZoom()

void TraCIAPI::GUIScope::setZoom ( const std::string &  viewID,
SUMOReal  zoom 
) const

Definition at line 721 of file TraCIAPI.cpp.

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

§ trackVehicle()

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

Field Documentation

§ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 208 of file TraCIAPI.h.


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