![]() |
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... | ||||
GUIGlObject (const std::string &prefix, 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 const std::string & | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
virtual 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 | setPrefix (const std::string &prefix) |
usually names are prefixed by a type-specific string. this method can be used to change the default More... | |
helper methods for building popup-menus | |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. More... | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. More... | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. More... | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. More... | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. More... | |
void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. More... | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. More... | |
Private Member Functions | |
std::string | createFullName () const |
create full name More... | |
GUIGlObject (const GUIGlObject &) | |
Invalidated copy constructor. More... | |
GUIGlObject & | operator= (const GUIGlObject &) |
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... | |
std::string | myPrefix |
prefix of GL Object More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
Definition at line 73 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] | fullName | The complete name, including a type-prefix |
Definition at line 82 of file GUIGlObject.cpp.
References createFullName(), GUIGlObjectStorage::gIDStorage, myFullName, myGlID, and GUIGlObjectStorage::registerObject().
GUIGlObject::GUIGlObject | ( | const std::string & | prefix, |
GUIGlObjectType | type, | ||
const std::string & | microsimID | ||
) |
Constructor.
This constructor should be used only for compound objects, that share visualization. Use it only if you know what you are doing.
[in] | fullName | The complete name, including a type-prefix |
Definition at line 91 of file GUIGlObject.cpp.
References createFullName(), GUIGlObjectStorage::gIDStorage, myFullName, myGlID, and GUIGlObjectStorage::registerObject().
|
virtual |
Destructor.
Definition at line 100 of file GUIGlObject.cpp.
References getGlID(), GUIGlObjectStorage::gIDStorage, myParamWindows, and GUIGlObjectStorage::remove().
|
private |
Invalidated copy constructor.
void GUIGlObject::addParameterTable | ( | GUIParameterTableWindow * | w | ) |
Definition at line 256 of file GUIGlObject.cpp.
References myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
protected |
Builds an entry which allows to center to the object.
Definition at line 185 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 194 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds the header.
Definition at line 175 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::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 235 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds an entry which allows to (de)select the object.
Definition at line 204 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 GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds an entry which allows to open the manipulator window.
Definition at line 247 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 217 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protected |
Builds an entry which allows to open the type parameter window.
Definition at line 226 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 278 of file GUIGlObject.cpp.
References getMicrosimID(), and myPrefix.
Referenced by GUIGlObject(), setMicrosimID(), and setPrefix().
|
pure virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implemented in GUILane, GNEAdditional, GUIBaseVehicle, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUIInductLoop::MyWrapper, GNECalibrator, GUIE2Collector::MyWrapper, GNENet, GUINet, GUIEdge, GUIParkingArea, GNEConnection, GUIBusStop, GNEPoly, GUIContainerStop, GUIChargingStation, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GNELane, GNEDetectorE3, GNEEdge, GNEChargingStation, GUIJunctionWrapper, GNEDetector, GNERerouter, GUIPerson, GUIPointOfInterest, GNEStoppingPlace, GUICalibrator, GNENetElement, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GNERouteProbe, GUIPolygon, GNEVariableSpeedSign, GUIContainer, GNEVaporizer, GUIMEInductLoop::MyWrapper, GNECrossing, GUITrafficLightLogicWrapper, GNEJunction, GNEInternalLane, GNEBusStop, GNEContainerStop, GNEDetectorE2, GNEDetectorEntry, GNEDetectorExit, and GNEDetectorE1.
|
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 154 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 284 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GUIPolygon::drawGL(), GNERouteProbe::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEDetectorE3::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::drawGL(), and GUIBaseVehicle::drawOnPos().
|
pure virtual |
Implemented in GUILane, GNEAdditional, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUIBaseVehicle, GUIInductLoop::MyWrapper, GUIE2Collector::MyWrapper, GUINet, GNENet, GUIEdge, GUIParkingArea, GNEConnection, GUIBusStop, GUIContainerStop, GUIChargingStation, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GNELane, GNEEdge, GUIJunctionWrapper, GUIMEInductLoop::MyWrapper, GUIPerson, GUIPointOfInterest, GNENetElement, GUICalibrator, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIPolygon, GUIContainer, GNECrossing, GNEJunction, GUITrafficLightLogicWrapper, and GNEInternalLane.
Referenced by SUMORTree::addAdditionalGLObject(), GUISUMOAbstractView::centerTo(), and SUMORTree::removeAdditionalGLObject().
const std::string & GUIGlObject::getFullName | ( | ) | const |
Definition at line 109 of file GUIGlObject.cpp.
References myFullName.
Referenced by buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
GUIGlID GUIGlObject::getGlID | ( | ) | const |
Returns the numerical id of the object.
Definition at line 121 of file GUIGlObject.cpp.
References myGlID.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIVehicle::drawAction_drawPersonsAndContainers(), GNEDetectorE1::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEVaporizer::drawGL(), GUIContainer::drawGL(), GNEVariableSpeedSign::drawGL(), GUIPolygon::drawGL(), GNERouteProbe::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNEDetectorE3::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEPoly::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::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(), GNELane::getColorValue(), GNEJunction::getColorValue(), GUILane::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNECalibrator::GNECalibrator(), GNERouteProbe::GNERouteProbe(), GNEVaporizer::GNEVaporizer(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEViewNet::onCmdRevertRestriction(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), GUIBaseVehicle::~GUIBaseVehicle(), ~GUIGlObject(), and GUIPerson::~GUIPerson().
|
virtual |
Returns the id of the object as known to microsim.
Definition at line 135 of file GUIGlObject.cpp.
References myMicrosimID.
Referenced by GNEAdditional::changeEdge(), GNEAdditional::changeLane(), GNETLSEditorFrame::controlsEdge(), createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), drawName(), GNEAdditional::getAdditionalID(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNEConnection::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNENetElement::getParentName(), GNELane::getParentName(), GNEVaporizer::getParentName(), GNEVariableSpeedSign::getParentName(), GNERouteProbe::getParentName(), GNEStoppingPlace::getParentName(), GNERerouter::getParentName(), GNEDetector::getParentName(), GNEDetectorE3::getParentName(), GNECalibrator::getParentName(), GNEAdditional::getParentName(), GNEAdditional::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEInspectorFrame::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENet::splitEdge(), 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 GUILane, GNEAdditional, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUIInductLoop::MyWrapper, GUIE2Collector::MyWrapper, GNENet, GUINet, GUIVehicle, GUIBaseVehicle, GUIEdge, GUIMEVehicle, GNEConnection, GUIParkingArea, GUIBusStop, GUIChargingStation, GUIContainerStop, GUITriggeredRerouter, GUIE3Collector::MyWrapper, GNEEdge, GNELane, GUIJunctionWrapper, GNENetElement, GUIPointOfInterest, GUICalibrator, GUIInstantInductLoop::MyWrapper, GUILaneSpeedTrigger, GUIMEInductLoop::MyWrapper, GUIPerson, GUIPolygon, GUIContainer, GNECrossing, GNEJunction, GUITrafficLightLogicWrapper, and GNEInternalLane.
Referenced by GUIGLObjectPopupMenu::onCmdShowPars().
|
virtual |
Returns the name of the parent object (if any)
Reimplemented in GNEAdditional, GNECalibrator, GNEDetectorE3, GNEDetector, GNERerouter, GNEStoppingPlace, GNERouteProbe, GNEVariableSpeedSign, GNEVaporizer, GUILane, GNELane, and GNENetElement.
Definition at line 115 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 GUILane, GNEAdditional, GUIBaseVehicle, GUITriggeredRerouter::GUITriggeredRerouterEdge, GNENet, GNEPoly, GUINet, GUIEdge, GNEConnection, GUIParkingArea, GUIBusStop, GUIChargingStation, GUIContainerStop, GNEEdge, GUITriggeredRerouter, GNELane, GUIJunctionWrapper, GNENetElement, GUIPointOfInterest, GUICalibrator, GUILaneSpeedTrigger, GUIPerson, GNECrossing, GUIPolygon, GUIContainer, GNEJunction, 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 148 of file GUIGlObject.cpp.
References myGLObjectType.
Referenced by buildSelectionPopupEntry(), GUIVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEDetector::drawDetectorIcon(), GNEDetectorE1::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNERouteProbe::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNEDetectorE3::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawParentAndChildrenConnections(), GNEJunction::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNELane::getColorValue(), GNEJunction::getColorValue(), GUILane::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNESelectorFrame::handleIDs(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnectorFrame::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
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, and GUIPerson.
Definition at line 127 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
private |
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 262 of file GUIGlObject.cpp.
References myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtual |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 141 of file GUIGlObject.cpp.
References createFullName(), myFullName, and myMicrosimID.
Referenced by GNENet::renameJunction(), GNEAdditional::setAdditionalID(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
protected |
usually names are prefixed by a type-specific string. this method can be used to change the default
Definition at line 271 of file GUIGlObject.cpp.
References createFullName(), myFullName, and myPrefix.
|
staticprivate |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 278 of file GUIGlObject.h.
|
static |
Definition at line 77 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
private |
full name of GL Object
Definition at line 261 of file GUIGlObject.h.
Referenced by getFullName(), GUIGlObject(), setMicrosimID(), and setPrefix().
|
private |
The numerical id of the object.
Definition at line 249 of file GUIGlObject.h.
Referenced by getGlID(), and GUIGlObject().
|
private |
|
private |
ID of GL object.
Definition at line 255 of file GUIGlObject.h.
Referenced by getMicrosimID(), and setMicrosimID().
|
private |
Parameter table windows which refer to this object.
Definition at line 264 of file GUIGlObject.h.
Referenced by addParameterTable(), removeParameterTable(), and ~GUIGlObject().
|
private |
prefix of GL Object
Definition at line 258 of file GUIGlObject.h.
Referenced by createFullName(), and setPrefix().
|
static |
associates object types with strings
Definition at line 76 of file GUIGlObject.h.