![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A MSVehicle extended by some values for usage within the gui. More...
#include <GUIBaseVehicleHelper.h>
Static Public Member Functions | |
static void | drawAction_drawVehicleAsBoxPlus (const double width, const double length) |
draw vehicle as a Box More... | |
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 More... | |
static void | drawAction_drawVehicleAsPoly (const GUIVisualizationSettings &s, const SUMOVehicleShape shape, const double width, const double length, int carriageIndex=-1) |
draw vehicle as a polygon More... | |
static void | drawAction_drawVehicleAsTrianglePlus (const double width, const double length) |
draw vehicle as a triangle More... | |
static void | drawPoly (const double *poses, const double offset) |
draw poly More... | |
A MSVehicle extended by some values for usage within the gui.
Definition at line 43 of file GUIBaseVehicleHelper.h.
|
static |
draw vehicle as a Box
Definition at line 112 of file GUIBaseVehicleHelper.cpp.
Referenced by GUIMEVehicle::drawAction_drawCarriageClass(), drawAction_drawVehicleAsTrianglePlus(), GNEVehicle::drawGL(), and GUIBaseVehicle::drawOnPos().
|
static |
try to draw vehicle as raster image and return true if sucessful
[in] | length | The custom length of the vehicle |
Definition at line 620 of file GUIBaseVehicleHelper.cpp.
References GUITexturesHelper::drawTexturedBox(), GUIVisualizationSizeSettings::getExaggeration(), GUITexturesHelper::getTextureID(), and GUIVisualizationSettings::vehicleSize.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges().
|
static |
draw vehicle as a polygon
Definition at line 144 of file GUIBaseVehicleHelper.cpp.
References RGBColor::changedBrightness(), GLHelper::drawBoxLine(), GLHelper::drawFilledCircle(), drawPoly(), GLHelper::getColor(), RGBColor::GREY, GLHelper::setColor(), SVS_ANT, SVS_BICYCLE, SVS_BUS, SVS_BUS_COACH, SVS_BUS_FLEXIBLE, SVS_BUS_TROLLEY, SVS_DELIVERY, SVS_E_VEHICLE, SVS_EMERGENCY, SVS_FIREBRIGADE, SVS_MOPED, SVS_MOTORCYCLE, SVS_PASSENGER, SVS_PASSENGER_HATCHBACK, SVS_PASSENGER_SEDAN, SVS_PASSENGER_VAN, SVS_PASSENGER_WAGON, SVS_PEDESTRIAN, SVS_POLICE, SVS_RAIL, SVS_RAIL_CAR, SVS_RAIL_CARGO, SVS_RICKSHAW, SVS_SHIP, SVS_TRUCK, SVS_TRUCK_1TRAILER, SVS_TRUCK_SEMITRAILER, SVS_UNKNOWN, UNUSED_PARAMETER, vehiclePoly_Cyclist, vehiclePoly_DeliveryMediumLeftGlass, vehiclePoly_DeliveryMediumRightGlass, vehiclePoly_Emergency, vehiclePoly_Emergency2, vehiclePoly_EmergencyLadder, vehiclePoly_EmergencyLadder2, vehiclePoly_EmergencyLadder3, vehiclePoly_EmergencyLadder4, vehiclePoly_EmergencyLadder5, vehiclePoly_EmergencyLadder6, vehiclePoly_EmergencyLadder7, vehiclePoly_EmergencySign, vehiclePoly_EVehicleBody, vehiclePoly_EVehicleFrontGlass, vehiclePoly_PassengerCarBody, vehiclePoly_PassengerCarBodyFront, vehiclePoly_PassengerFrontGlass, vehiclePoly_PassengerHatchbackBackGlass, vehiclePoly_PassengerHatchbackLeftGlass, vehiclePoly_PassengerHatchbackRightGlass, vehiclePoly_PassengerSedanBackGlass, vehiclePoly_PassengerSedanLeftGlass, vehiclePoly_PassengerSedanRightGlass, vehiclePoly_PassengerVanBackGlass, vehiclePoly_PassengerVanBody, vehiclePoly_PassengerVanBodyFront, vehiclePoly_PassengerVanFrontGlass, vehiclePoly_PassengerVanLeftGlass, vehiclePoly_PassengerVanRightGlass, vehiclePoly_PassengerWagonBackGlass, vehiclePoly_PassengerWagonLeftGlass, vehiclePoly_PassengerWagonRightGlass, vehiclePoly_Ship, vehiclePoly_ShipDeck, vehiclePoly_ShipSuperStructure, vehiclePoly_TransportBody, vehiclePoly_TransportFrontGlass, vehiclePoly_TransportLeftGlass, and vehiclePoly_TransportRightGlass.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges(), and GNEVehicle::drawGL().
|
static |
draw vehicle as a triangle
Definition at line 127 of file GUIBaseVehicleHelper.cpp.
References drawAction_drawVehicleAsBoxPlus().
Referenced by GNEVehicle::drawGL(), and GUIBaseVehicle::drawOnPos().
|
static |
draw poly
Definition at line 97 of file GUIBaseVehicleHelper.cpp.
Referenced by drawAction_drawVehicleAsPoly().