![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A MSVehicle extended by some values for usage within the gui. More...
#include <GUIBaseVehicle.h>
Data Structures | |
class | GUIBaseVehiclePopupMenu |
struct | Seat |
Public Types | |
typedef std::vector< Seat > | Seats |
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) const | |||
draw name of item More... | ||||
virtual void | drawRouteHelper (const GUIVisualizationSettings &s, const MSRoute &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 GUIParameterTableWindow * | getParameterWindow (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... | ||||
virtual std::string | getStopInfo () const =0 | |||
retrieve information about the current stop state More... | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0 | |||
Returns an own type parameter window. 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 | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
void | removedPopupMenu () | |||
notify object about popup menu removal 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... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
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... | ||||
interfaces to be implemented by derived classes | ||||
virtual 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... | ||||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
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 StringBijection< GUIGlObjectType > | TypeNames |
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) const |
add seats to mySeatPositions and update requiredSeats More... | |
bool | drawAction_drawVehicleAsPolyWithCarriagges (const GUIVisualizationSettings &s, bool asImage=false) const |
draw vehicle body and return whether carriages are being drawn More... | |
const Seat & | getContainerPosition (int containerIndex) const |
const Seat & | getSeatPosition (int personIndex) const |
returns the seat position for the person with the given index More... | |
const MSVehicleType & | getVType () const |
A shortcut to myVehicle.myType. More... | |
RGBColor | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente 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, 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, 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 | |
std::string | myFullName |
full name of GL Object More... | |
GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
GUIGLObjectPopupMenu * | myPopup |
current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal More... | |
MSDevice_Vehroutes * | myRoutes |
MSBaseVehicle & | myVehicle |
The vehicle to which all calls should be delegated. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
Additional visualisations | |
enum | VisualisationFeatures { VO_SHOW_BEST_LANES = 1 , VO_SHOW_ROUTE = 2 , VO_SHOW_ALL_ROUTES = 4 , VO_SHOW_LFLINKITEMS = 8 , VO_DRAW_OUTSIDE_NETWORK = 16 , VO_SHOW_FUTURE_ROUTE = 32 , VO_SHOW_ROUTE_NOLOOP = 64 } |
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... | |
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.
typedef std::vector<Seat> GUIBaseVehicle::Seats |
Definition at line 76 of file GUIBaseVehicle.h.
Additional visualisation feature ids.
Definition at line 302 of file GUIBaseVehicle.h.
GUIBaseVehicle::GUIBaseVehicle | ( | MSBaseVehicle & | vehicle | ) |
Definition at line 289 of file GUIBaseVehicle.cpp.
References MSDevice_Vehroutes::buildVehicleDevices(), myContainerPositions, MSBaseVehicle::myDevices, MSBaseVehicle::myMoveReminders, myRoutes, mySeatPositions, and myVehicle.
GUIBaseVehicle::~GUIBaseVehicle | ( | ) |
destructor
Definition at line 301 of file GUIBaseVehicle.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIGLObjectPopupMenu::getParentView(), myAdditionalVisualizations, myLock, myPopup, and myRoutes.
void GUIBaseVehicle::addActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
int | which | ||
) |
Adds the named visualisation feature to the given view.
[in] | parent | The view for which the feature shall be enabled |
[in] | which | The visualisation feature to enable |
Definition at line 769 of file GUIBaseVehicle.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.
Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowRouteNoLoops(), and GUIViewTraffic::onGamingClick().
|
inherited |
Definition at line 309 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 347 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 238 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, and RECENTERVIEW.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNETAZElement::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 247 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 229 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNETAZElement::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 288 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 257 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), FLAG_MINUS, FLAG_PLUS, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 324 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GNEPOI::getPopUpMenu(), and GUIPointOfInterest::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 300 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 270 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 279 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWTYPEPARS.
Referenced by getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIPerson::getPopUpMenu().
|
protected |
add seats to mySeatPositions and update requiredSeats
Definition at line 900 of file GUIBaseVehicle.cpp.
References Position::angleTo2D(), Position::distanceTo2D(), getVType(), MSVehicleType::getWidth(), MAX2(), and PositionVector::positionAtOffset2D().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().
|
privateinherited |
create full name
Definition at line 370 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
pure virtual |
draws the given guiShape with distinct carriages/modules
Implemented in GUIMEVehicle, and GUIVehicle.
Referenced by drawAction_drawVehicleAsPolyWithCarriagges().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 142 of file GUIBaseVehicle.h.
Referenced by drawGLAdditional().
|
virtual |
Definition at line 817 of file GUIBaseVehicle.cpp.
References GUIContainer::drawGL(), GUIPerson::drawGL(), GLHelper::drawLine(), getContainerPosition(), GUIGlObject::getGlID(), getSeatPosition(), MSDevice_Transportable::getTransportables(), GUIGlObject::getType(), MSBaseVehicle::myContainerDevice, MSBaseVehicle::myPersonDevice, myVehicle, GUIContainer::setPositionInVehicle(), and GUIPerson::setPositionInVehicle().
Referenced by drawOnPos().
|
protected |
draw vehicle body and return whether carriages are being drawn
Definition at line 857 of file GUIBaseVehicle.cpp.
References drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsImage(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), and getVType().
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 137 of file GUIBaseVehicle.h.
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 146 of file GUIBaseVehicle.h.
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 138 of file GUIBaseVehicle.h.
References UNUSED_PARAMETER.
Referenced by drawOnPos().
|
inlinevirtual |
Draws the vehicle's best lanes.
Reimplemented in GUIVehicle.
Definition at line 145 of file GUIBaseVehicle.h.
Referenced by drawGLAdditional().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 597 of file GUIBaseVehicle.cpp.
References drawOnPos(), getAngle(), and getPosition().
Referenced by GUILane::drawGL(), GUIParkingArea::drawGL(), and drawGLAdditional().
|
virtual |
Draws additionally triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented from GUIGlObject.
Definition at line 603 of file GUIBaseVehicle.cpp.
References drawAction_drawLinkItems(), drawBestLanes(), drawGL(), drawRoute(), GUIGlObject::getGlID(), MSBaseVehicle::getNumberReroutes(), GUIGlObject::getType(), hasActiveAddVisualisation(), MSBaseVehicle::isOnRoad(), myVehicle, VO_SHOW_ALL_ROUTES, VO_SHOW_BEST_LANES, VO_SHOW_FUTURE_ROUTE, VO_SHOW_LFLINKITEMS, VO_SHOW_ROUTE, and VO_SHOW_ROUTE_NOLOOP.
|
staticprotected |
Definition at line 640 of file GUIBaseVehicle.cpp.
References GLHelper::drawFilledCircle(), GLHelper::drawText(), RGBColor::GREEN, STEPS2TIME, toString(), Position::x(), and Position::y().
Referenced by GUIVehicle::drawAction_drawLinkItems().
|
inherited |
draw name of item
Definition at line 376 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), drawOnPos(), GNEAdditional::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartialLane().
void GUIBaseVehicle::drawOnPos | ( | const GUIVisualizationSettings & | s, |
const Position & | pos, | ||
const double | angle | ||
) | const |
Draws the object on the specified position with the specified angle.
[in] | s | The settings for the current view (may influence drawing) |
[in] | pos | The position to draw the vehicle on |
[in] | angle | The drawing angle of the vehicle |
Definition at line 396 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::angle, computeSeats(), drawAction_drawPersonsAndContainers(), GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), drawAction_drawVehicleAsPolyWithCarriagges(), GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus(), drawAction_drawVehicleBlinker(), drawAction_drawVehicleBlueLight(), drawAction_drawVehicleBrakeLight(), GUIVisualizationSettings::drawBrakeGap, GUIVisualizationSettings::drawLaneChangePreference, GUIVisualizationSettings::drawMinGap, GUIGlObject::drawName(), GLHelper::drawOutlineCircle(), GLHelper::drawTextSettings(), GUIPropertySchemeStorage< T >::getActive(), getColorValue(), MSBaseVehicle::getDevice(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), getNumContainers(), getNumPassengers(), MSBaseVehicle::getParameter(), MSBaseVehicle::getPrefixedParameter(), MSDevice_BTreceiver::getRange(), SUMOTrafficObject::getSpeed(), GUIGlObject::getType(), StringTokenizer::getVector(), getVType(), MSVehicleType::getWidth(), MSGlobals::gUseMesoSim, SUMOVehicleParameter::line, M_PI, MIN2(), myContainerPositions, mySeatPositions, myVehicle, StringTokenizer::NEWLINE, RAD2DEG, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, SUMO_const_waitingContainerWidth, SUMO_const_waitingPersonWidth, SVS_ANT, SVS_BICYCLE, SVS_EMERGENCY, SVS_MOPED, SVS_MOTORCYCLE, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CAR, SVS_RAIL_CARGO, SVS_SHIP, toString(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, GUIVisualizationSettings::vehicleSize, GUIVisualizationSettings::vehicleText, GUIVisualizationSettings::vehicleTextParam, GUIVisualizationSettings::vehicleValue, Position::x(), and Position::y().
Referenced by drawGL(), and GUIEdge::drawMesoVehicles().
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.
[in] | s | The visualisation settings, needed to determine the vehicle's color |
[in] | routeNo | The route to show (0: the current, >0: prior) |
[in] | darken | The amount to darken the route by |
Definition at line 789 of file GUIBaseVehicle.cpp.
References RGBColor::changedBrightness(), drawRouteHelper(), MSBaseVehicle::getRoute(), MSDevice_Vehroutes::getRoute(), myRoutes, myVehicle, setColor(), and GLHelper::setColor().
Referenced by drawGLAdditional().
|
pure virtual |
Draws the route.
[in] | r | The route to draw |
Implemented in GUIMEVehicle, and GUIVehicle.
Referenced by drawRoute().
|
pure virtual |
Returns the vehicle's direction in radians.
Implemented in GUIMEVehicle, and GUIVehicle.
Referenced by drawGL(), and getNaviDegree().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Reimplemented in GUIMEVehicle.
Definition at line 381 of file GUIBaseVehicle.cpp.
References Boundary::add(), MSVehicleType::getLength(), getPosition(), MSBaseVehicle::getVehicleType(), Boundary::grow(), and myVehicle.
|
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().
|
protected |
if there are not enough positions in the vehicle containers have to squeeze onto the last position
Definition at line 810 of file GUIBaseVehicle.cpp.
References MIN2(), and myContainerPositions.
Referenced by drawAction_drawPersonsAndContainers().
std::string GUIBaseVehicle::getDeviceDescription | ( | ) |
lists equipped device (types) for the current vehicle
Definition at line 890 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getDevices(), joinToString(), and myVehicle.
Referenced by GUIVehicle::getParameterWindow(), and GUIMEVehicle::getParameterWindow().
|
inherited |
Definition at line 154 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIParameterTableWindow::onLeftBtnPress(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObjectStorage::remove(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
Returns the numerical id of the object.
Definition at line 166 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), drawAction_drawPersonsAndContainers(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), drawOnPos(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartialJunction(), GNEDemandElement::drawPersonPlanPartialLane(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIPerson::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
pure virtual |
Returns the time since the last lane change in seconds.
Implemented in GUIMEVehicle, and GUIVehicle.
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 180 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GUIGlObject::drawName(), GNEAdditional::getID(), GNEShape::getID(), GNETAZElement::getID(), GNEGenericData::getID(), GNEDemandElement::getID(), GNENetworkElement::getID(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEDetectorE3::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNEVariableSpeedSign::getParentName(), GNEVehicleType::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), TraCIServerAPI_GUI::processGet(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), and GNENet::splitEdge().
|
inline |
return the current angle in navigational degrees
Definition at line 93 of file GUIBaseVehicle.h.
References getAngle(), and GeomHelper::naviDegree().
Referenced by GUIVehicle::getParameterWindow(), and GUIMEVehicle::getParameterWindow().
int GUIBaseVehicle::getNumContainers | ( | ) | const |
return the number of passengers
Definition at line 882 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getContainerDevice(), myVehicle, and MSDevice_Transportable::size().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().
int GUIBaseVehicle::getNumPassengers | ( | ) | const |
return the number of passengers
Definition at line 873 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getPersonDevice(), myVehicle, and MSDevice_Transportable::size().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and drawOnPos().
|
virtual |
Returns the value for generic parameter 'name' or ''.
Reimplemented from GUIGlObject.
Definition at line 390 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getParameter(), Parameterised::getParameter(), and myVehicle.
|
pure virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Implemented in GUIMEVehicle, and GUIVehicle.
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNELane, GNEWalk, GNEVehicleType, GNEVehicle, GNEStop, GNERoute, GNERide, GNEPersonTrip, GNEPersonStop, GNEPerson, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZSourceSink, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, GNEAccess, and GUILane.
Definition at line 160 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 315 of file GUIBaseVehicle.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIGlObject::buildShowTypeParamsPopupEntry(), GUIGlObject::getGlID(), GUISUMOAbstractView::getTrackedID(), hasActiveAddVisualisation(), MSBaseVehicle::isStopped(), MID_HIDE_ALLROUTES, MID_HIDE_BEST_LANES, MID_HIDE_CURRENTROUTE, MID_HIDE_FUTUREROUTE, MID_HIDE_LFLINKITEMS, MID_HIDE_ROUTE_NOLOOPS, MID_REMOVE_OBJECT, MID_SHOW_ALLROUTES, MID_SHOW_BEST_LANES, MID_SHOW_CURRENTROUTE, MID_SHOW_FOES, MID_SHOW_FUTUREROUTE, MID_SHOW_LFLINKITEMS, MID_SHOW_ROUTE_NOLOOPS, MID_START_TRACK, MID_STOP_TRACK, MID_TOGGLE_STOP, myPopup, myVehicle, VO_SHOW_ALL_ROUTES, VO_SHOW_BEST_LANES, VO_SHOW_FUTURE_ROUTE, VO_SHOW_LFLINKITEMS, VO_SHOW_ROUTE, and VO_SHOW_ROUTE_NOLOOP.
|
pure virtual |
Return current position (x/y, cartesian)
If the vehicle's myLane is 0, Position::INVALID.
[in] | offset | optional offset in longitudinal direction |
Implemented in GUIMEVehicle, and GUIVehicle.
Referenced by drawGL(), and getCenteringBoundary().
|
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 804 of file GUIBaseVehicle.cpp.
References MIN2(), and mySeatPositions.
Referenced by drawAction_drawPersonsAndContainers().
|
pure virtual |
retrieve information about the current stop state
Implemented in GUIMEVehicle, and GUIVehicle.
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 202 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEVehicle::drawFlowLabel(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEDetectorEntryExit::drawGL(), GNEPOI::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), drawGLAdditional(), GUIPerson::drawGLAdditional(), drawOnPos(), GNEEdgeRelData::drawPartialGL(), GNEAdditional::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartialJunction(), GNEDemandElement::drawPersonPlanPartialLane(), GNEVehicle::drawStackLabel(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEViewNetHelper::ObjectsUnderCursor::updateGenericDataElements(), GNEViewNetHelper::ObjectsUnderCursor::updateNetworkElements(), GNEViewNetHelper::ObjectsUnderCursor::updateShapeElements(), and GNEViewNetHelper::ObjectsUnderCursor::updateTAZElements().
|
pure virtual |
Returns an own type parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented from GUIGlObject.
Implemented in GUIMEVehicle, and GUIVehicle.
|
inlineprotected |
A shortcut to myVehicle.myType.
Definition at line 348 of file GUIBaseVehicle.h.
References MSBaseVehicle::getVehicleType(), and myVehicle.
Referenced by computeSeats(), GUIVehicle::drawAction_drawCarriageClass(), GUIMEVehicle::drawAction_drawCarriageClass(), drawAction_drawVehicleAsPolyWithCarriagges(), and drawOnPos().
bool GUIBaseVehicle::hasActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
int | which | ||
) | const |
Returns whether the named feature is enabled in the given view.
[in] | parent | The view for which the feature may be enabled |
[in] | which | The visualisation feature |
Definition at line 763 of file GUIBaseVehicle.cpp.
References myAdditionalVisualizations.
Referenced by drawGLAdditional(), getPopUpMenu(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), and GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowRouteNoLoops().
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 163 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
virtual |
Adds the named visualisation feature to the given view.
[in] | parent | The view for which the feature shall be enabled |
[in] | which | The visualisation feature to enable |
Reimplemented from GUIGlObject.
Definition at line 779 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().
|
virtual |
notify object about popup menu removal
Reimplemented from GUIGlObject.
Definition at line 376 of file GUIBaseVehicle.cpp.
References myPopup.
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 315 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
pure virtual |
adds the blocking foes to the current selection
Implemented in GUIMEVehicle, and GUIVehicle.
Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes().
|
protected |
sets the color according to the currente settings
Definition at line 650 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().
|
static |
sets the color according to the current scheme index and some vehicle function
Definition at line 662 of file GUIBaseVehicle.cpp.
References RGBColor::BLUE, SUMOVehicleParameter::color, RGBColor::DEFAULT_COLOR, Position::distanceTo(), RGBColor::fromHSV(), SUMOVehicle::getAngle(), Boundary::getCenter(), MSRoute::getColor(), MSVehicleType::getColor(), MSRoute::getEdges(), MSVehicleType::getGuiShape(), MSNet::getInstance(), MSBaseVehicle::getParameter(), MSBaseVehicle::getRoute(), MSBaseVehicle::getVehicleType(), M_PI, GeomHelper::naviDegree(), RGBColor::RED, SVS_EMERGENCY, SVS_FIREBRIGADE, SVS_POLICE, VEHPARS_COLOR_SET, VTYPEPARS_COLOR_SET, MSVehicleType::wasSet(), SUMOVehicleParameter::wasSet(), RGBColor::WHITE, Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by setColor().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 190 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, GUIGlObject::myGlID, GUIGlObject::myMicrosimID, GUIGlObjectStorage::registerObject(), and GUIGlObjectStorage::remove().
Referenced by GNELane::setIndex(), GNEEdge::setMicrosimID(), GNENetHelper::AttributeCarriers::updateAdditionalID(), GNENetHelper::AttributeCarriers::updateDemandElementID(), GNENetHelper::AttributeCarriers::updateEdgeTypeID(), GNEConnection::updateID(), GNENetHelper::AttributeCarriers::updateJunctionID(), GNENetHelper::AttributeCarriers::updateShapeID(), and GNENetHelper::AttributeCarriers::updateTAZElementID().
|
staticprivateinherited |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 275 of file GUIGlObject.h.
|
staticinherited |
Definition at line 67 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
std::map<GUISUMOAbstractView*, int> GUIBaseVehicle::myAdditionalVisualizations |
Enabled visualisations, per view.
Definition at line 320 of file GUIBaseVehicle.h.
Referenced by addActiveAddVisualisation(), GUIVehicle::drawOutsideNetwork(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIBaseVehicle().
|
mutableprotected |
Definition at line 365 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), drawOnPos(), getContainerPosition(), and GUIBaseVehicle().
|
privateinherited |
full name of GL Object
Definition at line 258 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 249 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The type of the object.
Definition at line 252 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
mutableprotected |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 361 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawBestLanes(), and ~GUIBaseVehicle().
|
privateinherited |
ID of GL object.
Definition at line 255 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 261 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
private |
current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal
Definition at line 374 of file GUIBaseVehicle.h.
Referenced by getPopUpMenu(), removedPopupMenu(), and ~GUIBaseVehicle().
|
private |
Definition at line 371 of file GUIBaseVehicle.h.
Referenced by drawRoute(), GUIBaseVehicle(), and ~GUIBaseVehicle().
|
mutableprotected |
positions of seats in the vehicle (updated at every drawing step)
Definition at line 364 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), drawOnPos(), getSeatPosition(), and GUIBaseVehicle().
|
private |
The vehicle to which all calls should be delegated.
Definition at line 369 of file GUIBaseVehicle.h.
Referenced by drawAction_drawPersonsAndContainers(), drawGLAdditional(), drawOnPos(), drawRoute(), getCenteringBoundary(), getDeviceDescription(), getNumContainers(), getNumPassengers(), getOptionalName(), getPopUpMenu(), getVType(), GUIBaseVehicle(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdToggleStop(), and setColor().
|
staticinherited |
associates object types with strings
Definition at line 66 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().