44 #ifdef CHECK_MEMORY_LEAKS
46 #endif // CHECK_MEMORY_LEAKS
69 std::vector<std::string> ids;
74 std::vector<std::string> ids;
94 for (
int iPoint = 0; iPoint <
MIN2(255, (
int)j->
getShape().size()); ++iPoint) {
124 for (std::map<std::string, MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
125 Boundary b = (*i).second->getShape().getBoxBoundary();
126 const float cmin[2] = {(float) b.
xmin(), (float) b.
ymin()};
127 const float cmax[2] = {(float) b.
xmax(), (float) b.
ymax()};
128 t->
Insert(cmin, cmax, (*i).second);
void Insert(const float a_min[2], const float a_max[2], Named *const &a_data)
Insert entry.
static NamedRTree * getTree()
Returns a tree filled with junction instances.
SUMOReal ymin() const
Returns minimum y-coordinate.
The base class for an intersection.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa9: Get Junction Variable)
const PositionVector & getShape() const
Returns this junction's shape.
SUMOReal xmin() const
Returns minimum x-coordinate.
A RT-tree for efficient storing of SUMO's Named objects.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
virtual void writeUnsignedByte(int)
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.
virtual void writeInt(int)
virtual int readUnsignedByte()
T get(const std::string &id) const
Retrieves an item.
A point in 2D or 3D with translation and scaling methods.
void insertIDs(std::vector< std::string > &into) const
virtual void writeStringList(const std::vector< std::string > &s)
virtual std::string readString()
#define CMD_GET_JUNCTION_VARIABLE
TraCI server used to control sumo by a remote TraCI client.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
const IDMap & getMyMap() const
virtual void writeString(const std::string &s)
std::string toHex(const T i, std::streamsize numDigits=0)
static bool getPosition(const std::string &id, Position &p)
Returns the named junction's position.
SUMOReal y() const
Returns the y-position.
#define RESPONSE_GET_JUNCTION_VARIABLE
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.
MSJunctionControl & getJunctionControl()
Returns the junctions control.
const Position & getPosition() const