67 #ifdef CHECK_MEMORY_LEAKS
69 #endif // CHECK_MEMORY_LEAKS
79 GUINet& net, FXGLVisual* glVis,
94 for (std::vector<std::string>::const_iterator i = names.begin(); i != names.end(); ++i) {
104 "\tLocate Junction\tLocate a junction within the network.",
106 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
109 "\tLocate Street\tLocate a street within the network.",
111 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
116 "\tLocate Vehicle\tLocate a vehicle within the network.",
118 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
122 "\tLocate TLS\tLocate a tls within the network.",
124 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
127 "\tLocate Additional\tLocate an additional structure within the network.",
129 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
132 "\tLocate PoI\tLocate a PoI within the network.",
134 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
137 "\tLocate Polygon\tLocate a Polygon within the network.",
139 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
164 glMatrixMode(GL_MODELVIEW);
166 glDisable(GL_TEXTURE_2D);
167 glDisable(GL_ALPHA_TEST);
169 glEnable(GL_DEPTH_TEST);
180 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
183 minB[0] = bound.
xmin();
184 minB[1] = bound.
ymin();
185 maxB[0] = bound.
xmax();
186 maxB[1] = bound.
ymax();
188 glEnable(GL_POLYGON_OFFSET_FILL);
189 glEnable(GL_POLYGON_OFFSET_LINE);
193 glTranslated(0, 0, -.01);
199 glTranslated(0, 0, .01);
236 const std::vector<MSTrafficLightLogic*>& logics = tlsControl.
getAllLogics();
238 SUMOReal minDist = std::numeric_limits<SUMOReal>::infinity();
239 for (std::vector<MSTrafficLightLogic*>::const_iterator i = logics.begin(); i != logics.end(); ++i) {
245 if (lanes.size() > 0) {
246 const Position& endPos = lanes[0]->getShape().back();
256 const std::vector<MSTrafficLightLogic*> logics = vars.
getAllLogics();
257 if (logics.size() > 1) {
259 for (
unsigned int i = 0; i < logics.size() - 1; ++i) {
260 if (minTll->
getProgramID() == logics[i]->getProgramID()) {
265 if (l == logics[0]) {