![]() |
SUMO - Simulation of Urban MObility
|
#include <GUIGlObject.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... | ||||
| GUIGlObject (GUIGlObjectType type, const std::string µsimID) | ||||
| Constructor. More... | ||||
| virtual | ~GUIGlObject () | |||
| Destructor. 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 GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)=0 | |||
| Returns an own popup-menu. More... | ||||
| virtual GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0 | |||
| Returns an own parameter window. More... | ||||
| 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... | ||||
| virtual Boundary | getCenteringBoundary () const =0 | |||
| virtual void | drawGL (const GUIVisualizationSettings &s) const =0 | |||
| Draws the object. 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 Attributes | |
| static const GUIGlID | INVALID_ID = 0 |
| static StringBijection< GUIGlObjectType > | TypeNames |
| associates object types with strings More... | |
Protected Member Functions | |
| void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
| void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
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 | |
| std::string | createFullName () const |
| create full name More... | |
| GUIGlObject (const GUIGlObject &)=delete | |
| Invalidated copy constructor. More... | |
| GUIGlObject & | operator= (const GUIGlObject &)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| std::string | myFullName |
| full name of GL Object More... | |
| GUIGlID | myGlID |
| The numerical id of the object. More... | |
| const GUIGlObjectType | myGLObjectType |
| The type of the object. More... | |
| std::string | myMicrosimID |
| ID of GL object. More... | |
| std::set< GUIParameterTableWindow * > | myParamWindows |
| Parameter table windows which refer to this object. More... | |
Static Private Attributes | |
| static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
| LinkStates (Currently unused) More... | |
Definition at line 66 of file GUIGlObject.h.
| GUIGlObject::GUIGlObject | ( | GUIGlObjectType | type, |
| const std::string & | microsimID | ||
| ) |
Constructor.
This is the standard constructor that assures that the object is known and its id is unique. Use it always :-)
| [in] | type | The GUIGlObjectType type |
| [in] | microsimID | unique ID |
Definition at line 96 of file GUIGlObject.cpp.
References createFullName(), GUIGlObjectStorage::gIDStorage, GLO_ADDITIONAL, myFullName, myGlID, myGLObjectType, and GUIGlObjectStorage::registerObject().
|
virtual |
Destructor.
Definition at line 106 of file GUIGlObject.cpp.
References getGlID(), GUIGlObjectStorage::gIDStorage, myParamWindows, GUIGlObjectStorage::remove(), and GLObjectValuePassConnector< T >::removeObject().
|
privatedelete |
Invalidated copy constructor.
| void GUIGlObject::addParameterTable | ( | GUIParameterTableWindow * | w | ) |
Definition at line 262 of file GUIGlObject.cpp.
References myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
protected |
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 buildCenterPopupEntry(), buildNameCopyPopupEntry(), buildPopupHeader(), buildPositionCopyEntry(), buildSelectionPopupEntry(), and buildShowParamsPopupEntry().
|
protected |
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 buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protected |
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 buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds the header.
Definition at line 182 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and getFullName().
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protected |
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 buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protected |
Builds an entry which allows to (de)select the object.
Definition at line 210 of file GUIGlObject.cpp.
References getGlID(), GUIIconSubSys::getIcon(), getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
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 buildCenterPopupEntry(), buildNameCopyPopupEntry(), buildPopupHeader(), buildPositionCopyEntry(), buildSelectionPopupEntry(), and buildShowParamsPopupEntry().
Referenced by GUIPointOfInterest::getPopUpMenu(), and GNEPOI::getPopUpMenu().
|
protected |
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().
|
protected |
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 buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protected |
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().
|
private |
create full name
Definition at line 323 of file GUIGlObject.cpp.
References getMicrosimID(), StringBijection< T >::getString(), myGLObjectType, and TypeNames.
Referenced by GUIGlObject(), and setMicrosimID().
|
pure virtual |
Draws the object.
| [in] | s | The settings for the current view (may influence drawing) |
Implemented in GNEAdditional, GUILane, GUIBaseVehicle, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEEdge, GUIInductLoop::MyWrapper, GNEPOI, GNENet, GNEPoly, GUIE2Collector::MyWrapper, GUINet, GUIEdge, GUIParkingArea, GUIBusStop, GNENetElement, GUIContainerStop, GUIChargingStation, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GNEConnection, GNELane, GNEDetector, GUIPointOfInterest, GUIJunctionWrapper, GNECalibrator, GUIPerson, GUICalibrator, GUIContainer, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPolygon, GNECalibratorVehicleType, GNEStoppingPlace, GNEParkingSpace, GUIMEInductLoop::MyWrapper, GUITrafficLightLogicWrapper, GNEAccess, GNECalibratorFlow, GNERerouter, GNEVariableSpeedSign, GNEVariableSpeedSignStep, GNECalibratorRoute, GNEClosingLaneReroute, GNEClosingReroute, GNEParkingAreaReroute, GNEInternalLane, GNEDestProbReroute, GNERerouterInterval, GNERouteProbReroute, GNECrossing, GNEJunction, GNEDetectorE3, GNERouteProbe, GNEVaporizer, GNEDetectorE2, GNEParkingArea, GNEBusStop, GNEContainerStop, GNEDetectorE1, GNEDetectorEntry, GNEDetectorExit, GNEDetectorE1Instant, and GNEChargingStation.
|
virtual |
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.
| void GUIGlObject::drawName | ( | const Position & | pos, |
| const double | scale, | ||
| const GUIVisualizationTextSettings & | settings, | ||
| const double | angle = 0 |
||
| ) | const |
draw name of item
Definition at line 329 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::scaledSize(), and GUIVisualizationTextSettings::show.
Referenced by GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::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().
|
pure virtual |
Implemented in GNEAdditional, GUILane, GNEEdge, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUIBaseVehicle, GUIInductLoop::MyWrapper, GNEPOI, GNEPoly, GNENet, GUIE2Collector::MyWrapper, GUINet, GUIEdge, GUIParkingArea, GUIBusStop, GNENetElement, GUIContainerStop, GUIChargingStation, GUITriggeredRerouter, GNEConnection, GUIE3Collector::MyWrapper, GNELane, GUIPointOfInterest, GUIJunctionWrapper, GUIMEInductLoop::MyWrapper, GUIPerson, GUICalibrator, GUIContainer, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPolygon, GUITrafficLightLogicWrapper, GNEInternalLane, GNECrossing, and GNEJunction.
Referenced by SUMORTree::addAdditionalGLObject(), GUISUMOAbstractView::centerTo(), and SUMORTree::removeAdditionalGLObject().
| const std::string & GUIGlObject::getFullName | ( | ) | const |
Definition at line 116 of file GUIGlObject.cpp.
References myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), 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().
| GUIGlID GUIGlObject::getGlID | ( | ) | const |
Returns the numerical id of the object.
Definition at line 128 of file GUIGlObject.cpp.
References myGlID.
Referenced by GUIMessageWindow::appendMsg(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), 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(), GNEInternalLane::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(), and GUIPerson::~GUIPerson().
|
virtual |
Returns the id of the object as known to microsim.
Definition at line 142 of file GUIGlObject.cpp.
References myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::controlsEdge(), createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), 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().
|
pure virtual |
Returns an own parameter window.
| [in] | app | The application needed to build the parameter window |
| [in] | parent | The parent window needed to build the parameter window |
Implemented in GNEAdditional, GUILane, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEPOI, GUIInductLoop::MyWrapper, GNEPoly, GNENet, GUIE2Collector::MyWrapper, GUINet, GUIVehicle, GUIBaseVehicle, GUIMEVehicle, GUIEdge, GUIParkingArea, GUIBusStop, GUIChargingStation, GUIContainerStop, GNENetElement, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GUIPointOfInterest, GUIJunctionWrapper, GUICalibrator, GUIInstantInductLoop::MyWrapper, GUIMEInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPolygon, GUIPerson, GUIContainer, GUITrafficLightLogicWrapper, and GNEInternalLane.
Referenced by GUIGLObjectPopupMenu::onCmdShowPars().
|
virtual |
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().
|
pure 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 |
Implemented in GNEAdditional, GUILane, GNEEdge, GUIBaseVehicle, GNEPOI, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEPoly, GNENet, GUINet, GNENetElement, GUIEdge, GNEConnection, GNELane, GUIParkingArea, GUIBusStop, GUIChargingStation, GUIContainerStop, GUITriggeredRerouter, GUIPointOfInterest, GUIJunctionWrapper, GUICalibrator, GNECrossing, GNEJunction, GUILaneSpeedTrigger, GUIPerson, GUIPolygon, GUIContainer, GNEInternalLane, GUITrafficLightLogicWrapper, and GUIDetectorWrapper.
Referenced by GUISUMOAbstractView::openObjectDialog().
| GUIGlObjectType GUIGlObject::getType | ( | ) | const |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 155 of file GUIGlObject.cpp.
References myGLObjectType.
Referenced by 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().
|
virtual |
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().
|
privatedelete |
Invalidated assignment operator.
| void GUIGlObject::removeParameterTable | ( | GUIParameterTableWindow * | w | ) |
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 myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtual |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 148 of file GUIGlObject.cpp.
References createFullName(), myFullName, and myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
staticprivate |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 262 of file GUIGlObject.h.
|
static |
Definition at line 70 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
private |
full name of GL Object
Definition at line 245 of file GUIGlObject.h.
Referenced by getFullName(), GUIGlObject(), and setMicrosimID().
|
private |
The numerical id of the object.
Definition at line 236 of file GUIGlObject.h.
Referenced by getGlID(), and GUIGlObject().
|
private |
The type of the object.
Definition at line 239 of file GUIGlObject.h.
Referenced by createFullName(), getType(), and GUIGlObject().
|
private |
ID of GL object.
Definition at line 242 of file GUIGlObject.h.
Referenced by getMicrosimID(), and setMicrosimID().
|
private |
Parameter table windows which refer to this object.
Definition at line 248 of file GUIGlObject.h.
Referenced by addParameterTable(), removeParameterTable(), and ~GUIGlObject().
|
static |
associates object types with strings
Definition at line 69 of file GUIGlObject.h.
Referenced by createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().