39 double vehiclePoly_PassengerCarBody[] = { .5, 0, 0, 0, 0, .3, 0.08, .44, 0.25, .5, 0.95, .5, 1., .4, 1., -.4, 0.95, -.5, 0.25, -.5, 0.08, -.44, 0, -.3, 0, 0, -10000 };
40 double vehiclePoly_PassengerCarBodyFront[] = { 0.1, 0, 0.025, 0, 0.025, 0.25, 0.27, 0.4, 0.27, -.4, 0.025, -0.25, 0.025, 0, -10000 };
41 double vehiclePoly_PassengerFrontGlass[] = { 0.35, 0, 0.3, 0, 0.3, 0.4, 0.43, 0.3, 0.43, -0.3, 0.3, -0.4, 0.3, 0, -10000 };
42 double vehiclePoly_PassengerSedanRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.77, -.47, 0.67, -.37, 0.45, -.37, 0.34, -.47, -10000 };
43 double vehiclePoly_PassengerSedanLeftGlass[] = { 0.36, .43, 0.34, .47, 0.77, .47, 0.67, .37, 0.45, .37, 0.34, .47, -10000 };
44 double vehiclePoly_PassengerSedanBackGlass[] = { 0.80, 0, 0.70, 0, 0.70, 0.3, 0.83, 0.4, 0.83, -.4, 0.70, -.3, 0.70, 0, -10000 };
45 double vehiclePoly_PassengerHatchbackRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.80, -.37, 0.45, -.37, 0.34, -.47, -10000 };
46 double vehiclePoly_PassengerHatchbackLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.80, .37, 0.45, .37, 0.34, .47, -10000 };
47 double vehiclePoly_PassengerHatchbackBackGlass[] = { 0.92, 0, 0.80, 0, 0.80, 0.3, 0.95, 0.4, 0.95, -.4, 0.80, -.3, 0.80, 0, -10000 };
48 double vehiclePoly_PassengerWagonRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.87, -.37, 0.45, -.37, 0.34, -.47, -10000 };
49 double vehiclePoly_PassengerWagonLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.87, .37, 0.45, .37, 0.34, .47, -10000 };
50 double vehiclePoly_PassengerWagonBackGlass[] = { 0.92, 0, 0.90, 0, 0.90, 0.3, 0.95, 0.4, 0.95, -.4, 0.90, -.3, 0.90, 0, -10000 };
52 double vehiclePoly_PassengerVanBody[] = { .5, 0, 0, 0, 0, .4, 0.1, .5, 0.97, .5, 1., .47, 1., -.47, 0.97, -.5, 0.1, -.5, 0, -.4, 0, 0, -10000 };
53 double vehiclePoly_PassengerVanBodyFront[] = { 0.1, 0, 0.025, 0, 0.025, 0.25, 0.13, 0.4, 0.13, -.4, 0.025, -0.25, 0.025, 0, -10000 };
54 double vehiclePoly_PassengerVanFrontGlass[] = { 0.21, 0, 0.16, 0, 0.16, 0.4, 0.29, 0.3, 0.29, -0.3, 0.16, -0.4, 0.16, 0, -10000 };
55 double vehiclePoly_PassengerVanRightGlass[] = { 0.36, -.43, 0.20, -.47, 0.98, -.47, 0.91, -.37, 0.31, -.37, 0.20, -.47, -10000 };
56 double vehiclePoly_PassengerVanLeftGlass[] = { 0.36, .43, 0.20, .47, 0.98, .47, 0.91, .37, 0.31, .37, 0.20, .47, -10000 };
57 double vehiclePoly_PassengerVanBackGlass[] = { 0.95, 0, 0.94, 0, 0.94, 0.3, 0.98, 0.4, 0.98, -.4, 0.94, -.3, 0.94, 0, -10000 };
59 double vehiclePoly_DeliveryMediumRightGlass[] = { 0.21, -.43, 0.20, -.47, 0.38, -.47, 0.38, -.37, 0.31, -.37, 0.20, -.47, -10000 };
60 double vehiclePoly_DeliveryMediumLeftGlass[] = { 0.21, .43, 0.20, .47, 0.38, .47, 0.38, .37, 0.31, .37, 0.20, .47, -10000 };
62 double vehiclePoly_TransportBody[] = { .5, 0, 0, 0, 0, .45, 0.05, .5, 2.25, .5, 2.25, -.5, 0.05, -.5, 0, -.45, 0, 0, -10000 };
63 double vehiclePoly_TransportFrontGlass[] = { 0.1, 0, 0.05, 0, 0.05, 0.45, 0.25, 0.4, 0.25, -.4, 0.05, -0.45, 0.05, 0, -10000 };
64 double vehiclePoly_TransportRightGlass[] = { 0.36, -.47, 0.10, -.48, 1.25, -.48, 1.25, -.4, 0.3, -.4, 0.10, -.48, -10000 };
65 double vehiclePoly_TransportLeftGlass[] = { 0.36, .47, 0.10, .48, 1.25, .48, 1.25, .4, 0.3, .4, 0.10, .48, -10000 };
67 double vehiclePoly_EVehicleBody[] = { .5, 0, 0, 0, 0, .3, 0.08, .44, 0.25, .5, 0.75, .5, .92, .44, 1, .3, 1, -.3, .92, -.44, .75, -.5, .25, -.5, 0.08, -.44, 0, -.3, 0, 0, -1000 };
68 double vehiclePoly_EVehicleFrontGlass[] = { .5, 0, 0.05, .05, 0.05, .25, 0.13, .39, 0.3, .45, 0.70, .45, .87, .39, .95, .25, .95, -.25, .87, -.39, .70, -.45, .3, -.45, 0.13, -.39, 0.05, -.25, 0.05, 0.05, -1000 };
70 double vehiclePoly_EVehicleBackGlass[] = { 0.65, 0, 0.9, 0, 0.9, 0.4, 0.57, 0.3, 0.57, -0.3, 0.9, -0.4, 0.9, 0, -10000 };
72 double vehiclePoly_Ship[] = { 0.25, 0, 0, 0, 0.1, 0.25, 0.2, 0.45, 0.25, 0.5, 0.95, 0.5, 1.0, 0.45, 1.0, -0.45, 0.95, -0.5, 0.25, -0.5, 0.2, -0.45, 0.1, -0.25, 0, 0, -10000 };
73 double vehiclePoly_ShipDeck[] = { 0.5, 0, 0.25, 0.4, 0.95, 0.4, 0.95, -0.4, 0.25, -0.4, 0.25, 0.4, -10000 };
74 double vehiclePoly_ShipSuperStructure[] = { 0.8, 0, 0.5, 0.3, 0.85, 0.3, 0.85, -0.3, 0.5, -0.3, 0.5, 0.3, -10000 };
76 double vehiclePoly_Cyclist[] = { 0.5, 0, 0.25, 0.45, 0.25, 0.5, 0.8, 0.15, 0.8, -0.15, 0.25, -0.5, 0.25, -0.45, -10000 };
90 double vehiclePoly_Rickshaw[] = { 0.5, 0, 0.25, 0.45, 0.25, 0.5, 0.8, 0.15, 0.8, -0.15, 0.25, -0.5, 0.25, -0.45, -10000 };
99 glTranslated(0, 0, offset * .1);
100 glPolygonOffset(0, (GLfloat) - offset);
101 glBegin(GL_TRIANGLE_FAN);
103 while (poses[i] > -999) {
104 glVertex2d(poses[i], poses[i + 1]);
114 glScaled(width, length, 1.);
115 glBegin(GL_TRIANGLE_STRIP);
117 glVertex2d(-.5, .15);
133 glScaled(width, length, 1.);
134 glBegin(GL_TRIANGLES);
151 glRotated(90, 0, 0, 1);
152 glScaled(length, width, 1.);
164 glTranslated(0, 0, .045);
166 glTranslated(0, 0, -.045);
168 glTranslated(0, 0, .04);
171 glTranslated(0, 0, -.04);
181 glTranslated(0.4, 0, .5);
182 glScaled(0.1, 0.2, 1);
189 glTranslated(0.5, 0, .3);
190 glScaled(0.5, 0.05, 1);
195 glTranslated(0.25, 0, .3);
196 glScaled(0.02, 0.5, 1);
233 if (carriageIndex < 1) {
234 glScaled(1. / (length), 1, 1.);
246 glScaled(1. / (length), 1, 1.);
247 glTranslated(0, 0, .04);
248 glBegin(GL_TRIANGLE_FAN);
249 glVertex2d(ml / 2., 0);
252 glVertex2d(0 + .05, -.5);
253 glVertex2d(ml - .05, -.5);
254 glVertex2d(ml, -.45);
256 glVertex2d(ml - .05, .5);
257 glVertex2d(0 + .05, .5);
261 glTranslated(0, 0, -.04);
263 glTranslated(0, 0, .045);
266 glVertex2d(0 + .05, .48);
267 glVertex2d(0 + .05, -.48);
268 glVertex2d(0 + .15, -.48);
269 glVertex2d(0 + .15, .48);
271 glVertex2d(ml - .1, .45);
272 glVertex2d(ml - .1, -.45);
273 glVertex2d(ml - .05, -.45);
274 glVertex2d(ml - .05, .45);
276 glVertex2d(0 + .20, .49);
277 glVertex2d(0 + .20, .45);
278 glVertex2d(ml - .20, .45);
279 glVertex2d(ml - .20, .49);
281 glVertex2d(0 + .20, -.49);
282 glVertex2d(0 + .20, -.45);
283 glVertex2d(ml - .20, -.45);
284 glVertex2d(ml - .20, -.49);
287 glTranslated(0, 0, -.045);
298 glTranslated(0, 0, .048);
303 glVertex2d(.35, -.5);
306 glVertex2d(.3, -.05);
307 glVertex2d(.7, -.05);
313 glVertex2d(.65, -.5);
316 glTranslated(0, 0, -.048);
343 glTranslated(0, 0, 0.1);
345 glTranslated(.4, 0, 0);
347 glTranslated(.4, 0, 0);
370 glTranslated(0.7, 0, 0);
371 glColor3d(.18, .55, .34);
386 glTranslated(0.7, 0, 0);
389 glColor3d(.5, .5, .5);
405 glTranslated(0.7, 0, 0);
406 glColor3d(.5, .5, .5);
417 glTranslated(.5, .5, -0.1);
422 glTranslated(.5, -.5, -0.1);
441 glBegin(GL_TRIANGLE_FAN);
442 glVertex2d(1 / 2., 0);
445 glVertex2d(0 + .05, -.05);
446 glVertex2d(1 - .05, -.05);
449 glVertex2d(1 - .05, .05);
450 glVertex2d(0 + .05, .05);
458 glBegin(GL_TRIANGLE_FAN);
459 glVertex2d(1 / 2., 0);
462 glVertex2d(0 + .05, -.2);
463 glVertex2d(1 - .05, -.2);
466 glVertex2d(1 - .05, .2);
467 glVertex2d(0 + .05, .2);
496 if (carriageIndex < 0) {
503 double l = length - 2.3;
504 if (carriageIndex != 0) {
515 glTranslated(0, 0, .1);
518 glTranslated(0, 0, .1);
625 const double halfWidth = width / 2.0 * exaggeration;
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
double vehiclePoly_ShipSuperStructure[]
double vehiclePoly_PassengerSedanRightGlass[]
double vehiclePoly_PassengerHatchbackBackGlass[]
RGBColor changedBrightness(int change, int toChange=3) const
Returns a new color with altered brightness.
double vehiclePoly_PassengerWagonBackGlass[]
double vehiclePoly_Rickshaw[]
static void drawAction_drawVehicleAsBoxPlus(const double width, const double length)
draw vehicle as a Box
double vehiclePoly_EmergencyLadder3[]
double vehiclePoly_EVehicleBody[]
double vehiclePoly_PassengerCarBodyFront[]
Stores the information about how to visualize structures.
render as a transport vehicle
render as a flexible city bus
double vehiclePoly_ShipDeck[]
double vehiclePoly_EmergencySign[]
double vehiclePoly_PassengerSedanBackGlass[]
double vehiclePoly_PassengerVanLeftGlass[]
automated car (with cruise controllers)
render as a sedan passenger vehicle ("Stufenheck")
double vehiclePoly_EmergencyLadder2[]
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
#define UNUSED_PARAMETER(x)
double vehiclePoly_PassengerFrontGlass[]
double vehiclePoly_TransportBody[]
double vehiclePoly_Cyclist[]
static void drawAction_drawVehicleAsTrianglePlus(const double width, const double length)
draw vehicle as a triangle
static const RGBColor GREY
static void drawPoly(const double *poses, const double offset)
draw poly
double vehiclePoly_DeliveryMediumLeftGlass[]
double vehiclePoly_EVehicleBackGlass[]
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
render as a hatchback passenger vehicle ("Fliessheck")
A point in 2D or 3D with translation and scaling methods.
double vehiclePoly_EmergencyLadder7[]
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
render as a (city) rail without locomotive
double vehiclePoly_Emergency[]
double vehiclePoly_PassengerSedanLeftGlass[]
double vehiclePoly_PassengerCarBody[]
double vehiclePoly_PassengerVanRightGlass[]
render as a passenger vehicle
double vehiclePoly_Emergency2[]
double vehiclePoly_EmergencyLadder5[]
static void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings &s, const SUMOVehicleShape shape, const double width, const double length, int carriageIndex=-1)
draw vehicle as a polygon
double vehiclePoly_TransportFrontGlass[]
double vehiclePoly_PassengerVanBodyFront[]
double vehiclePoly_PassengerVanBody[]
double vehiclePoly_EmergencyLadder4[]
double vehiclePoly_TransportLeftGlass[]
double vehiclePoly_Ship[]
double vehiclePoly_PassengerVanBackGlass[]
double vehiclePoly_TransportRightGlass[]
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
render as a arbitrary ship
double vehiclePoly_PassengerHatchbackRightGlass[]
double vehiclePoly_DeliveryMediumRightGlass[]
double vehiclePoly_EVehicleFrontGlass[]
render as an emergency vehicle
render as a (futuristic) e-vehicle
static bool drawAction_drawVehicleAsImage(const GUIVisualizationSettings &s, const std::string &file, const GUIGlObject *o, const double width, double length)
try to draw vehicle as raster image and return true if sucessful
double vehiclePoly_PassengerVanFrontGlass[]
GUIVisualizationSizeSettings vehicleSize
static void drawBoxLine(const Position &beg, double rot, double visLength, double width, double offset=0)
Draws a thick line.
double vehiclePoly_EmergencyLadder[]
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
render as a transport vehicle with one trailer
render as a wagon passenger vehicle ("Combi")
double vehiclePoly_EmergencyLadder6[]
double vehiclePoly_PassengerHatchbackLeftGlass[]
render as a semi-trailer transport vehicle ("Sattelschlepper")
double vehiclePoly_PassengerWagonLeftGlass[]
double vehiclePoly_PassengerWagonRightGlass[]
static RGBColor getColor()
gets the gl-color