46 #ifdef CHECK_MEMORY_LEAKS
48 #endif // CHECK_MEMORY_LEAKS
94 tempMsg.
writeString((std::string)c.getItem(c.getCurrentItem()).text());
119 std::string warning =
"";
173 std::string filename;
196 v->
startTrack(static_cast<GUIVehicle*>(veh)->getGlID());
211 FXWindow* w = FXApp::instance()->getRootWindow()->getFirst();
212 while (w != 0 && dynamic_cast<GUIMainWindow*>(w) == 0) {
GUISUMOAbstractView * getView() const
virtual void startTrack(int)
virtual void setViewport(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.
SUMOReal ymin() const
Returns minimum y-coordinate.
SUMOReal xmin() const
Returns minimum x-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.
static GUIMainWindow * getMainWindow()
Returns the main window.
virtual void writeUnsignedByte(int)
#define CMD_SET_GUI_VARIABLE
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
SUMOReal x() const
Returns the x-position.
SUMOReal xmax() const
Returns maximum x-coordinate.
A class that stores a 2D geometrical boundary.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcc: Change GUI State)
virtual int readUnsignedByte()
FXMDIChild * getViewByID(const std::string &id) const
bool readTypeCheckingBoundary(tcpip::Storage &inputStorage, Boundary &into)
Reads the value type and a 2D bounding box, verifying the type.
GUIPerspectiveChanger & getChanger() const
#define VAR_VIEW_BOUNDARY
#define VAR_TRACK_VEHICLE
Boundary getVisibleBoundary() const
Representation of a vehicle.
virtual SUMOReal getXPos() const =0
Returns the x-offset of the field to show stored in this changer.
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)
FXComboBox & getColoringSchemesCombo()
static GUISUMOAbstractView * getNamedView(const std::string &id)
Returns the named view.
virtual std::string readString()
#define CMD_GET_GUI_VARIABLE
TraCI server used to control sumo by a remote TraCI client.
std::string makeSnapshot(const std::string &destFile)
Takes a snapshots and writes it into the given file.
#define RESPONSE_GET_GUI_VARIABLE
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, Position &into)
Reads the value type and a 2D position, verifying the type.
virtual void writeString(const std::string &s)
SUMOReal y() const
Returns the y-position.
void set(SUMOReal x, SUMOReal y)
virtual bool setColorScheme(const std::string &)
SUMOVehicle * getVehicle(const std::string &id) const
Returns the vehicle with the given id.
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.
SUMOReal ymax() const
Returns maximum y-coordinate.
virtual SUMOReal getYPos() const =0
Returns the y-offset of the field to show stored in this changer.
std::vector< std::string > getViewIDs() const
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.