96 tempMsg.
writeInt(v !=
nullptr ? 1 : 0);
111 std::string warning =
"";
134 p.
set(off.
x(), off.
y(), 0);
146 p.
set(tp.
x, tp.
y, 0);
172 int parameterCount = inputStorage.
readInt();
173 if (parameterCount != 3) {
176 std::string filename;
180 int width = 0, height = 0;
200 if (veh ==
nullptr) {
204 v->
startTrack(static_cast<GUIVehicle*>(veh)->getGlID());
double ymin() const
Returns minimum y-coordinate.
GUISUMOAbstractView * getView() const
double xmax() const
Returns maximum x-coordinate.
virtual double zoom2ZPos(double zoom) const =0
Returns the camera height at which the given zoom level is reached.
double y() const
Returns the y-position.
GUIVisualizationSettings * getVisualisationSettings() const
get visualitation settings
SUMOVehicle * getVehicle(const std::string &id) const
Returns the vehicle with the given id.
double x() const
Returns the x-position.
bool readTypeCheckingInt(tcpip::Storage &inputStorage, int &into)
Reads the value type and an int, verifying the type.
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.
virtual double getRotation() const =0
Returns the rotation of the canvas stored in this changer.
bool readTypeCheckingPolygon(tcpip::Storage &inputStorage, PositionVector &into)
Reads the value type and a polygon, verifying the type.
virtual void writeUnsignedByte(int)
virtual double getZPos() const =0
Returns the camera height corresponding to the current zoom factor.
void set(double x, double y)
set positions x and y
#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.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcc: Change GUI State)
virtual void writeInt(int)
std::vector< std::string > getViewIDs() const
virtual int readUnsignedByte()
virtual GUIGlID getTrackedID() const
get tracked id
virtual void startTrack(int)
star track
#define VAR_VIEW_BOUNDARY
#define VAR_TRACK_VEHICLE
std::string name
The name of this setting.
Representation of a vehicle.
static GUIMainWindow * getInstance()
A point in 2D or 3D with translation and scaling methods.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual void writeByte(int)
virtual void centerTo(GUIGlID id, bool applyZoom, double zoomDist=20)
centers to the chosen artifact
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.
double xmin() const
Returns minimum x-coordinate.
virtual std::string readString()
#define CMD_GET_GUI_VARIABLE
virtual double getZoom() const =0
Returns the zoom factor computed stored in this changer.
virtual void setViewportFromToRot(const Position &lookFrom, const Position &lookAt, double rotation)
applies the given viewport settings
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 bool setColorScheme(const std::string &)
set color scheme
virtual void writeString(const std::string &s)
std::string toHex(const T i, std::streamsize numDigits=0)
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, libsumo::TraCIPosition &into)
Reads the value type and a 2D position, verifying the type.
virtual void writeDouble(double)
virtual double getYPos() const =0
Returns the y-offset of the field to show stored in this changer.
void addSnapshot(SUMOTime time, const std::string &file, const int width=-1, const int height=-1)
Sets the snapshot time to file map.
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
GUIGlChildWindow * getViewByID(const std::string &id) const
double ymax() const
Returns maximum y-coordinate.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xac: Get GUI Variable)
virtual double getXPos() const =0
Returns the x-offset of the field to show stored in this changer.
A MSVehicle extended by some values for usage within the gui.