![]() |
Eclipse 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 const std::string | getOptionalName () const | |||
Returns the name of the object (default "") 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... | ||||
virtual double | getColorValue (const GUIVisualizationSettings &, int) const | |||
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 118 of file GUIGlObject.cpp.
References createFullName(), GUIGlObjectStorage::gIDStorage, GLO_ADDITIONAL, myFullName, myGlID, myGLObjectType, and GUIGlObjectStorage::registerObject().
|
virtual |
Destructor.
Definition at line 128 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 288 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 326 of file GUIGlObject.cpp.
References buildCenterPopupEntry(), buildNameCopyPopupEntry(), buildPopupHeader(), buildPositionCopyEntry(), buildSelectionPopupEntry(), and buildShowParamsPopupEntry().
|
protected |
Builds an entry which allows to center to the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 217 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protected |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 226 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 208 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and getFullName().
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 267 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protected |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 236 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(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::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 303 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 279 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 249 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by buildAdditionalsPopupOptions(), buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protected |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 258 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
private |
create full name
Definition at line 349 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 GUINet, GNEDemandElement, GNEAdditional, GNEDetector, GNEStoppingPlace, GNENetElement, GNEVehicle, GUILane, GNEPerson, GUIInductLoop::MyWrapper, GNEEdge, GUIBaseVehicle, GNERoute, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEPOI, GNEPoly, GNEWalk, GNENet, GNEPersonTrip, GNERide, GUIE2Collector::MyWrapper, GUIEdge, GUIParkingArea, GNELane, GNEStop, GUIBusStop, GNEConnection, GUIContainerStop, GUIChargingStation, GUITriggeredRerouter, GNEDetectorE2, GUIE3Collector::MyWrapper, GNEVehicleType, GNETAZ, GNECalibrator, GUIPointOfInterest, GUIJunctionWrapper, GUICalibrator, GNEJunction, GUIContainer, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPerson, GUIPolygon, GNECrossing, GNEDetectorE1Instant, GUIMEInductLoop::MyWrapper, GUITrafficLightLogicWrapper, GNEAccess, GNERerouter, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNEInternalLane, GNEDetectorEntryExit, GNECalibratorFlow, GNEDetectorE1, GNEVariableSpeedSignStep, GNEParkingAreaReroute, GNEParkingSpace, GNEClosingLaneReroute, GNEDestProbReroute, GNEDetectorE3, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, GNEVaporizer, GNEParkingArea, GNEBusStop, GNEChargingStation, and GNEContainerStop.
|
virtual |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIBaseVehicle, GUIContainer, and GUIPerson.
Definition at line 187 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 355 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIContainer::drawGL(), GNEJunction::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
|
pure virtual |
Implemented in GUINet, GNEDemandElement, GNEAdditional, GNENetElement, GNEStoppingPlace, GNEVehicle, GUILane, GNEPerson, GUIInductLoop::MyWrapper, GNERoute, GNEEdge, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUIBaseVehicle, GNEWalk, GNEPersonTrip, GNENet, GNERide, GUIE2Collector::MyWrapper, GUIEdge, GNELane, GNEPOI, GNEStop, GUIParkingArea, GNEConnection, GUIBusStop, GUIContainerStop, GUIChargingStation, GNEDetector, GUITriggeredRerouter, GNEPoly, GNEVehicleType, GUIE3Collector::MyWrapper, GUIPointOfInterest, GUIJunctionWrapper, GUIMEInductLoop::MyWrapper, GUICalibrator, GNEJunction, GNECalibrator, GUIContainer, GUIInstantInductLoop::MyWrapper, GUIPerson, GUILaneSpeedTrigger, GUIPolygon, GNECrossing, GUITrafficLightLogicWrapper, GNEInternalLane, GNEAccess, GNERerouter, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNECalibratorFlow, GNEParkingSpace, GNEVariableSpeedSignStep, GNEDetectorE3, GNEParkingAreaReroute, GNEClosingLaneReroute, GNEDestProbReroute, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, GNEVaporizer, GNETAZ, GNEParkingArea, GNEBusStop, GNEChargingStation, and GNEContainerStop.
Referenced by SUMORTree::addAdditionalGLObject(), GUISUMOAbstractView::centerTo(), and SUMORTree::removeAdditionalGLObject().
|
inlinevirtual |
Reimplemented in GUIBaseVehicle, GNEJunction, GUILane, GUIPerson, GUIContainer, GNELane, GUIEdge, GUIJunctionWrapper, GUIVehicle, and GUIMEVehicle.
Definition at line 148 of file GUIGlObject.h.
Referenced by GNEPerson::drawGL(), GNEPerson::setColor(), and GUISUMOAbstractView::showToolTipFor().
const std::string & GUIGlObject::getFullName | ( | ) | const |
Definition at line 138 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(), and GUISelectedStorage::save().
GUIGlID GUIGlObject::getGlID | ( | ) | const |
Returns the numerical id of the object.
Definition at line 150 of file GUIGlObject.cpp.
References myGlID.
Referenced by GUIMessageWindow::appendMsg(), buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEInternalLane::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GNEDetectorE1Instant::drawGL(), GNECrossing::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIContainer::drawGL(), GNEJunction::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIPointOfInterest::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GNEStop::drawGL(), GNELane::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEPerson::drawGL(), GUILane::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GUIPerson::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIViewTraffic::onGamingClick(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEVehicleType::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEVehicleType::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), ~GUIGlObject(), and GUIPerson::~GUIPerson().
|
virtual |
Returns the id of the object as known to microsim.
Definition at line 164 of file GUIGlObject.cpp.
References myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNETLSEditorFrame::controlsEdge(), createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEDemandElement::getDemandElementID(), GNEDialogACChooser::getObjectName(), GUIDialog_GLObjChooser::getObjectName(), GNEDetectorE3::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEVehicleType::getParentName(), GNETAZ::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNERide::getParentName(), GNEPersonTrip::getParentName(), GNEPOI::getParentName(), GNEWalk::getParentName(), GNERoute::getParentName(), GNEPerson::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnection::updateID().
|
virtual |
Returns the name of the object (default "")
Reimplemented in GNEAdditional, GNEEdge, GUIBaseVehicle, GUIEdge, GUIParkingArea, GUIBusStop, GUIContainerStop, and GUIChargingStation.
Definition at line 169 of file GUIGlObject.cpp.
Referenced by GUIDialog_GLObjChooser::getObjectName().
|
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 GUIBaseVehicle, GUINet, GNEDemandElement, GNEAdditional, GUILane, GUIInductLoop::MyWrapper, GNEPOI, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEPoly, GNENet, GUIE2Collector::MyWrapper, GUIMEVehicle, GUIVehicle, GUIEdge, GUIParkingArea, GUIBusStop, GUIChargingStation, GUIContainerStop, GNENetElement, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GUIPointOfInterest, GUIJunctionWrapper, GUICalibrator, GUIInstantInductLoop::MyWrapper, GUIMEInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPolygon, GUIContainer, GUIPerson, GUITrafficLightLogicWrapper, and GNEInternalLane.
Referenced by GUIGLObjectPopupMenu::onCmdShowPars().
|
virtual |
Returns the name of the parent object (if any)
Reimplemented in GNEVehicle, GNEPerson, GNERoute, GNEWalk, GNEPOI, GNEPersonTrip, GNERide, GNEPoly, GNEDetector, GNEStoppingPlace, GNEStop, GNETAZ, GNECalibrator, GNEVehicleType, GNELane, GUILane, GNERerouter, GNEAccess, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNECalibratorFlow, GNEVariableSpeedSignStep, GNEParkingAreaReroute, GNEParkingSpace, GNEClosingLaneReroute, GNEDestProbReroute, GNEDetectorE3, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, and GNEVaporizer.
Definition at line 144 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 GNENetElement, GUINet, GNEDemandElement, GNEVehicle, GNEAdditional, GNEPerson, GUILane, GNEEdge, GNERoute, GUIBaseVehicle, GNEPOI, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNEPoly, GNEWalk, GNEPersonTrip, GNERide, GNENet, GNEConnection, GNELane, GUIEdge, GUIParkingArea, GUIBusStop, GUIChargingStation, GNEJunction, GUIContainerStop, GUITriggeredRerouter, GNECrossing, GUIPointOfInterest, GUIJunctionWrapper, GUICalibrator, GUILaneSpeedTrigger, GUIPolygon, GUIContainer, GUIPerson, GNEInternalLane, GUITrafficLightLogicWrapper, and GUIDetectorWrapper.
Referenced by GNEViewNet::openObjectDialog(), and GUISUMOAbstractView::openObjectDialog().
GUIGlObjectType GUIGlObject::getType | ( | ) | const |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 181 of file GUIGlObject.cpp.
References myGLObjectType.
Referenced by buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1Instant::drawGL(), GNECrossing::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIContainer::drawGL(), GNEJunction::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEConnection::drawGL(), GUIBusStop::drawGL(), GNEStop::drawGL(), GNELane::drawGL(), GUIParkingArea::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEPerson::drawGL(), GUILane::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GNEJunction::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNENetElement::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNENetElement::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), and GNEVehicle::unselectAttributeCarrier().
|
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 GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIContainer, and GUIPerson.
Definition at line 156 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 294 of file GUIGlObject.cpp.
References myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtual |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 174 of file GUIGlObject.cpp.
References createFullName(), myFullName, and myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
staticprivate |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 269 of file GUIGlObject.h.
|
static |
Definition at line 70 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
|
private |
full name of GL Object
Definition at line 252 of file GUIGlObject.h.
Referenced by getFullName(), GUIGlObject(), and setMicrosimID().
|
private |
The numerical id of the object.
Definition at line 243 of file GUIGlObject.h.
Referenced by getGlID(), and GUIGlObject().
|
private |
The type of the object.
Definition at line 246 of file GUIGlObject.h.
Referenced by createFullName(), getType(), and GUIGlObject().
|
private |
ID of GL object.
Definition at line 249 of file GUIGlObject.h.
Referenced by getMicrosimID(), and setMicrosimID().
|
private |
Parameter table windows which refer to this object.
Definition at line 255 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().