Eclipse SUMO - Simulation of Urban MObility
GNENet Class Reference

A NBNetBuilder extended by visualisation and editing capabilities. More...

#include <GNENet.h>

Inheritance diagram for GNENet:
Collaboration diagram for GNENet:

Data Structures

struct  AttributeCarriers
 struct used for saving all attribute carriers of net, in different formats More...
 
class  GNEChange_ReplaceEdgeInTLS
 class for GNEChange_ReplaceEdgeInTLS More...
 

Public Types

typedef NamedObjectCont< PointOfInterest * > POIs
 
typedef NamedObjectCont< SUMOPolygon * > Polygons
 containers More...
 

Public Member Functions

void addExplicitTurnaround (std::string id)
 add edge id to the list of explicit turnarounds More...
 
void addGLObjectIntoGrid (GUIGlObject *o)
 add GL Object into net More...
 
virtual PolygonDynamicsaddPolygonDynamics (double simtime, std::string polyID, SUMOTrafficObject *trackedObject, const std::vector< double > &timeSpan, const std::vector< double > &alphaSpan, bool looped, bool rotate)
 Adds dynamics (animation / tracking) to the given polygon. More...
 
virtual void addPolygonUpdateCommand (std::string polyID, ParametrisedWrappingCommand< ShapeContainer, PolygonDynamics * > *cmd)
 Register update command (for descheduling at removal) More...
 
bool addRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList)
 add restricted lane to edge More...
 
GNEEdgeaddReversedEdge (GNEEdge *edge, GNEUndoList *undoList)
 add reversed edge More...
 
void changeEdgeEndpoints (GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID)
 modifies endpoins of the given edge More...
 
bool cleanInvalidCrossings (GNEUndoList *undoList)
 clear invalid crossings More...
 
void cleanInvalidDemandElements (GNEUndoList *undoList)
 clean invalid demand elements More...
 
void cleanUnusedRoutes (GNEUndoList *undoList)
 clean unused routes More...
 
void clearJunctionConnections (GNEJunction *junction, GNEUndoList *undoList)
 clear junction's connections More...
 
void computeAndUpdate (OptionsCont &oc, bool volatileOptions)
 recompute the network and update lane geometries More...
 
void computeDemandElements (GNEApplicationWindow *window)
 compute demand elements param[in] window The window to inform about delay More...
 
void computeJunction (GNEJunction *junction)
 trigger recomputation of junction shape and logic param[in] window The window to inform about delay More...
 
void computeNetwork (GNEApplicationWindow *window, bool force=false, bool volatileOptions=false, std::string additionalPath="", std::string demandPath="")
 trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options More...
 
GNEEdgecreateEdge (GNEJunction *src, GNEJunction *dest, GNEEdge *tpl, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false, bool recomputeConnections=true)
 creates a new edge (unless an edge with the same geometry already exists) More...
 
GNEJunctioncreateJunction (const Position &pos, GNEUndoList *undoList)
 creates a new junction More...
 
void deleteAdditional (GNEAdditional *additional, GNEUndoList *undoList)
 remove additional More...
 
void deleteConnection (GNEConnection *connection, GNEUndoList *undoList)
 remove connection More...
 
void deleteCrossing (GNECrossing *crossing, GNEUndoList *undoList)
 remove crossing More...
 
void deleteDemandElement (GNEDemandElement *demandElement, GNEUndoList *undoList)
 remove demand element More...
 
void deleteEdge (GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections)
 removes edge More...
 
void deleteJunction (GNEJunction *junction, GNEUndoList *undoList)
 removes junction and all incident edges More...
 
void deleteLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
 removes lane More...
 
void deleteShape (GNEShape *shape, GNEUndoList *undoList)
 remove shape More...
 
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...
 
void duplicateLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
 duplicates lane More...
 
FXApp * getApp ()
 get pointer to the main App More...
 
const AttributeCarriersgetAttributeCarriers () const
 retrieve all attribute carriers of Net More...
 
const BoundarygetBoundary () const
 returns the bounder of the network More...
 
NBEdgeContgetEdgeCont ()
 returns the NBEdgeCont of the underlying netbuilder More...
 
NBNetBuildergetNetBuilder () const
 get net builder More...
 
const POIsgetPOIs () const
 Returns all pois. More...
 
const PolygonsgetPolygons () const
 Returns all polygons. More...
 
std::vector< GNEAttributeCarrier * > getSelectedAttributeCarriers (bool ignoreCurrentSupermode)
 get all selected attribute carriers (or only relative to current supermode More...
 
NBTrafficLightLogicContgetTLLogicCont ()
 returns the tllcont of the underlying netbuilder More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
SUMORTreegetVisualisationSpeedUp ()
 Returns the RTree used for visualisation speed-up. More...
 
const SUMORTreegetVisualisationSpeedUp () const
 Returns the RTree used for visualisation speed-up. More...
 
 GNENet (NBNetBuilder *netBuilder)
 Constructor. More...
 
void initGNEConnections ()
 initialize GNEConnections More...
 
bool isNetSaved () const
 return if net has to be saved More...
 
void joinRoutes (GNEUndoList *undoList)
 join routes More...
 
bool joinSelectedJunctions (GNEUndoList *undoList)
 join selected junctions More...
 
void mergeJunctions (GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList)
 merge the given junctions edges between the given junctions will be deleted More...
 
virtual void movePOI (const std::string &id, const Position &pos)
 Assigns a new position to the named PoI. More...
 
bool netHasGNECrossings () const
 check if net has GNECrossings More...
 
virtual void onLeftBtnPress (void *)
 notify object about left click More...
 
virtual SUMOTime polygonDynamicsUpdate (SUMOTime t, PolygonDynamics *pd)
 Regular update event for updating polygon dynamics. More...
 
virtual void registerHighlight (const std::string &objectID, const int type, const std::string &polygonID)
 register highlight of the specified type if the given id More...
 
virtual void removeActiveAddVisualisation (GUISUMOAbstractView *const, int)
 remove additional user-griggered visualisations More...
 
void removeExplicitTurnaround (std::string id)
 remove edge id from the list of explicit turnarounds More...
 
void removeGLObjectFromGrid (GUIGlObject *o)
 add GL Object into net More...
 
virtual bool removePOI (const std::string &id)
 Removes a PoI from the container. More...
 
virtual bool removePolygon (const std::string &id, bool useLock=true)
 Removes a polygon from the container. More...
 
virtual bool removePolygonDynamics (const std::string &polyID)
 Remove dynamics (animation / tracking) for the given polygon. More...
 
bool removeRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList)
 remove restricted lane More...
 
void removeSolitaryJunctions (GNEUndoList *undoList)
 removes junctions that have no edges More...
 
virtual void removeTrackers (std::string objectID)
 Remove all tracking polygons for the given object. More...
 
void renameEdge (GNEEdge *edge, const std::string &newID)
 updates the map and reserves new id More...
 
void renameJunction (GNEJunction *junction, const std::string &newID)
 updates the map and reserves new id More...
 
void replaceIncomingEdge (GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
 replaces edge More...
 
void replaceJunctionByGeometry (GNEJunction *junction, GNEUndoList *undoList)
 replace the selected junction by geometry node(s) and merge the edges More...
 
void requireRecompute ()
 inform the net about the need for recomputation More...
 
void requireSaveNet (bool value)
 inform that net has to be saved More...
 
void resetJunctionConnections (GNEJunction *junction, GNEUndoList *undoList)
 reset junction's connections More...
 
virtual void reshapePolygon (const std::string &id, const PositionVector &shape)
 Assigns a shape to the named polygon. More...
 
bool restrictLane (SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList)
 transform lane to restricted lane More...
 
GNEAttributeCarrierretrieveAttributeCarrier (const GUIGlID id, bool failHard=true)
 get a single attribute carrier based on a GLID More...
 
std::vector< GNEAttributeCarrier * > retrieveAttributeCarriers (SumoXMLTag type=SUMO_TAG_NOTHING)
 get the attribute carriers based on Type More...
 
GNEConnectionretrieveConnection (const std::string &id, bool failHard=true) const
 get Connection by id More...
 
std::vector< GNEConnection * > retrieveConnections (bool onlySelected=false) const
 return all connections More...
 
GNECrossingretrieveCrossing (const std::string &id, bool failHard=true) const
 get Crossing by id More...
 
std::vector< GNECrossing * > retrieveCrossings (bool onlySelected=false) const
 return all crossings More...
 
GNEEdgeretrieveEdge (const std::string &id, bool failHard=true)
 get edge by id More...
 
GNEEdgeretrieveEdge (GNEJunction *from, GNEJunction *to, bool failHard=true)
 get edge by from and to GNEJunction More...
 
std::vector< GNEEdge * > retrieveEdges (bool onlySelected=false)
 return all edges More...
 
GNEJunctionretrieveJunction (const std::string &id, bool failHard=true)
 get junction by id More...
 
std::vector< GNEJunction * > retrieveJunctions (bool onlySelected=false)
 return all junctions More...
 
GNELaneretrieveLane (const std::string &id, bool failHard=true, bool checkVolatileChange=false)
 get lane by id More...
 
std::vector< GNELane * > retrieveLanes (bool onlySelected=false)
 return all lanes More...
 
GNEPOIretrievePOI (const std::string &id, bool failHard=true) const
 get POI by id More...
 
GNEPolyretrievePolygon (const std::string &id, bool failHard=true) const
 get Polygon by id More...
 
std::vector< GNEShape * > retrieveShapes (bool onlySelected=false)
 return all shapes More...
 
std::vector< GNEShape * > retrieveShapes (SumoXMLTag shapeTag, bool onlySelected=false)
 return shape by type shapes More...
 
void reverseEdge (GNEEdge *edge, GNEUndoList *undoList)
 reverse edge More...
 
void save (OptionsCont &oc)
 save the network More...
 
void saveJoined (OptionsCont &oc)
 save log of joined junctions (and nothing else) More...
 
void savePlain (OptionsCont &oc)
 save plain xml representation of the network (and nothing else) More...
 
void setViewNet (GNEViewNet *viewNet)
 Set the viewNet to be notified of network changes. More...
 
GNEJunctionsplitEdge (GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0)
 split edge at position by inserting a new junction More...
 
void splitEdgesBidi (GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList)
 split all edges at position by inserting one new junction More...
 
void splitJunction (GNEJunction *junction, bool reconnect, GNEUndoList *undoList)
 replace the selected junction by a list of junctions for each unique edge endpoint More...
 
 ~GNENet ()
 Destructor. More...
 
inherited from GUIGlObject
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own parameter window. More...
 
Boundary getCenteringBoundary () const
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
const BoundarygetZBoundary () const
 Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary. More...
 
void drawGL (const GUIVisualizationSettings &s) const
 Draws the object. More...
 
inherited from ShapeHandler
bool addPolygon (const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, bool relativePath, const PositionVector &shape, bool geo, bool fill, double lineWidth, bool ignorePruning=false)
 Builds a polygon using the given values and adds it to the container. More...
 
bool addPOI (const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, bool geo, const std::string &lane, double posOverLane, double posLat, double layer, double angle, const std::string &imgFile, bool relativePath, double width, double height, bool ignorePruning=false)
 Builds a POI using the given values and adds it to the container. More...
 
Functions related to Additional Items
GNEAdditionalretrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const
 Returns the named additional. More...
 
std::vector< GNEAdditional * > retrieveAdditionals (bool onlySelected=false) const
 return all additionals More...
 
int getNumberOfAdditionals (SumoXMLTag type=SUMO_TAG_NOTHING) const
 Returns the number of additionals of the net. More...
 
void updateAdditionalID (const std::string &oldID, GNEAdditional *additional)
 update additional ID in container More...
 
void requireSaveAdditionals (bool value)
 inform that additionals has to be saved More...
 
void saveAdditionals (const std::string &filename)
 save additional elements of the network More...
 
bool isAdditionalsSaved () const
 check if additionals are saved More...
 
std::string generateAdditionalID (SumoXMLTag type) const
 generate additional id More...
 
Functions related to DemandElement Items
GNEDemandElementretrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const
 Returns the named demand element. More...
 
std::vector< GNEDemandElement * > retrieveDemandElements (bool onlySelected=false) const
 return all demand elements More...
 
int getNumberOfDemandElements (SumoXMLTag type=SUMO_TAG_NOTHING) const
 Returns the number of demand elements of the net. More...
 
void updateDemandElementID (const std::string &oldID, GNEDemandElement *demandElement)
 update demand element ID in container More...
 
void updateDemandElementBegin (const std::string &oldBegin, GNEDemandElement *demandElement)
 update demand element begin in container More...
 
void requireSaveDemandElements (bool value)
 inform that demand elements has to be saved More...
 
void saveDemandElements (const std::string &filename)
 save demand element elements of the network More...
 
bool isDemandElementsSaved () const
 check if demand elements are saved More...
 
std::string generateDemandElementID (const std::string &prefix, SumoXMLTag type) const
 generate demand element id More...
 
Functions related to Shapes
GNEPolyaddPolygonForEditShapes (GNENetElement *netElement, const PositionVector &shape, bool fill, RGBColor col)
 Builds a special polygon used for edit Junctions's shapes. More...
 
void removePolygonForEditShapes (GNEPoly *polygon)
 remove Polygon for edit shapes More...
 
std::string generateShapeID (SumoXMLTag shapeTag) const
 generate Shape ID More...
 
void changeShapeID (GNEShape *s, const std::string &OldID)
 change Shape ID More...
 
int getNumberOfShapes () const
 get number of shapes More...
 
Functions related to TLS Programs

inform that TLS Programs has to be saved

void requireSaveTLSPrograms ()
 
void saveTLSPrograms (const std::string &filename)
 save TLS Programs elements of the network More...
 
int getNumberOfTLSPrograms () const
 get number of TLS Programs More...
 
Functions related to Enable or disable update geometry of elements after insertio

enable update geometry of elements after inserting or removing an element in net

void enableUpdateGeometry ()
 
void disableUpdateGeometry ()
 disable update geometry of elements after inserting or removing an element in net More...
 
bool isUpdateGeometryEnabled () const
 check if update geometry after inserting or removing has to be updated More...
 

Static Public Attributes

static const GUIGlID INVALID_ID = 0
 
static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 

Protected Member Functions

virtual bool add (PointOfInterest *poi, bool ignorePruning=false)
 add poi More...
 
virtual bool add (SUMOPolygon *poly, bool ignorePruning=false)
 add polygon More...
 
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...
 
virtual void cleanupPolygonDynamics (const std::string &id)
 Unschedules the removal and update commands of the given polygon. More...
 
Insertion and erasing of GNEAdditionals items
bool additionalExist (GNEAdditional *additional) const
 return true if additional exist (use pointer instead ID) More...
 
void insertAdditional (GNEAdditional *additional)
 Insert a additional element int GNENet container. More...
 
bool deleteAdditional (GNEAdditional *additional, bool updateViewAfterDeleting)
 delete additional element of GNENet container More...
 
Insertion and erasing of GNEDemandElements items
bool demandElementExist (GNEDemandElement *demandElement) const
 return true if demand element exist (use pointer instead ID) More...
 
void insertDemandElement (GNEDemandElement *demandElement)
 Insert a demand element element int GNENet container. More...
 
bool deleteDemandElement (GNEDemandElement *demandElement, bool updateViewAfterDeleting)
 delete demand element element of GNENet container More...
 

Protected Attributes

AttributeCarriers myAttributeCarriers
 AttributeCarriers of net. More...
 
SUMORTree myGrid
 the rtree which contains all GUIGlObjects (so named for historical reasons) More...
 
std::map< std::string, std::string > myHighlightedObjects
 inverse map to myHighlightPolygons saves the highlighted object for each polygon More...
 
std::map< std::string, std::map< int, std::string > > myHighlightPolygons
 maps objects to a map of highlight types to highlighting polygons More...
 
NBNetBuildermyNetBuilder
 The internal netbuilder. More...
 
POIs myPOIs
 stored POIs More...
 
std::map< std::string, PolygonDynamics * > myPolygonDynamics
 stored PolygonDynamics More...
 
Polygons myPolygons
 stored Polygons More...
 
std::map< const std::string, std::set< const SUMOPolygon * > > myTrackingPolygons
 Information about tracked objects. More...
 
GNEViewNetmyViewNet
 The viewNet to be notofied of about changes. More...
 
ID Suppliers for newly created edges and junctions
IDSupplier myEdgeIDSupplier
 
IDSupplier myJunctionIDSupplier
 
std::set< std::string > myExplicitTurnarounds
 list of edge ids for which turn-arounds must be added explicitly More...
 
bool myNeedRecompute
 whether the net needs recomputation More...
 
bool myNetSaved
 Flag to check if net has to be saved. More...
 
bool myAdditionalsSaved
 Flag to check if additionals has to be saved. More...
 
bool myTLSProgramsSaved
 Flag to check if shapes has to be saved. More...
 
bool myDemandElementsSaved
 Flag to check if demand elements has to be saved. More...
 
bool myUpdateGeometryEnabled
 Flag to enable or disable update geometry of elements after inserting or removing element in net. More...
 

Private Member Functions

bool checkJunctionPosition (const Position &pos)
 return true if there are already a Junction in the given position, false in other case More...
 
std::string createFullName () const
 create full name More...
 
void deleteSingleEdge (GNEEdge *edge, bool updateViewAfterDeleting)
 deletes a single edge More...
 
void deleteSingleJunction (GNEJunction *junction, bool updateViewAfterDeleting)
 deletes a single junction More...
 
void initJunctionsAndEdges ()
 Init Junctions and edges. More...
 
void insertEdge (GNEEdge *edge)
 inserts a single edge into the net and into the underlying netbuild-container More...
 
void insertJunction (GNEJunction *junction)
 inserts a single junction into the net and into the underlying netbuild-container More...
 
void insertShape (GNEShape *shape, bool updateViewAfterDeleting)
 insert shape More...
 
GNEEdgeregisterEdge (GNEEdge *edge)
 registers an edge with GNENet containers More...
 
GNEJunctionregisterJunction (GNEJunction *junction)
 registers a junction with GNENet containers More...
 
void removeShape (GNEShape *shape, bool updateViewAfterDeleting)
 remove created shape (but NOT delete) More...
 
void reserveEdgeID (const std::string &id)
 reserve edge ID (To avoid duplicates) More...
 
void reserveJunctionID (const std::string &id)
 reserve junction ID (To avoid duplicates) More...
 
void saveAdditionalsConfirmed (const std::string &filename)
 save additionals after confirming invalid objects More...
 
void saveDemandElementsConfirmed (const std::string &filename)
 save demand elements after confirming invalid objects More...
 
void update ()
 notify myViewNet More...
 

Static Private Member Functions

static void replaceInListAttribute (GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList)
 

Private Attributes

bool myAllowUndoShapes
 flag used to indicate if shaped created can be undo More...
 
std::map< std::string, int > myEdgesAndNumberOfLanes
 map with the Edges and their number of lanes More...
 
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::map< const std::string, ParametrisedWrappingCommand< ShapeContainer, PolygonDynamics * > * > myPolygonUpdateCommands
 Command pointers for scheduled polygon update. Maps PolyID->Command. More...
 
Boundary myZBoundary
 the z boundary (stored in the x-coordinate), values of 0 are ignored More...
 

Static Private Attributes

static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer []
 LinkStates (Currently unused) More...
 
static const double Z_INITIALIZED = 1
 marker for whether the z-boundary is initialized More...
 

Friends

class GNEAdditionalHandler
 declare friend class More...
 
class GNEChange_Additional
 
class GNEChange_CalibratorItem
 
class GNEChange_Connection
 
class GNEChange_DemandElement
 
class GNEChange_Edge
 
class GNEChange_Junction
 
class GNEChange_Lane
 
class GNEChange_Shape
 
class GNERouteHandler
 

interfaces to be implemented by derived classes

virtual void removedPopupMenu ()
 notify object about popup menu removal More...
 
virtual GUIParameterTableWindowgetTypeParameterWindow (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 double getColorValue (const GUIVisualizationSettings &, int) const
 

Detailed Description

A NBNetBuilder extended by visualisation and editing capabilities.

Definition at line 77 of file GNENet.h.

Member Typedef Documentation

◆ POIs

Definition at line 54 of file ShapeContainer.h.

◆ Polygons

containers

Definition at line 53 of file ShapeContainer.h.

Constructor & Destructor Documentation

◆ GNENet()

GNENet::GNENet ( NBNetBuilder netBuilder)

Constructor.

Parameters
[in]netbuilderthe netbuilder which may already have been filled GNENet becomes responsible for cleaning this up

Definition at line 87 of file GNENet.cpp.

References GNEAttributeCarrier::allowedTagsByCategory(), GUIGlObjectStorage::gIDStorage, GUIGlObjectStorage::setNetObject(), and WRITE_GLDEBUG.

◆ ~GNENet()

Member Function Documentation

◆ add() [1/2]

bool ShapeContainer::add ( PointOfInterest poi,
bool  ignorePruning = false 
)
protectedvirtualinherited

add poi

Reimplemented in PCPolyContainer.

Definition at line 197 of file ShapeContainer.cpp.

References NamedObjectCont< T >::add(), Named::getID(), and ShapeContainer::myPOIs.

◆ add() [2/2]

bool ShapeContainer::add ( SUMOPolygon poly,
bool  ignorePruning = false 
)
protectedvirtualinherited

◆ addExplicitTurnaround()

void GNENet::addExplicitTurnaround ( std::string  id)

add edge id to the list of explicit turnarounds

Definition at line 2171 of file GNENet.cpp.

References myExplicitTurnarounds.

Referenced by GNEJunction::removeConnectionsFrom(), and GNEJunction::removeConnectionsTo().

◆ addGLObjectIntoGrid()

◆ additionalExist()

bool GNENet::additionalExist ( GNEAdditional additional) const
protected

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

◆ addPOI()

bool GNENet::addPOI ( const std::string &  id,
const std::string &  type,
const RGBColor color,
const Position pos,
bool  geo,
const std::string &  lane,
double  posOverLane,
double  posLat,
double  layer,
double  angle,
const std::string &  imgFile,
bool  relativePath,
double  width,
double  height,
bool  ignorePruning = false 
)
virtual

Builds a POI using the given values and adds it to the container.

Parameters
[in]idThe name of the POI
[in]typeThe (abstract) type of the POI
[in]colorThe color of the POI
[in]posThe position of the POI
[in[geo use GEO coordinates (lon/lat)
[in]laneThe Lane in which this POI is placed
[in]posOverLaneThe position over Lane
[in]posLatThe position lateral over Lane
[in]layerThe layer of the POI
[in]angleThe rotation of the POI
[in]imgFileThe raster image of the POI
[in]relativePathset image file as relative path
[in]widthThe width of the POI image
[in]heightThe height of the POI image
Returns
whether the poi could be added

Reimplemented from ShapeContainer.

Definition at line 240 of file GNENet.cpp.

References NamedObjectCont< T >::add(), NamedObjectCont< T >::get(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEChange_Shape, GNEReferenceCounter::incRef(), insertShape(), myAllowUndoShapes, ShapeContainer::myPOIs, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and retrieveLane().

Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), and GNEViewNet::onCmdTransformPOI().

◆ addPolygon()

bool GNENet::addPolygon ( const std::string &  id,
const std::string &  type,
const RGBColor color,
double  layer,
double  angle,
const std::string &  imgFile,
bool  relativePath,
const PositionVector shape,
bool  geo,
bool  fill,
double  lineWidth,
bool  ignorePruning = false 
)
virtual

Builds a polygon using the given values and adds it to the container.

Parameters
[in]idThe name of the polygon
[in]typeThe (abstract) type of the polygon
[in]colorThe color of the polygon
[in]layerThe layer of the polygon
[in]angleThe rotation of the polygon
[in]imgFileThe raster image of the polygon
[in]relativePathset image file as relative path
[in]shapeThe shape of the polygon
[in]geospecify if shape was loaded as GEO coordinate
[in]fillWhether the polygon shall be filled
[in]lineWidthThe widht for drawing unfiled polygon
Returns
whether the polygon could be added

Reimplemented from ShapeContainer.

Definition at line 217 of file GNENet.cpp.

References NamedObjectCont< T >::get(), GNEViewNet::getUndoList(), GNEChange_Shape, GNEReferenceCounter::incRef(), insertShape(), myAllowUndoShapes, ShapeContainer::myPolygons, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_POLY, and toString().

Referenced by GNEPolygonFrame::addPolygon().

◆ addPolygonDynamics()

PolygonDynamics * ShapeContainer::addPolygonDynamics ( double  simtime,
std::string  polyID,
SUMOTrafficObject trackedObject,
const std::vector< double > &  timeSpan,
const std::vector< double > &  alphaSpan,
bool  looped,
bool  rotate 
)
virtualinherited

Adds dynamics (animation / tracking) to the given polygon.

Parameters
polyIDID of the polygon which should become dynamic
Returns
true if the operation was successful, false if not.
See also
PolygonDynamics()

Reimplemented in GUIShapeContainer.

Definition at line 73 of file ShapeContainer.cpp.

References NamedObjectCont< T >::get(), PolygonDynamics::getTrackedObjectID(), ShapeContainer::myPolygonDynamics, ShapeContainer::myPolygons, ShapeContainer::myTrackingPolygons, and ShapeContainer::removePolygonDynamics().

Referenced by libsumo::Polygon::addDynamics(), and GUIShapeContainer::addPolygonDynamics().

◆ addPolygonForEditShapes()

GNEPoly * GNENet::addPolygonForEditShapes ( GNENetElement netElement,
const PositionVector shape,
bool  fill,
RGBColor  col 
)

Builds a special polygon used for edit Junctions's shapes.

Parameters
[in]netElementGNENetElement to be edited
[in]shapeshape to be edited
[in]fillenable or disable fill polygon
[in]colThe color for drawing the polygon
Exceptions
processErrorif shape is empty
Returns
created GNEPoly

Definition at line 2568 of file GNENet.cpp.

References SUMORTree::addAdditionalGLObject(), GLO_POLYGON, myGrid, myViewNet, GNEPoly::setShapeEditedElement(), and GNEViewNet::update().

◆ addPolygonUpdateCommand()

void ShapeContainer::addPolygonUpdateCommand ( std::string  polyID,
ParametrisedWrappingCommand< ShapeContainer, PolygonDynamics * > *  cmd 
)
virtualinherited

Register update command (for descheduling at removal)

Definition at line 280 of file ShapeContainer.cpp.

References ShapeContainer::myPolygonUpdateCommands.

Referenced by libsumo::Polygon::addDynamics().

◆ addRestrictedLane()

bool GNENet::addRestrictedLane ( SUMOVehicleClass  vclass,
GNEEdge edge,
int  index,
GNEUndoList undoList 
)

add restricted lane to edge

Parameters
[in]vclassvehicle class to restrict
[in]edgeThe edge in which insert restricted lane
[in]undoListThe undolist in which to mark changes

Definition at line 720 of file GNENet.cpp.

References duplicateLane(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), NBEdge::getPermissions(), MIN2(), restrictLane(), SVC_BICYCLE, SVC_BUS, SVC_IGNORING, and SVC_PEDESTRIAN.

Referenced by GNEViewNet::addRestrictedLane().

◆ addReversedEdge()

◆ buildAdditionalsPopupOptions()

void GUIGlObject::buildAdditionalsPopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildCenterPopupEntry()

void GUIGlObject::buildCenterPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

void GUIGlObject::buildPopupHeader ( GUIGLObjectPopupMenu ret,
GUIMainWindow app,
bool  addSeparator = true 
)
protectedinherited

◆ buildPositionCopyEntry()

void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
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.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 266 of file GUIGlObject.cpp.

References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNERoute::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().

◆ buildSelectionPopupEntry()

◆ buildShapePopupOptions()

void GUIGlObject::buildShapePopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildShowManipulatorPopupEntry()

void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 278 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.

Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().

◆ buildShowParamsPopupEntry()

void GUIGlObject::buildShowParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildShowTypeParamsPopupEntry()

void GUIGlObject::buildShowTypeParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the type parameter window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 257 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.

Referenced by GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().

◆ changeEdgeEndpoints()

void GNENet::changeEdgeEndpoints ( GNEEdge edge,
const std::string &  newSourceID,
const std::string &  newDestID 
)

modifies endpoins of the given edge

Definition at line 2107 of file GNENet.cpp.

References GNEEdge::getNBEdge(), GNEJunction::getNBNode(), NBEdge::reinitNodes(), requireRecompute(), retrieveJunction(), and update().

Referenced by GNEEdge::setAttribute().

◆ changeShapeID()

◆ checkJunctionPosition()

bool GNENet::checkJunctionPosition ( const Position pos)
private

return true if there are already a Junction in the given position, false in other case

Definition at line 970 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by joinSelectedJunctions().

◆ cleanInvalidCrossings()

bool GNENet::cleanInvalidCrossings ( GNEUndoList undoList)

◆ cleanInvalidDemandElements()

◆ cleanUnusedRoutes()

◆ cleanupPolygonDynamics()

void ShapeContainer::cleanupPolygonDynamics ( const std::string &  id)
protectedvirtualinherited

Unschedules the removal and update commands of the given polygon.

Parameters
[in]idThe id of the polygon

Definition at line 207 of file ShapeContainer.cpp.

References ShapeContainer::myPolygonUpdateCommands.

Referenced by ShapeContainer::removePolygonDynamics().

◆ clearHighlight()

void ShapeContainer::clearHighlight ( const std::string &  objectID,
const int  type,
std::string &  toRemove 
)
protectedvirtualinherited

◆ clearHighlights()

void ShapeContainer::clearHighlights ( const std::string &  objectID,
SUMOPolygon p 
)
protectedvirtualinherited

Clears all highlight information from the maps when the object leaves the net (Highlight polygons and dynamics are removed via removeTrackers())

Definition at line 261 of file ShapeContainer.cpp.

References Named::getID(), and ShapeContainer::myHighlightPolygons.

Referenced by ShapeContainer::removePolygonDynamics().

◆ clearJunctionConnections()

void GNENet::clearJunctionConnections ( GNEJunction junction,
GNEUndoList undoList 
)

◆ computeAndUpdate()

◆ computeDemandElements()

void GNENet::computeDemandElements ( GNEApplicationWindow window)

compute demand elements param[in] window The window to inform about delay

Definition at line 1538 of file GNENet.cpp.

References GNENet::AttributeCarriers::demandElements, myAttributeCarriers, and GNEApplicationWindow::setStatusBarText().

Referenced by GNEApplicationWindow::onCmdProcessButton(), and saveDemandElements().

◆ computeJunction()

void GNENet::computeJunction ( GNEJunction junction)

trigger recomputation of junction shape and logic param[in] window The window to inform about delay

Definition at line 1551 of file GNENet.cpp.

References NBTrafficLightLogicCont::computeSingleLogic(), NBNode::getControllingTLS(), GNEJunction::getNBNode(), OptionsCont::getOptions(), and getTLLogicCont().

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

◆ computeNetwork()

void GNENet::computeNetwork ( GNEApplicationWindow window,
bool  force = false,
bool  volatileOptions = false,
std::string  additionalPath = "",
std::string  demandPath = "" 
)

trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options

Definition at line 1457 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::allowedTagsByCategory(), computeAndUpdate(), GNENet::AttributeCarriers::demandElements, GNENet::AttributeCarriers::edges, OptionsCont::getOptions(), myAttributeCarriers, myEdgesAndNumberOfLanes, myNeedRecompute, myViewNet, XMLSubSys::runParser(), GNEApplicationWindow::setStatusBarText(), update(), and WRITE_MESSAGE.

Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::onCmdOpenTLSPrograms(), and GNEApplicationWindow::onCmdProcessButton().

◆ createEdge()

GNEEdge * GNENet::createEdge ( GNEJunction src,
GNEJunction dest,
GNEEdge tpl,
GNEUndoList undoList,
const std::string &  suggestedName = "",
bool  wasSplit = false,
bool  allowDuplicateGeom = false,
bool  recomputeConnections = true 
)

creates a new edge (unless an edge with the same geometry already exists)

Parameters
[in]srcThe starting junction
[in]destThe ending junction
[in]tplThe template edge from which to copy attributes (including lane attrs)
[in]undoListThe undoList in which to mark changes
[in]suggestedName
[in]wasSplitWhether the edge was created from a split
[in]allowDuplicateGeomWhether to create the edge even though another edge with the same geometry exists
[in]recomputeConnectionsWhether connections on the affected junctions must be recomputed
Returns
The newly created edge or 0 if no edge was created

Definition at line 326 of file GNENet.cpp.

References GNENet::AttributeCarriers::edges, OptionsCont::getFloat(), OptionsCont::getInt(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), IDSupplier::getNext(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), OptionsCont::getString(), GNEChange_Edge, myAttributeCarriers, myEdgeIDSupplier, GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), reserveEdgeID(), retrieveEdge(), GNEJunction::setLogicValid(), SUMO_TAG_EDGE, toString(), NBEdge::UNSPECIFIED_OFFSET, and NBEdge::UNSPECIFIED_WIDTH.

Referenced by addReversedEdge(), GNECreateEdgeFrame::processClick(), reverseEdge(), splitEdge(), and splitJunction().

◆ createFullName()

std::string GUIGlObject::createFullName ( ) const
privateinherited

◆ createJunction()

GNEJunction * GNENet::createJunction ( const Position pos,
GNEUndoList undoList 
)

creates a new junction

Parameters
[in]positionThe position of the new junction
[in]undoListThe undolist in which to mark changes
Returns
the new junction

Definition at line 313 of file GNENet.cpp.

References IDSupplier::getNext(), GNEChange_Junction, GNENet::AttributeCarriers::junctions, myAttributeCarriers, and myJunctionIDSupplier.

Referenced by addReversedEdge(), joinSelectedJunctions(), GNECreateEdgeFrame::processClick(), splitEdge(), and splitJunction().

◆ deleteAdditional() [1/2]

◆ deleteAdditional() [2/2]

◆ deleteConnection()

◆ deleteCrossing()

◆ deleteDemandElement() [1/2]

◆ deleteDemandElement() [2/2]

◆ deleteEdge()

◆ deleteJunction()

◆ deleteLane()

◆ deleteShape()

void GNENet::deleteShape ( GNEShape shape,
GNEUndoList undoList 
)

remove shape

Parameters
[in]shapeThe Shape to be removed
[in]undoListThe undolist in which to mark changes

Definition at line 619 of file GNENet.cpp.

References GNEAttributeCarrier::getTagStr(), GNEChange_Shape, GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by deleteEdge(), GNEViewNet::deleteSelectedShapes(), GNEViewNet::onCmdTransformPOI(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ deleteSingleEdge()

◆ deleteSingleJunction()

◆ demandElementExist()

bool GNENet::demandElementExist ( GNEDemandElement demandElement) const
protected

◆ disableUpdateGeometry()

void GNENet::disableUpdateGeometry ( )

disable update geometry of elements after inserting or removing an element in net

Definition at line 2682 of file GNENet.cpp.

References myUpdateGeometryEnabled.

Referenced by GNEAdditionalHandler::buildTAZ(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ drawGL()

void GNENet::drawGL ( const GUIVisualizationSettings s) const
virtual

Draws the object.

Parameters
[in]sThe settings for the current view (may influence drawing)
See also
GUIGlObject::drawGL

Implements GUIGlObject.

Definition at line 212 of file GNENet.cpp.

◆ drawGLAdditional()

void GUIGlObject::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings s 
) const
virtualinherited

Draws additional, user-triggered visualisations.

Parameters
[in]parentThe view
[in]sThe settings for the current view (may influence drawing)

Reimplemented in GUIBaseVehicle, GUIContainer, and GUIPerson.

Definition at line 186 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

◆ drawName()

◆ duplicateLane()

void GNENet::duplicateLane ( GNELane lane,
GNEUndoList undoList,
bool  recomputeConnections 
)

◆ enableUpdateGeometry()

void GNENet::enableUpdateGeometry ( )

◆ generateAdditionalID()

std::string GNENet::generateAdditionalID ( SumoXMLTag  type) const

generate additional id

Definition at line 2306 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, myAttributeCarriers, and toString().

Referenced by GNETAZFrame::shapeDrawed().

◆ generateDemandElementID()

◆ generateShapeID()

std::string GNENet::generateShapeID ( SumoXMLTag  shapeTag) const

◆ getApp()

FXApp * GNENet::getApp ( )

get pointer to the main App

Definition at line 1586 of file GNENet.cpp.

References myViewNet.

Referenced by cleanInvalidCrossings(), and joinSelectedJunctions().

◆ getAttributeCarriers()

◆ getBoundary()

const Boundary & GNENet::getBoundary ( ) const

returns the bounder of the network

Definition at line 185 of file GNENet.cpp.

References myGrid.

Referenced by getCenteringBoundary(), and GNEVehicle::setColor().

◆ getCenteringBoundary()

Boundary GNENet::getCenteringBoundary ( ) const
virtual

Returns the boundary to which the view shall be centered in order to show the object.

Returns
The boundary the object is within
See also
GUIGlObject::getCenteringBoundary

Implements GUIGlObject.

Definition at line 289 of file GNENet.cpp.

References getBoundary().

◆ getColorValue()

virtual double GUIGlObject::getColorValue ( const GUIVisualizationSettings ,
int   
) const
inlinevirtualinherited

◆ getEdgeCont()

NBEdgeCont & GNENet::getEdgeCont ( )

returns the NBEdgeCont of the underlying netbuilder

Definition at line 2153 of file GNENet.cpp.

References NBNetBuilder::getEdgeCont(), and myNetBuilder.

Referenced by GNEViewNet::getEdgeLaneParamKeys(), and GNETLSEditorFrame::parseTLSPrograms().

◆ getFullName()

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 149 of file GUIGlObject.cpp.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingSpace::drawGL(), GNEInternalLane::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GNETAZ::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GNELane::drawGL(), GNEStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), 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(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertPersonIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), 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(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processSet(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().

◆ getMicrosimID()

◆ getNetBuilder()

◆ getNumberOfAdditionals()

int GNENet::getNumberOfAdditionals ( SumoXMLTag  type = SUMO_TAG_NOTHING) const

Returns the number of additionals of the net.

Parameters
[in]typetype of additional to count. SUMO_TAG_NOTHING will count all additionals
Returns
Number of additionals of the net

Definition at line 2210 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, myAttributeCarriers, and SUMO_TAG_NOTHING.

Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEAdditionalFrame::generateID(), and GNEApplicationWindow::onCmdOpenSUMOGUI().

◆ getNumberOfDemandElements()

int GNENet::getNumberOfDemandElements ( SumoXMLTag  type = SUMO_TAG_NOTHING) const

Returns the number of demand elements of the net.

Parameters
[in]typetype of demand element to count. SUMO_TAG_NOTHING will count all demand elements
Returns
Number of demand elements of the net

Definition at line 2343 of file GNENet.cpp.

References GNENet::AttributeCarriers::demandElements, myAttributeCarriers, and SUMO_TAG_NOTHING.

Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdOpenSUMOGUI().

◆ getNumberOfShapes()

int GNENet::getNumberOfShapes ( ) const

get number of shapes

Definition at line 2640 of file GNENet.cpp.

References ShapeContainer::myPOIs, ShapeContainer::myPolygons, and NamedObjectCont< T >::size().

◆ getNumberOfTLSPrograms()

int GNENet::getNumberOfTLSPrograms ( ) const

get number of TLS Programs

Definition at line 2671 of file GNENet.cpp.

◆ getOptionalName()

const std::string GUIGlObject::getOptionalName ( ) const
virtualinherited

Returns the name of the object (default "")

Reimplemented in GNEEdge, GUIBaseVehicle, GUIEdge, GUIParkingArea, GUIBusStop, GUIContainerStop, GUIChargingStation, and GUIJunctionWrapper.

Definition at line 168 of file GUIGlObject.cpp.

Referenced by GUIDialog_GLObjChooser::getObjectName().

◆ getParameterWindow()

GUIParameterTableWindow * GNENet::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See also
GUIGlObject::getParameterWindow

Implements GUIGlObject.

Definition at line 202 of file GNENet.cpp.

References GUIParameterTableWindow::closeBuilding().

◆ getParentName()

◆ getPOIs()

◆ getPolygons()

◆ getPopUpMenu()

GUIGLObjectPopupMenu * GNENet::getPopUpMenu ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own popup-menu.

Parameters
[in]appThe application needed to build the popup-menu
[in]parentThe parent window needed to build the popup-menu
Returns
The built popup-menu
See also
GUIGlObject::getPopUpMenu

Implements GUIGlObject.

Definition at line 192 of file GNENet.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildPopupHeader(), and GUIGlObject::buildPositionCopyEntry().

◆ getSelectedAttributeCarriers()

◆ getTLLogicCont()

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 180 of file GUIGlObject.cpp.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNECalibrator::drawCalibratorSymbol(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GNELane::drawGL(), GNEStop::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), 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(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_GLObjChooser::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), 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().

◆ getTypeParameterWindow()

GUIParameterTableWindow * GUIGlObject::getTypeParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtualinherited

Returns an own type parameter window (optional)

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window

Reimplemented in GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIContainer, and GUIPerson.

Definition at line 155 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().

◆ getViewNet()

GNEViewNet * GNENet::getViewNet ( ) const

get view net

Definition at line 2117 of file GNENet.cpp.

References myViewNet.

Referenced by GNEPoly::changeFirstGeometryPoint(), GNEPoly::closePolygon(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEEdge::deleteGeometryPoint(), GNEPoly::deleteGeometryPoint(), GNEShape::draw(), GNEEdge::drawGeometryPoints(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNEConnection::drawGL(), GNELane::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GNEEdge::drawGL(), GNEJunction::drawJunctionChilds(), GNELane::drawMarkings(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNENetElement::drawUsingSelectColor(), GNEShape::drawUsingSelectColor(), GNELane::drawVSSSymbol(), GNEEdge::editEndpoint(), GNEJunction::getColorValue(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEPoly::isAttributeEnabled(), GNEPOI::isAttributeEnabled(), GNEPOI::moveGeometry(), GNEJunction::moveGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNELane::onDefault(), GNEPoly::openPolygon(), GNEChange_DemandElement::redo(), GNEChange_Crossing::redo(), GNENetElement::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNELane::setLaneColor(), GNEPoly::simplifyShape(), GNEChange_DemandElement::undo(), GNEChange_Crossing::undo(), GNENetElement::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), and GNELane::updateGeometry().

◆ getVisualisationSpeedUp() [1/2]

const SUMORTree & GNENet::getVisualisationSpeedUp ( )

Returns the RTree used for visualisation speed-up.

Returns
The visualisation speed-up

Definition at line 301 of file GNENet.cpp.

References myGrid.

Referenced by GNETLSEditorFrame::buildIinternalLanes().

◆ getVisualisationSpeedUp() [2/2]

const SUMORTree& GNENet::getVisualisationSpeedUp ( ) const

Returns the RTree used for visualisation speed-up.

Returns
The visualisation speed-up

◆ getZBoundary()

const Boundary & GNENet::getZBoundary ( ) const

Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.

Definition at line 295 of file GNENet.cpp.

References myZBoundary.

◆ initGNEConnections()

void GNENet::initGNEConnections ( )

initialize GNEConnections

Definition at line 3081 of file GNENet.cpp.

References GNENet::AttributeCarriers::edges, and myAttributeCarriers.

Referenced by GNEViewNet::onCmdToogleShowConnections().

◆ initJunctionsAndEdges()

◆ insertAdditional()

void GNENet::insertAdditional ( GNEAdditional additional)
protected

Insert a additional element int GNENet container.

Exceptions
processErrorif route was already inserted

Definition at line 2709 of file GNENet.cpp.

References SUMORTree::addAdditionalGLObject(), additionalExist(), GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAdditional::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myAttributeCarriers, myGrid, myUpdateGeometryEnabled, requireSaveAdditionals(), GNEAdditional::selectAttributeCarrier(), and GNEAdditional::updateGeometry().

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEChange_Additional::redo(), and GNEChange_Additional::undo().

◆ insertDemandElement()

void GNENet::insertDemandElement ( GNEDemandElement demandElement)
protected

Insert a demand element element int GNENet container.

Exceptions
processErrorif route was already inserted

Definition at line 2777 of file GNENet.cpp.

References SUMORTree::addAdditionalGLObject(), demandElementExist(), GNENet::AttributeCarriers::demandElements, GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEDemandElement::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPerson(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, myGrid, myUpdateGeometryEnabled, requireSaveDemandElements(), GNEDemandElement::selectAttributeCarrier(), GNEDemandElement::updateGeometry(), and GNENet::AttributeCarriers::vehicleDepartures.

Referenced by GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNERouteHandler::buildStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEChange_DemandElement::redo(), and GNEChange_DemandElement::undo().

◆ insertEdge()

void GNENet::insertEdge ( GNEEdge edge)
private

inserts a single edge into the net and into the underlying netbuild-container

Definition at line 2896 of file GNENet.cpp.

References NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), NBNetBuilder::getEdgeCont(), NBEdge::getFromNode(), GNEEdge::getNBEdge(), NBEdge::getToNode(), NBEdgeCont::insert(), myNetBuilder, and registerEdge().

Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().

◆ insertJunction()

void GNENet::insertJunction ( GNEJunction junction)
private

inserts a single junction into the net and into the underlying netbuild-container

Definition at line 2889 of file GNENet.cpp.

References GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), NBNodeCont::insert(), myNetBuilder, and registerJunction().

Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().

◆ insertShape()

◆ isAdditionalsSaved()

bool GNENet::isAdditionalsSaved ( ) const

check if additionals are saved

Definition at line 2300 of file GNENet.cpp.

References myAdditionalsSaved.

Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveAdditionals().

◆ isDemandElementsSaved()

bool GNENet::isDemandElementsSaved ( ) const

check if demand elements are saved

Definition at line 2455 of file GNENet.cpp.

References myDemandElementsSaved.

Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveDemandElements().

◆ isNetSaved()

bool GNENet::isNetSaved ( ) const

return if net has to be saved

Definition at line 994 of file GNENet.cpp.

References myNetSaved.

Referenced by GNEApplicationWindow::continueWithUnsavedChanges(), and GNEApplicationWindow::onCmdOpenSUMOGUI().

◆ isUpdateGeometryEnabled()

bool GNENet::isUpdateGeometryEnabled ( ) const

check if update geometry after inserting or removing has to be updated

Definition at line 2688 of file GNENet.cpp.

References myUpdateGeometryEnabled.

◆ joinRoutes()

◆ joinSelectedJunctions()

◆ mergeJunctions()

void GNENet::mergeJunctions ( GNEJunction moved,
GNEJunction target,
GNEUndoList undoList 
)

merge the given junctions edges between the given junctions will be deleted

Parameters
[in]movedThe junction that will be eliminated
[in]targetThe junction that will be enlarged
[in]undoListThe undo list with which to register changes

Definition at line 935 of file GNENet.cpp.

References deleteEdge(), deleteJunction(), GNENet::AttributeCarriers::edges, GNEJunction::getAttribute(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEAttributeCarrier::getID(), NBNode::getIncomingEdges(), GNEJunction::getNBNode(), NBNode::getOutgoingEdges(), myAttributeCarriers, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::setAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_POSITION, SUMO_ATTR_TO, SUMO_TAG_JUNCTION, and toString().

Referenced by GNEViewNet::mergeJunctions().

◆ movePOI()

void ShapeContainer::movePOI ( const std::string &  id,
const Position pos 
)
virtualinherited

Assigns a new position to the named PoI.

Parameters
[in]idThe id of the PoI to move
[in]posThe PoI's new position

Reimplemented in GUIShapeContainer.

Definition at line 169 of file ShapeContainer.cpp.

References NamedObjectCont< T >::get(), and ShapeContainer::myPOIs.

Referenced by libsumo::POI::setPosition().

◆ netHasGNECrossings()

bool GNENet::netHasGNECrossings ( ) const

check if net has GNECrossings

Definition at line 1575 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().

◆ onLeftBtnPress()

virtual void GUIGlObject::onLeftBtnPress ( void *  )
inlinevirtualinherited

notify object about left click

Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.

Definition at line 165 of file GUIGlObject.h.

Referenced by GUISUMOAbstractView::onLeftBtnPress().

◆ polygonDynamicsUpdate()

SUMOTime ShapeContainer::polygonDynamicsUpdate ( SUMOTime  t,
PolygonDynamics pd 
)
virtualinherited

Regular update event for updating polygon dynamics.

Parameters
[in]tThe time at which the update is called
[in]pdThe dynamics to be updated
Returns
zero If dynamics has expired, next update time otherwise

Reimplemented in GUIShapeContainer.

Definition at line 217 of file ShapeContainer.cpp.

References PolygonDynamics::getPolygonID(), ShapeContainer::myPolygonUpdateCommands, ShapeContainer::removePolygon(), and PolygonDynamics::update().

Referenced by libsumo::Polygon::addDynamics(), and GUIShapeContainer::polygonDynamicsUpdate().

◆ registerEdge()

◆ registerHighlight()

void ShapeContainer::registerHighlight ( const std::string &  objectID,
const int  type,
const std::string &  polygonID 
)
virtualinherited

◆ registerJunction()

◆ removeActiveAddVisualisation()

virtual void GUIGlObject::removeActiveAddVisualisation ( GUISUMOAbstractView * const  ,
int   
)
inlinevirtualinherited

remove additional user-griggered visualisations

Reimplemented in GUIPerson, and GUIBaseVehicle.

Definition at line 162 of file GUIGlObject.h.

◆ removedPopupMenu()

virtual void GUIGlObject::removedPopupMenu ( )
inlinevirtualinherited

notify object about popup menu removal

Reimplemented in GUIBaseVehicle.

Definition at line 111 of file GUIGlObject.h.

Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().

◆ removeExplicitTurnaround()

void GNENet::removeExplicitTurnaround ( std::string  id)

remove edge id from the list of explicit turnarounds

Definition at line 2177 of file GNENet.cpp.

References myExplicitTurnarounds.

Referenced by GNEEdge::removeConnection().

◆ removeGLObjectFromGrid()

◆ removeParameterTable()

void GUIGlObject::removeParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was closed.

Parameters
[in]wThe closed parameter window

Definition at line 293 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

◆ removePOI()

bool ShapeContainer::removePOI ( const std::string &  id)
virtualinherited

Removes a PoI from the container.

Parameters
[in]idThe id of the PoI
Returns
Whether the poi could be removed

Reimplemented in GUIShapeContainer.

Definition at line 163 of file ShapeContainer.cpp.

References ShapeContainer::myPOIs, and NamedObjectCont< T >::remove().

Referenced by libsumo::POI::remove(), GNEChange_Attribute::~GNEChange_Attribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().

◆ removePolygon()

bool ShapeContainer::removePolygon ( const std::string &  id,
bool  useLock = true 
)
virtualinherited

◆ removePolygonDynamics()

bool ShapeContainer::removePolygonDynamics ( const std::string &  polyID)
virtualinherited

Remove dynamics (animation / tracking) for the given polygon.

Parameters
polyIDID of the polygon for which dynamics shall be removed
Returns
true if the operation was successful (dynamics existed for the polygon), false if not.

Definition at line 113 of file ShapeContainer.cpp.

References ShapeContainer::cleanupPolygonDynamics(), ShapeContainer::clearHighlights(), NamedObjectCont< T >::get(), ShapeContainer::myPolygonDynamics, ShapeContainer::myPolygons, and ShapeContainer::myTrackingPolygons.

Referenced by ShapeContainer::addPolygonDynamics(), and ShapeContainer::removePolygon().

◆ removePolygonForEditShapes()

◆ removeRestrictedLane()

bool GNENet::removeRestrictedLane ( SUMOVehicleClass  vclass,
GNEEdge edge,
GNEUndoList undoList 
)

remove restricted lane

Parameters
[in]vclassvehicle class to restrict
[in]edgethe edge in which remove sidewalk
[in]undoListThe undolist in which to mark changes

Definition at line 756 of file GNENet.cpp.

References deleteLane(), and GNEEdge::getLanes().

Referenced by GNEViewNet::removeRestrictedLane().

◆ removeShape()

◆ removeSolitaryJunctions()

void GNENet::removeSolitaryJunctions ( GNEUndoList undoList)

◆ removeTrackers()

void ShapeContainer::removeTrackers ( std::string  objectID)
virtualinherited

Remove all tracking polygons for the given object.

Definition at line 286 of file ShapeContainer.cpp.

References ShapeContainer::myTrackingPolygons, and ShapeContainer::removePolygon().

Referenced by MSDynamicShapeUpdater::vehicleStateChanged().

◆ renameEdge()

void GNENet::renameEdge ( GNEEdge edge,
const std::string &  newID 
)

◆ renameJunction()

void GNENet::renameJunction ( GNEJunction junction,
const std::string &  newID 
)

◆ replaceIncomingEdge()

◆ replaceInListAttribute()

void GNENet::replaceInListAttribute ( GNEAttributeCarrier ac,
SumoXMLAttr  key,
const std::string &  which,
const std::string &  by,
GNEUndoList undoList 
)
staticprivate

◆ replaceJunctionByGeometry()

◆ requireRecompute()

void GNENet::requireRecompute ( )

◆ requireSaveAdditionals()

◆ requireSaveDemandElements()

◆ requireSaveNet()

◆ requireSaveTLSPrograms()

◆ reserveEdgeID()

void GNENet::reserveEdgeID ( const std::string &  id)
private

reserve edge ID (To avoid duplicates)

Definition at line 3069 of file GNENet.cpp.

References IDSupplier::avoid(), and myEdgeIDSupplier.

Referenced by createEdge().

◆ reserveJunctionID()

void GNENet::reserveJunctionID ( const std::string &  id)
private

reserve junction ID (To avoid duplicates)

Definition at line 3075 of file GNENet.cpp.

References IDSupplier::avoid(), and myJunctionIDSupplier.

◆ resetJunctionConnections()

void GNENet::resetJunctionConnections ( GNEJunction junction,
GNEUndoList undoList 
)

reset junction's connections

Definition at line 2083 of file GNENet.cpp.

References clearJunctionConnections(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNEJunction::setLogicValid().

Referenced by GNEViewNet::onCmdResetConnections().

◆ reshapePolygon()

void ShapeContainer::reshapePolygon ( const std::string &  id,
const PositionVector shape 
)
virtualinherited

Assigns a shape to the named polygon.

Parameters
[in]idThe id of the polygon to reshape
[in]shapeThe polygon's new shape

Reimplemented in GUIShapeContainer.

Definition at line 178 of file ShapeContainer.cpp.

References NamedObjectCont< T >::get(), ShapeContainer::myPolygons, and SUMOPolygon::setShape().

Referenced by libsumo::Polygon::setShape().

◆ restrictLane()

bool GNENet::restrictLane ( SUMOVehicleClass  vclass,
GNELane lane,
GNEUndoList undoList 
)

transform lane to restricted lane

Parameters
[in]vclassvehicle class to restrict
[in]laneThe lane to be transformed
[in]undoListThe undolist in which to mark changes

Definition at line 690 of file GNENet.cpp.

References OptionsCont::getFloat(), GNELane::getIndex(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), OptionsCont::getOptions(), GNELane::getParentEdge(), NBEdge::getPermissions(), getVehicleClassNames(), GNELane::isRestricted(), GNELane::setAttribute(), SUMO_ATTR_ALLOW, SUMO_ATTR_WIDTH, SVC_BICYCLE, SVC_PEDESTRIAN, and toString().

Referenced by addRestrictedLane(), and GNEViewNet::restrictLane().

◆ retrieveAdditional()

GNEAdditional * GNENet::retrieveAdditional ( SumoXMLTag  type,
const std::string &  id,
bool  hardFail = true 
) const

Returns the named additional.

Parameters
[in]typetag with the type of additional
[in]idThe id of the additional to return.
[in]failHardWhether attempts to retrieve a nonexisting additional should result in an exception

Definition at line 2183 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, and myAttributeCarriers.

Referenced by GNERouteHandler::addPersonTrip(), GNERouteHandler::addRide(), GNERouteHandler::addStop(), GNERouteHandler::addWalk(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditional::changeAdditionalID(), GNEViewNet::deleteSelectedAdditionals(), GNEAdditional::generateChildID(), GNEAdditionalFrame::generateID(), GNEDetectorEntryExit::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNECalibratorFlow::isValid(), GNEStop::isValid(), GNERide::isValid(), GNEPersonTrip::isValid(), GNEWalk::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNEHierarchicalParentElements::replaceParentAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().

◆ retrieveAdditionals()

std::vector< GNEAdditional * > GNENet::retrieveAdditionals ( bool  onlySelected = false) const

return all additionals

Parameters
[in]onlySelectedWhether to return only selected additionals

Definition at line 2195 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, and myAttributeCarriers.

Referenced by GNEViewNet::deleteSelectedAdditionals(), GNEViewParent::onCmdLocate(), and GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ retrieveAttributeCarrier()

GNEAttributeCarrier * GNENet::retrieveAttributeCarrier ( const GUIGlID  id,
bool  failHard = true 
)

get a single attribute carrier based on a GLID

Parameters
[in]idsthe GL IDs for which to retrive the AC
[in]failHardWhether attempts to retrieve a nonexisting AttributeCarrier should result in an exception
Exceptions
InvalidArgumentif GL ID doesn't have a associated Attribute Carrier

Definition at line 1334 of file GNENet.cpp.

References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().

Referenced by GNEViewNet::getAttributeCarriersInBoundary(), and getSelectedAttributeCarriers().

◆ retrieveAttributeCarriers()

◆ retrieveConnection()

GNEConnection * GNENet::retrieveConnection ( const std::string &  id,
bool  failHard = true 
) const

get Connection by id

Parameters
[in]idThe id of the desired Connection
[in]failHardWhether attempts to retrieve a nonexisting Connection should result in an exception
Exceptions
UnknownElement

Definition at line 1128 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().

◆ retrieveConnections()

std::vector< GNEConnection * > GNENet::retrieveConnections ( bool  onlySelected = false) const

return all connections

Parameters
[in]onlySelectedWhether to return only selected connections

Definition at line 1148 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ retrieveCrossing()

GNECrossing * GNENet::retrieveCrossing ( const std::string &  id,
bool  failHard = true 
) const

get Crossing by id

Parameters
[in]idThe id of the desired Crossing
[in]failHardWhether attempts to retrieve a nonexisting Crossing should result in an exception
Exceptions
UnknownElement

Definition at line 1164 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by GNEViewNet::deleteSelectedCrossings(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().

◆ retrieveCrossings()

std::vector< GNECrossing * > GNENet::retrieveCrossings ( bool  onlySelected = false) const

return all crossings

Parameters
[in]onlySelectedWhether to return only selected crossings

Definition at line 1184 of file GNENet.cpp.

References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.

Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ retrieveDemandElement()

GNEDemandElement * GNENet::retrieveDemandElement ( SumoXMLTag  type,
const std::string &  id,
bool  hardFail = true 
) const

Returns the named demand element.

Parameters
[in]typetag with the type of demand element
[in]idThe id of the demand element to return.
[in]failHardWhether attempts to retrieve a nonexisting demand element should result in an exception

Definition at line 2316 of file GNENet.cpp.

References GNENet::AttributeCarriers::demandElements, and myAttributeCarriers.

Referenced by GNERouteHandler::addWalk(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNERouteHandler::buildPerson(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNEDemandElement::changeDemandElementID(), GNERouteHandler::closePerson(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEViewNet::deleteSelectedDemandElements(), GNEDemandElement::generateChildID(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNERouteHandler::isPersonIdDuplicated(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEDemandElement::isValidDemandElementID(), GNERouteHandler::isVehicleIdDuplicated(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEHierarchicalParentElements::replaceParentDemandElement(), GNECalibratorFlow::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().

◆ retrieveDemandElements()

std::vector< GNEDemandElement * > GNENet::retrieveDemandElements ( bool  onlySelected = false) const

return all demand elements

Parameters
[in]onlySelectedWhether to return only selected demand elements

Definition at line 2328 of file GNENet.cpp.

References GNENet::AttributeCarriers::demandElements, and myAttributeCarriers.

Referenced by GNEViewNet::deleteSelectedDemandElements(), GNEVehicle::getPopUpMenu(), and GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ retrieveEdge() [1/2]

GNEEdge * GNENet::retrieveEdge ( const std::string &  id,
bool  failHard = true 
)

get edge by id

Parameters
[in]idThe id of the desired edge
[in]failHardWhether attempts to retrieve a nonexisting edge should result in an exception
Exceptions
UnknownElement

Definition at line 1069 of file GNENet.cpp.

References GNENet::AttributeCarriers::edges, and myAttributeCarriers.

Referenced by GNERouteHandler::addPersonTrip(), GNEViewNet::addRestrictedLane(), GNERouteHandler::addRide(), GNETAZFrame::TAZCurrent::addTAZChild(), GNERouteHandler::addWalk(), GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), createEdge(), GNEAdditionalHandler::getLanePos(), GNEEdge::getOppositeEdge(), GNEAdditional::getPopUpMenu(), GNEConnectorFrame::initTargets(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEDestProbReroute::isValid(), GNECalibrator::isValid(), GNERide::isValid(), GNEPersonTrip::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEVehicle::isValid(), GNEJunction::markAsModified(), GNEJunction::moveJunctionGeometry(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEAttributeCarrier::parse(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEJunction::removeConnectionsTo(), GNEViewNet::removeRestrictedLane(), GNEViewNet::restrictLane(), GNEEdge::retrieveGNEConnection(), retrieveLane(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNERide::setAttribute(), GNEPersonTrip::setAttribute(), GNEWalk::setAttribute(), GNEVehicle::setAttribute(), GNERouteHandler::RouteParameter::setEdges(), GNEJunction::setLogicValid(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), and splitJunction().

◆ retrieveEdge() [2/2]

GNEEdge * GNENet::retrieveEdge ( GNEJunction from,
GNEJunction to,
bool  failHard = true 
)

get edge by from and to GNEJunction

Parameters
[in]idThe id of the desired edge
[in]failHardWhether attempts to retrieve a nonexisting edge should result in an exception
Exceptions
UnknownElement

Definition at line 1084 of file GNENet.cpp.

References GNENet::AttributeCarriers::edges, GNEAttributeCarrier::getID(), and myAttributeCarriers.

◆ retrieveEdges()

◆ retrieveJunction()

◆ retrieveJunctions()

◆ retrieveLane()

GNELane * GNENet::retrieveLane ( const std::string &  id,
bool  failHard = true,
bool  checkVolatileChange = false 
)

get lane by id

Parameters
[in]idThe id of the desired lane
[in]failHardWhether attempts to retrieve a nonexisting lane should result in an exception
[in]checkVolatileChangeUsed by additionals after recomputing with volatile options.
Exceptions
UnknownElement

Definition at line 1228 of file GNENet.cpp.

References SUMOXMLDefinitions::getEdgeIDFromLane(), GNELane::getIndex(), GNEEdge::getLanes(), myEdgesAndNumberOfLanes, retrieveEdge(), SUMO_TAG_EDGE, SUMO_TAG_LANE, and toString().

Referenced by addPOI(), GNEPolygonFrame::addPOILane(), GNERouteHandler::addStop(), GNERouteHandler::buildStop(), GNEAdditional::getPopUpMenu(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNEParkingArea::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntryExit::isValid(), GNEClosingLaneReroute::isValid(), GNEDetectorE1Instant::isValid(), GNECalibratorFlow::isValid(), GNEAccess::isValid(), GNECalibrator::isValid(), GNEStop::isValid(), GNEPOI::isValid(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEClosingLaneReroute::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().

◆ retrieveLanes()

◆ retrievePOI()

GNEPOI * GNENet::retrievePOI ( const std::string &  id,
bool  failHard = true 
) const

get POI by id

Parameters
[in]idThe id of the desired POI
[in]failHardWhether attempts to retrieve a nonexisting POI should result in an exception
Exceptions
UnknownElement

Definition at line 1115 of file GNENet.cpp.

References NamedObjectCont< T >::get(), and ShapeContainer::myPOIs.

Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPOI::generateChildID(), GNEPOI::isValid(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), and GNEChange_Shape::~GNEChange_Shape().

◆ retrievePolygon()

GNEPoly * GNENet::retrievePolygon ( const std::string &  id,
bool  failHard = true 
) const

get Polygon by id

Parameters
[in]idThe id of the desired polygon
[in]failHardWhether attempts to retrieve a nonexisting polygon should result in an exception
Exceptions
UnknownElement

Definition at line 1102 of file GNENet.cpp.

References NamedObjectCont< T >::get(), and ShapeContainer::myPolygons.

Referenced by GNEPolygonFrame::addPolygon(), GNEPoly::generateChildID(), GNEPoly::isValid(), and GNEChange_Shape::~GNEChange_Shape().

◆ retrieveShapes() [1/2]

std::vector< GNEShape * > GNENet::retrieveShapes ( bool  onlySelected = false)

return all shapes

Parameters
[in]onlySelectedWhether to return only selected junctions

Definition at line 1302 of file GNENet.cpp.

References ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), and GNEShape::isAttributeCarrierSelected().

◆ retrieveShapes() [2/2]

std::vector< GNEShape * > GNENet::retrieveShapes ( SumoXMLTag  shapeTag,
bool  onlySelected = false 
)

return shape by type shapes

Parameters
[in]shapeTagType of shape.
[in]onlySelectedWhether to return only selected junctions

Definition at line 1274 of file GNENet.cpp.

References ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEShape::isAttributeCarrierSelected(), and SUMO_TAG_POLY.

Referenced by GNEViewNet::deleteSelectedShapes(), and GNEDeleteFrame::removeSelectedAttributeCarriers().

◆ reverseEdge()

◆ save()

void GNENet::save ( OptionsCont oc)

save the network

Parameters
[in]ocThe OptionsCont which knows how and where to save

Definition at line 1000 of file GNENet.cpp.

References computeAndUpdate(), myNetBuilder, myNetSaved, and NWFrame::writeNetwork().

Referenced by GNEApplicationWindow::onCmdSaveNetwork().

◆ saveAdditionals()

void GNENet::saveAdditionals ( const std::string &  filename)

save additional elements of the network

Parameters
[in]filenamename of the file in wich save additionals

Definition at line 2255 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, myAdditionalsSaved, myAttributeCarriers, myViewNet, saveAdditionalsConfirmed(), SUMO_ATTR_LANE, SUMO_ATTR_LANES, GNEViewNet::update(), and WRITE_DEBUG.

Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveAdditionals().

◆ saveAdditionalsConfirmed()

◆ saveDemandElements()

void GNENet::saveDemandElements ( const std::string &  filename)

◆ saveDemandElementsConfirmed()

void GNENet::saveDemandElementsConfirmed ( const std::string &  filename)
private

◆ saveJoined()

void GNENet::saveJoined ( OptionsCont oc)

save log of joined junctions (and nothing else)

Parameters
[in]ocThe OptionsCont which knows how and where to save

Definition at line 1018 of file GNENet.cpp.

References computeAndUpdate(), NBNetBuilder::getNodeCont(), myNetBuilder, and NWWriter_XML::writeJoinedJunctions().

Referenced by GNEApplicationWindow::onCmdSaveJoined().

◆ savePlain()

void GNENet::savePlain ( OptionsCont oc)

save plain xml representation of the network (and nothing else)

Parameters
[in]ocThe OptionsCont which knows how and where to save

Definition at line 1010 of file GNENet.cpp.

References computeAndUpdate(), myNetBuilder, and NWWriter_XML::writeNetwork().

Referenced by GNEApplicationWindow::onCmdSaveAsPlainXML().

◆ saveTLSPrograms()

void GNENet::saveTLSPrograms ( const std::string &  filename)

save TLS Programs elements of the network

Parameters
[in]filenamename of the file in wich save TLS Programs

Definition at line 2656 of file GNENet.cpp.

References OutputDevice::close(), OutputDevice::getDevice(), getTLLogicCont(), myTLSProgramsSaved, OutputDevice::openTag(), WRITE_DEBUG, and NWWriter_SUMO::writeTrafficLights().

Referenced by GNEApplicationWindow::onCmdSaveTLSPrograms().

◆ setMicrosimID()

void GUIGlObject::setMicrosimID ( const std::string &  newID)
virtualinherited

◆ setViewNet()

◆ splitEdge()

◆ splitEdgesBidi()

void GNENet::splitEdgesBidi ( GNEEdge edge,
GNEEdge oppositeEdge,
const Position pos,
GNEUndoList undoList 
)

split all edges at position by inserting one new junction

Parameters
[in]edgeThe edge to be split
[in]oppositeEdgeThe oppositeEdge to be split
[in]posThe position on which to insert the new junction

Definition at line 875 of file GNENet.cpp.

References GNEUndoList::p_begin(), GNEUndoList::p_end(), splitEdge(), SUMO_TAG_EDGE, and toString().

Referenced by GNEViewNet::onCmdSplitEdgeBidi().

◆ splitJunction()

◆ update()

void GNENet::update ( )
private

notify myViewNet

Definition at line 3061 of file GNENet.cpp.

References myViewNet, and GNEViewNet::update().

Referenced by changeEdgeEndpoints(), computeNetwork(), registerEdge(), and registerJunction().

◆ updateAdditionalID()

void GNENet::updateAdditionalID ( const std::string &  oldID,
GNEAdditional additional 
)

update additional ID in container

Note
this function is automatically called when user changes the ID of an additional

Definition at line 2222 of file GNENet.cpp.

References GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), myAttributeCarriers, and requireSaveAdditionals().

Referenced by GNEAdditional::changeAdditionalID().

◆ updateDemandElementBegin()

void GNENet::updateDemandElementBegin ( const std::string &  oldBegin,
GNEDemandElement demandElement 
)

update demand element begin in container

Note
this function is automatically called when user changes the begin/departure of an demand element

Definition at line 2378 of file GNENet.cpp.

References GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, and GNENet::AttributeCarriers::vehicleDepartures.

Referenced by GNEPerson::setAttribute(), and GNEVehicle::setAttribute().

◆ updateDemandElementID()

void GNENet::updateDemandElementID ( const std::string &  oldID,
GNEDemandElement demandElement 
)

Friends And Related Function Documentation

◆ GNEAdditionalHandler

friend class GNEAdditionalHandler
friend

declare friend class

Definition at line 80 of file GNENet.h.

◆ GNEChange_Additional

friend class GNEChange_Additional
friend

Definition at line 88 of file GNENet.h.

Referenced by deleteAdditional().

◆ GNEChange_CalibratorItem

friend class GNEChange_CalibratorItem
friend

Definition at line 87 of file GNENet.h.

◆ GNEChange_Connection

friend class GNEChange_Connection
friend

◆ GNEChange_DemandElement

friend class GNEChange_DemandElement
friend

◆ GNEChange_Edge

friend class GNEChange_Edge
friend

Definition at line 83 of file GNENet.h.

Referenced by createEdge(), deleteEdge(), and replaceIncomingEdge().

◆ GNEChange_Junction

friend class GNEChange_Junction
friend

Definition at line 82 of file GNENet.h.

Referenced by createJunction(), and deleteJunction().

◆ GNEChange_Lane

friend class GNEChange_Lane
friend

Definition at line 84 of file GNENet.h.

Referenced by deleteLane(), and duplicateLane().

◆ GNEChange_Shape

friend class GNEChange_Shape
friend

Definition at line 86 of file GNENet.h.

Referenced by addPOI(), addPolygon(), deleteLane(), and deleteShape().

◆ GNERouteHandler

friend class GNERouteHandler
friend

Definition at line 81 of file GNENet.h.

Field Documentation

◆ GUIGlObjectTypeNamesInitializer

StringBijection< GUIGlObjectType >::Entry GUIGlObject::GUIGlObjectTypeNamesInitializer
staticprivateinherited

LinkStates (Currently unused)

vector for TypeNames Initializer

Definition at line 277 of file GUIGlObject.h.

◆ INVALID_ID

◆ myAdditionalsSaved

bool GNENet::myAdditionalsSaved
protected

Flag to check if additionals has to be saved.

Definition at line 758 of file GNENet.h.

Referenced by isAdditionalsSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and saveAdditionals().

◆ myAllowUndoShapes

bool GNENet::myAllowUndoShapes
private

flag used to indicate if shaped created can be undo

Definition at line 863 of file GNENet.h.

Referenced by addPOI(), and addPolygon().

◆ myAttributeCarriers

◆ myDemandElementsSaved

bool GNENet::myDemandElementsSaved
protected

Flag to check if demand elements has to be saved.

Definition at line 764 of file GNENet.h.

Referenced by isDemandElementsSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and saveDemandElements().

◆ myEdgeIDSupplier

IDSupplier GNENet::myEdgeIDSupplier
protected

Definition at line 744 of file GNENet.h.

Referenced by createEdge(), and reserveEdgeID().

◆ myEdgesAndNumberOfLanes

std::map<std::string, int> GNENet::myEdgesAndNumberOfLanes
private

map with the Edges and their number of lanes

Definition at line 860 of file GNENet.h.

Referenced by computeNetwork(), and retrieveLane().

◆ myExplicitTurnarounds

std::set<std::string> GNENet::myExplicitTurnarounds
protected

list of edge ids for which turn-arounds must be added explicitly

Definition at line 749 of file GNENet.h.

Referenced by addExplicitTurnaround(), computeAndUpdate(), and removeExplicitTurnaround().

◆ myFullName

std::string GUIGlObject::myFullName
privateinherited

full name of GL Object

Definition at line 260 of file GUIGlObject.h.

Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().

◆ myGlID

GUIGlID GUIGlObject::myGlID
privateinherited

The numerical id of the object.

Definition at line 251 of file GUIGlObject.h.

Referenced by GUIGlObject::getGlID(), and GUIGlObject::GUIGlObject().

◆ myGLObjectType

const GUIGlObjectType GUIGlObject::myGLObjectType
privateinherited

The type of the object.

Definition at line 254 of file GUIGlObject.h.

Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().

◆ myGrid

◆ myHighlightedObjects

std::map<std::string, std::string> ShapeContainer::myHighlightedObjects
protectedinherited

inverse map to myHighlightPolygons saves the highlighted object for each polygon

Definition at line 207 of file ShapeContainer.h.

Referenced by ShapeContainer::clearHighlight(), and ShapeContainer::registerHighlight().

◆ myHighlightPolygons

std::map<std::string, std::map<int, std::string> > ShapeContainer::myHighlightPolygons
protectedinherited

maps objects to a map of highlight types to highlighting polygons

Definition at line 205 of file ShapeContainer.h.

Referenced by ShapeContainer::clearHighlight(), ShapeContainer::clearHighlights(), and ShapeContainer::registerHighlight().

◆ myJunctionIDSupplier

IDSupplier GNENet::myJunctionIDSupplier
protected

Definition at line 745 of file GNENet.h.

Referenced by createJunction(), and reserveJunctionID().

◆ myMicrosimID

std::string GUIGlObject::myMicrosimID
privateinherited

ID of GL object.

Definition at line 257 of file GUIGlObject.h.

Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().

◆ myNeedRecompute

bool GNENet::myNeedRecompute
protected

whether the net needs recomputation

Definition at line 752 of file GNENet.h.

Referenced by computeAndUpdate(), computeNetwork(), and requireRecompute().

◆ myNetBuilder

◆ myNetSaved

bool GNENet::myNetSaved
protected

Flag to check if net has to be saved.

Definition at line 755 of file GNENet.h.

Referenced by isNetSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and save().

◆ myParamWindows

std::set<GUIParameterTableWindow*> GUIGlObject::myParamWindows
privateinherited

Parameter table windows which refer to this object.

Definition at line 263 of file GUIGlObject.h.

Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().

◆ myPOIs

◆ myPolygonDynamics

std::map<std::string, PolygonDynamics*> ShapeContainer::myPolygonDynamics
protectedinherited

◆ myPolygons

◆ myPolygonUpdateCommands

std::map<const std::string, ParametrisedWrappingCommand<ShapeContainer, PolygonDynamics*>*> ShapeContainer::myPolygonUpdateCommands
privateinherited

◆ myTLSProgramsSaved

bool GNENet::myTLSProgramsSaved
protected

Flag to check if shapes has to be saved.

Definition at line 761 of file GNENet.h.

Referenced by requireSaveTLSPrograms(), and saveTLSPrograms().

◆ myTrackingPolygons

std::map<const std::string, std::set<const SUMOPolygon*> > ShapeContainer::myTrackingPolygons
protectedinherited

Information about tracked objects.

Note
Maps tracked object IDs to set of polygons, which are tracking the object. Needed at object removal to cancel tacking (i.e. remove tracking poly).

Definition at line 212 of file ShapeContainer.h.

Referenced by ShapeContainer::addPolygonDynamics(), ShapeContainer::removePolygonDynamics(), and ShapeContainer::removeTrackers().

◆ myUpdateGeometryEnabled

bool GNENet::myUpdateGeometryEnabled
protected

Flag to enable or disable update geometry of elements after inserting or removing element in net.

Definition at line 767 of file GNENet.h.

Referenced by computeAndUpdate(), disableUpdateGeometry(), enableUpdateGeometry(), insertAdditional(), insertDemandElement(), and isUpdateGeometryEnabled().

◆ myViewNet

◆ myZBoundary

Boundary GNENet::myZBoundary
private

the z boundary (stored in the x-coordinate), values of 0 are ignored

Definition at line 854 of file GNENet.h.

Referenced by getZBoundary(), and registerJunction().

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 68 of file GUIGlObject.h.

Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().

◆ Z_INITIALIZED

const double GNENet::Z_INITIALIZED = 1
staticprivate

marker for whether the z-boundary is initialized

Definition at line 857 of file GNENet.h.

Referenced by registerJunction().


The documentation for this class was generated from the following files: