Eclipse SUMO - Simulation of Urban MObility
GUIBaseVehicleHelper Class Reference

A MSVehicle extended by some values for usage within the gui. More...

#include <GUIBaseVehicleHelper.h>

Collaboration diagram for GUIBaseVehicleHelper:

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...
 

Detailed Description

A MSVehicle extended by some values for usage within the gui.

Definition at line 43 of file GUIBaseVehicleHelper.h.

Member Function Documentation

◆ drawAction_drawVehicleAsBoxPlus()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus ( const double  width,
const double  length 
)
static

◆ drawAction_drawVehicleAsImage()

bool GUIBaseVehicleHelper::drawAction_drawVehicleAsImage ( const GUIVisualizationSettings s,
const std::string &  file,
const GUIGlObject o,
const double  width,
double  length 
)
static

try to draw vehicle as raster image and return true if sucessful

Parameters
[in]lengthThe 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().

◆ drawAction_drawVehicleAsPoly()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly ( const GUIVisualizationSettings s,
const SUMOVehicleShape  shape,
const double  width,
const double  length,
int  carriageIndex = -1 
)
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().

◆ drawAction_drawVehicleAsTrianglePlus()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus ( const double  width,
const double  length 
)
static

draw vehicle as a triangle

Definition at line 127 of file GUIBaseVehicleHelper.cpp.

References drawAction_drawVehicleAsBoxPlus().

Referenced by GNEVehicle::drawGL(), and GUIBaseVehicle::drawOnPos().

◆ drawPoly()

void GUIBaseVehicleHelper::drawPoly ( const double *  poses,
const double  offset 
)
static

draw poly

Definition at line 97 of file GUIBaseVehicleHelper.cpp.

Referenced by drawAction_drawVehicleAsPoly().


The documentation for this class was generated from the following files: