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:
Inheritance graph
Collaboration diagram for GUIBaseVehicle:
Collaboration graph

Data Structures

class  GUIBaseVehiclePopupMenu
 

Public Member Functions

virtual bool drawAction_drawCarriageClass (const GUIVisualizationSettings &s, SUMOVehicleShape guiShape, bool asImage) const =0
 draws the given guiShape if it has distinc carriages/modules and eturns true if so More...
 
virtual void drawAction_drawLinkItems (const GUIVisualizationSettings &) const
 
virtual void drawAction_drawPersonsAndContainers (const GUIVisualizationSettings &) const
 
virtual void drawAction_drawVehicleBlinker (SUMOReal) const
 
virtual void drawAction_drawVehicleBlueLight () const
 
virtual void drawAction_drawVehicleBrakeLight (SUMOReal) const
 
virtual void drawBestLanes () const
 Draws the vehicle's best lanes. More...
 
void drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
 
virtual void drawRouteHelper (const MSRoute &r, SUMOReal exaggeration) const =0
 Draws the route. More...
 
virtual SUMOReal getAngle () const =0
 Returns the vehicle's direction in radians. More...
 
virtual SUMOReal getColorValue (size_t activeScheme) const =0
 gets the color value according to the current scheme index More...
 
virtual SUMOReal getLastLaneChangeOffset () const =0
 Returns the time since the last lane change in seconds. More...
 
virtual GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0
 Returns an own parameter window. More...
 
virtual Position getPosition (const SUMOReal offset=0) const =0
 Return current position (x/y, cartesian) More...
 
virtual std::string getStopInfo () const =0
 retrieve information about the current stop state More...
 
 GUIBaseVehicle (MSBaseVehicle &vehicle)
 
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...
 
Boundary getCenteringBoundary () const
 Returns the boundary to which the view shall be centered in order to show the object. 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...
 
Atomar getter methods
const std::string & getFullName () const
 Returns the full name appearing in the tool tip. More...
 
virtual const 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...
 
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 (happens in NETEDIT) More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
Parameter table window I/O
void addParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was opened. More...
 
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 (size_t activeScheme, const MSBaseVehicle *veh)
 sets the color according to the current scheme index and some vehicle function More...
 

Static Public Attributes

static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 

Protected Member Functions

const PositiongetSeatPosition (size_t personIndex) const
 returns the seat position for the person with the given index More...
 
void setColor (const GUIVisualizationSettings &s) const
 sets the color according to the currente settings More...
 
void setPrefix (const std::string &prefix)
 
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 buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 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, SUMOReal exagerate)
 

Protected Attributes

SUMOReal myCarriageLength
 Variable to set with the length of the last drawn carriage or the vehicle length. More...
 
MFXMutex myLock
 The mutex used to avoid concurrent updates of the vehicle buffer. More...
 
PositionVector mySeatPositions
 positions of seats in the vehicle (updated at every drawing step) More...
 

Private Attributes

MSDevice_VehroutesmyRoutes
 
MSBaseVehiclemyVehicle
 The vehicle to which all calls should be delegated. More...
 
const MSVehicleTypemyVType
 A shortcut to myVehicle.myType. More...
 

Additional visualisations

enum  VisualisationFeatures {
  VO_SHOW_BEST_LANES = 1, VO_SHOW_ROUTE = 2, VO_SHOW_ALL_ROUTES = 4, VO_TRACKED = 8,
  VO_SHOW_LFLINKITEMS = 16
}
 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, SUMOReal darken) const
 Chooses the route to draw and draws it, darkening it as given. More...
 

drawing helper methods

void drawAction_drawVehicleAsBoxPlus () const
 
void drawAction_drawVehicleAsTrianglePlus () const
 
void drawAction_drawVehicleAsPoly (const GUIVisualizationSettings &s) const
 
bool drawAction_drawVehicleAsImage (const GUIVisualizationSettings &s, SUMOReal length=-1) const
 
static void drawPoly (double *poses, SUMOReal offset)
 

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 68 of file GUIBaseVehicle.h.

Member Enumeration Documentation

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_TRACKED 

track vehicle

VO_SHOW_LFLINKITEMS 

LFLinkItems.

Definition at line 264 of file GUIBaseVehicle.h.

Constructor & Destructor Documentation

GUIBaseVehicle::~GUIBaseVehicle ( )

Member Function Documentation

void GUIBaseVehicle::addActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)
void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

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

Parameters
[in]wThe opened parameter window

Definition at line 189 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

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

Builds an entry which allows to open the manipulator window.

Parameters

Definition at line 180 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.

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

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

draws the given guiShape if it has distinc carriages/modules and eturns true if so

Implemented in GUIVehicle.

Referenced by drawAction_drawVehicleAsPoly(), and drawGL().

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

Reimplemented in GUIVehicle.

Definition at line 125 of file GUIBaseVehicle.h.

Referenced by drawGLAdditional().

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

Reimplemented in GUIVehicle.

Definition at line 126 of file GUIBaseVehicle.h.

Referenced by drawGL().

void GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus ( ) const
protected
void GUIBaseVehicle::drawAction_drawVehicleAsTrianglePlus ( ) const
protected
virtual void GUIBaseVehicle::drawAction_drawVehicleBlinker ( SUMOReal  ) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 123 of file GUIBaseVehicle.h.

Referenced by drawGL().

virtual void GUIBaseVehicle::drawAction_drawVehicleBlueLight ( ) const
inlinevirtual
virtual void GUIBaseVehicle::drawAction_drawVehicleBrakeLight ( SUMOReal  ) const
inlinevirtual

Reimplemented in GUIVehicle.

Definition at line 124 of file GUIBaseVehicle.h.

Referenced by drawGL().

virtual void GUIBaseVehicle::drawBestLanes ( ) const
inlinevirtual

Draws the vehicle's best lanes.

Reimplemented in GUIVehicle.

Definition at line 128 of file GUIBaseVehicle.h.

Referenced by drawGLAdditional().

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 826 of file GUIBaseVehicle.cpp.

References GUIVisualizationTextSettings::color, drawAction_drawCarriageClass(), drawAction_drawPersonsAndContainers(), drawAction_drawVehicleAsBoxPlus(), drawAction_drawVehicleAsImage(), drawAction_drawVehicleAsPoly(), drawAction_drawVehicleAsTrianglePlus(), drawAction_drawVehicleBlinker(), drawAction_drawVehicleBlueLight(), drawAction_drawVehicleBrakeLight(), GUIVisualizationSettings::drawLaneChangePreference, GUIVisualizationSettings::drawMinGap, GUIGlObject::drawName(), GLHelper::drawOutlineCircle(), GLHelper::drawText(), MSLane::geometryPositionAtOffset(), getAngle(), MSBaseVehicle::getDevice(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSVehicleType::getGuiShape(), SUMOVehicle::getLane(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSBaseVehicle::getParameter(), getPosition(), SUMOVehicle::getPositionOnLane(), MSDevice_BTreceiver::getRange(), GUIGlObject::getType(), GLO_MAX, SUMOVehicleParameter::line, MIN2(), myCarriageLength, mySeatPositions, myVehicle, myVType, GUIVisualizationSettings::personName, PI, RAD2DEG, GUIVisualizationSettings::scale, setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, GUIVisualizationTextSettings::size, SUMOReal, SVS_ANT, SVS_BICYCLE, SVS_EMERGENCY, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CARGO, SVS_SHIP, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, GUIVisualizationSettings::vehicleSize, Position::x(), and Position::y().

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

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

Draws additionally triggered visualisations.

Parameters
[in]parentThe view
[in]sThe settings for the current view (may influence drawing)

Reimplemented from GUIGlObject.

Definition at line 979 of file GUIBaseVehicle.cpp.

References drawAction_drawLinkItems(), drawBestLanes(), drawRoute(), GUIGlObject::getGlID(), MSBaseVehicle::getNumberReroutes(), GUIGlObject::getType(), hasActiveAddVisualisation(), myVehicle, SUMOReal, VO_SHOW_ALL_ROUTES, VO_SHOW_BEST_LANES, VO_SHOW_LFLINKITEMS, and VO_SHOW_ROUTE.

Referenced by drawAction_drawVehicleBlueLight().

void GUIBaseVehicle::drawLinkItem ( const Position pos,
SUMOTime  arrivalTime,
SUMOTime  leaveTime,
SUMOReal  exagerate 
)
staticprotected
void GUIBaseVehicle::drawPoly ( double *  poses,
SUMOReal  offset 
)
staticprotected

Definition at line 370 of file GUIBaseVehicle.cpp.

Referenced by drawAction_drawVehicleAsPoly().

void GUIBaseVehicle::drawRoute ( const GUIVisualizationSettings s,
int  routeNo,
SUMOReal  darken 
) 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 1131 of file GUIBaseVehicle.cpp.

References drawRouteHelper(), GUIVisualizationSizeSettings::getExaggeration(), MSBaseVehicle::getRoute(), MSDevice_Vehroutes::getRoute(), myRoutes, myVehicle, setColor(), SUMOReal, and GUIVisualizationSettings::vehicleSize.

Referenced by drawGLAdditional().

virtual void GUIBaseVehicle::drawRouteHelper ( const MSRoute r,
SUMOReal  exaggeration 
) const
pure virtual

Draws the route.

Parameters
[in]rThe route to draw

Implemented in GUIVehicle.

Referenced by drawRoute().

virtual SUMOReal GUIBaseVehicle::getAngle ( ) const
pure virtual

Returns the vehicle's direction in radians.

Returns
The vehicle's current angle

Implemented in GUIVehicle.

Referenced by drawGL().

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.

Definition at line 328 of file GUIBaseVehicle.cpp.

References Boundary::add(), getPosition(), and Boundary::grow().

Referenced by drawAction_drawVehicleBlueLight().

virtual SUMOReal GUIBaseVehicle::getColorValue ( size_t  activeScheme) const
pure virtual

gets the color value according to the current scheme index

Implemented in GUIVehicle.

Referenced by setColor().

GUIGlID GUIGlObject::getGlID ( ) const
inlineinherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 123 of file GUIGlObject.h.

Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), drawGLAdditional(), GUILane::drawLinkRule(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIContainer::getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().

virtual SUMOReal 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 GUIVehicle.

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

virtual const std::string& GUIGlObject::getParentName ( ) const
inlinevirtualinherited

Returns the name of the parent object (if any)

Returns
This object's parent id

Reimplemented in GUILane, and GNELane.

Definition at line 115 of file GUIGlObject.h.

References StringUtils::emptyString.

Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().

virtual Position GUIBaseVehicle::getPosition ( const SUMOReal  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 GUIVehicle.

Referenced by drawGL(), and getCenteringBoundary().

const Position & GUIBaseVehicle::getSeatPosition ( size_t  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 1166 of file GUIBaseVehicle.cpp.

References MIN2(), and mySeatPositions.

Referenced by GUIVehicle::drawAction_drawPersonsAndContainers().

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

retrieve information about the current stop state

Implemented in GUIVehicle.

GUIGlObjectType GUIGlObject::getType ( ) const
inlineinherited

Returns the type of the object as coded in GUIGlObjectType.

Returns
The type of the object
See also
GUIGlObjectType

Definition at line 167 of file GUIGlObject.h.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnector::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().

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 1108 of file GUIBaseVehicle.cpp.

References myAdditionalVisualizations.

Referenced by drawAction_drawVehicleBlueLight(), drawGLAdditional(), and getPopUpMenu().

void GUIBaseVehicle::removeActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)
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 195 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

virtual void GUIBaseVehicle::selectBlockingFoes ( ) const
pure virtual

adds the blocking foes to the current selection

Implemented in GUIVehicle.

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

void GUIBaseVehicle::setColor ( const GUIVisualizationSettings s) const
protected
void GUIGlObject::setMicrosimID ( const std::string &  newID)
virtualinherited

Changes the microsimID of the object (happens in NETEDIT)

Reimplemented in GNEEdge.

Definition at line 110 of file GUIGlObject.cpp.

References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited

Field Documentation

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

Enabled visualisations, per view.

Definition at line 278 of file GUIBaseVehicle.h.

Referenced by addActiveAddVisualisation(), getPopUpMenu(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIBaseVehicle().

SUMOReal GUIBaseVehicle::myCarriageLength
mutableprotected

Variable to set with the length of the last drawn carriage or the vehicle length.

Definition at line 323 of file GUIBaseVehicle.h.

Referenced by GUIVehicle::drawAction_drawRailCarriages(), and drawGL().

MFXMutex GUIBaseVehicle::myLock
mutableprotected

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

Definition at line 320 of file GUIBaseVehicle.h.

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

MSDevice_Vehroutes* GUIBaseVehicle::myRoutes
private

Definition at line 335 of file GUIBaseVehicle.h.

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

PositionVector GUIBaseVehicle::mySeatPositions
mutableprotected

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

Definition at line 326 of file GUIBaseVehicle.h.

Referenced by GUIVehicle::computeSeats(), GUIVehicle::drawAction_drawRailCarriages(), drawGL(), getSeatPosition(), and GUIBaseVehicle().

MSBaseVehicle& GUIBaseVehicle::myVehicle
private

The vehicle to which all calls should be delegated.

Definition at line 330 of file GUIBaseVehicle.h.

Referenced by drawGL(), drawGLAdditional(), drawRoute(), GUIBaseVehicle(), and setColor().

const MSVehicleType& GUIBaseVehicle::myVType
private
StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 100 of file GUIGlObject.h.


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