Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIBaseVehicleHelper Class Reference

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, bool amReversed=false)
 draw vehicle as a Box
 
static void drawAction_drawVehicleAsCircle (const double width, double detail)
 draw vehicle as a circle
 
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_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_drawVehicleAsTrianglePlus (const double width, const double length, bool amReversed=false)
 draw vehicle as a triangle
 
static void drawPoly (const double *poses, const double offset)
 draw poly
 

Detailed Description

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

Definition at line 40 of file GUIBaseVehicleHelper.h.

Member Function Documentation

◆ drawAction_drawVehicleAsBoxPlus()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus ( const double  width,
const double  length,
bool  amReversed = false 
)
static

draw vehicle as a Box

Definition at line 122 of file GUIBaseVehicleHelper.cpp.

References GLHelper::popMatrix(), and GLHelper::pushMatrix().

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

Here is the caller graph for this function:

◆ drawAction_drawVehicleAsCircle()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsCircle ( const double  width,
double  detail 
)
static

draw vehicle as a circle

Definition at line 168 of file GUIBaseVehicleHelper.cpp.

References GLHelper::drawFilledCircle(), MAX2(), and MIN2().

Referenced by GUIBaseVehicle::drawOnPos().

Here is the caller graph for this function:

◆ 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 successful

Parameters
[in]lengthThe custom length of the vehicle

Definition at line 809 of file GUIBaseVehicleHelper.cpp.

References GUITexturesHelper::drawTexturedBox(), and GUITexturesHelper::getTextureID().

Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges().

Here is the caller graph for this function:

◆ drawAction_drawVehicleAsPoly()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly ( const GUIVisualizationSettings s,
const SUMOVehicleShape  shape,
const double  width,
const double  length,
int  carriageIndex = -1,
bool  isStopped = false,
bool  amReversed = false 
)
static

draw vehicle as a polygon

Definition at line 174 of file GUIBaseVehicleHelper.cpp.

References AIRCRAFT, ANT, BICYCLE, RGBColor::BLACK, BUS, BUS_COACH, BUS_FLEXIBLE, BUS_TROLLEY, RGBColor::changedBrightness(), DELIVERY, GLHelper::drawBoxLine(), GLHelper::drawFilledCircle(), drawPoly(), GLHelper::drawText(), E_VEHICLE, EMERGENCY, FIREBRIGADE, GLHelper::getColor(), RGBColor::GREY, MOPED, MOTORCYCLE, PASSENGER, PASSENGER_HATCHBACK, PASSENGER_SEDAN, PASSENGER_VAN, PASSENGER_WAGON, PEDESTRIAN, POLICE, GLHelper::popMatrix(), GLHelper::pushMatrix(), RAIL, RAIL_CAR, RAIL_CARGO, RICKSHAW, SCOOTER, GLHelper::setColor(), SHIP, TAXI, TRUCK, TRUCK_1TRAILER, TRUCK_SEMITRAILER, UNKNOWN, UNUSED_PARAMETER, vehiclePoly_aircraft, vehiclePoly_aircraftEngines, vehiclePoly_BicycleSeat, 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_MotorcycleSeat, 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_scooterBase, vehiclePoly_scooterBase2, vehiclePoly_scooterBase3, vehiclePoly_Ship, vehiclePoly_ShipDeck, vehiclePoly_ShipSuperStructure, vehiclePoly_TaxiSign, vehiclePoly_TransportBody, vehiclePoly_TransportFrontGlass, vehiclePoly_TransportLeftGlass, and vehiclePoly_TransportRightGlass.

Referenced by GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges(), and GNEVehicle::drawGL().

Here is the caller graph for this function:

◆ drawAction_drawVehicleAsTrianglePlus()

void GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus ( const double  width,
const double  length,
bool  amReversed = false 
)
static

draw vehicle as a triangle

Definition at line 145 of file GUIBaseVehicleHelper.cpp.

References drawAction_drawVehicleAsBoxPlus(), GLHelper::popMatrix(), and GLHelper::pushMatrix().

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

Here is the caller graph for this function:

◆ drawPoly()

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

draw poly

Definition at line 107 of file GUIBaseVehicleHelper.cpp.

References GLHelper::popMatrix(), and GLHelper::pushMatrix().

Referenced by drawAction_drawVehicleAsPoly().

Here is the caller graph for this function:

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