![]() |
SUMO - Simulation of Urban MObility
|
#include <GUIPerson.h>
Data Structures | |
class | GUIPersonPopupMenu |
Public Types | |
typedef std::vector< MSTransportable::Stage * > | MSTransportablePlan |
the structure holding the plan of a transportable More... | |
enum | StageType { DRIVING = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2, WAITING_FOR_DEPART = 3 } |
enum | VisualisationFeatures { VO_SHOW_WALKINGAREA_PATH = 1, VO_SHOW_ROUTE = 2, VO_TRACKED = 8 } |
Additional visualisation feature ids. More... | |
Public Member Functions | ||||
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const | |||
draw name of item More... | ||||
virtual SUMOReal | getAngle () const | |||
return the current angle of the transportable More... | ||||
MSTransportable::Stage * | getCurrentStage () const | |||
Return the current stage. More... | ||||
std::string | getCurrentStageDescription () const | |||
Returns the current stage description as a string. More... | ||||
StageType | getCurrentStageType () const | |||
the current stage type of the transportable More... | ||||
SUMOTime | getDesiredDepart () const | |||
Returns the desired departure time. More... | ||||
const MSEdge & | getDestination () const | |||
Returns the current destination. More... | ||||
const MSEdge * | getEdge () const | |||
Returns the current edge. More... | ||||
const MSEdge * | getFromEdge () const | |||
Returns the departure edge. More... | ||||
const std::string & | getID () const | |||
returns the id of the transportable More... | ||||
const MSEdge & | getNextDestination () const | |||
Returns the destination after the current destination. More... | ||||
const std::string & | getNextEdge () const | |||
return the list of internal edges if this person is walking and the pedestrian model allows it More... | ||||
const MSEdge * | getNextEdgePtr () const | |||
returns the next edge ptr if this person is walking and the pedestrian model allows it More... | ||||
const SUMOVehicleParameter & | getParameter () const | |||
SUMOVehicle * | getVehicle () const | |||
The vehicle associated with this transportable. More... | ||||
const MSVehicleType & | getVehicleType () const | |||
GUIPerson (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan) | ||||
Constructor. More... | ||||
bool | isWaiting4Vehicle () const | |||
Whether the transportable waits for a vehicle. More... | ||||
bool | isWaitingFor (const std::string &line) const | |||
Whether the transportable waits for a vehicle of the line specified. More... | ||||
bool | proceed (MSNet *net, SUMOTime time) | |||
virtual void | routeOutput (OutputDevice &os) const | |||
Called on writing vehroute output. More... | ||||
void | setDeparted (SUMOTime now) | |||
logs depart time of the current stage More... | ||||
void | setPositionInVehicle (const Position &pos) | |||
virtual void | tripInfoOutput (OutputDevice &os) const | |||
Called on writing tripinfo output. More... | ||||
~GUIPerson () | ||||
destructor More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own parameter window. More... | ||||
Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
void | drawGL (const GUIVisualizationSettings &s) const | |||
Draws the object. More... | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additionally triggered visualisations. More... | ||||
inherited from MSPerson with added locking | ||||
SUMOReal | getEdgePos () const | |||
return the offset from the start of the current edge More... | ||||
Position | getPosition () const | |||
return the Network coordinate of the person More... | ||||
SUMOReal | getNaviDegree () const | |||
return the current angle of the person More... | ||||
SUMOReal | getWaitingSeconds () const | |||
the time this person spent waiting in seconds More... | ||||
SUMOReal | getSpeed () const | |||
the current speed of the person More... | ||||
Additional visualisations | ||||
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... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
virtual const std::string & | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) More... | ||||
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... | ||||
Data Fields | |
std::map< GUISUMOAbstractView *, int > | myAdditionalVisualizations |
Enabled visualisations, per view. More... | |
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
void | setPrefix (const std::string &prefix) |
usually names are prefixed by a type-specific string. this method can be used to change the default 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... | |
Protected Attributes | |
const SUMOVehicleParameter * | myParameter |
the plan of the transportable More... | |
MSTransportablePlan * | myPlan |
the plan of the transportable More... | |
MSTransportablePlan::iterator | myStep |
the iterator over the route More... | |
const MSVehicleType * | myVType |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary. More... | |
bool | myWriteEvents |
Whether events shall be written. More... | |
Static Protected Attributes | |
static const SUMOReal | ROADSIDE_OFFSET |
the offset for computing positions when standing at an edge More... | |
Private Member Functions | |
SUMOReal | getColorValue (int activeScheme) const |
gets the color value according to the current scheme index More... | |
void | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings More... | |
bool | setFunctionalColor (int activeScheme) const |
sets the color according to the current scheme index and some vehicle function More... | |
drawing helper methods | |
void | drawAction_drawAsTriangle (const GUIVisualizationSettings &s) const |
void | drawAction_drawAsPoly (const GUIVisualizationSettings &s) const |
void | drawAction_drawAsImage (const GUIVisualizationSettings &s) const |
void | drawAction_drawWalkingareaPath (const GUIVisualizationSettings &s) const |
Private Attributes | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
Position | myPositionInVehicle |
The position of a person while riding a vehicle. More... | |
Definition at line 61 of file GUIPerson.h.
|
inherited |
the structure holding the plan of a transportable
Definition at line 359 of file MSTransportable.h.
|
inherited |
Enumerator | |
---|---|
DRIVING | |
WAITING | |
MOVING_WITHOUT_VEHICLE | |
WAITING_FOR_DEPART |
Definition at line 60 of file MSTransportable.h.
Additional visualisation feature ids.
Enumerator | |
---|---|
VO_SHOW_WALKINGAREA_PATH |
show the current walkingarea path |
VO_SHOW_ROUTE |
show persons's current route |
VO_TRACKED |
track person |
Definition at line 195 of file GUIPerson.h.
GUIPerson::GUIPerson | ( | const SUMOVehicleParameter * | pars, |
const MSVehicleType * | vtype, | ||
MSTransportable::MSTransportablePlan * | plan | ||
) |
Constructor.
Definition at line 160 of file GUIPerson.cpp.
GUIPerson::~GUIPerson | ( | ) |
destructor
Definition at line 167 of file GUIPerson.cpp.
void GUIPerson::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 516 of file GUIPerson.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), and GUIPerson::GUIPersonPopupMenu::onCmdStartTrack().
|
inherited |
Definition at line 258 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 187 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 196 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 177 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
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.
Definition at line 237 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 206 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 249 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 219 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 228 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu().
|
private |
Definition at line 488 of file GUIPerson.cpp.
References drawAction_drawAsPoly(), GUITexturesHelper::drawTexturedBox(), MSTransportable::getAngle(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), GUIVisualizationSettings::personSize, PI, RAD2DEG, SUMOReal, and SVS_PEDESTRIAN.
Referenced by drawGL().
|
private |
Definition at line 462 of file GUIPerson.cpp.
References RGBColor::changedBrightness(), GLHelper::drawFilledCircle(), MSTransportable::getAngle(), GLHelper::getColor(), MSTransportable::getVehicleType(), GeomHelper::naviDegree(), and GLHelper::setColor().
Referenced by drawAction_drawAsImage(), and drawGL().
|
private |
Definition at line 440 of file GUIPerson.cpp.
References MSTransportable::getAngle(), GLHelper::getColor(), MSTransportable::getVehicleType(), PI, RAD2DEG, and GLHelper::setColor().
Referenced by drawGL().
|
private |
Definition at line 282 of file GUIPerson.cpp.
References GLHelper::drawBoxLines(), MSTransportable::getCurrentStage(), MSPerson::MSPersonStage_Walking::getPedestrianState(), GUIGlObject::getType(), MSPModel_Striping::PState::myWalkingAreaPath, setColor(), and MSPModel_Striping::WalkingAreaPath::shape.
Referenced by drawGL(), and drawGLAdditional().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 246 of file GUIPerson.cpp.
References drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), drawAction_drawWalkingareaPath(), GUIGlObject::drawName(), MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), getPosition(), GUIGlObject::getType(), MSTransportable::isWaiting4Vehicle(), myPositionInVehicle, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::scale, setColor(), SUMOReal, Position::x(), and Position::y().
Referenced by GUIVehicle::drawAction_drawPersonsAndContainers(), and GUIEdge::drawGL().
|
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 300 of file GUIPerson.cpp.
References RGBColor::changedBrightness(), drawAction_drawWalkingareaPath(), GLHelper::drawBoxLines(), GLHelper::getColor(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageType(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSPerson::MSPersonStage_Walking::getRoute(), GUILane::getShape(), GUILane::getShapeLengths(), GUILane::getShapeRotations(), GUIGlObject::getType(), hasActiveAddVisualisation(), MSTransportable::MOVING_WITHOUT_VEHICLE, GUIVisualizationSettings::personSize, setColor(), GLHelper::setColor(), SUMOReal, VO_SHOW_ROUTE, and VO_SHOW_WALKINGAREA_PATH.
|
inherited |
draw name of item
Definition at line 286 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), drawGL(), GUIPolygon::drawGL(), GNEVariableSpeedSignal::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNERouteProbe::drawGL(), GNEEdge::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNERerouter::drawGL(), and GUIBaseVehicle::drawOnPos().
|
virtualinherited |
return the current angle of the transportable
Reimplemented in GUIContainer.
Definition at line 364 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), and SUMOReal.
Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), GUIContainer::getAngle(), getNaviDegree(), TraCIServerAPI_Person::processGet(), setFunctionalColor(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 236 of file GUIPerson.cpp.
References Boundary::add(), getPosition(), MSTransportable::getVehicleType(), Boundary::grow(), and MAX2().
|
private |
gets the color value according to the current scheme index
Definition at line 385 of file GUIPerson.cpp.
References MSTransportable::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_PERSON, gSelected, GUISelectedStorage::isSelected(), MSTransportable::isWaiting4Vehicle(), and SUMOReal.
Referenced by setColor().
|
inlineinherited |
Return the current stage.
Definition at line 434 of file MSTransportable.h.
References MSTransportable::myStep, MSTransportable::Stage::routeOutput(), and MSTransportable::Stage::tripInfoOutput().
Referenced by drawAction_drawWalkingareaPath(), drawGLAdditional(), and MSEdge::transportable_by_position_sorter::operator()().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 429 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), getParameterWindow(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
the current stage type of the transportable
Definition at line 424 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), GUIContainer::drawGL(), drawGL(), drawGLAdditional(), GUIContainer::getColorValue(), getColorValue(), MSPerson::getNextEdgePtr(), and GUIContainer::getPosition().
|
inherited |
Returns the desired departure time.
Definition at line 344 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and MSTransportable::myParameter.
Referenced by MSTransportable::getVehicleType(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSContainer::tripInfoOutput(), and MSPerson::tripInfoOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 389 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), getParameterWindow(), MSDevice_Transportable::notifyLeave(), and MSDevice_Transportable::notifyMove().
|
inlineinherited |
Returns the current edge.
Definition at line 399 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), GUIContainer::getParameterWindow(), getParameterWindow(), GUIContainer::getPosition(), and TraCIServerAPI_Person::processGet().
|
virtual |
return the offset from the start of the current edge
Reimplemented from MSTransportable.
Definition at line 405 of file GUIPerson.cpp.
References MSTransportable::getEdgePos(), and myLock.
Referenced by getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Returns the departure edge.
Definition at line 404 of file MSTransportable.h.
References MSTransportable::Stage::getAngle(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage::getPosition(), MSTransportable::Stage::getSpeed(), MSTransportable::getWaitingSeconds(), and SUMOReal.
Referenced by GUIContainer::getParameterWindow(), and getParameterWindow().
|
inherited |
Definition at line 111 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inherited |
Returns the numerical id of the object.
Definition at line 123 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GUIVehicle::drawAction_drawPersonsAndContainers(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), drawGL(), GNEVariableSpeedSignal::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNERouteProbe::drawGL(), GNELane::drawGL(), GNEEdge::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIContainerStop::drawGL(), GNEPoly::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GNEConnection::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), GUIContainer::drawGLAdditional(), drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GNEJunction::getColorValue(), getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNECalibrator::GNECalibrator(), GNERouteProbe::GNERouteProbe(), GNEVaporizer::GNEVaporizer(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
inherited |
returns the id of the transportable
Definition at line 339 of file MSTransportable.cpp.
References SUMOVehicleParameter::id, and MSTransportable::myParameter.
Referenced by MSTransportableControl::abortWaiting(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSTransportableControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), getParameterWindow(), MSPedestrianPushButton::isActiveForEdge(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), MSDevice_Transportable::notifyLeave(), MSPModel_Striping::by_xpos_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSContainer::MSContainerStage_Driving::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSContainer::tripInfoOutput(), MSPerson::tripInfoOutput(), MSPModel_Striping::PState::walk(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 137 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getAttribute(), GNELane::getParentName(), GNENetElement::getParentName(), GNEDetectorE3::getParentName(), GNEVaporizer::getParentName(), GNEVariableSpeedSignal::getParentName(), GNERouteProbe::getParentName(), GNEStoppingPlace::getParentName(), GNECalibrator::getParentName(), GNEDetector::getParentName(), GNEAdditional::getParentName(), GNERerouter::getParentName(), GNEAdditional::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEEdge::moveGeometry(), GNEPoly::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspectorFrame::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnectorFrame::updateDescription().
SUMOReal GUIPerson::getNaviDegree | ( | ) | const |
return the current angle of the person
Definition at line 419 of file GUIPerson.cpp.
References MSTransportable::getAngle(), myLock, GeomHelper::naviDegree(), and SUMOReal.
Referenced by getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Returns the destination after the current destination.
Definition at line 394 of file MSTransportable.h.
References MSTransportable::myStep.
|
inherited |
return the list of internal edges if this person is walking and the pedestrian model allows it
Definition at line 316 of file MSPerson.cpp.
References StringUtils::emptyString, Named::getID(), and MSPerson::getNextEdgePtr().
|
inherited |
returns the next edge ptr if this person is walking and the pedestrian model allows it
Definition at line 335 of file MSPerson.cpp.
References MSTransportable::getCurrentStageType(), PedestrianState::getNextEdge(), MSPerson::MSPersonStage_Walking::getPedestrianState(), and MSTransportable::MOVING_WITHOUT_VEHICLE.
Referenced by MSPerson::getNextEdge(), and MSPedestrianPushButton::isActiveForEdge().
|
inlineinherited |
Definition at line 374 of file MSTransportable.h.
References MSTransportable::myParameter.
Referenced by MSTransportableControl::add(), getParameterWindow(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Person::processSet(), GUIContainer::setFunctionalColor(), and setFunctionalColor().
|
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.
Definition at line 205 of file GUIPerson.cpp.
References GUIParameterTableWindow::closeBuilding(), MSTransportable::getCurrentStageDescription(), MSTransportable::getDestination(), MSTransportable::getEdge(), getEdgePos(), MSTransportable::getFromEdge(), MSVehicleType::getID(), MSTransportable::getID(), MSVehicleType::getLength(), Parameterised::getMap(), MSVehicleType::getMaxSpeed(), MSVehicleType::getMinGap(), getNaviDegree(), MSTransportable::getParameter(), MSVehicleType::getParameter(), getSpeed(), getWaitingSeconds(), GUIParameterTableWindow::mkItem(), MSTransportable::myVType, and toString().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNERerouter, GNEAdditional, GNEAdditionalSet, GNEDetector, GNECalibrator, GNEStoppingPlace, GNERouteProbe, GNEVariableSpeedSignal, GNEVaporizer, GUILane, GNEDetectorE3, GNENetElement, and GNELane.
Definition at line 117 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 172 of file GUIPerson.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIGlObject::getGlID(), GUISUMOAbstractView::getTrackedID(), hasActiveAddVisualisation(), MID_HIDE_CURRENTROUTE, MID_HIDE_WALKINGAREA_PATH, MID_SHOW_CURRENTROUTE, MID_SHOW_WALKINGAREA_PATH, MID_START_TRACK, MID_STOP_TRACK, myAdditionalVisualizations, VO_SHOW_ROUTE, and VO_SHOW_WALKINGAREA_PATH.
|
virtual |
return the Network coordinate of the person
Reimplemented from MSTransportable.
Definition at line 412 of file GUIPerson.cpp.
References MSTransportable::getPosition(), myLock, and SUMOReal.
Referenced by drawGL(), getCenteringBoundary(), and setPositionInVehicle().
|
virtual |
the current speed of the person
Reimplemented from MSTransportable.
Definition at line 433 of file GUIPerson.cpp.
References MSTransportable::getSpeed(), and myLock.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 150 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), drawAction_drawWalkingareaPath(), GNEAdditionalSet::drawConnections(), GNEDetector::drawDetectorIcon(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), drawGL(), GNEVariableSpeedSignal::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNERouteProbe::drawGL(), GNELane::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE2::getAttribute(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEDetectorE3::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSignal::getAttribute(), GNERouteProbe::getAttribute(), GNEChargingStation::getAttribute(), GNECalibrator::getAttribute(), GNERerouter::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEJunction::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNESelectorFrame::handleIDs(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1::isValid(), GNEDetectorE2::isValid(), GNEContainerStop::isValid(), GNEBusStop::isValid(), GNEDetectorE3::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSignal::isValid(), GNERouteProbe::isValid(), GNEChargingStation::isValid(), GNECalibrator::isValid(), GNERerouter::isValid(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnectorFrame::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onDoubleClicked(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEDetectorEntry::setAttribute(), GNEDetectorExit::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE2::setAttribute(), GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEDetectorE3::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSignal::setAttribute(), GNERouteProbe::setAttribute(), GNEChargingStation::setAttribute(), GNECalibrator::setAttribute(), GNERerouter::setAttribute(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIVehicle, GUIBaseVehicle, and GUIMEVehicle.
Definition at line 129 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
inlineinherited |
The vehicle associated with this transportable.
Definition at line 463 of file MSTransportable.h.
|
inlineinherited |
Definition at line 378 of file MSTransportable.h.
References MSTransportable::getDesiredDepart(), MSTransportable::myVType, and MSTransportable::Stage::setDeparted().
Referenced by MSStoppingPlace::addTransportable(), GUIContainer::drawAction_drawAsImage(), drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), getCenteringBoundary(), MSPModel_Striping::PState::getImpatience(), MSPModel_Striping::PState::getLength(), MSPModel_Striping::PState::getMinGap(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::PState::otherStripe(), TraCIServerAPI_Person::processGet(), MSStoppingPlace::removeTransportable(), GUIContainer::setFunctionalColor(), and setFunctionalColor().
|
virtual |
the time this person spent waiting in seconds
Reimplemented from MSTransportable.
Definition at line 426 of file GUIPerson.cpp.
References MSTransportable::getWaitingSeconds(), myLock, and SUMOReal.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
bool GUIPerson::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 510 of file GUIPerson.cpp.
References myAdditionalVisualizations.
Referenced by drawGLAdditional(), and getPopUpMenu().
|
inlineinherited |
Whether the transportable waits for a vehicle.
Definition at line 458 of file MSTransportable.h.
Referenced by GUIContainer::drawGL(), drawGL(), GUIContainer::getColorValue(), and getColorValue().
|
inlineinherited |
Whether the transportable waits for a vehicle of the line specified.
Definition at line 453 of file MSTransportable.h.
Implements MSTransportable.
Definition at line 291 of file MSPerson.cpp.
References MSTransportable::Stage::getEdge(), MSTransportable::myPlan, MSTransportable::myStep, MSEdge::removePerson(), and MSTransportable::Stage::setArrived().
Referenced by MSPerson::MSPersonStage_Walking::moveToNextEdge().
void GUIPerson::removeActiveAddVisualisation | ( | 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 526 of file GUIPerson.cpp.
References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), and GUIPerson::GUIPersonPopupMenu::onCmdStopTrack().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 264 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 357 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSNet::getInstance(), OutputDevice::lf(), MSTransportable::myPlan, MSTransportable::myStep, OutputDevice::openTag(), SUMO_ATTR_DEPART, SUMO_ATTR_ID, SUMO_TAG_PERSON, time2string(), and OutputDevice::writeAttr().
|
private |
sets the color according to the currente settings
Definition at line 331 of file GUIPerson.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::personColorer, GLHelper::setColor(), and setFunctionalColor().
Referenced by drawAction_drawWalkingareaPath(), drawGL(), and drawGLAdditional().
|
inherited |
logs depart time of the current stage
Definition at line 349 of file MSTransportable.cpp.
References SUMOReal.
|
private |
sets the color according to the current scheme index and some vehicle function
Definition at line 340 of file GUIPerson.cpp.
References RGBColor::fromHSV(), MSTransportable::getAngle(), MSTransportable::getParameter(), MSTransportable::getVehicleType(), GeomHelper::naviDegree(), GLHelper::setColor(), SUMOReal, VEHPARS_COLOR_SET, and VTYPEPARS_COLOR_SET.
Referenced by setColor().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 143 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNEAdditional::setAdditionalID(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
inline |
Definition at line 119 of file GUIPerson.h.
References getEdgePos(), getNaviDegree(), getPosition(), getSpeed(), getWaitingSeconds(), myPositionInVehicle, and SUMOReal.
Referenced by GUIVehicle::drawAction_drawPersonsAndContainers().
|
protectedinherited |
usually names are prefixed by a type-specific string. this method can be used to change the default
Definition at line 273 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
virtualinherited |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 347 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::myPlan, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
staticinherited |
Definition at line 77 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
std::map<GUISUMOAbstractView*, int> GUIPerson::myAdditionalVisualizations |
Enabled visualisations, per view.
Definition at line 205 of file GUIPerson.h.
Referenced by addActiveAddVisualisation(), getPopUpMenu(), hasActiveAddVisualisation(), and removeActiveAddVisualisation().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 238 of file GUIPerson.h.
Referenced by getEdgePos(), getNaviDegree(), getPosition(), getSpeed(), and getWaitingSeconds().
|
protectedinherited |
the plan of the transportable
Definition at line 472 of file MSTransportable.h.
Referenced by MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getParameter(), and MSTransportable::~MSTransportable().
|
protectedinherited |
the plan of the transportable
Definition at line 482 of file MSTransportable.h.
Referenced by MSTransportable::MSTransportable(), MSContainer::proceed(), MSPerson::proceed(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSContainer::tripInfoOutput(), MSPerson::tripInfoOutput(), and MSTransportable::~MSTransportable().
|
private |
The position of a person while riding a vehicle.
Definition at line 241 of file GUIPerson.h.
Referenced by drawGL(), and setPositionInVehicle().
|
protectedinherited |
the iterator over the route
Definition at line 485 of file MSTransportable.h.
Referenced by MSTransportable::getCurrentStage(), MSTransportable::getNextDestination(), MSTransportable::MSTransportable(), MSContainer::proceed(), MSPerson::proceed(), MSContainer::routeOutput(), and MSPerson::routeOutput().
|
protectedinherited |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 476 of file MSTransportable.h.
Referenced by getParameterWindow(), and MSTransportable::getVehicleType().
|
protectedinherited |
Whether events shall be written.
Definition at line 479 of file MSTransportable.h.
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 469 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Waiting::getPosition(), and MSTransportable::Stage_Driving::getPosition().
|
staticinherited |
associates object types with strings
Definition at line 76 of file GUIGlObject.h.