![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIOverheadWire.h>
Public Member Functions | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const | |||
draw name of item | ||||
GUIOverheadWireClamp (const std::string &id, MSLane &lane_start, MSLane &lane_end) | ||||
Constructor. | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click | ||||
virtual void | removeActiveAddVisualisation (GUISUMOAbstractView *const, int) | |||
remove additional user-griggered visualisations | ||||
~GUIOverheadWireClamp () | ||||
Destructor. | ||||
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) | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. | ||||
FXIcon * | getGLIcon () const | |||
get icon associated with this GL Object | ||||
interfaces to be implemented by derived classes | ||||
virtual void | removedPopupMenu () | |||
notify object about popup menu removal | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) | ||||
const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. | ||||
virtual const std::string | getOptionalName () const | |||
Returns the name of the object (default "") | ||||
virtual void | setMicrosimID (const std::string &newID) | |||
Changes the microsimID of the object. | ||||
GUIGlObjectType | getType () const | |||
Returns the type of the object as coded in GUIGlObjectType. | ||||
virtual double | getClickPriority () const | |||
Returns the priority of receiving mouse clicks. | ||||
bool | isBlocked () const | |||
get blocking status | ||||
void | setBlocked (const bool state=true) | |||
set blocking status | ||||
virtual bool | isGLObjectLocked () | |||
check if element is locked (Currently used only in netedit) | ||||
virtual void | markAsFrontElement () | |||
mark element as front element (Currently used only in netedit) | ||||
virtual void | deleteGLObject () | |||
delete GLObject (Currently used only in netedit) | ||||
virtual void | selectGLObject () | |||
select GLObject (Currently used only in netedit) | ||||
virtual void | updateGLObject () | |||
update GLObject (geometry, ID, etc.) (optional) | ||||
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. | ||||
Static Public Member Functions | |
static void | clearDictionary () |
Clears the dictionary (the objects will not be deleted) | |
static GUIGlObject_AbstractAdd * | get (const std::string &name) |
Returns a named object. | |
static std::vector< GUIGlID > | getIDList (GUIGlObjectType typeFilter) |
Returns the list of gl-ids of all additional objects that match the given type. | |
static const std::vector< GUIGlObject_AbstractAdd * > & | getObjectList () |
Returns the list of all additional objects. | |
static void | remove (GUIGlObject_AbstractAdd *o) |
Removes an object. | |
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings | |
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 | |
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 | |
bool | mouseWithinGeometry (const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot) const |
check if mouse is within elements geometry (for rectangles) | |
bool | mouseWithinGeometry (const Position center, const double radius) const |
check if mouse is within elements geometry (for circles) | |
bool | mouseWithinGeometry (const PositionVector shape) const |
check if mouse is within elements geometry (for filled shapes) | |
bool | mouseWithinGeometry (const PositionVector shape, const double width) const |
check if mouse is within elements geometry (for shapes) | |
bool | mouseWithinGeometry (const PositionVector shape, const double width, GUIGlObject *parent) const |
check if mouse is within elements geometry (for edges) | |
helper methods for building popup-menus | |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. | |
void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, const GUIMainWindow &app) const |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. | |
Static Protected Attributes | |
static std::vector< GUIGlObject_AbstractAdd * > | myObjectList |
The list of all addtional objects currently loaded. | |
static std::map< std::string, GUIGlObject_AbstractAdd * > | myObjects |
Map from names of loaded additional objects to the objects themselves. | |
Private Member Functions | |
std::string | createFullName () const |
create full name | |
Private Attributes | |
bool | myAmBlocked |
whether the object can be deleted | |
std::string | myFullName |
full name of GL Object | |
const GUIGlID | myGlID |
The numerical id of the object. | |
const GUIGlObjectType | myGLObjectType |
The type of the object. | |
FXIcon * | myIcon |
icon associatd with this GL Object | |
std::string | myMicrosimID |
ID of GL object. | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
vector for TypeNames Initializer | |
inherited from GUIGlObject | |
PositionVector | myFGShape |
The shape. | |
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. | |
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own parameter window. | |
double | getExaggeration (const GUIVisualizationSettings &s) const |
return exaggeration associated with this GLObject | |
Boundary | getCenteringBoundary () const |
Returns the boundary to which the view shall be centered in order to show the object. | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. | |
Definition at line 134 of file GUIOverheadWire.h.
GUIOverheadWireClamp::GUIOverheadWireClamp | ( | const std::string & | id, |
MSLane & | lane_start, | ||
MSLane & | lane_end | ||
) |
Constructor.
[in] | id | The id of the overhead wire clamp |
[in] | lane_start | The lane, where is the overhead wire segment placed, to the start of which the overhead wire clamp is connected |
[in] | lane_end | The lane, where is the overhead wire segment placed, to the end of which the overhead wire clamp is connected |
[in] | topos | End position of the overhead wire segment on the lane |
Definition at line 91 of file GUIOverheadWire.cpp.
References MSLane::getShape(), and myFGShape.
GUIOverheadWireClamp::~GUIOverheadWireClamp | ( | ) |
Destructor.
Definition at line 98 of file GUIOverheadWire.cpp.
|
inherited |
Definition at line 358 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 396 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.
|
protectedinherited |
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 275 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, RECENTERVIEW, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
protectedinherited |
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 284 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), MID_COPY_NAME, MID_COPY_TYPED_NAME, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
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 266 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), GUIGlObject::getFullName(), and GUIGlObject::myIcon.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 325 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GEOHACK, GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), GUIMainWindow::getOnlineMaps(), GOOGLESAT, GUIGLObjectPopupMenu::insertMenuPaneChild(), MID_COPY_CURSOR_GEOPOSITION, MID_COPY_CURSOR_POSITION, MID_SHOW_GEOPOSITION_ONLINE, OSM, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
protectedinherited |
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 294 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), FLAG_MINUS, FLAG_PLUS, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), MID_ADDSELECT, MID_REMOVESELECT, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 373 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.
Referenced by GUIPointOfInterest::getPopUpMenu().
|
protectedinherited |
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 349 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, MID_MANIP, and TL.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
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 307 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWPARS, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
protectedinherited |
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 316 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWTYPEPARS, and TL.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIPerson::getPopUpMenu().
|
staticinherited |
Clears the dictionary (the objects will not be deleted)
!! delete (*i).second;
Definition at line 53 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjectList, and GUIGlObject_AbstractAdd::myObjects.
Referenced by GUINet::~GUINet().
|
privateinherited |
create full name
Definition at line 489 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
virtualinherited |
delete GLObject (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, GNEWalkingArea, and GNENetworkElement.
Definition at line 213 of file GUIGlObject.cpp.
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 359 of file GUIOverheadWire.cpp.
References GUIVisualizationSettings::addName, Position::distanceTo(), GLHelper::drawBoxLines(), GUIGlObject::drawName(), getCenteringBoundary(), getExaggeration(), GUIGlObject::getGlID(), GUIGlObject::getType(), M_PI, myFGShape, GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), GUIVisualizationSettings::scale, GLHelper::setColor(), Position::x(), and Position::y().
|
virtualinherited |
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 245 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 495 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show().
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), drawGL(), GUIParkingArea::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUIPerson::drawGL(), GNEPoly::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNELaneAreaDetector::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().
|
staticinherited |
Returns a named object.
Definition at line 64 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjects.
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 351 of file GUIOverheadWire.cpp.
References PositionVector::getBoxBoundary(), Boundary::grow(), and myFGShape.
Referenced by drawGL().
|
inlinevirtualinherited |
Returns the priority of receiving mouse clicks.
Reimplemented in GUILane, GNEPOI, GNEPoly, GUIPointOfInterest, and GUIPolygon.
Definition at line 159 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUISUMOAbstractView::getObjectAtPosition().
|
inlinevirtualinherited |
Reimplemented in GUIJunctionWrapper, GUIVehicle, GUIMEVehicle, GNEEdgeData, GNEEdgeRelData, GNETAZRelData, GNEJunction, GNELane, GUIBaseVehicle, GUIContainer, GUIEdge, GUILane, and GUIPerson.
Definition at line 201 of file GUIGlObject.h.
Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), and GNEPerson::setColor().
|
virtual |
return exaggeration associated with this GLObject
Reimplemented from GUIGlObject.
Definition at line 345 of file GUIOverheadWire.cpp.
References GUIVisualizationSettings::addSize, and GUIVisualizationSizeSettings::getExaggeration().
Referenced by drawGL().
|
inlineinherited |
Definition at line 92 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIParameterTableWindow::onLeftBtnPress(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
get icon associated with this GL Object
Definition at line 186 of file GUIGlObject.cpp.
References GUIGlObject::myIcon.
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 102 of file GUIGlObject.h.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNECalibrator::drawCalibratorSymbol(), GNEEdge::drawEdgeGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSquaredAdditional(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawStopPersonOverStoppingPlace(), GNEStop::drawVehicleStop(), GUIJunctionWrapper::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIPerson::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIVehicle::isSelected(), GUIContainer::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIViewTraffic::showLaneReachability(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
staticinherited |
Returns the list of gl-ids of all additional objects that match the given type.
Definition at line 88 of file GUIGlObject_AbstractAdd.cpp.
References GLO_ADDITIONALELEMENT, GLO_MAX, GLO_NETWORK, GLO_NETWORKELEMENT, GLO_ROUTEELEMENT, GLO_SHAPE, and GUIGlObject_AbstractAdd::myObjectList.
Referenced by GUISUMOViewParent::getObjectIDs().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 141 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GUIGlObject::drawName(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEVTypeDistribution::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEWalkingArea::getAttribute(), GNEWalkingArea::getNBWalkingArea(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEMultiEntryExitDetector::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNETractionSubstation::getParentName(), GNEVariableSpeedSign::getParentName(), GNEVType::getParentName(), GNEVTypeDistribution::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNEChange_TLS::GNEChange_TLS(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), and GNENet::splitEdge().
|
staticinherited |
Returns the list of all additional objects.
Definition at line 82 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjectList.
|
virtualinherited |
Returns the name of the object (default "")
Reimplemented in GUIBaseVehicle, GUIBusStop, GUIChargingStation, GUIJunctionWrapper, GUIParkingArea, GUITrafficLightLogicWrapper, GNEAdditional, GNEEdge, GNENetworkElement, GUIEdge, GUIPointOfInterest, and GUIPolygon.
Definition at line 231 of file GUIGlObject.cpp.
Referenced by GUIDialog_ChooserAbstract::getObjectName().
|
virtual |
Returns an own parameter window.
Overhead wire clamps do not display anything in their parameter window yet.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 316 of file GUIOverheadWire.cpp.
References GUIParameterTableWindow::closeBuilding().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEAccess, GNECalibrator, GNECalibratorFlow, GNEClosingLaneReroute, GNEClosingReroute, GNEDestProbReroute, GNEDetector, GNEMultiEntryExitDetector, GNEParkingAreaReroute, GNEParkingSpace, GNERerouter, GNERerouterInterval, GNERerouterSymbol, GNERouteProbe, GNERouteProbReroute, GNEStoppingPlace, GNETAZ, GNETAZSourceSink, GNETractionSubstation, GNEVaporizer, GNEVariableSpeedSign, GNEVariableSpeedSignStep, GNEVariableSpeedSignSymbol, GNEContainer, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNEStop, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEWalk, GNELane, GUILane, GNEPOI, and GNEPoly.
Definition at line 180 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 332 of file GUIOverheadWire.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 154 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIPostDrawing::addElementUnderCursor(), GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEViewNet::drawDeleteContour(), GNEDemandElement::drawFlowLabel(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GNEDemandElement::drawJunctionLine(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEDemandElement::drawPersonPlanPartial(), GNEViewNet::drawSelectContour(), GNEAdditional::drawSquaredAdditional(), GNEDemandElement::drawStackLabel(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawStopPersonOverStoppingPlace(), GNEStop::drawVehicleStop(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GNEViewNet::getWalkingAreaAtPopupPosition(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIPostDrawing::isTopElementUnderCursor(), GNESelectorFrame::SelectionOperation::loadFromFile(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GUIPolygon::setColor(), GNEJunction::setJunctionType(), GNEViewNetHelper::ObjectsUnderCursor::updateGenericDataElements(), GNEViewNetHelper::ObjectsUnderCursor::updateNetworkElements(), GNEViewNetHelper::ObjectsUnderCursor::updateShapeElements(), and GNEViewNetHelper::ObjectsUnderCursor::updateTAZElements().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIVehicle, GUIMEVehicle, GUIContainer, GUIEdge, GUIPerson, and GUIBaseVehicle.
Definition at line 192 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
inlineinherited |
get blocking status
Definition at line 164 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
|
virtualinherited |
check if element is locked (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.
Definition at line 200 of file GUIGlObject.cpp.
|
virtualinherited |
mark element as front element (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.
Definition at line 207 of file GUIGlObject.cpp.
|
protectedinherited |
check if mouse is within elements geometry (for rectangles)
Definition at line 463 of file GUIGlObject.cpp.
References PositionVector::add(), GUIPostDrawing::addElementUnderCursor(), PositionVector::around(), DEG2RAD, gPostDrawing, GUIPostDrawing::mousePos, and PositionVector::rotate2D().
|
protectedinherited |
check if mouse is within elements geometry (for circles)
Definition at line 419 of file GUIGlObject.cpp.
References GUIPostDrawing::addElementUnderCursor(), Position::distanceSquaredTo2D(), gPostDrawing, and GUIPostDrawing::mousePos.
Referenced by GNELane::checkMouseOverLane(), GNECalibrator::drawCalibratorSymbol(), GNEJunction::drawDottedContoursBubble(), GNEJunction::drawDottedContoursShape(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEWalkingArea::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSquaredAdditional(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawVehicleStop(), and GNEEdge::setGeometryPointColor().
|
protectedinherited |
check if mouse is within elements geometry (for filled shapes)
Definition at line 430 of file GUIGlObject.cpp.
References GUIPostDrawing::addElementUnderCursor(), PositionVector::around(), gPostDrawing, and GUIPostDrawing::mousePos.
|
protectedinherited |
check if mouse is within elements geometry (for shapes)
Definition at line 441 of file GUIGlObject.cpp.
References GUIPostDrawing::addElementUnderCursor(), PositionVector::distance2D(), gPostDrawing, and GUIPostDrawing::mousePos.
|
protectedinherited |
check if mouse is within elements geometry (for edges)
Definition at line 452 of file GUIGlObject.cpp.
References GUIPostDrawing::addElementUnderCursor(), PositionVector::distance2D(), gPostDrawing, and GUIPostDrawing::mousePos.
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 216 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
staticinherited |
Removes an object.
Definition at line 75 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject::getFullName(), GUIGlObject_AbstractAdd::myObjectList, and GUIGlObject_AbstractAdd::myObjects.
|
inlinevirtualinherited |
remove additional user-griggered visualisations
Reimplemented in GUIBaseVehicle, and GUIPerson.
Definition at line 213 of file GUIGlObject.h.
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 122 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::removePopupFromObject().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 364 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
select GLObject (Currently used only in netedit)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, and GNENetworkElement.
Definition at line 219 of file GUIGlObject.cpp.
|
inlineinherited |
set blocking status
Definition at line 169 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
Referenced by GUIGlObjectStorage::getObjectBlocking(), and GUIGlObjectStorage::getObjectBlocking().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 237 of file GUIGlObject.cpp.
References GUIGlObjectStorage::changeName(), GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENetHelper::AttributeCarriers::addPrefixToJunctions(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEVTypeDistribution::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), GNENetHelper::AttributeCarriers::updateEdgeTypeID(), GNEConnection::updateID(), and GNENetHelper::AttributeCarriers::updateJunctionID().
|
virtualinherited |
update GLObject (geometry, ID, etc.) (optional)
Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, and GNEWalkingArea.
Definition at line 225 of file GUIGlObject.cpp.
|
staticprivateinherited |
vector for TypeNames Initializer
Definition at line 51 of file GUIGlObject.h.
|
staticinherited |
Definition at line 71 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), and GUIViewTraffic::stopTrack().
|
privateinherited |
whether the object can be deleted
Definition at line 332 of file GUIGlObject.h.
Referenced by GUIGlObject::isBlocked(), and GUIGlObject::setBlocked().
|
private |
The shape.
Definition at line 190 of file GUIOverheadWire.h.
Referenced by drawGL(), getCenteringBoundary(), and GUIOverheadWireClamp().
|
privateinherited |
full name of GL Object
Definition at line 326 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 317 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID().
|
privateinherited |
The type of the object.
Definition at line 320 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getClickPriority(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
privateinherited |
icon associatd with this GL Object
Definition at line 329 of file GUIGlObject.h.
Referenced by GUIGlObject::buildPopupHeader(), and GUIGlObject::getGLIcon().
|
privateinherited |
ID of GL object.
Definition at line 323 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
staticprotectedinherited |
The list of all addtional objects currently loaded.
Definition at line 67 of file GUIGlObject_AbstractAdd.h.
Referenced by GUIGlObject_AbstractAdd::clearDictionary(), GUIGlObject_AbstractAdd::getIDList(), GUIGlObject_AbstractAdd::getObjectList(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), and GUIGlObject_AbstractAdd::remove().
|
staticprotectedinherited |
Map from names of loaded additional objects to the objects themselves.
Definition at line 64 of file GUIGlObject_AbstractAdd.h.
Referenced by GUIGlObject_AbstractAdd::clearDictionary(), GUIGlObject_AbstractAdd::get(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), and GUIGlObject_AbstractAdd::remove().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 335 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
staticinherited |
associates object types with strings
Definition at line 70 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GNESelectorFrame::SelectionOperation::loadFromFile(), and GNESelectorFrame::SelectionOperation::onCmdSave().