|
SUMO - Simulation of Urban MObility
|
#include <GUITriggeredRerouter.h>


Public Member Functions | |
| virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const |
| Draws additional, user-triggered visualisations. More... | |
| void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
| GUITriggeredRerouterEdge (GUIEdge *edge, GUITriggeredRerouter *parent, bool closed) | |
| virtual | ~GUITriggeredRerouterEdge () |
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... | |
Atomar getter methods | |
| const std::string & | getFullName () const |
| Returns the full name appearing in the tool tip. More... | |
| virtual const std::string & | getParentName () const |
| Returns the name of the parent object (if any) More... | |
| GUIGlID | getGlID () const |
| Returns the numerical id of the object. More... | |
interfaces to be implemented by derived classes | |
| const std::string & | getMicrosimID () const |
| Returns the id of the object as known to microsim. More... | |
| virtual void | setMicrosimID (const std::string &newID) |
| Changes the microsimID of the object (happens in NETEDIT) More... | |
| GUIGlObjectType | getType () const |
| Returns the type of the object as coded in GUIGlObjectType. More... | |
Parameter table window I/O | |
| void | addParameterTable (GUIParameterTableWindow *w) |
| Lets this object know a parameter window showing the object's values was opened. More... | |
| void | removeParameterTable (GUIParameterTableWindow *w) |
| Lets this object know a parameter window showing the object's values was closed. More... | |
Static Public Attributes | |
| static StringBijection< GUIGlObjectType > | TypeNames |
| associates object types with strings More... | |
Protected Member Functions | |
| void | setPrefix (const std::string &prefix) |
helper methods for building popup-menus | |
| void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
| Builds the header. More... | |
| void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to center to the object. More... | |
| void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds entries which allow to copy the name / typed name into the clipboard. More... | |
| void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to (de)select the object. More... | |
| void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to open the parameter window. More... | |
| void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
| void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to open the manipulator window. More... | |
Private Types | |
| typedef std::vector< Position > | PosCont |
| Definition of a positions container. More... | |
| typedef std::vector< SUMOReal > | RotCont |
| Definition of a rotation container. More... | |
Private Attributes | |
| const bool | myAmClosedEdge |
| whether this edge instance visualizes a closed edge More... | |
| Boundary | myBoundary |
| The boundary of this rerouter. More... | |
| MSEdge * | myEdge |
| The edge for which this visualization applies. More... | |
| PosCont | myFGPositions |
| The positions in full-geometry mode. More... | |
| RotCont | myFGRotations |
| The rotations in full-geometry mode. More... | |
| GUITriggeredRerouter * | myParent |
| The parent rerouter to which this edge instance belongs. More... | |
Definition at line 134 of file GUITriggeredRerouter.h.
|
private |
Definition of a positions container.
Definition at line 183 of file GUITriggeredRerouter.h.
|
private |
Definition of a rotation container.
Definition at line 186 of file GUITriggeredRerouter.h.
| GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge | ( | GUIEdge * | edge, |
| GUITriggeredRerouter * | parent, | ||
| bool | closed | ||
| ) |
Definition at line 317 of file GUITriggeredRerouter.cpp.
References Boundary::add(), MSEdge::getLanes(), PositionVector::length(), myBoundary, myFGPositions, myFGRotations, PositionVector::rotationDegreeAtOffset(), and SUMOReal.
|
virtual |
Definition at line 335 of file GUITriggeredRerouter.cpp.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
| [in] | w | The opened parameter window |
Definition at line 189 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 127 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 136 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 117 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::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 168 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 146 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(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 180 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 159 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
virtual |
Draws the object.
| [in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 353 of file GUITriggeredRerouter.cpp.
References GUIVisualizationSettings::addSize, MSTriggeredRerouter::RerouteInterval::closed, GLHelper::drawFilledCircle(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSNet::getInstance(), GUIGlObject::getType(), pfdkGetStringWidth(), pfDrawString(), pfSetPosition(), pfSetScale(), GUIVisualizationSettings::scale, SUMOReal, toString(), Position::x(), and Position::y().
|
inlinevirtualinherited |
Draws additional, user-triggered visualisations.
| [in] | parent | The view |
| [in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIBaseVehicle, GUIPerson, and GUIContainer.
Definition at line 190 of file GUIGlObject.h.
References UNUSED_PARAMETER.
|
inherited |
Definition at line 216 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), and GUIBaseVehicle::drawGL().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 451 of file GUITriggeredRerouter.cpp.
References Boundary::grow(), and GUITriggeredRerouter::myBoundary.
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 108 of file GUIGlObject.h.
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().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 123 of file GUIGlObject.h.
References GUIGlObject::myGlID.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GNELane::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIContainer::getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 154 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by GNETLSEditor::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getParentName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspector::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnector::updateDescription().
|
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 346 of file GUITriggeredRerouter.cpp.
|
inlinevirtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GUILane, and GNELane.
Definition at line 115 of file GUIGlObject.h.
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 339 of file GUITriggeredRerouter.cpp.
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 167 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNELane::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIBaseVehicle::drawGL(), drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GNEConnector::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
| [in] | w | The closed parameter window |
Definition at line 195 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
Changes the microsimID of the object (happens in NETEDIT)
Reimplemented in GNEEdge.
Definition at line 110 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
protectedinherited |
Definition at line 204 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
private |
whether this edge instance visualizes a closed edge
Definition at line 196 of file GUITriggeredRerouter.h.
|
private |
The boundary of this rerouter.
Definition at line 205 of file GUITriggeredRerouter.h.
Referenced by GUITriggeredRerouterEdge().
|
private |
The edge for which this visualization applies.
Definition at line 193 of file GUITriggeredRerouter.h.
|
private |
The positions in full-geometry mode.
Definition at line 199 of file GUITriggeredRerouter.h.
Referenced by GUITriggeredRerouterEdge().
|
private |
The rotations in full-geometry mode.
Definition at line 202 of file GUITriggeredRerouter.h.
Referenced by GUITriggeredRerouterEdge().
|
private |
The parent rerouter to which this edge instance belongs.
Definition at line 190 of file GUITriggeredRerouter.h.
|
staticinherited |
associates object types with strings
Definition at line 100 of file GUIGlObject.h.