97 tempMsg.
writeInt(v !=
nullptr ? 1 : 0);
132 std::string warning =
"";
156 p.
set(off.
x(), off.
y(), 0);
168 p.
set(tp.
x, tp.
y, 0);
194 int parameterCount = inputStorage.
readInt();
195 if (parameterCount != 3) {
198 std::string filename;
202 int width = 0, height = 0;
222 if (veh ==
nullptr) {
226 v->
startTrack(static_cast<GUIVehicle*>(veh)->getGlID());
TRACI_CONST int VAR_VIEW_BOUNDARY
double ymin() const
Returns minimum y-coordinate.
double xmax() const
Returns maximum x-coordinate.
TRACI_CONST int VAR_VIEW_SCHEMA
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
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()
TRACI_CONST int TYPE_INTEGER
TRACI_CONST int TRACI_ID_LIST
virtual GUIGlID getTrackedID() const
get tracked id
virtual void startTrack(int)
star track
std::string name
The name of this setting.
TRACI_CONST int TYPE_POLYGON
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)
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
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.
TRACI_CONST int TYPE_DOUBLE
double xmin() const
Returns minimum x-coordinate.
TRACI_CONST int TYPE_STRINGLIST
virtual std::string readString()
TRACI_CONST int VAR_VIEW_ZOOM
TRACI_CONST int TYPE_STRING
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_CONST int VAR_TRACK_VEHICLE
TRACI_CONST int RESPONSE_GET_GUI_VARIABLE
TraCI server used to control sumo by a remote TraCI client.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
virtual bool setColorScheme(const std::string &)
set color scheme
virtual void writeString(const std::string &s)
TRACI_CONST int CMD_GET_GUI_VARIABLE
GUISUMOAbstractView * getView() const
return GUISUMOAbstractView
std::string toHex(const T i, std::streamsize numDigits=0)
static const GUIGlID INVALID_ID
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
void unblockObject(GUIGlID id)
Marks an object as unblocked.
TRACI_CONST int POSITION_2D
TRACI_CONST int VAR_VIEW_OFFSET
double ymax() const
Returns maximum y-coordinate.
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
const std::string & getID() const
Returns the name of the vehicle.
TRACI_CONST int VAR_HAS_VIEW
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.
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int CMD_SET_GUI_VARIABLE
TRACI_CONST int VAR_SCREENSHOT
A MSVehicle extended by some values for usage within the gui.