40static const 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 };
41static const 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 };
42static const 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 };
43static const double vehiclePoly_PassengerSedanRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.77, -.47, 0.67, -.37, 0.45, -.37, 0.34, -.47, -10000 };
44static const double vehiclePoly_PassengerSedanLeftGlass[] = { 0.36, .43, 0.34, .47, 0.77, .47, 0.67, .37, 0.45, .37, 0.34, .47, -10000 };
45static const 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 };
46static const double vehiclePoly_PassengerHatchbackRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.80, -.37, 0.45, -.37, 0.34, -.47, -10000 };
47static const double vehiclePoly_PassengerHatchbackLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.80, .37, 0.45, .37, 0.34, .47, -10000 };
48static const 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 };
49static const double vehiclePoly_PassengerWagonRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.87, -.37, 0.45, -.37, 0.34, -.47, -10000 };
50static const double vehiclePoly_PassengerWagonLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.87, .37, 0.45, .37, 0.34, .47, -10000 };
51static const 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 };
53static const 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 };
54static const 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 };
55static const 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 };
56static const double vehiclePoly_PassengerVanRightGlass[] = { 0.36, -.43, 0.20, -.47, 0.98, -.47, 0.91, -.37, 0.31, -.37, 0.20, -.47, -10000 };
57static const double vehiclePoly_PassengerVanLeftGlass[] = { 0.36, .43, 0.20, .47, 0.98, .47, 0.91, .37, 0.31, .37, 0.20, .47, -10000 };
58static const 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 };
62static const double vehiclePoly_DeliveryMediumRightGlass[] = { 0.21, -.43, 0.20, -.47, 0.38, -.47, 0.38, -.37, 0.31, -.37, 0.20, -.47, -10000 };
63static const double vehiclePoly_DeliveryMediumLeftGlass[] = { 0.21, .43, 0.20, .47, 0.38, .47, 0.38, .37, 0.31, .37, 0.20, .47, -10000 };
65static const 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 };
66static const 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 };
67static const double vehiclePoly_TransportRightGlass[] = { 0.36, -.47, 0.10, -.48, 1.25, -.48, 1.25, -.4, 0.3, -.4, 0.10, -.48, -10000 };
68static const double vehiclePoly_TransportLeftGlass[] = { 0.36, .47, 0.10, .48, 1.25, .48, 1.25, .4, 0.3, .4, 0.10, .48, -10000 };
70static const 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 };
71static const 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 };
75static const 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 };
76static const 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 };
77static const 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 };
79static const 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 };
80static const double vehiclePoly_CargoCyclist[] = { 0.7, 0, 0.47, 0.45, 0.47, 0.5, 0.92, 0.15, 0.92, -0.15, 0.47, -0.5, 0.47, -0.45, -10000 };
82 .265, 0, .09, -.27, .44, -.40, .44, .40, .09, .27, .09, -.27, -10000
85 .265, 0, .12, -.22, .41, -.32, .41, .32, .12, .22, .12, -.22, -10000
87static const double vehiclePoly_BicycleSeat[] = { 0.565, 0, 0.570, 0.03, 0.575, 0.05, 0.585, 0.06, 0.645, 0.06, 0.665, 0.07, 0.685, 0.10, 0.695, 0.13, 0.715, 0.16, 0.735, 0.18, 0.742, 0.17, 0.745, 0.16, 0.755, 0.13, 0.76, 0.11, 0.765, 0, 0.76, -0.11, 0.755, -0.13, 0.745, -0.16, 0.742, -0.17, 0.735, -0.18, 0.715, -0.16, 0.695, -0.13, 0.685, -0.10, 0.665, -0.07, 0.645, -0.06, 0.585, -0.06, 0.575, -0.05, 0.57, -0.03, -10000 };
88static const double vehiclePoly_MotorcycleSeat[] = { 0.5, 0, 0.503, 0.072, 0.506, 0.097, 0.518, 0.135, 0.539, 0.162, 0.567, 0.183, 0.641, 0.194, 0.698, 0.202, 0.706, 0.194, 0.713, 0.189, 0.721, 0.162, 0.729, 0.132, 0.732, 0.097, 0.734, 0.051, 0.735, 0, 0.734, -0.051, 0.732, -0.097, 0.729, -0.132, 0.721, -0.162, 0.713, -0.189, 0.706, -0.194, 0.698, -0.202, 0.641, -0.194, 0.567, -0.183, 0.539, -0.162, 0.518, -0.135, 0.506, -0.097, 0.503, -0.072, -10000 };
106static const double vehiclePoly_aircraft[] = {0.633, -0.500, 0.609, -0.465, 0.563, -0.460, 0.517, -0.168, 0.413, -0.156, 0.509, -0.053, 0.509, 0.053, 0.413, -0.156, 0.413, 0.156, 0.385, -0.101, 0.385, 0.101, 0.354, -0.058, 0.354, 0.058, 0.109, -0.050, 0.109, 0.050, 0, -0.003, 0, 0.003, 0, 0.003, 0.633, 0.500, 0.633, 0.500, 0.609, 0.465, 0.563, 0.460, 0.517, 0.168, 0.413, 0.156, 0.509, 0.053, 0.385, 0.101, 0.326, 0.158, 0.326, 0.108, 0.413, 0.156, 0.385, 0.101, 0.509, 0.053, 0.509, -0.053, 0.761, 0.043, 0.761, -0.043, 0.830, 0.030, 0.830, -0.030, 0.952, -0.196, 0.933, -0.196, 0.907, -0.008, 0.830, 0.030, 0.933, 0.196, 0.952, 0.196, 0.907, 0.008, 0.830, 0.030, 0.907, -0.008, 1.000, 0.003, 0.907, 0.008, 0.354, -0.058, 0.509, -0.053, 0.413, -0.156, 0.385, -0.101, 0.326, -0.158, 0.326, -0.108, 0.385, -0.101, -10000};
107static const double vehiclePoly_WheelchairFootrest[] = { 0.053, -0.324, 0.003, -0.259, 0.003, -0.056, 0.102, -0.056, 0.102, -0.259, 0.083, -0.286, -10000 };
108static const double vehiclePoly_WheelchairArm[] = { 0.75, -0.30, 0.75, -0.44, 0.62, -0.50, 0.47, -0.50, 0.44, -0.47, 0.44, -0.38, -10000 };
109static const double vehiclePoly_WheelchairLeg[] = { 0.45, -0.26, 0.40, -0.01, 0.03, -0.06, 0., -0.09, 0., -0.19, 0.03, -0.215, -10000 };
110static const double vehiclePoly_aircraftEngines[] = {0.326, -0.158, 0.413, -0.156, 0.326, -0.108, 0.385, -0.101, 0.385, -0.101, 0.385, 0.101, 0.385, 0.101, 0.326, 0.108, 0.413, 0.156, 0.326, 0.158, -10000};
119drawRoundedRect(
const double cx,
const double cy,
const double halfX,
const double halfY,
const double radius,
const int stepsPerCorner = 6) {
120 const double ix = halfX - radius;
121 const double iy = halfY - radius;
122 glBegin(GL_TRIANGLE_FAN);
124 const double cornerX[] = { ix, -ix, -ix, ix };
125 const double cornerY[] = { iy, iy, -iy, -iy };
126 for (
int c = 0; c < 4; c++) {
127 for (
int i = 0; i <= stepsPerCorner; i++) {
128 const double a =
DEG2RAD(90. * c + 90. * i / stepsPerCorner);
129 glVertex2d(cx + cornerX[c] + radius * cos(a), cy + cornerY[c] + radius * sin(a));
132 glVertex2d(cx + ix + radius, cy + iy);
139 glTranslated(0, 0, offset * .1);
140 glPolygonOffset(0, (GLfloat) - offset);
141 glBegin(GL_TRIANGLE_FAN);
143 while (poses[i] > -999) {
144 glVertex2d(poses[i], poses[i + 1]);
154 glScaled(width, length, 1.);
155 glBegin(GL_TRIANGLE_STRIP);
159 glVertex2d(-.5, .85);
164 glVertex2d(-.5, .15);
181 glScaled(width, length, 1.);
182 glBegin(GL_TRIANGLES);
205 int carriageIndex,
bool isStopped,
bool amReversed) {
211 glRotated(90, 0, 0, 1);
213 glScaled(length, width, 1.);
218 glRotatef(180, 0, 0, 1);
219 glTranslated(-1, 0, 0);
232 glTranslated(0, 0, .045);
234 glTranslated(0, 0, -.045);
236 glTranslated(0, 0, .04);
239 glTranslated(0, 0, -.04);
248 const double riderOffset = cargo ? 0.2 : 0.;
249 const double seatOffset = cargo ? 0.1 : 0.;
255 glTranslated(0.4 + riderOffset, 0, .5);
256 glScaled(0.1, 0.2, 1);
264 glTranslated(seatOffset, 0, 0);
281 glTranslated(0.5, 0, .3);
282 glScaled(0.5, 0.05, 1);
287 glTranslated(cargo ? 0.47 : 0.25, 0, .3);
288 glScaled(0.02, 0.5, 1);
326 if (carriageIndex < 1) {
327 glScaled(1. / length, 1, 1.);
339 glScaled(1. / (length), 1, 1.);
340 glTranslated(0, 0, .04);
341 glBegin(GL_TRIANGLE_FAN);
342 glVertex2d(ml / 2., 0);
345 glVertex2d(0 + .05, -.5);
346 glVertex2d(ml - .05, -.5);
347 glVertex2d(ml, -.45);
349 glVertex2d(ml - .05, .5);
350 glVertex2d(0 + .05, .5);
354 glTranslated(0, 0, -.04);
356 glTranslated(0, 0, .045);
359 glVertex2d(0 + .05, .48);
360 glVertex2d(0 + .05, -.48);
361 glVertex2d(0 + .15, -.48);
362 glVertex2d(0 + .15, .48);
364 glVertex2d(ml - .1, .45);
365 glVertex2d(ml - .1, -.45);
366 glVertex2d(ml - .05, -.45);
367 glVertex2d(ml - .05, .45);
369 glVertex2d(0 + .20, .49);
370 glVertex2d(0 + .20, .45);
371 glVertex2d(ml - .20, .45);
372 glVertex2d(ml - .20, .49);
374 glVertex2d(0 + .20, -.49);
375 glVertex2d(0 + .20, -.45);
376 glVertex2d(ml - .20, -.45);
377 glVertex2d(ml - .20, -.49);
380 glTranslated(0, 0, -.045);
388 glRotated(-90, 0, 0, 1);
389 const double xCornerCut = 0.3 / width;
390 const double yCornerCut = 0.4 / length;
391 const double drawnCarriageLength = 1;
392 const double halfWidth = 0.5;
393 glBegin(GL_TRIANGLE_FAN);
394 glVertex2d(-halfWidth + xCornerCut, 0);
395 glVertex2d(-halfWidth, yCornerCut);
396 glVertex2d(-halfWidth, drawnCarriageLength - yCornerCut);
397 glVertex2d(-halfWidth + xCornerCut, drawnCarriageLength);
398 glVertex2d(halfWidth - xCornerCut, drawnCarriageLength);
399 glVertex2d(halfWidth, drawnCarriageLength - yCornerCut);
400 glVertex2d(halfWidth, yCornerCut);
401 glVertex2d(halfWidth - xCornerCut, 0);
404 glTranslated(0, 0, 0.1);
406 glBegin(GL_TRIANGLE_FAN);
407 glVertex2d(-halfWidth + 2 * xCornerCut, yCornerCut);
408 glVertex2d(-halfWidth + xCornerCut, 3 * yCornerCut);
409 glVertex2d(halfWidth - xCornerCut, 3 * yCornerCut);
410 glVertex2d(halfWidth - 2 * xCornerCut, yCornerCut);
419 glTranslated(0, 0, .048);
424 glVertex2d(.35, -.5);
427 glVertex2d(.3, -.05);
428 glVertex2d(.7, -.05);
434 glVertex2d(.65, -.5);
437 glTranslated(0, 0, -.048);
464 glTranslated(0, 0, 0.1);
466 glTranslated(.4, 0, 0);
468 glTranslated(.4, 0, 0);
489 glTranslated(0.7, 0, 0);
490 glColor3d(.18, .55, .34);
505 glTranslated(0.7, 0, 0);
508 glColor3d(.5, .5, .5);
524 glTranslated(0.7, 0, 0);
525 glColor3d(.5, .5, .5);
536 glTranslated(.5, .5, -0.1);
541 glTranslated(.5, -.5, -0.1);
548 glBegin(GL_TRIANGLE_STRIP);
558 glTranslated(0, 0, 0.1);
559 glBegin(GL_TRIANGLE_STRIP);
570 glColor3d(1.f, 0, 0);
572 glTranslated(0.62, -0.49, 0.1);
575 glColor3d(0, 1.f, 0);
577 glTranslated(0.62, 0.49, 0.1);
583 const RGBColor tyreColor(102, 102, 102);
585 for (
const double side : {
589 glScaled(1, side, 1);
596 glRectd(0.359, -0.417, 1., -0.358);
597 glRectd(0.826, -0.324, 0.939, -0.282);
598 glRectd(0.05, -0.324, 0.273, -0.286);
603 glRectd(0.273, -0.36, 0.826, 0.36);
607 for (
const double side : {
611 glScaled(1, side, 1);
617 glTranslated(0, 0, 0.2);
621 glTranslated(0.674, 0, 0.1);
622 glScaled(0.094, 0.157, 1);
633 const double len = length / width;
634 glScaled(1. / len, 1., 1.);
636 const double k =
MIN2(1., len / 1.64);
637 const double cap = 0.254 * k;
638 const double body[] = {
639 0., -0.245, 0.044 * k, -0.341, cap, -0.5, len - cap, -0.5, len - 0.044 * k, -0.341, len, -0.245,
640 len, 0.245, len - 0.044 * k, 0.341, len - cap, 0.5, cap, 0.5, 0.044 * k, 0.341, 0., 0.245, -10000
644 const double window[] = {
645 0.195 * k, -0.402, 0.057 * k, -0.305, 0.041 * k, -0.235, 0.041 * k, 0.235, 0.057 * k, 0.305, 0.195 * k, 0.402, -10000
650 glTranslated(len, 0, 0);
654 glTranslated(0, 0, 0.2);
656 const double gap = 0.033;
657 const double grillStart = 0.3115 * k;
658 const double grillRange = len - 2 * grillStart;
659 const int numGrills =
MAX2(1, (
int)(grillRange / (1.0165 * k) + 0.5));
660 const double grillLength = (grillRange - (numGrills - 1) * gap) / numGrills;
662 const double railStart = 0.279 * k;
663 const double railRange = len - 2 * railStart;
664 const int numRails =
MAX2(2, numGrills);
665 const double railLength = (railRange - (numRails - 1) * gap) / numRails;
666 for (
int i = 0; i < numRails; i++) {
667 const double x = railStart + railLength / 2 + i * (railLength + gap);
672 for (
int i = 0; i < numGrills; i++) {
673 const double x = grillStart + grillLength / 2 + i * (grillLength + gap);
674 for (
const double offset : {
685 const double size =
MIN2(length, width);
686 glScaled(1. / length, 1. / width, 1.);
687 glTranslated(length / 2., 0, 0);
688 glScaled(size, size, 1.);
689 const RGBColor bladeColor(90, 90, 90);
690 const RGBColor hubColor(150, 150, 150);
691 const double rotor = 0.3;
694 for (
const double angle : {
698 glTranslated(0, 0, 0.1);
699 glRotated(angle, 0, 0, 1);
700 glRectd(-rotor * sqrt(2.), -0.035, rotor * sqrt(2.), 0.035);
704 for (
const double sx : {
707 for (
const double sy : {
711 glTranslated(sx * rotor, sy * rotor, 0.15);
718 glTranslated(0, 0, 0.2);
721 glTranslated(0, 0, 0.05);
727 for (
const double sx : {
730 for (
const double sy : {
734 glTranslated(sx * rotor, sy * rotor, 0.3);
736 glRotated(-45. * sx * sy, 0, 0, 1);
737 glScaled(0.19, 0.03, 1.);
741 glTranslated(0, 0, 0.05);
744 glTranslated(0, 0, 0.05);
757 glTranslated(0.2, 0, 0.15);
758 glScaled(0.09, 0.13, 0.7);
763 glTranslated(0.42, 0, 0.1);
764 glColor3d(0.3, 0.3, 0.3);
770 glTranslated(0.17, 0, 0.1);
771 glScaled(0.17, 0.19, 0.9);
776 glColor3d(0.3, 0.3, 0.3);
780 glTranslated(0.83, 0, 0.1);
781 glScaled(0.17, 0.17, 0.9);
787 glTranslated(0.5, 0, 0.1);
788 glScaled(0.5, 0.28, 0.9);
812 glBegin(GL_TRIANGLE_FAN);
813 glVertex2d(1 / 2., 0);
816 glVertex2d(0 + .05, -.05);
817 glVertex2d(1 - .05, -.05);
820 glVertex2d(1 - .05, .05);
821 glVertex2d(0 + .05, .05);
829 glBegin(GL_TRIANGLE_FAN);
830 glVertex2d(1 / 2., 0);
833 glVertex2d(0 + .05, -.2);
834 glVertex2d(1 - .05, -.2);
837 glVertex2d(1 - .05, .2);
838 glVertex2d(0 + .05, .2);
867 glTranslated(0, 0, 6);
870 glRectd(0.146, 0.24675, 0.171, 0.176);
871 glRectd(0.121, 0.176, 0.146, 0.1055);
872 glRectd(0.146, 0.1055, 0.171, 0.035);
873 glRectd(0.121, 0.035, 0.146, -0.035);
874 glRectd(0.146, -0.1055, 0.171, -0.035);
875 glRectd(0.121, -0.176, 0.146, -0.1055);
876 glRectd(0.146, -0.24675, 0.171, -0.176);
878 glRectd(0.913, 0.24675, 0.938, 0.176);
879 glRectd(0.888, 0.176, 0.913, 0.1055);
880 glRectd(0.888, 0.176, 0.913, 0.1055);
881 glRectd(0.913, 0.1055, 0.938, 0.035);
882 glRectd(0.888, 0.035, 0.913, -0.035);
883 glRectd(0.913, -0.1055, 0.938, -0.035);
884 glRectd(0.888, -0.176, 0.913, -0.1055);
885 glRectd(0.888, -0.176, 0.913, -0.1055);
886 glRectd(0.913, -0.24675, 0.938, -0.176);
890 glScaled(0.2, 0.5, 1);
898 if (carriageIndex < 0) {
905 double l = length - 2.3;
906 if (carriageIndex != 0) {
917 glTranslated(0, 0, .1);
920 glTranslated(0, 0, .1);
1030 if (textureID > 0) {
static const double vehiclePoly_PassengerVanRightGlass[]
static const double vehiclePoly_CargoBicycleBox[]
static const double vehiclePoly_EmergencyLadder3[]
static const double vehiclePoly_PassengerVanBodyFront[]
static const double vehiclePoly_WheelchairArm[]
static const double vehiclePoly_EVehicleFrontGlass[]
static const double vehiclePoly_ShipSuperStructure[]
static const double vehiclePoly_scooterBase[]
static const double vehiclePoly_MotorcycleSeat[]
static const double vehiclePoly_PassengerVanBody[]
static void drawRoundedRect(const double cx, const double cy, const double halfX, const double halfY, const double radius, const int stepsPerCorner=6)
draw a filled rectangle with rounded corners centered at (cx, cy)
static const double vehiclePoly_PassengerWagonLeftGlass[]
static const double vehiclePoly_TransportFrontGlass[]
static const double vehiclePoly_CargoBicycleBoxInterior[]
static const double vehiclePoly_PassengerHatchbackRightGlass[]
static const double vehiclePoly_DeliveryMediumRightGlass[]
static const double vehiclePoly_PassengerHatchbackLeftGlass[]
static const double vehiclePoly_Ship[]
static const double vehiclePoly_EmergencyLadder6[]
static const double vehiclePoly_PassengerSedanLeftGlass[]
static const double vehiclePoly_Emergency2[]
static const double vehiclePoly_PassengerVanBackGlass[]
static const double vehiclePoly_EmergencyLadder7[]
static const double vehiclePoly_WheelchairFootrest[]
static const double vehiclePoly_PassengerHatchbackBackGlass[]
static const double vehiclePoly_aircraftEngines[]
static const double vehiclePoly_EmergencyLadder4[]
static const double vehiclePoly_PassengerFrontGlass[]
static const double vehiclePoly_EmergencyLadder2[]
static const double vehiclePoly_TransportLeftGlass[]
static const double vehiclePoly_PassengerVanLeftGlass[]
static const double vehiclePoly_Cyclist[]
static const double vehiclePoly_PassengerWagonBackGlass[]
static const double vehiclePoly_PassengerSedanRightGlass[]
static const double vehiclePoly_PassengerCarBodyFront[]
static const double vehiclePoly_scooterBase2[]
static const double vehiclePoly_scooterBase3[]
static const double vehiclePoly_TaxiSign[]
static const double vehiclePoly_aircraft[]
static const double vehiclePoly_EmergencySign[]
static const double vehiclePoly_TransportBody[]
static const double vehiclePoly_WheelchairLeg[]
static const double vehiclePoly_CargoCyclist[]
static const double vehiclePoly_EmergencyLadder[]
static const double vehiclePoly_PassengerWagonRightGlass[]
static const double vehiclePoly_DeliveryMediumLeftGlass[]
static const double vehiclePoly_TransportRightGlass[]
static const double vehiclePoly_PassengerSedanBackGlass[]
static const double vehiclePoly_Emergency[]
static const double vehiclePoly_PassengerVanFrontGlass[]
static const double vehiclePoly_ShipDeck[]
static const double vehiclePoly_PassengerCarBody[]
static const double vehiclePoly_EVehicleBody[]
static const double vehiclePoly_BicycleSeat[]
static const double vehiclePoly_EmergencyLadder5[]
SUMOVehicleShape
Definition of vehicle classes to differ between different appearances.
@ RICKSHAW
render as a rickshaw
@ RAIL_CARGO
render as a cargo train
@ CABLE_CAR
render as a cable car
@ EMERGENCY
render as an emergency vehicle
@ PASSENGER_VAN
render as a van
@ PASSENGER
render as a passenger vehicle
@ SCOOTER
render as a scooter
@ RAIL_CAR
render as a (city) rail without locomotive
@ SHIP
render as a arbitrary ship
@ DELIVERY
render as a delivery vehicle
@ BICYCLE
render as a bicycle
@ BICYCLE_CARGO
render as a front-loading cargo bicycle
@ MOTORCYCLE
render as a motorcycle
@ BUS_TROLLEY
render as a trolley bus
@ TAXI
automated car (with cruise controllers)
@ E_VEHICLE
render as a (futuristic) e-vehicle
@ ANT
render as a giant ant
@ TRUCK
render as a transport vehicle
@ AIRCRAFT
render as aircraft
@ FIREBRIGADE
render as a fire brigade
@ PASSENGER_HATCHBACK
render as a hatchback passenger vehicle ("Fliessheck")
@ BUS_FLEXIBLE
render as a flexible city bus
@ TRUCK_1TRAILER
render as a transport vehicle with one trailer
@ PASSENGER_SEDAN
render as a sedan passenger vehicle ("Stufenheck")
@ WHEELCHAIR
render as a wheelchair
@ BUS_COACH
render as a coach
@ POLICE
render as a police car
@ PASSENGER_WAGON
render as a wagon passenger vehicle ("Combi")
@ TRUCK_SEMITRAILER
render as a semi-trailer transport vehicle ("Sattelschlepper")
@ PEDESTRIAN
render as a pedestrian
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
static void drawFilledCircle(const double widradiusth, const int steps=8)
Draws a filled circle around (0,0)
static void popMatrix()
pop matrix
static RGBColor getColor()
gets the gl-color
static void drawBoxLine(const Position &beg, double rot, double visLength, double width, double offset=0)
Draws a thick line.
static void pushMatrix()
push matrix
static void drawText(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &col=RGBColor::BLACK, const double angle=0, const int align=0, double width=-1)
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 successful
static void drawAction_drawVehicleAsCircle(const double width, double detail)
draw vehicle as a circle
static void drawPoly(const double *poses, const double offset)
draw poly
static void drawAction_drawVehicleAsTrianglePlus(const double width, const double length, bool amReversed=false)
draw vehicle as a triangle
static void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings &s, const SUMOVehicleShape shape, const double width, const double length, int carriageIndex=-1, bool isStopped=false, bool amReversed=false)
draw vehicle as a polygon
static void drawAction_drawVehicleAsBoxPlus(const double width, const double length, bool amReversed=false)
draw vehicle as a Box
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.
static const RGBColor GREY
static const RGBColor BLACK
RGBColor changedBrightness(int change, int toChange=3) const
Returns a new color with altered brightness.
#define UNUSED_PARAMETER(x)
detail namespace with internal helper functions