![]() |
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, double scaledLength, bool asImage) const =0 | |||
draws the given guiShape with distinct carriages/modules | ||||
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. | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const | |||
draw name of item | ||||
virtual void | drawRouteHelper (const GUIVisualizationSettings &s, ConstMSRoutePtr r, bool future, bool noLoop, const RGBColor &col) const =0 | |||
Draws the route. | ||||
virtual double | getAngle () const =0 | |||
Returns the vehicle's direction in radians. | ||||
virtual double | getColorValue (const GUIVisualizationSettings &s, int activeScheme) const =0 | |||
gets the color value according to the current scheme index | ||||
std::string | getDeviceDescription () | |||
lists equipped device (types) for the current vehicle | ||||
virtual double | getLastLaneChangeOffset () const =0 | |||
Returns the time since the last lane change in seconds. | ||||
double | getNaviDegree () const | |||
return the current angle in navigational degrees | ||||
int | getNumContainers () const | |||
return the number of passengers | ||||
int | getNumPassengers () const | |||
return the number of passengers | ||||
virtual GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0 | |||
Returns an own parameter window. | ||||
virtual Position | getPosition (const double offset=0) const =0 | |||
Return current position (x/y, cartesian) | ||||
double | getScaleValue (const GUIVisualizationSettings &s, int activeScheme) const | |||
gets the size multiplier value according to the current scheme index | ||||
virtual std::string | getStopInfo () const =0 | |||
retrieve information about the current stop state | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0 | |||
Returns an own type parameter window. | ||||
const MSBaseVehicle & | getVehicle () | |||
virtual double | getVisualAngle (bool s2) const =0 | |||
Returns the vehicle's direction in radians taking into account secondary shape. | ||||
virtual Position | getVisualPosition (bool s2, const double offset=0) const =0 | |||
Return current position taking into account secondary shape. | ||||
GUIBaseVehicle (MSBaseVehicle &vehicle) | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click | ||||
virtual void | selectBlockingFoes () const =0 | |||
adds the blocking foes to the current selection | ||||
~GUIBaseVehicle () | ||||
destructor | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. | ||||
void | removedPopupMenu () | |||
notify object about popup menu removal | ||||
double | getExaggeration (const GUIVisualizationSettings &s) const | |||
return exaggeration associated with this GLObject | ||||
virtual Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. | ||||
const std::string | getOptionalName () const | |||
Returns the value for generic parameter 'name' or ''. | ||||
void | drawOnPos (const GUIVisualizationSettings &s, const Position &pos, const double angle) const | |||
Draws the object on the specified position with the specified angle. | ||||
void | drawGL (const GUIVisualizationSettings &s) const | |||
Draws the object. | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additionally triggered visualisations. | ||||
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) | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. | ||||
FXIcon * | getGLIcon () const | |||
get icon associated with this GL Object | ||||
interfaces to be implemented by derived classes | ||||
const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. | ||||
virtual void | setMicrosimID (const std::string &newID) | |||
Changes the microsimID of the object. | ||||
GUIGlObjectType | getType () const | |||
Returns the type of the object as coded in GUIGlObjectType. | ||||
virtual double | getClickPriority () const | |||
Returns the priority of receiving mouse clicks. | ||||
bool | isBlocked () const | |||
get blocking status | ||||
void | setBlocked (const bool state=true) | |||
set blocking status | ||||
virtual bool | isGLObjectLocked () const | |||
check if element is locked (Currently used only in netedit) | ||||
virtual void | markAsFrontElement () | |||
mark element as front element (Currently used only in netedit) | ||||
virtual void | deleteGLObject () | |||
delete GLObject (Currently used only in netedit) | ||||
virtual void | selectGLObject () | |||
select GLObject (Currently used only in netedit) | ||||
virtual void | updateGLObject () | |||
update GLObject (geometry, ID, etc.) (optional) | ||||
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. | ||||
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 | |
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static const double | INVALID_PRIORITY |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings | |
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 | |
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 | |
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 | |
bool | drawAction_drawVehicleAsPolyWithCarriagges (const GUIVisualizationSettings &s, double scaledLength, bool asImage=false) const |
draw vehicle body and return whether carriages are being drawn | |
bool | drawReversed (const GUIVisualizationSettings &s) const |
whether to reverse trains in their reversed state | |
const Seat & | getContainerPosition (int containerIndex) const |
const Seat & | getSeatPosition (int personIndex) const |
returns the seat position for the person with the given index | |
const MSVehicleType & | getVType () const |
A shortcut to myVehicle.myType. | |
RGBColor | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the current settings | |
helper methods for building popup-menus | |
build common popup options | |
void | buildPopUpMenuCommonOptions (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, GUISUMOAbstractView *parent, const SumoXMLTag tag, const bool selected, bool addSeparator=true) |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. | |
void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, const GUIMainWindow &app, bool addSeparator=true) 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. | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. | |
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. | |
Seats | mySeatPositions |
positions of seats in the vehicle (updated at every drawing step) | |
Private Member Functions | |
std::string | createFullName () const |
create full name | |
Private Attributes | |
bool | myAmBlocked = false |
whether the object can be deleted | |
std::string | myFullName |
full name of GL Object | |
const GUIGlID | myGlID |
The numerical id of the object. | |
const GUIGlObjectType | myGLObjectType |
The type of the object. | |
FXIcon * | myIcon |
icon associatd with this GL Object | |
std::string | myMicrosimID |
ID of GL object. | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. | |
GUIGLObjectPopupMenu * | myPopup |
current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal | |
MSDevice_Vehroutes * | myRoutes |
MSBaseVehicle & | myVehicle |
The vehicle to which all calls should be delegated. | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
vector for TypeNames Initializer | |
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. | |
bool | hasActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) const |
Returns whether the named feature is enabled in the given view. | |
void | addActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) |
Adds the named visualisation feature to the given view. | |
void | removeActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) |
Adds the named visualisation feature to the given view. | |
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. | |
void | drawStopLabels (const GUIVisualizationSettings &s, bool noLoop, const RGBColor &col) const |
void | drawParkingInfo (const GUIVisualizationSettings &s) const |
void | drawChargingInfo (const GUIVisualizationSettings &s) const |
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 319 of file GUIBaseVehicle.h.
GUIBaseVehicle::GUIBaseVehicle | ( | MSBaseVehicle & | vehicle | ) |
Definition at line 315 of file GUIBaseVehicle.cpp.
References MSDevice_Vehroutes::buildVehicleDevices(), myContainerPositions, MSBaseVehicle::myDevices, MSBaseVehicle::myMoveReminders, myRoutes, mySeatPositions, and myVehicle.
GUIBaseVehicle::~GUIBaseVehicle | ( | ) |
destructor
Definition at line 327 of file GUIBaseVehicle.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIGlObject::getGlID(), 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 900 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().
|
inherited |
Definition at line 411 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 449 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.
|
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 325 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, RECENTERVIEW, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildPopUpMenuCommonOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
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 334 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), MID_COPY_NAME, MID_COPY_TYPED_NAME, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNELane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::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 313 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIMainWindow::getBoldFont(), GUIGlObject::getFullName(), OptionsCont::getOptions(), MID_COPY_TEST_COORDINATES, GUIGlObject::myIcon, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildPopUpMenuCommonOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
Definition at line 291 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildShowParamsPopupEntry(), FLAG_MINUS, FLAG_PLUS, GUIIconSubSys::getIcon(), MID_ADDSELECT, MID_COPY_NAME, MID_COPY_TYPED_NAME, MID_REMOVESELECT, TL, TLF, and toString().
Referenced by GNEDemandElementPlan::getPlanPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNERouteRef::getPopUpMenu(), GNEVTypeRef::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
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 375 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::buildPopUpMenuCommonOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNELane::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
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 344 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), FLAG_MINUS, FLAG_PLUS, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), MID_ADDSELECT, MID_REMOVESELECT, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 426 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().
|
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 402 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, MID_MANIP, and TL.
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 357 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWPARS, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildPopUpMenuCommonOptions(), GUIGlObject::buildShapePopupOptions(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
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 366 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().
|
protected |
add seats to mySeatPositions and update requiredSeats
Definition at line 1188 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().
|
privateinherited |
create full name
Definition at line 472 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
virtualinherited |
delete GLObject (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, GNEWalkingArea, and GNENetworkElement.
Definition at line 238 of file GUIGlObject.cpp.
|
pure virtual |
draws the given guiShape with distinct carriages/modules
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by drawAction_drawVehicleAsPolyWithCarriagges().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 154 of file GUIBaseVehicle.h.
Referenced by drawGLAdditional().
|
virtual |
Definition at line 1097 of file GUIBaseVehicle.cpp.
References GLHelper::drawBoxLines(), GUIContainer::drawGL(), GUIPerson::drawGL(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), getContainerPosition(), GUIGlObject::getGlID(), getSeatPosition(), MSDevice_Transportable::getTransportables(), GUIGlObject::getType(), MSGlobals::gUseMesoSim, MSBaseVehicle::myContainerDevice, MSBaseVehicle::myPersonDevice, myVehicle, GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), GUIContainer::setPositionInVehicle(), and GUIPerson::setPositionInVehicle().
Referenced by drawOnPos().
|
protected |
draw vehicle body and return whether carriages are being drawn
Definition at line 1144 of file GUIBaseVehicle.cpp.
References drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsImage(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), drawReversed(), MSBaseVehicle::getNextStop(), getVType(), MSBaseVehicle::isParking(), MSBaseVehicle::isStopped(), myVehicle, MSStop::parkingarea, and MSParkingArea::parkOnRoad().
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 149 of file GUIBaseVehicle.h.
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 158 of file GUIBaseVehicle.h.
Referenced by drawOnPos().
|
inlinevirtual |
Reimplemented in GUIVehicle.
Definition at line 150 of file GUIBaseVehicle.h.
References UNUSED_PARAMETER.
Referenced by drawOnPos().
|
inlinevirtual |
Draws the vehicle's best lanes.
Reimplemented in GUIVehicle.
Definition at line 157 of file GUIBaseVehicle.h.
Referenced by drawGLAdditional().
void GUIBaseVehicle::drawChargingInfo | ( | const GUIVisualizationSettings & | s | ) | const |
Definition at line 1063 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::angle, GLHelper::drawTextSettings(), MSBaseVehicle::getChargingMemory(), GUIChargingStation::getSignPos(), myVehicle, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), GUIVisualizationSettings::showChargingInfo, SIMSTEP, time2string(), GUIVisualizationSettings::vehicleText, and GUIVisualizationSettings::vehicleValue.
Referenced by GUIVehicle::drawRouteHelper().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 661 of file GUIBaseVehicle.cpp.
References drawOnPos(), getVisualAngle(), getVisualPosition(), and GUIVisualizationSettings::secondaryShape.
Referenced by GUILane::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 667 of file GUIBaseVehicle.cpp.
References drawAction_drawLinkItems(), drawBestLanes(), drawGL(), drawRoute(), GUIGlObject::getGlID(), MSBaseVehicle::getNumberReroutes(), GUIGlObject::getType(), hasActiveAddVisualisation(), MSBaseVehicle::isOnRoad(), myVehicle, GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), 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 704 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 478 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show().
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNECrossing::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GNEJunction::drawJunctionName(), GNELaneAreaDetector::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), drawOnPos(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEPoly::drawPolygonNameAndType().
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 435 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(), GUIVisualizationSettings::MISSING_DATA, 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::trueZ, 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(), Position::y(), and Position::z().
Referenced by drawGL(), and GUIEdge::drawMesoVehicles().
void GUIBaseVehicle::drawParkingInfo | ( | const GUIVisualizationSettings & | s | ) | const |
Definition at line 1039 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::angle, GLHelper::drawTextSettings(), MSBaseVehicle::getParkingMemory(), GUIParkingArea::getSignPos(), myVehicle, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), GUIVisualizationSettings::showParkingInfo, SIMSTEP, time2string(), GUIVisualizationSettings::vehicleText, and GUIVisualizationSettings::vehicleValue.
Referenced by GUIVehicle::drawRouteHelper(), and GUIMEVehicle::drawRouteHelper().
|
protected |
whether to reverse trains in their reversed state
Definition at line 1139 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::drawReversed, MSBaseVehicle::isReversed(), and myVehicle.
Referenced by drawAction_drawVehicleAsPolyWithCarriagges(), and drawOnPos().
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 922 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().
|
pure virtual |
Draws the route.
[in] | r | The route to draw |
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by drawRoute().
void GUIBaseVehicle::drawStopLabels | ( | const GUIVisualizationSettings & | s, |
bool | noLoop, | ||
const RGBColor & | col | ||
) | const |
Definition at line 941 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::angle, SUMOVehicleParameter::arrivalEdge, GLHelper::drawBoxLines(), GLHelper::drawTextSettings(), MSLane::geometryPositionAtOffset(), MSBaseVehicle::getArrivalLane(), MSBaseVehicle::getArrivalPos(), MSBaseVehicle::getCurrentRouteEdge(), MSRoute::getEdges(), PositionVector::getOrthogonal(), MSBaseVehicle::getParameter(), SUMOTrafficObject::getPositionOnLane(), MSBaseVehicle::getRoute(), MSLane::getShape(), MSBaseVehicle::getStops(), MSLane::getWidth(), MSGlobals::gUseStopEnded, MSBaseVehicle::isStoppedTriggered(), MAX2(), myVehicle, GUIVisualizationSettings::scale, GLHelper::setColor(), GUIVisualizationTextSettings::size, STEPS2TIME, time2string(), toString(), GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleText, VEHPARS_ARRIVALPOS_SET, and SUMOVehicleParameter::wasSet().
Referenced by GUIVehicle::drawRouteHelper(), and GUIMEVehicle::drawRouteHelper().
|
pure virtual |
Returns the vehicle's direction in radians.
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by 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 420 of file GUIBaseVehicle.cpp.
References Boundary::add(), MSVehicleType::getLength(), MSBaseVehicle::getVehicleType(), getVisualPosition(), Boundary::grow(), GUIGlobals::gSecondaryShape, and myVehicle.
|
inlinevirtualinherited |
Returns the priority of receiving mouse clicks.
Reimplemented in GUIEdge, GUILane, GUIPointOfInterest, and GUIPolygon.
Definition at line 162 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUISUMOAbstractView::getObjectAtPosition(), and ComparatorClickPriority::operator()().
|
pure virtual |
gets the color value according to the current scheme index
Reimplemented from GUIGlObject.
Implemented in GUIVehicle, and GUIMEVehicle.
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 1090 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 1178 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getDevices(), joinToString(), and myVehicle.
Referenced by GUIVehicle::getParameterWindow(), and GUIMEVehicle::getParameterWindow().
|
virtual |
return exaggeration associated with this GLObject
Reimplemented from GUIGlObject.
Reimplemented in GUIMEVehicle.
Definition at line 413 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().
|
inlineinherited |
Definition at line 95 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GNENetworkElement::getShapeEditedPopUpMenu(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIParameterTableWindow::onLeftBtnPress(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), and GUISelectedStorage::save().
|
inherited |
get icon associated with this GL Object
Definition at line 211 of file GUIGlObject.cpp.
References GUIGlObject::myIcon.
Referenced by GNENetworkElement::getShapeEditedPopUpMenu().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 105 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(), GUIMEVehicle::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().
|
pure virtual |
Returns the time since the last lane change in seconds.
Implemented in GUIVehicle, and GUIMEVehicle.
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 144 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEViewNet::askMergeJunctions(), GNEJunction::checkDrawFromContour(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GNEInternalLane::drawGL(), GUIGlObject::drawName(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNERouteDistribution::getAttribute(), GNERouteRef::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEVTypeDistribution::getAttribute(), GNEVTypeRef::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEWalkingArea::getAttribute(), GNEDetector::getDetectorAttribute(), GNEWalkingArea::getNBWalkingArea(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEMultiEntryExitDetector::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNETractionSubstation::getParentName(), GNEVariableSpeedSign::getParentName(), GNERouteDistribution::getParentName(), GNEVType::getParentName(), GNEVTypeDistribution::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNEStoppingPlace::getStoppingPlaceAttribute(), GNEChange_TLS::GNEChange_TLS(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNENetHelper::AttributeCarriers::insertInternalLane(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNENetHelper::AttributeCarriers::retrieveConnection(), GNENetHelper::AttributeCarriers::retrieveCrossing(), GNENetHelper::AttributeCarriers::retrieveInternalLane(), GNENetHelper::AttributeCarriers::retrieveLane(), GNENetHelper::AttributeCarriers::retrieveWalkingArea(), GNEStop::setStopMicrosimID(), GNENet::splitEdge(), and GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements().
|
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().
int GUIBaseVehicle::getNumContainers | ( | ) | const |
return the number of passengers
Definition at line 1170 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 1161 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 429 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 GUIVehicle, and GUIMEVehicle.
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEAccess, GNECalibrator, GNECalibratorFlow, GNEClosingLaneReroute, GNEClosingReroute, GNEDestProbReroute, GNEDetector, GNEMultiEntryExitDetector, GNEParkingAreaReroute, GNEParkingSpace, GNERerouter, GNERerouterInterval, GNERerouterSymbol, GNERouteProbe, GNERouteProbReroute, GNEStoppingPlace, GNETAZ, GNETractionSubstation, GNEVaporizer, GNEVariableSpeedSign, GNEVariableSpeedSignStep, GNEVariableSpeedSignSymbol, GNEContainer, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, GNEWalk, GNELane, GUILane, GNEPOI, and GNEPoly.
Definition at line 205 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 344 of file GUIBaseVehicle.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIGlObject::buildShowTypeParamsPopupEntry(), MSBaseVehicle::getContainers(), GUIGlObject::getGlID(), MSBaseVehicle::getPersons(), 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_SELECT_TRANSPORTED, 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, TL, 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 GUIVehicle, and GUIMEVehicle.
double GUIBaseVehicle::getScaleValue | ( | const GUIVisualizationSettings & | s, |
int | activeScheme | ||
) | const |
gets the size multiplier value according to the current scheme index
Definition at line 826 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getAcceleration(), MSVehicle::getAccumulatedWaitingSeconds(), MSVehicle::getBestLaneOffset(), MSBaseVehicle::getDepartDelay(), MSBaseVehicle::getEdge(), Named::getID(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSBaseVehicle::getNumberReroutes(), MSBaseVehicle::getParameter(), Parameterised::getParameter(), MSBaseVehicle::getPrefixedParameter(), SUMOTrafficObject::getSpeed(), MSBaseVehicle::getStopArrivalDelay(), MSBaseVehicle::getStopDelay(), MSVehicle::getTimeGapOnLane(), MSBaseVehicle::getTimeLossSeconds(), MSEdge::getVehicleMaxSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getWaitingSeconds(), MSAbstractLaneChangeModel::isOpposite(), MSBaseVehicle::isParking(), MSBaseVehicle::isSelected(), MSBaseVehicle::isStopped(), myVehicle, STEPS2TIME, TL, StringUtils::toBool(), StringUtils::toDouble(), GUIVisualizationSettings::vehicleScaleParam, and WRITE_WARNINGF.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), drawOnPos(), and getExaggeration().
|
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 1084 of file GUIBaseVehicle.cpp.
References MIN2(), and mySeatPositions.
Referenced by drawAction_drawPersonsAndContainers().
|
pure virtual |
retrieve information about the current stop state
Implemented in GUIVehicle, and GUIMEVehicle.
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 157 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GNEConnection::calculateConnectionContour(), GNEContour::calculateContourEdgeGeometryPoints(), GNECrossing::calculateCrossingContour(), GNEJunction::calculateJunctioncontour(), GNEParkingSpace::calculateSpaceContour(), GNEStoppingPlace::calculateStoppingPlaceContour(), GNEViewNet::checkOverLockedElement(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNECalibrator::drawCalibratorSymbol(), 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(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEStopPlan::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), drawGLAdditional(), GUIPerson::drawGLAdditional(), GNEDemandElement::drawJunctionLine(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawListedAdditional(), drawOnPos(), GNEDemandElementPlan::drawPlanGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), GNERoute::drawRoutePartialJunction(), GNERoute::drawRoutePartialLane(), GNEAdditional::drawSquaredAdditional(), 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(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GNEJunction::setJunctionType(), GNEViewNetHelper::ViewObjectsSelector::updateGenericDataElements(), GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements(), GNEViewNetHelper::ViewObjectsSelector::updateShapeElements(), and GNEViewNetHelper::ViewObjectsSelector::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 GUIVehicle, and GUIMEVehicle.
|
inline |
Definition at line 356 of file GUIBaseVehicle.h.
References myVehicle.
Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdSelectTransported().
|
pure virtual |
Returns the vehicle's direction in radians taking into account secondary shape.
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by drawGL().
|
pure virtual |
Return current position taking into account secondary shape.
[in] | offset | optional offset in longitudinal direction |
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by drawGL(), and getCenteringBoundary().
|
inlineprotected |
A shortcut to myVehicle.myType.
Definition at line 378 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 894 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().
|
inlineinherited |
get blocking status
Definition at line 167 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
|
virtualinherited |
check if element is locked (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.
Definition at line 225 of file GUIGlObject.cpp.
Referenced by GNEViewNetHelper::ViewObjectsSelector::filterLockedElements(), and GNEViewNet::processLeftButtonPressNetwork().
|
virtualinherited |
mark element as front element (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.
Definition at line 232 of file GUIGlObject.cpp.
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 219 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress(), and GUISUMOAbstractView::onRightBtnPress().
|
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 912 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 407 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 417 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
pure virtual |
adds the blocking foes to the current selection
Implemented in GUIVehicle, and GUIMEVehicle.
Referenced by GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes().
|
virtualinherited |
select GLObject (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, and GNENetworkElement.
Definition at line 244 of file GUIGlObject.cpp.
|
inlineinherited |
set blocking status
Definition at line 172 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
Referenced by GUIGlObjectStorage::getObjectBlocking(), and GUIGlObjectStorage::getObjectBlocking().
|
protected |
sets the color according to the current settings
Definition at line 714 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 726 of file GUIBaseVehicle.cpp.
References RGBColor::BLUE, SUMOVehicleParameter::color, RGBColor::DEFAULT_COLOR, Position::distanceTo(), EMERGENCY, FIREBRIGADE, 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(), POLICE, RGBColor::RED, 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.
Definition at line 262 of file GUIGlObject.cpp.
References GUIGlObjectStorage::changeName(), GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::setAdditionalID(), GNEDemandElement::setDemandElementID(), GNENetworkElement::setNetworkElementID(), GNENetHelper::AttributeCarriers::updateAdditionalID(), and GNENetHelper::AttributeCarriers::updateDemandElementID().
|
virtualinherited |
update GLObject (geometry, ID, etc.) (optional)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, and GNEWalkingArea.
Definition at line 250 of file GUIGlObject.cpp.
|
staticprivateinherited |
vector for TypeNames Initializer
Definition at line 52 of file GUIGlObject.h.
|
staticinherited |
Definition at line 73 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), and GUIViewTraffic::stopTrack().
|
staticinherited |
Definition at line 74 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::filterContextObjects(), GUIEdge::getClickPriority(), and GUILane::getClickPriority().
std::map<GUISUMOAbstractView*, int> GUIBaseVehicle::myAdditionalVisualizations |
Enabled visualisations, per view.
Definition at line 339 of file GUIBaseVehicle.h.
Referenced by addActiveAddVisualisation(), drawOnPos(), GUIVehicle::drawOutsideNetwork(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIBaseVehicle().
|
privateinherited |
whether the object can be deleted
Definition at line 324 of file GUIGlObject.h.
Referenced by GUIGlObject::isBlocked(), and GUIGlObject::setBlocked().
|
mutableprotected |
Definition at line 398 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), drawOnPos(), getContainerPosition(), and GUIBaseVehicle().
|
privateinherited |
full name of GL Object
Definition at line 318 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 309 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID().
|
privateinherited |
The type of the object.
Definition at line 312 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getClickPriority(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
privateinherited |
icon associatd with this GL Object
Definition at line 321 of file GUIGlObject.h.
Referenced by GUIGlObject::buildPopupHeader(), and GUIGlObject::getGLIcon().
|
mutableprotected |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 394 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawBestLanes(), and ~GUIBaseVehicle().
|
privateinherited |
ID of GL object.
Definition at line 315 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 327 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 407 of file GUIBaseVehicle.h.
Referenced by getPopUpMenu(), removedPopupMenu(), and ~GUIBaseVehicle().
|
private |
Definition at line 404 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 397 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 402 of file GUIBaseVehicle.h.
Referenced by drawAction_drawPersonsAndContainers(), drawAction_drawVehicleAsPolyWithCarriagges(), drawChargingInfo(), drawGLAdditional(), drawOnPos(), drawParkingInfo(), drawReversed(), drawRoute(), drawStopLabels(), getCenteringBoundary(), getDeviceDescription(), getNumContainers(), getNumPassengers(), getOptionalName(), getPopUpMenu(), getScaleValue(), getVehicle(), getVType(), GUIBaseVehicle(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdToggleStop(), and setColor().
|
staticinherited |
associates object types with strings
Definition at line 72 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GNESelectorFrame::SelectionOperation::loadFromFile(), and GNESelectorFrame::SelectionOperation::onCmdSave().