48 #ifdef CHECK_MEMORY_LEAKS 50 #endif // CHECK_MEMORY_LEAKS 120 std::string warning =
"";
143 p.
set(off.
x(), off.
y(), 0);
153 p.
set(off.
x(), off.
y(), 0);
176 std::string filename;
196 v->
startTrack(static_cast<GUIVehicle*>(veh)->getGlID());
GUISUMOAbstractView * getView() const
virtual void setViewportFromTo(const Position &lookFrom, const Position &lookAt)
applies the given viewport settings
virtual void centerTo(GUIGlID id, bool applyZoom, SUMOReal zoomDist=20)
centers to the chosen artifact
virtual SUMOReal getZoom() const =0
Returns the zoom factor computed stored in this changer.
GUIVisualizationSettings * getVisualisationSettings() const
get visualitation settings
SUMOVehicle * getVehicle(const std::string &id) const
Returns the vehicle with the given id.
SUMOReal ymin() const
Returns minimum y-coordinate.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
bool readTypeCheckingDouble(tcpip::Storage &inputStorage, double &into)
Reads the value type and a double, verifying the type.
SUMOReal ymax() const
Returns maximum y-coordinate.
virtual void writeUnsignedByte(int)
#define CMD_SET_GUI_VARIABLE
virtual void stopTrack()
stop track
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
A class that stores a 2D geometrical boundary.
SUMOReal xmin() const
Returns minimum x-coordinate.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcc: Change GUI State)
std::vector< std::string > getViewIDs() const
virtual int readUnsignedByte()
bool readTypeCheckingBoundary(tcpip::Storage &inputStorage, Boundary &into)
Reads the value type and a 2D bounding box, verifying the type.
virtual void startTrack(int)
star track
virtual void sendBlockingEvent(GUIEvent *event)
Sends an event from the application thread to the GUI and waits until it is handled.
#define VAR_VIEW_BOUNDARY
#define VAR_TRACK_VEHICLE
std::string name
The name of this setting.
Representation of a vehicle.
virtual SUMOReal getXPos() const =0
Returns the x-offset of the field to show stored in this changer.
static GUIMainWindow * getInstance()
A point in 2D or 3D with translation and scaling methods.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual void writeStringList(const std::vector< std::string > &s)
GUIPerspectiveChanger & getChanger() const
get changer
static GUISUMOAbstractView * getNamedView(const std::string &id)
Returns the named view.
SUMOReal x() const
Returns the x-position.
virtual std::string readString()
#define CMD_GET_GUI_VARIABLE
TraCI server used to control sumo by a remote TraCI client.
#define RESPONSE_GET_GUI_VARIABLE
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
virtual SUMOReal getZPos() const =0
Returns the camera height corresponding to the current zoom factor.
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, Position &into)
Reads the value type and a 2D position, verifying the type.
virtual bool setColorScheme(const std::string &)
set color scheme
virtual void writeString(const std::string &s)
SUMOReal xmax() const
Returns maximum x-coordinate.
std::string toHex(const T i, std::streamsize numDigits=0)
FXMDIChild * getViewByID(const std::string &id) const
void set(SUMOReal x, SUMOReal y)
virtual void writeDouble(double)
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
Boundary getVisibleBoundary() const
get visible boundary
virtual SUMOReal getYPos() const =0
Returns the y-offset of the field to show stored in this changer.
SUMOReal y() const
Returns the y-position.
virtual SUMOReal zoom2ZPos(SUMOReal zoom) const =0
Returns the camera height at which the given zoom level is reached.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xac: Get GUI Variable)
A MSVehicle extended by some values for usage within the gui.