![]() |
SUMO - Simulation of Urban MObility
|
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routeted to an internal dataTarget and to the editor (hence inheritance from FXDelegator) More...
#include <GNEInternalLane.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 double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
| draw name of item More... | ||||
| LinkState | getLinkState () const | |||
| whether link state has been modfied More... | ||||
| int | getTLIndex () const | |||
| get Traffic Light index More... | ||||
| GNEInternalLane (GNETLSEditorFrame *editor, const std::string &id, const PositionVector &shape, int tlIndex, LinkState state=LINKSTATE_DEADEND) | ||||
| FOX-declaration. More... | ||||
| long | onDefault (FXObject *, FXSelector, void *) | |||
| multiplexes message to two targets More... | ||||
| void | setLinkState (LinkState state) | |||
| set the linkState (controls drawing color) More... | ||||
| virtual | ~GNEInternalLane () | |||
| 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... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
| const std::string & | getFullName () const | |||
| virtual std::string | getParentName () const | |||
| Returns the name of the parent object (if any) More... | ||||
| GUIGlID | getGlID () const | |||
| Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
| virtual 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... | ||||
Static Public Member Functions | |
| static RGBColor | colorForLinksState (FXuint state) |
| return the color for each linkstate More... | |
Static Public Attributes | |
| static const GUIGlID | INVALID_ID = 0 |
| static const StringBijection< FXuint > | LinkStateNames |
| long names for link states More... | |
| static StringBijection< GUIGlObjectType > | TypeNames |
| associates object types with strings More... | |
Protected Member Functions | |
| void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
| void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
| GNEInternalLane () | |
| FOX needs this. 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... | |
Private Member Functions | |
| GNEInternalLane (const GNEInternalLane &) | |
| Invalidated copy constructor. More... | |
| GNEInternalLane & | operator= (const GNEInternalLane &) |
| Invalidated assignment operator. More... | |
Static Private Member Functions | |
| static const std::string & | longNameForLinkState (FXuint state) |
| return the color for each linkstate More... | |
Private Attributes | |
| GNETLSEditorFrame * | myEditor |
| the editor to inform about changes More... | |
| LinkState | myOrigState |
| the original state of the link (used for tracking modification) More... | |
| GUIGLObjectPopupMenu * | myPopup |
| the created popup More... | |
| const PositionVector | myShape |
| the shape of the edge More... | |
| FXuint | myState |
| the state of the link (used for visualization) More... | |
| FXDataTarget | myStateTarget |
| int | myTlIndex |
| the tl-index of this lane More... | |
| FXDataTarget | stateTarget |
| data target for selection state More... | |
computed only once (for performance) in updateGeometry(bool updateGrid) | |
The rotations of the shape parts | |
| std::vector< double > | myShapeRotations |
| std::vector< double > | myShapeLengths |
| The lengths of the shape parts. More... | |
Static Private Attributes | |
| static StringBijection< FXuint >::Entry | linkStateNamesValues [] |
| linkstates names values More... | |
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routeted to an internal dataTarget and to the editor (hence inheritance from FXDelegator)
Definition at line 44 of file GNEInternalLane.h.
| GNEInternalLane::GNEInternalLane | ( | GNETLSEditorFrame * | editor, |
| const std::string & | id, | ||
| const PositionVector & | shape, | ||
| int | tlIndex, | ||
| LinkState | state = LINKSTATE_DEADEND |
||
| ) |
FOX-declaration.
Constructor
| [in] | editor | The editor to notify about changes |
| [in] | id | The id of this internal lane |
| [in] | shape | The shape of the lane |
| [in] | tlIndex | The tl-index of the lane |
Definition at line 85 of file GNEInternalLane.cpp.
References Position::distanceTo2D(), M_PI, myShape, myShapeLengths, myShapeRotations, Position::x(), and Position::y().
|
virtual |
Destructor.
Definition at line 113 of file GNEInternalLane.cpp.
|
protected |
FOX needs this.
Definition at line 107 of file GNEInternalLane.cpp.
|
private |
Invalidated copy constructor.
|
inherited |
Definition at line 262 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 300 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 191 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 200 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 182 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::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 241 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 210 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 GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 277 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GUIPointOfInterest::getPopUpMenu(), and GNEPOI::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 253 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 223 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 232 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIPerson::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
static |
return the color for each linkstate
Definition at line 210 of file GNEInternalLane.cpp.
References RGBColor::BLACK, GUIVisualizationSettings::getLinkColor(), and LINKSTATE_TL_YELLOW_MINOR.
Referenced by drawGL(), GNEConnection::drawGL(), getPopUpMenu(), and GNELane::getPopUpMenu().
|
virtual |
Draws the object.
| [in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 137 of file GNEInternalLane.cpp.
References colorForLinksState(), GLHelper::drawBoxLines(), GLHelper::drawLine(), GUIGlObject::getGlID(), GLO_JUNCTION, myShape, myShapeLengths, myShapeRotations, myState, GUIVisualizationSettings::scale, and GLHelper::setColor().
|
virtualinherited |
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 161 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 329 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::scaledSize(), and GUIVisualizationTextSettings::show.
Referenced by GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIPointOfInterest::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEEdge::drawGL(), and GUIBaseVehicle::drawOnPos().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 202 of file GNEInternalLane.cpp.
References PositionVector::getBoxBoundary(), Boundary::grow(), and myShape.
|
inherited |
Definition at line 116 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inherited |
Returns the numerical id of the object.
Definition at line 128 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GUIGlObject::buildSelectionPopupEntry(), GNEAdditionalHandler::buildVaporizer(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), drawGL(), GNEVariableSpeedSign::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEParkingSpace::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GUIPerson::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrame::ACHierarchy::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
| LinkState GNEInternalLane::getLinkState | ( | ) | const |
whether link state has been modfied
Definition at line 162 of file GNEInternalLane.cpp.
References myState.
Referenced by GNETLSEditorFrame::handleChange().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 142 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEVaporizer::getParentName(), GNERouteProbe::getParentName(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEParkingSpace::getParentName(), GNEStoppingPlace::getParentName(), GNECalibratorVehicleType::getParentName(), GNECalibrator::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNEPOI::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GUIDialog_GLObjChooser::refreshList(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), GNEProhibitionFrame::updateDescription(), GNEConnectorFrame::updateDescription(), and GNEConnection::updateID().
|
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 192 of file GNEInternalLane.cpp.
References GUIParameterTableWindow::closeBuilding().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEPOI, GNEPoly, GNEDetector, GNECalibrator, GNECalibratorVehicleType, GNEStoppingPlace, GUILane, GNEParkingSpace, GNELane, GNECalibratorFlow, GNERerouter, GNEAccess, GNEVariableSpeedSign, GNEVariableSpeedSignStep, GNECalibratorRoute, GNEClosingLaneReroute, GNEClosingReroute, GNEParkingAreaReroute, GNEDestProbReroute, GNERerouterInterval, GNERouteProbReroute, GNEDetectorE3, GNERouteProbe, and GNEVaporizer.
Definition at line 122 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 174 of file GNEInternalLane.cpp.
References GUIGlObject::buildPopupHeader(), colorForLinksState(), StringBijection< T >::get(), MFXUtils::getFXColor(), StringBijection< T >::getStrings(), LinkStateNames, myEditor, myOrigState, and myPopup.
| int GNEInternalLane::getTLIndex | ( | ) | const |
get Traffic Light index
Definition at line 168 of file GNEInternalLane.cpp.
References myTlIndex.
Referenced by GNETLSEditorFrame::handleChange().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 155 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawChildConnections(), GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEParkingSpace::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEJunction::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getEdgesAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), 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::SelectingArea::processSelection(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISelectedStorage::toggleSelection(), and GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor().
|
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, GUIMEVehicle, GUIPerson, and GUIContainer.
Definition at line 134 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
staticprivate |
return the color for each linkstate
| long GNEInternalLane::onDefault | ( | FXObject * | obj, |
| FXSelector | sel, | ||
| void * | data | ||
| ) |
multiplexes message to two targets
Definition at line 117 of file GNEInternalLane.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIGLObjectPopupMenu::getParentView(), GNETLSEditorFrame::handleChange(), myEditor, myPopup, myState, and myStateTarget.
|
private |
Invalidated assignment operator.
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
| [in] | w | The closed parameter window |
Definition at line 268 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
| void GNEInternalLane::setLinkState | ( | LinkState | state | ) |
set the linkState (controls drawing color)
Definition at line 155 of file GNEInternalLane.cpp.
References myOrigState, and myState.
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 148 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
staticinherited |
Definition at line 70 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
static |
long names for link states
Definition at line 108 of file GNEInternalLane.h.
Referenced by getPopUpMenu(), and GNELane::getPopUpMenu().
|
staticprivate |
linkstates names values
Definition at line 150 of file GNEInternalLane.h.
|
private |
the editor to inform about changes
Definition at line 141 of file GNEInternalLane.h.
Referenced by getPopUpMenu(), and onDefault().
|
private |
the original state of the link (used for tracking modification)
Definition at line 135 of file GNEInternalLane.h.
Referenced by getPopUpMenu(), and setLinkState().
|
private |
the created popup
Definition at line 147 of file GNEInternalLane.h.
Referenced by getPopUpMenu(), and onDefault().
|
private |
the shape of the edge
Definition at line 119 of file GNEInternalLane.h.
Referenced by drawGL(), getCenteringBoundary(), and GNEInternalLane().
|
private |
The lengths of the shape parts.
Definition at line 127 of file GNEInternalLane.h.
Referenced by drawGL(), and GNEInternalLane().
|
private |
Definition at line 124 of file GNEInternalLane.h.
Referenced by drawGL(), and GNEInternalLane().
|
private |
the state of the link (used for visualization)
Definition at line 131 of file GNEInternalLane.h.
Referenced by drawGL(), getLinkState(), onDefault(), and setLinkState().
|
private |
Definition at line 132 of file GNEInternalLane.h.
Referenced by onDefault().
|
private |
the tl-index of this lane
Definition at line 144 of file GNEInternalLane.h.
Referenced by getTLIndex().
|
private |
data target for selection state
Definition at line 138 of file GNEInternalLane.h.
|
staticinherited |
associates object types with strings
Definition at line 69 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().