Eclipse SUMO - Simulation of Urban MObility
GUIBaseVehicle Class Referenceabstract

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

#include <GUIBaseVehicle.h>

Inheritance diagram for GUIBaseVehicle:
[legend]
Collaboration diagram for GUIBaseVehicle:
[legend]

Data Structures

class  GUIBaseVehiclePopupMenu
 
struct  Seat
 

Public Types

typedef std::vector< SeatSeats
 

Public Member Functions

virtual void drawAction_drawCarriageClass (const GUIVisualizationSettings &s, bool asImage) const =0
 draws the given guiShape with distinct carriages/modules More...
 
virtual void drawAction_drawLinkItems (const GUIVisualizationSettings &) const
 
virtual void drawAction_drawPersonsAndContainers (const GUIVisualizationSettings &s) const
 
virtual void drawAction_drawVehicleBlinker (double) const
 
virtual void drawAction_drawVehicleBlueLight () const
 
virtual void drawAction_drawVehicleBrakeLight (double length, bool onlyOne=false) const
 
virtual void drawBestLanes () const
 Draws the vehicle's best lanes. More...
 
void drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const
 draw name of item More...
 
virtual void drawRouteHelper (const GUIVisualizationSettings &s, ConstMSRoutePtr r, bool future, bool noLoop, const RGBColor &col) const =0
 Draws the route. More...
 
virtual double getAngle () const =0
 Returns the vehicle's direction in radians. More...
 
virtual double getColorValue (const GUIVisualizationSettings &s, int activeScheme) const =0
 gets the color value according to the current scheme index More...
 
std::string getDeviceDescription ()
 lists equipped device (types) for the current vehicle More...
 
virtual double getLastLaneChangeOffset () const =0
 Returns the time since the last lane change in seconds. More...
 
double getNaviDegree () const
 return the current angle in navigational degrees More...
 
int getNumContainers () const
 return the number of passengers More...
 
int getNumPassengers () const
 return the number of passengers More...
 
virtual GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0
 Returns an own parameter window. More...
 
virtual Position getPosition (const double offset=0) const =0
 Return current position (x/y, cartesian) More...
 
double getScaleValue (const GUIVisualizationSettings &s, int activeScheme) const
 gets the size multiplier value according to the current scheme index More...
 
virtual std::string getStopInfo () const =0
 retrieve information about the current stop state More...
 
virtual GUIParameterTableWindowgetTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0
 Returns an own type parameter window. More...
 
const MSBaseVehiclegetVehicle ()
 
virtual double getVisualAngle (bool s2) const =0
 Returns the vehicle's direction in radians taking into account secondary shape. More...
 
virtual Position getVisualPosition (bool s2, const double offset=0) const =0
 Return current position taking into account secondary shape. More...
 
 GUIBaseVehicle (MSBaseVehicle &vehicle)
 
virtual void onLeftBtnPress (void *)
 notify object about left click More...
 
virtual void selectBlockingFoes () const =0
 adds the blocking foes to the current selection More...
 
 ~GUIBaseVehicle ()
 destructor More...
 
inherited from GUIGlObject
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
void removedPopupMenu ()
 notify object about popup menu removal More...
 
double getExaggeration (const GUIVisualizationSettings &s) const
 return exaggeration associated with this GLObject More...
 
virtual Boundary getCenteringBoundary () const
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
const std::string getOptionalName () const
 Returns the value for generic parameter 'name' or ''. More...
 
void drawOnPos (const GUIVisualizationSettings &s, const Position &pos, const double angle) const
 Draws the object on the specified position with the specified angle. More...
 
void drawGL (const GUIVisualizationSettings &s) const
 Draws the object. More...
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additionally triggered visualisations. More...
 
getter methods

Returns the full name appearing in the tool tip

Returns
This object's typed id
const std::string & getFullName () const
 
virtual std::string getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
FXIcon * getGLIcon () const
 get icon associated with this GL Object More...
 
interfaces to be implemented by derived classes
const std::string & getMicrosimID () const
 Returns the id of the object as known to microsim. More...
 
virtual void setMicrosimID (const std::string &newID)
 Changes the microsimID of the object. More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
virtual double getClickPriority () const
 Returns the priority of receiving mouse clicks. More...
 
bool isBlocked () const
 get blocking status More...
 
void setBlocked (const bool state=true)
 set blocking status More...
 
virtual bool isGLObjectLocked () const
 check if element is locked (Currently used only in netedit) More...
 
virtual void markAsFrontElement ()
 mark element as front element (Currently used only in netedit) More...
 
virtual void deleteGLObject ()
 delete GLObject (Currently used only in netedit) More...
 
virtual void selectGLObject ()
 select GLObject (Currently used only in netedit) More...
 
virtual void updateGLObject ()
 update GLObject (geometry, ID, etc.) (optional) More...
 
Parameter table window I/O

Lets this object know a parameter window showing the object's values was opened

Parameters
[in]wThe opened parameter window
void addParameterTable (GUIParameterTableWindow *w)
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Static Public Member Functions

static bool setFunctionalColor (int activeScheme, const MSBaseVehicle *veh, RGBColor &col)
 sets the color according to the current scheme index and some vehicle function More...
 

Static Public Attributes

static const GUIGlID INVALID_ID = 0
 
static const double INVALID_PRIORITY
 
static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 

Protected Member Functions

void buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
void buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
void computeSeats (const Position &front, const Position &back, double seatOffset, int maxSeats, double exaggeration, int &requiredSeats, Seats &into, double extraOffset=0) const
 add seats to mySeatPositions and update requiredSeats More...
 
bool drawAction_drawVehicleAsPolyWithCarriagges (const GUIVisualizationSettings &s, double scaledLength, bool asImage=false) const
 draw vehicle body and return whether carriages are being drawn More...
 
bool drawReversed (const GUIVisualizationSettings &s) const
 whether to reverse trains in their reversed state More...
 
const SeatgetContainerPosition (int containerIndex) const
 
const SeatgetSeatPosition (int personIndex) const
 returns the seat position for the person with the given index More...
 
const MSVehicleTypegetVType () const
 A shortcut to myVehicle.myType. More...
 
RGBColor setColor (const GUIVisualizationSettings &s) const
 sets the color according to the current settings More...
 
helper methods for building popup-menus
void buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
 Builds the header. More...
 
void buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to center to the object. More...
 
void buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds entries which allow to copy the name / typed name into the clipboard. More...
 
void buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to (de)select the object. More...
 
void buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the parameter window. More...
 
void buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the type parameter window. More...
 
void buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, const GUIMainWindow &app) const
 Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More...
 
void buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the manipulator window. More...
 

Static Protected Member Functions

static void drawLinkItem (const Position &pos, SUMOTime arrivalTime, SUMOTime leaveTime, double exagerate)
 

Protected Attributes

Seats myContainerPositions
 
FXMutex myLock
 The mutex used to avoid concurrent updates of the vehicle buffer. More...
 
Seats mySeatPositions
 positions of seats in the vehicle (updated at every drawing step) More...
 

Private Member Functions

std::string createFullName () const
 create full name More...
 

Private Attributes

bool myAmBlocked = false
 whether the object can be deleted More...
 
std::string myFullName
 full name of GL Object More...
 
const GUIGlID myGlID
 The numerical id of the object. More...
 
const GUIGlObjectType myGLObjectType
 The type of the object. More...
 
FXIcon * myIcon
 icon associatd with this GL Object More...
 
std::string myMicrosimID
 ID of GL object. More...
 
std::set< GUIParameterTableWindow * > myParamWindows
 Parameter table windows which refer to this object. More...
 
GUIGLObjectPopupMenumyPopup
 current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal More...
 
MSDevice_VehroutesmyRoutes
 
MSBaseVehiclemyVehicle
 The vehicle to which all calls should be delegated. More...
 

Static Private Attributes

static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer []
 vector for TypeNames Initializer More...
 

Additional visualisations

enum  VisualisationFeatures {
  VO_SHOW_BEST_LANES = 1 << 0 , VO_SHOW_ROUTE = 1 << 1 , VO_SHOW_ALL_ROUTES = 1 << 2 , VO_SHOW_LFLINKITEMS = 1 << 3 ,
  VO_DRAW_OUTSIDE_NETWORK = 1 << 4 , VO_SHOW_FUTURE_ROUTE = 1 << 5 , VO_SHOW_ROUTE_NOLOOP = 1 << 6 , VO_TRACK = 1 << 7
}
 Additional visualisation feature ids. More...
 
std::map< GUISUMOAbstractView *, int > myAdditionalVisualizations
 Enabled visualisations, per view. More...
 
bool hasActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) const
 Returns whether the named feature is enabled in the given view. More...
 
void addActiveAddVisualisation (GUISUMOAbstractView *const parent, int which)
 Adds the named visualisation feature to the given view. More...
 
void removeActiveAddVisualisation (GUISUMOAbstractView *const parent, int which)
 Adds the named visualisation feature to the given view. More...
 
void drawRoute (const GUIVisualizationSettings &s, int routeNo, double darken, bool future=false, bool noLoop=false) const
 Chooses the route to draw and draws it, darkening it as given. More...
 
void drawStopLabels (const GUIVisualizationSettings &s, bool noLoop, const RGBColor &col) const
 
void drawParkingInfo (const GUIVisualizationSettings &s, const RGBColor &col) const
 

Detailed Description

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

A visualisable MSVehicle. Extended by the possibility to retrieve names of all available vehicles (static) and the possibility to retrieve the color of the vehicle which is available in different forms allowing an easier recognition of done actions such as lane changing.

Definition at line 59 of file GUIBaseVehicle.h.

Member Typedef Documentation

◆ Seats

typedef std::vector<Seat> GUIBaseVehicle::Seats

Definition at line 76 of file GUIBaseVehicle.h.

Member Enumeration Documentation

◆ VisualisationFeatures

Additional visualisation feature ids.

Enumerator
VO_SHOW_BEST_LANES 

show vehicle's best lanes

VO_SHOW_ROUTE 

show vehicle's current route

VO_SHOW_ALL_ROUTES 

show all vehicle's routes

VO_SHOW_LFLINKITEMS 

LFLinkItems.

VO_DRAW_OUTSIDE_NETWORK 

draw vehicle outside the road network

VO_SHOW_FUTURE_ROUTE 

show vehicle's current continued from the current position

VO_SHOW_ROUTE_NOLOOP 

show vehicle's routes without loops

VO_TRACK 

track the vehicle (only needed for cleaning up)

Definition at line 319 of file GUIBaseVehicle.h.

Constructor & Destructor Documentation

◆ GUIBaseVehicle()

◆ ~GUIBaseVehicle()

Member Function Documentation

◆ addActiveAddVisualisation()

void GUIBaseVehicle::addActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)

Adds the named visualisation feature to the given view.

Parameters
[in]parentThe view for which the feature shall be enabled
[in]whichThe visualisation feature to enable
See also
GUISUMOAbstractView::addAdditionalGLVisualisation

Definition at line 891 of file GUIBaseVehicle.cpp.

References GUISUMOAbstractView::addAdditionalGLVisualisation(), myAdditionalVisualizations, and VO_TRACK.

Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowRouteNoLoops(), GUIViewTraffic::onGamingClick(), and GUIViewTraffic::startTrack().

Here is the caller graph for this function:

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

Definition at line 360 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::GUIParameterTableWindow().

Here is the caller graph for this function:

◆ buildAdditionalsPopupOptions()

void GUIGlObject::buildAdditionalsPopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildCenterPopupEntry()

void GUIGlObject::buildCenterPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to center to the object.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 277 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, RECENTERVIEW, and TL.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

void GUIGlObject::buildPopupHeader ( GUIGLObjectPopupMenu ret,
GUIMainWindow app,
bool  addSeparator = true 
)
protectedinherited

Builds the header.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 268 of file GUIGlObject.cpp.

References GUIMainWindow::getBoldFont(), GUIGlObject::getFullName(), and GUIGlObject::myIcon.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildPositionCopyEntry()

void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
const GUIMainWindow app 
) const
protectedinherited

Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 327 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GEOHACK, GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), GUIMainWindow::getOnlineMaps(), GOOGLEMAPS, GUIGLObjectPopupMenu::insertMenuPaneChild(), MID_COPY_CURSOR_GEOPOSITION, MID_COPY_CURSOR_POSITION, MID_SHOW_GEOPOSITION_ONLINE, OSM, and TL.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildSelectionPopupEntry()

void GUIGlObject::buildSelectionPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildShapePopupOptions()

void GUIGlObject::buildShapePopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI

Definition at line 375 of file GUIGlObject.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.

Referenced by GUIPointOfInterest::getPopUpMenu().

Here is the caller graph for this function:

◆ buildShowManipulatorPopupEntry()

void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 351 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, MID_MANIP, and TL.

Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().

Here is the caller graph for this function:

◆ buildShowParamsPopupEntry()

void GUIGlObject::buildShowParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the parameter window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 309 of file GUIGlObject.cpp.

References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWPARS, and TL.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildShowTypeParamsPopupEntry()

void GUIGlObject::buildShowTypeParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the type parameter window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 318 of file GUIGlObject.cpp.

References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWTYPEPARS, and TL.

Referenced by getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIPerson::getPopUpMenu().

Here is the caller graph for this function:

◆ computeSeats()

void GUIBaseVehicle::computeSeats ( const Position front,
const Position back,
double  seatOffset,
int  maxSeats,
double  exaggeration,
int &  requiredSeats,
Seats into,
double  extraOffset = 0 
) const
protected

add seats to mySeatPositions and update requiredSeats

Definition at line 1157 of file GUIBaseVehicle.cpp.

References Position::angleTo2D(), Position::distanceTo2D(), MSVehicleType::getFrontSeatPos(), MSVehicleType::getSeatingWidth(), getVType(), MSGlobals::gLefthand, MAX2(), and PositionVector::positionAtOffset2D().

Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().

Here is the caller graph for this function:

◆ createFullName()

std::string GUIGlObject::createFullName ( ) const
privateinherited

create full name

Definition at line 421 of file GUIGlObject.cpp.

References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.

Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().

Here is the caller graph for this function:

◆ deleteGLObject()

void GUIGlObject::deleteGLObject ( )
virtualinherited

delete GLObject (Currently used only in netedit)

Reimplemented in GNENetworkElement, GNEWalkingArea, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEDemandElement, GNEGenericData, and GNEAdditional.

Definition at line 215 of file GUIGlObject.cpp.

◆ drawAction_drawCarriageClass()

virtual void GUIBaseVehicle::drawAction_drawCarriageClass ( const GUIVisualizationSettings s,
bool  asImage 
) const
pure virtual

draws the given guiShape with distinct carriages/modules

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by drawAction_drawVehicleAsPolyWithCarriagges().

Here is the caller graph for this function:

◆ drawAction_drawLinkItems()

virtual void GUIBaseVehicle::drawAction_drawLinkItems ( const GUIVisualizationSettings ) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 154 of file GUIBaseVehicle.h.

Referenced by drawGLAdditional().

Here is the caller graph for this function:

◆ drawAction_drawPersonsAndContainers()

◆ drawAction_drawVehicleAsPolyWithCarriagges()

bool GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges ( const GUIVisualizationSettings s,
double  scaledLength,
bool  asImage = false 
) const
protected

draw vehicle body and return whether carriages are being drawn

Definition at line 1114 of file GUIBaseVehicle.cpp.

References drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsImage(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), drawReversed(), getVType(), MSBaseVehicle::isStopped(), and myVehicle.

Referenced by drawOnPos().

Here is the caller graph for this function:

◆ drawAction_drawVehicleBlinker()

virtual void GUIBaseVehicle::drawAction_drawVehicleBlinker ( double  ) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 149 of file GUIBaseVehicle.h.

Referenced by drawOnPos().

Here is the caller graph for this function:

◆ drawAction_drawVehicleBlueLight()

virtual void GUIBaseVehicle::drawAction_drawVehicleBlueLight ( ) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 158 of file GUIBaseVehicle.h.

Referenced by drawOnPos().

Here is the caller graph for this function:

◆ drawAction_drawVehicleBrakeLight()

virtual void GUIBaseVehicle::drawAction_drawVehicleBrakeLight ( double  length,
bool  onlyOne = false 
) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 150 of file GUIBaseVehicle.h.

References UNUSED_PARAMETER.

Referenced by drawOnPos().

Here is the caller graph for this function:

◆ drawBestLanes()

virtual void GUIBaseVehicle::drawBestLanes ( ) const
inlinevirtual

Draws the vehicle's best lanes.

Reimplemented in GUIVehicle.

Definition at line 157 of file GUIBaseVehicle.h.

Referenced by drawGLAdditional().

Here is the caller graph for this function:

◆ drawGL()

void GUIBaseVehicle::drawGL ( const GUIVisualizationSettings s) const
virtual

Draws the object.

Parameters
[in]sThe settings for the current view (may influence drawing)
See also
GUIGlObject::drawGL

Implements GUIGlObject.

Definition at line 652 of file GUIBaseVehicle.cpp.

References drawOnPos(), getVisualAngle(), getVisualPosition(), and GUIVisualizationSettings::secondaryShape.

Referenced by GUILane::drawGL(), and drawGLAdditional().

Here is the caller graph for this function:

◆ drawGLAdditional()

void GUIBaseVehicle::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings s 
) const
virtual

◆ drawLinkItem()

void GUIBaseVehicle::drawLinkItem ( const Position pos,
SUMOTime  arrivalTime,
SUMOTime  leaveTime,
double  exagerate 
)
staticprotected

Definition at line 695 of file GUIBaseVehicle.cpp.

References GLHelper::drawFilledCircle(), GLHelper::drawText(), RGBColor::GREEN, STEPS2TIME, toString(), Position::x(), and Position::y().

Referenced by GUIVehicle::drawAction_drawLinkItems().

Here is the caller graph for this function:

◆ drawName()

◆ drawOnPos()

void GUIBaseVehicle::drawOnPos ( const GUIVisualizationSettings s,
const Position pos,
const double  angle 
) const

Draws the object on the specified position with the specified angle.

Parameters
[in]sThe settings for the current view (may influence drawing)
[in]posThe position to draw the vehicle on
[in]angleThe drawing angle of the vehicle

Definition at line 434 of file GUIBaseVehicle.cpp.

References AIRCRAFT, RGBColor::alpha(), GUIVisualizationSettings::angle, ANT, BICYCLE, computeSeats(), GUIVisualizationSizeSettings::constantSizeSelected, drawAction_drawPersonsAndContainers(), GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicleHelper::drawAction_drawVehicleAsCircle(), drawAction_drawVehicleAsPolyWithCarriagges(), GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus(), drawAction_drawVehicleBlinker(), drawAction_drawVehicleBlueLight(), drawAction_drawVehicleBrakeLight(), GUIVisualizationSettings::drawBrakeGap, GUIVisualizationSettings::drawLaneChangePreference, GUIVisualizationSettings::drawMinGap, GUIGlObject::drawName(), GLHelper::drawOutlineCircle(), drawReversed(), GLHelper::drawTextSettings(), EMERGENCY, GUIPropertySchemeStorage< T >::getActive(), getColorValue(), MSBaseVehicle::getCurrentEdge(), MSBaseVehicle::getDevice(), MSBaseVehicle::getEdge(), getExaggeration(), GUIGlObject::getGlID(), SUMOTrafficObject::getLane(), MSEdge::getLanes(), MSVehicleType::getLength(), MSLane::getLengthGeometryFactor(), MSVehicleType::getMinGap(), MSBaseVehicle::getNumberParkingReroutes(), getNumContainers(), getNumPassengers(), MSBaseVehicle::getParameter(), MSBaseVehicle::getPrefixedParameter(), MSDevice_BTreceiver::getRange(), MSBaseVehicle::getRightSideOnEdge(), getScaleValue(), SUMOTrafficObject::getSpeed(), GUIGlObject::getType(), MSTrainHelper::getUpscaleLength(), StringTokenizer::getVector(), MSBaseVehicle::getVehicleType(), getVType(), MSEdge::getWidth(), MSVehicleType::getWidth(), MSGlobals::gUseMesoSim, hasActiveAddVisualisation(), MSBaseVehicle::isOnRoad(), MSBaseVehicle::isSelected(), GUIVisualizationSettings::laneWidthExaggeration, SUMOVehicleParameter::line, M_PI, MIN2(), MOPED, MOTORCYCLE, myAdditionalVisualizations, myContainerPositions, mySeatPositions, myVehicle, StringTokenizer::NEWLINE, PEDESTRIAN, GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), RAD2DEG, RAIL, RAIL_CAR, RAIL_CARGO, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), GUIVisualizationSettings::scaleLength, SCOOTER, GUIVisualizationSettings::secondaryShape, setColor(), SHIP, GUIVisualizationTextSettings::show(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, GUIVisualizationSettings::showParkingInfo, SUMO_const_waitingContainerWidth, SUMO_const_waitingPersonWidth, toString(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, GUIVisualizationSettings::vehicleScaler, GUIVisualizationSettings::vehicleScaleValue, GUIVisualizationSettings::vehicleSize, GUIVisualizationSettings::vehicleText, GUIVisualizationSettings::vehicleTextParam, GUIVisualizationSettings::vehicleValue, VO_SHOW_ALL_ROUTES, VO_SHOW_FUTURE_ROUTE, VO_SHOW_ROUTE, Position::x(), and Position::y().

Referenced by drawGL(), and GUIEdge::drawMesoVehicles().

Here is the caller graph for this function:

◆ drawParkingInfo()

void GUIBaseVehicle::drawParkingInfo ( const GUIVisualizationSettings s,
const RGBColor col 
) const

◆ drawReversed()

bool GUIBaseVehicle::drawReversed ( const GUIVisualizationSettings s) const
protected

whether to reverse trains in their reversed state

Definition at line 1109 of file GUIBaseVehicle.cpp.

References GUIVisualizationSettings::drawReversed, MSBaseVehicle::isReversed(), and myVehicle.

Referenced by drawAction_drawVehicleAsPolyWithCarriagges(), and drawOnPos().

Here is the caller graph for this function:

◆ drawRoute()

void GUIBaseVehicle::drawRoute ( const GUIVisualizationSettings s,
int  routeNo,
double  darken,
bool  future = false,
bool  noLoop = false 
) const

Chooses the route to draw and draws it, darkening it as given.

Parameters
[in]sThe visualisation settings, needed to determine the vehicle's color
[in]routeNoThe route to show (0: the current, >0: prior)
[in]darkenThe amount to darken the route by

Definition at line 913 of file GUIBaseVehicle.cpp.

References RGBColor::BLACK, RGBColor::changedBrightness(), drawRouteHelper(), MSDevice_Vehroutes::getRoute(), MSBaseVehicle::getRoutePtr(), RGBColor::multiply(), myRoutes, myVehicle, setColor(), and GLHelper::setColor().

Referenced by drawGLAdditional().

Here is the caller graph for this function:

◆ drawRouteHelper()

virtual void GUIBaseVehicle::drawRouteHelper ( const GUIVisualizationSettings s,
ConstMSRoutePtr  r,
bool  future,
bool  noLoop,
const RGBColor col 
) const
pure virtual

Draws the route.

Parameters
[in]rThe route to draw

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by drawRoute().

Here is the caller graph for this function:

◆ drawStopLabels()

◆ getAngle()

virtual double GUIBaseVehicle::getAngle ( ) const
pure virtual

Returns the vehicle's direction in radians.

Returns
The vehicle's current angle

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by getNaviDegree().

Here is the caller graph for this function:

◆ getCenteringBoundary()

Boundary GUIBaseVehicle::getCenteringBoundary ( ) const
virtual

Returns the boundary to which the view shall be centered in order to show the object.

Returns
The boundary the object is within
See also
GUIGlObject::getCenteringBoundary

Implements GUIGlObject.

Reimplemented in GUIMEVehicle.

Definition at line 419 of file GUIBaseVehicle.cpp.

References Boundary::add(), MSVehicleType::getLength(), MSBaseVehicle::getVehicleType(), getVisualPosition(), Boundary::grow(), GUIGlobals::gSecondaryShape, and myVehicle.

◆ getClickPriority()

virtual double GUIGlObject::getClickPriority ( ) const
inlinevirtualinherited

Returns the priority of receiving mouse clicks.

Reimplemented in GUIPolygon, GUIPointOfInterest, GUILane, and GUIEdge.

Definition at line 161 of file GUIGlObject.h.

References GUIGlObject::myGLObjectType.

Referenced by GUISUMOAbstractView::getObjectAtPosition(), and ComparatorClickPriority::operator()().

Here is the caller graph for this function:

◆ getColorValue()

virtual double GUIBaseVehicle::getColorValue ( const GUIVisualizationSettings s,
int  activeScheme 
) const
pure virtual

gets the color value according to the current scheme index

Reimplemented from GUIGlObject.

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by drawOnPos(), and setColor().

Here is the caller graph for this function:

◆ getContainerPosition()

const GUIBaseVehicle::Seat & GUIBaseVehicle::getContainerPosition ( int  containerIndex) const
protected

if there are not enough positions in the vehicle containers have to squeeze onto the last position

Definition at line 1060 of file GUIBaseVehicle.cpp.

References MIN2(), and myContainerPositions.

Referenced by drawAction_drawPersonsAndContainers().

Here is the caller graph for this function:

◆ getDeviceDescription()

std::string GUIBaseVehicle::getDeviceDescription ( )

lists equipped device (types) for the current vehicle

Definition at line 1147 of file GUIBaseVehicle.cpp.

References MSBaseVehicle::getDevices(), joinToString(), and myVehicle.

Referenced by GUIVehicle::getParameterWindow(), and GUIMEVehicle::getParameterWindow().

Here is the caller graph for this function:

◆ getExaggeration()

double GUIBaseVehicle::getExaggeration ( const GUIVisualizationSettings s) const
virtual

return exaggeration associated with this GLObject

Reimplemented from GUIGlObject.

Reimplemented in GUIMEVehicle.

Definition at line 412 of file GUIBaseVehicle.cpp.

References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GUIVisualizationSizeSettings::getExaggeration(), getScaleValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::vehicleScaler, and GUIVisualizationSettings::vehicleSize.

Referenced by drawOnPos().

Here is the caller graph for this function:

◆ getFullName()

◆ getGLIcon()

FXIcon * GUIGlObject::getGLIcon ( ) const
inherited

get icon associated with this GL Object

Definition at line 188 of file GUIGlObject.cpp.

References GUIGlObject::myIcon.

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inlineinherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 104 of file GUIGlObject.h.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), drawAction_drawPersonsAndContainers(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), drawOnPos(), GUIJunctionWrapper::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIPerson::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GNEViewNet::getToolTipID(), GUITransportableControl::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIVehicle::isSelected(), GUIContainer::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), ComparatorClickPriority::operator()(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIViewTraffic::showLaneReachability(), ~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().

◆ getLastLaneChangeOffset()

virtual double GUIBaseVehicle::getLastLaneChangeOffset ( ) const
pure virtual

Returns the time since the last lane change in seconds.

See also
MSVehicle::myLastLaneChangeOffset
Returns
The time since the last lane change in seconds

Implemented in GUIMEVehicle, and GUIVehicle.

◆ getMicrosimID()

const std::string& GUIGlObject::getMicrosimID ( ) const
inlineinherited

Returns the id of the object as known to microsim.

Definition at line 143 of file GUIGlObject.h.

References GUIGlObject::myMicrosimID.

Referenced by SUMORTree::addAdditionalGLObject(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GNEInternalLane::drawGL(), GUIGlObject::drawName(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEContainer::getAttribute(), GNEDistribution::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEWalkingArea::getAttribute(), GNEWalkingArea::getNBWalkingArea(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEMultiEntryExitDetector::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNETractionSubstation::getParentName(), GNEVariableSpeedSign::getParentName(), GNEDistribution::getParentName(), GNEVType::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNEChange_TLS::GNEChange_TLS(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNENetHelper::AttributeCarriers::retrieveConnection(), GNENetHelper::AttributeCarriers::retrieveCrossing(), GNENetHelper::AttributeCarriers::retrieveEdge(), GNENetHelper::AttributeCarriers::retrieveInternalLane(), GNENetHelper::AttributeCarriers::retrieveJunction(), GNENetHelper::AttributeCarriers::retrieveLane(), GNENetHelper::AttributeCarriers::retrieveWalkingArea(), GNEStop::setStopMicrosimID(), and GNENet::splitEdge().

◆ getNaviDegree()

double GUIBaseVehicle::getNaviDegree ( ) const
inline

return the current angle in navigational degrees

Definition at line 105 of file GUIBaseVehicle.h.

References getAngle(), and GeomHelper::naviDegree().

Referenced by GUIVehicle::getParameterWindow(), and GUIMEVehicle::getParameterWindow().

Here is the caller graph for this function:

◆ getNumContainers()

int GUIBaseVehicle::getNumContainers ( ) const

return the number of passengers

Definition at line 1139 of file GUIBaseVehicle.cpp.

References MSBaseVehicle::getContainerDevice(), myVehicle, and MSDevice_Transportable::size().

Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().

Here is the caller graph for this function:

◆ getNumPassengers()

int GUIBaseVehicle::getNumPassengers ( ) const

return the number of passengers

Definition at line 1130 of file GUIBaseVehicle.cpp.

References MSBaseVehicle::getPersonDevice(), myVehicle, and MSDevice_Transportable::size().

Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().

Here is the caller graph for this function:

◆ getOptionalName()

const std::string GUIBaseVehicle::getOptionalName ( ) const
virtual

Returns the value for generic parameter 'name' or ''.

Reimplemented from GUIGlObject.

Definition at line 428 of file GUIBaseVehicle.cpp.

References MSBaseVehicle::getParameter(), Parameterised::getParameter(), and myVehicle.

◆ getParameterWindow()

virtual GUIParameterTableWindow* GUIBaseVehicle::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
pure virtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See also
GUIGlObject::getParameterWindow

Implements GUIGlObject.

Implemented in GUIMEVehicle, and GUIVehicle.

◆ getParentName()

std::string GUIGlObject::getParentName ( ) const
virtualinherited

◆ getPopUpMenu()

◆ getPosition()

virtual Position GUIBaseVehicle::getPosition ( const double  offset = 0) const
pure virtual

Return current position (x/y, cartesian)

If the vehicle's myLane is 0, Position::INVALID.

Parameters
[in]offsetoptional offset in longitudinal direction
Returns
The current position (in cartesian coordinates)
See also
myLane

Implemented in GUIMEVehicle, and GUIVehicle.

◆ getScaleValue()

◆ getSeatPosition()

const GUIBaseVehicle::Seat & GUIBaseVehicle::getSeatPosition ( int  personIndex) const
protected

returns the seat position for the person with the given index

if there are not enough seats in the vehicle people have to squeeze onto the last seat

Definition at line 1054 of file GUIBaseVehicle.cpp.

References MIN2(), and mySeatPositions.

Referenced by drawAction_drawPersonsAndContainers().

Here is the caller graph for this function:

◆ getStopInfo()

virtual std::string GUIBaseVehicle::getStopInfo ( ) const
pure virtual

retrieve information about the current stop state

Implemented in GUIMEVehicle, and GUIVehicle.

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inlineinherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 156 of file GUIGlObject.h.

References GUIGlObject::myGLObjectType.

Referenced by GUIViewObjectsHandler::addElementUnderCursor(), GUIViewObjectsHandler::addGeometryPointUnderCursor(), GUIViewObjectsHandler::addPositionOverShape(), GUIGlObject::buildSelectionPopupEntry(), GNEViewNet::checkOverLockedElement(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNELaneAreaDetector::drawE2PartialJunction(), GNELaneAreaDetector::drawE2PartialLane(), GNEEntryExitDetector::drawE3Logo(), GNEEntryExitDetector::drawEntryLogo(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), drawGLAdditional(), GUIPerson::drawGLAdditional(), GNEDemandElement::drawJunctionLine(), GNEOverheadWire::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawListedAdditional(), drawOnPos(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), GNEPOI::drawPOI(), GNERoute::drawRoutePartialJunction(), GNERoute::drawRoutePartialLane(), GNEAdditional::drawSquaredAdditional(), GNEDemandElement::drawStackLabel(), GNEStopPlan::drawStopOverEdge(), GNEStopPlan::drawStopOverStoppingPlace(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GNESelectorFrame::SelectionOperation::loadFromFile(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GNEJunction::setJunctionType(), GNEViewNetHelper::ViewObjectsSelector::updateGenericDataElements(), GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements(), GNEViewNetHelper::ViewObjectsSelector::updateShapeElements(), and GNEViewNetHelper::ViewObjectsSelector::updateTAZElements().

◆ getTypeParameterWindow()

virtual GUIParameterTableWindow* GUIBaseVehicle::getTypeParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
pure virtual

Returns an own type parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window

Reimplemented from GUIGlObject.

Implemented in GUIMEVehicle, and GUIVehicle.

◆ getVehicle()

const MSBaseVehicle& GUIBaseVehicle::getVehicle ( )
inline

Definition at line 354 of file GUIBaseVehicle.h.

References myVehicle.

Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdSelectTransported().

Here is the caller graph for this function:

◆ getVisualAngle()

virtual double GUIBaseVehicle::getVisualAngle ( bool  s2) const
pure virtual

Returns the vehicle's direction in radians taking into account secondary shape.

Returns
The vehicle's current angle

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by drawGL().

Here is the caller graph for this function:

◆ getVisualPosition()

virtual Position GUIBaseVehicle::getVisualPosition ( bool  s2,
const double  offset = 0 
) const
pure virtual

Return current position taking into account secondary shape.

Parameters
[in]offsetoptional offset in longitudinal direction
Returns
The current position (in cartesian coordinates)

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by drawGL(), and getCenteringBoundary().

Here is the caller graph for this function:

◆ getVType()

const MSVehicleType& GUIBaseVehicle::getVType ( ) const
inlineprotected

A shortcut to myVehicle.myType.

Definition at line 376 of file GUIBaseVehicle.h.

References MSBaseVehicle::getVehicleType(), and myVehicle.

Referenced by computeSeats(), GUIVehicle::drawAction_drawCarriageClass(), GUIMEVehicle::drawAction_drawCarriageClass(), drawAction_drawVehicleAsPolyWithCarriagges(), and drawOnPos().

Here is the caller graph for this function:

◆ hasActiveAddVisualisation()

bool GUIBaseVehicle::hasActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
) const

Returns whether the named feature is enabled in the given view.

Parameters
[in]parentThe view for which the feature may be enabled
[in]whichThe visualisation feature
Returns
see comment

Definition at line 885 of file GUIBaseVehicle.cpp.

References myAdditionalVisualizations.

Referenced by drawGLAdditional(), drawOnPos(), getPopUpMenu(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), and GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowRouteNoLoops().

Here is the caller graph for this function:

◆ isBlocked()

bool GUIGlObject::isBlocked ( ) const
inlineinherited

get blocking status

Definition at line 166 of file GUIGlObject.h.

References GUIGlObject::myAmBlocked.

◆ isGLObjectLocked()

bool GUIGlObject::isGLObjectLocked ( ) const
virtualinherited

check if element is locked (Currently used only in netedit)

Reimplemented in GNENetworkElement, GNEDemandElement, and GNEAdditional.

Definition at line 202 of file GUIGlObject.cpp.

Referenced by GNEViewNetHelper::ViewObjectsSelector::filterLockedElements(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ markAsFrontElement()

void GUIGlObject::markAsFrontElement ( )
virtualinherited

mark element as front element (Currently used only in netedit)

Reimplemented in GNENetworkElement, GNEDemandElement, and GNEAdditional.

Definition at line 209 of file GUIGlObject.cpp.

◆ onLeftBtnPress()

virtual void GUIGlObject::onLeftBtnPress ( void *  )
inlinevirtualinherited

notify object about left click

Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.

Definition at line 218 of file GUIGlObject.h.

Referenced by GUISUMOAbstractView::onLeftBtnPress().

Here is the caller graph for this function:

◆ removeActiveAddVisualisation()

void GUIBaseVehicle::removeActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)
virtual

Adds the named visualisation feature to the given view.

Parameters
[in]parentThe view for which the feature shall be enabled
[in]whichThe visualisation feature to enable
See also
GUISUMOAbstractView::removeAdditionalGLVisualisation

Reimplemented from GUIGlObject.

Definition at line 903 of file GUIBaseVehicle.cpp.

References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().

Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideRouteNoLoops(), and GUIViewTraffic::onGamingRightClick().

Here is the caller graph for this function:

◆ removedPopupMenu()

void GUIBaseVehicle::removedPopupMenu ( )
virtual

notify object about popup menu removal

Reimplemented from GUIGlObject.

Definition at line 406 of file GUIBaseVehicle.cpp.

References myPopup.

◆ removeParameterTable()

void GUIGlObject::removeParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was closed.

Parameters
[in]wThe closed parameter window

Definition at line 366 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

Here is the caller graph for this function:

◆ selectBlockingFoes()

virtual void GUIBaseVehicle::selectBlockingFoes ( ) const
pure virtual

adds the blocking foes to the current selection

Implemented in GUIMEVehicle, and GUIVehicle.

Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes().

Here is the caller graph for this function:

◆ selectGLObject()

void GUIGlObject::selectGLObject ( )
virtualinherited

select GLObject (Currently used only in netedit)

Reimplemented in GNENetworkElement, GNEDemandElement, GNEGenericData, and GNEAdditional.

Definition at line 221 of file GUIGlObject.cpp.

◆ setBlocked()

void GUIGlObject::setBlocked ( const bool  state = true)
inlineinherited

set blocking status

Definition at line 171 of file GUIGlObject.h.

References GUIGlObject::myAmBlocked.

Referenced by GUIGlObjectStorage::getObjectBlocking().

Here is the caller graph for this function:

◆ setColor()

RGBColor GUIBaseVehicle::setColor ( const GUIVisualizationSettings s) const
protected

sets the color according to the current settings

Definition at line 705 of file GUIBaseVehicle.cpp.

References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), myVehicle, GLHelper::setColor(), setFunctionalColor(), and GUIVisualizationSettings::vehicleColorer.

Referenced by drawOnPos(), and drawRoute().

Here is the caller graph for this function:

◆ setFunctionalColor()

bool GUIBaseVehicle::setFunctionalColor ( int  activeScheme,
const MSBaseVehicle veh,
RGBColor col 
)
static

◆ setMicrosimID()

void GUIGlObject::setMicrosimID ( const std::string &  newID)
virtualinherited

Changes the microsimID of the object.

Note
happens in netedit

Definition at line 239 of file GUIGlObject.cpp.

References GUIGlObjectStorage::changeName(), GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

Referenced by GNEAdditional::setAdditionalID(), GNEDemandElement::setDemandElementID(), and GNENetworkElement::setNetworkElementID().

Here is the caller graph for this function:

◆ updateGLObject()

void GUIGlObject::updateGLObject ( )
virtualinherited

update GLObject (geometry, ID, etc.) (optional)

Reimplemented in GNEWalkingArea, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEDemandElement, GNEGenericData, and GNEAdditional.

Definition at line 227 of file GUIGlObject.cpp.

Field Documentation

◆ GUIGlObjectTypeNamesInitializer

StringBijection< GUIGlObjectType >::Entry GUIGlObject::GUIGlObjectTypeNamesInitializer
staticprivateinherited

vector for TypeNames Initializer

Definition at line 332 of file GUIGlObject.h.

◆ INVALID_ID

◆ INVALID_PRIORITY

const double GUIGlObject::INVALID_PRIORITY
staticinherited

◆ myAdditionalVisualizations

std::map<GUISUMOAbstractView*, int> GUIBaseVehicle::myAdditionalVisualizations

◆ myAmBlocked

bool GUIGlObject::myAmBlocked = false
privateinherited

whether the object can be deleted

Definition at line 318 of file GUIGlObject.h.

Referenced by GUIGlObject::isBlocked(), and GUIGlObject::setBlocked().

◆ myContainerPositions

Seats GUIBaseVehicle::myContainerPositions
mutableprotected

◆ myFullName

std::string GUIGlObject::myFullName
privateinherited

full name of GL Object

Definition at line 312 of file GUIGlObject.h.

Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().

◆ myGlID

const GUIGlID GUIGlObject::myGlID
privateinherited

The numerical id of the object.

Definition at line 303 of file GUIGlObject.h.

Referenced by GUIGlObject::getGlID().

◆ myGLObjectType

const GUIGlObjectType GUIGlObject::myGLObjectType
privateinherited

◆ myIcon

FXIcon* GUIGlObject::myIcon
privateinherited

icon associatd with this GL Object

Definition at line 315 of file GUIGlObject.h.

Referenced by GUIGlObject::buildPopupHeader(), and GUIGlObject::getGLIcon().

◆ myLock

FXMutex GUIBaseVehicle::myLock
mutableprotected

The mutex used to avoid concurrent updates of the vehicle buffer.

Definition at line 392 of file GUIBaseVehicle.h.

Referenced by GUIVehicle::drawBestLanes(), and ~GUIBaseVehicle().

◆ myMicrosimID

std::string GUIGlObject::myMicrosimID
privateinherited

ID of GL object.

Definition at line 309 of file GUIGlObject.h.

Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().

◆ myParamWindows

std::set<GUIParameterTableWindow*> GUIGlObject::myParamWindows
privateinherited

Parameter table windows which refer to this object.

Definition at line 321 of file GUIGlObject.h.

Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().

◆ myPopup

GUIGLObjectPopupMenu* GUIBaseVehicle::myPopup
private

current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal

Definition at line 405 of file GUIBaseVehicle.h.

Referenced by getPopUpMenu(), removedPopupMenu(), and ~GUIBaseVehicle().

◆ myRoutes

MSDevice_Vehroutes* GUIBaseVehicle::myRoutes
private

Definition at line 402 of file GUIBaseVehicle.h.

Referenced by drawRoute(), GUIBaseVehicle(), and ~GUIBaseVehicle().

◆ mySeatPositions

Seats GUIBaseVehicle::mySeatPositions
mutableprotected

positions of seats in the vehicle (updated at every drawing step)

Definition at line 395 of file GUIBaseVehicle.h.

Referenced by GUIVehicle::drawAction_drawCarriageClass(), drawOnPos(), getSeatPosition(), and GUIBaseVehicle().

◆ myVehicle

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

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