SUMO - Simulation of Urban MObility
GNEJunction Class Reference

#include <GNEJunction.h>

Inheritance diagram for GNEJunction:
Inheritance graph
Collaboration diagram for GNEJunction:
Collaboration graph

Public Types

enum  AttrProperty {
  ATTRPROPERTY_INT = 1 << 0, ATTRPROPERTY_FLOAT = 1 << 1, ATTRPROPERTY_BOOL = 1 << 2, ATTRPROPERTY_STRING = 1 << 3,
  ATTRPROPERTY_POSITION = 1 << 4, ATTRPROPERTY_COLOR = 1 << 5, ATTRPROPERTY_VCLASS = 1 << 6, ATTRPROPERTY_POSITIVE = 1 << 7,
  ATTRPROPERTY_NOTZERO = 1 << 8, ATTRPROPERTY_UNIQUE = 1 << 9, ATTRPROPERTY_FILENAME = 1 << 10, ATTRPROPERTY_NONEDITABLE = 1 << 11,
  ATTRPROPERTY_DISCRETE = 1 << 12, ATTRPROPERTY_PROBABILITY = 1 << 13, ATTRPROPERTY_TIME = 1 << 14, ATTRPROPERTY_ANGLE = 1 << 15,
  ATTRPROPERTY_LIST = 1 << 16, ATTRPROPERTY_SECUENCIAL = 1 << 17, ATTRPROPERTY_OPTIONAL = 1 << 18, ATTRPROPERTY_DEFAULTVALUE = 1 << 19,
  ATTRPROPERTY_COMBINABLE = 1 << 20, ATTRPROPERTY_SYNONYM = 1 << 21, ATTRPROPERTY_RANGE = 1 << 22
}
 struct with the tag Properties More...
 
enum  TAGProperty {
  TAGPROPERTY_NETELEMENT = 1 << 0, TAGPROPERTY_ADDITIONAL = 1 << 1, TAGPROPERTY_SHAPE = 1 << 2, TAGPROPERTY_TAZ = 1 << 3,
  TAGPROPERTY_STOPPINGPLACE = 1 << 4, TAGPROPERTY_DETECTOR = 1 << 5, TAGPROPERTY_ROUTEELEMENT = 1 << 6, TAGPROPERTY_DRAWABLE = 1 << 7,
  TAGPROPERTY_BLOCKMOVEMENT = 1 << 8, TAGPROPERTY_BLOCKSHAPE = 1 << 9, TAGPROPERTY_CLOSESHAPE = 1 << 10, TAGPROPERTY_GEOPOSITION = 1 << 11,
  TAGPROPERTY_GEOSHAPE = 1 << 12, TAGPROPERTY_DIALOG = 1 << 13, TAGPROPERTY_PARENT = 1 << 14, TAGPROPERTY_MINIMUMCHILDS = 1 << 15,
  TAGPROPERTY_REPARENT = 1 << 16, TAGPROPERTY_SYNONYM = 1 << 17, TAGPROPERTY_AUTOMATICSORTING = 1 << 18, TAGPROPERTY_SELECTABLE = 1 << 19,
  TAGPROPERTY_MASKSTARTENDPOS = 1 << 20, TAGPROPERTY_MASKXYZPOSITION = 1 << 21, TAGPROPERTY_WRITECHILDSSEPARATE = 1 << 22, TAGPROPERTY_PLACEDOVER_VIEW = 1 << 23,
  TAGPROPERTY_PLACEDOVER_EDGE = 1 << 24, TAGPROPERTY_PLACEDOVER_LANE = 1 << 25, TAGPROPERTY_PLACEDOVER_JUNCTION = 1 << 26, TAGPROPERTY_PLACEDOVER_EDGES = 1 << 27,
  TAGPROPERTY_PLACEDOVER_LANES = 1 << 28, TAGPROPERTY_NOGENERICPARAMETERS = 1 << 29
}
 

Public Member Functions

void addAdditionalChild (GNEAdditional *additional)
 add additional child to this edge More...
 
void addAdditionalParent (GNEAdditional *additional)
 add additional child to this edge More...
 
void addIncomingGNEEdge (GNEEdge *edge)
 add incoming GNEEdge More...
 
void addOutgoingGNEEdge (GNEEdge *edge)
 add outgoing GNEEdge More...
 
void decRef (const std::string &debugMsg="")
 Decrease reference. 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...
 
const std::vector< GNEAdditional * > & getAdditionalChilds () const
 return vector of additionals that have as Parent this edge (For example, Calibrators) More...
 
const std::vector< GNEAdditional * > & getAdditionalParents () const
 return vector of additionals that have as Parameter this edge (For example, Rerouters) More...
 
virtual std::string getAttributeForSelection (SumoXMLAttr key) const
 method for getting the attribute in the context of object selection More...
 
Boundary getBoundary () const
 Returns the boundary of the junction. More...
 
std::vector< GNEConnection * > getGNEConnections () const
 Returns all GNEConnections vinculated with this junction. More...
 
const std::vector< GNECrossing * > & getGNECrossings () const
 Returns GNECrossings. More...
 
const std::vector< GNEEdge * > & getGNEEdges () const
 Returns all GNEEdges vinculated with this Junction. More...
 
const std::vector< GNEEdge * > & getGNEIncomingEdges () const
 Returns incoming GNEEdges. More...
 
const std::vector< GNEEdge * > & getGNEOutgoingEdges () const
 Returns incoming GNEEdges. More...
 
FXIcon * getIcon () const
 get FXIcon associated to this AC More...
 
const std::string getID () const
 function to support debugging More...
 
std::vector< GNEJunction * > getJunctionNeighbours () const
 return GNEJunction neighbours More...
 
NBNodegetNBNode () const
 Return net build node. More...
 
GNENetgetNet () const
 get Net in which this element is placed More...
 
Position getPositionInView () const
 Return current position. More...
 
const TagPropertiesgetTagProperty () const
 get Tag Property assigned to this object More...
 
const std::string & getTagStr () const
 get tag assigned to this object in string format More...
 
 GNEJunction (NBNode &nbn, GNENet *net, bool loaded=false)
 Constructor. More...
 
void incRef (const std::string &debugMsg="")
 Increarse reference. More...
 
void invalidateShape ()
 
void invalidateTLS (GNEUndoList *undoList, const NBConnection &deletedConnection=NBConnection::InvalidConnection, const NBConnection &addedConnection=NBConnection::InvalidConnection)
 
bool isLogicValid ()
 whether this junction has a valid logic More...
 
void markAsCreateEdgeSource ()
 marks as first junction in createEdge-mode More...
 
void markAsModified (GNEUndoList *undoList)
 prevent re-guessing connections at this junction More...
 
void markConnectionsDeprecated (bool includingNeighbours)
 mark connections as deprecated More...
 
template<>
int parse (const std::string &string)
 
template<>
double parse (const std::string &string)
 
template<>
bool parse (const std::string &string)
 
template<>
std::string parse (const std::string &string)
 
template<>
SUMOVehicleClass parse (const std::string &string)
 
template<>
RGBColor parse (const std::string &string)
 
template<>
Position parse (const std::string &string)
 
template<>
PositionVector parse (const std::string &string)
 
template<>
SUMOVehicleShape parse (const std::string &string)
 
template<>
std::vector< std::string > parse (const std::string &string)
 
template<>
std::vector< int > parse (const std::string &string)
 
template<>
std::vector< double > parse (const std::string &string)
 
template<>
std::vector< bool > parse (const std::string &string)
 
template<>
std::vector< GNEEdge * > parse (GNENet *net, const std::string &value)
 
template<>
std::vector< GNELane * > parse (GNENet *net, const std::string &value)
 
template<>
std::string parseIDs (const std::vector< GNEEdge *> &ACs)
 
template<>
std::string parseIDs (const std::vector< GNELane *> &ACs)
 
void removeAdditionalChild (GNEAdditional *additional)
 remove additional child from this edge More...
 
void removeAdditionalParent (GNEAdditional *additional)
 remove additional child from this edge More...
 
void removeConnectionsFrom (GNEEdge *edge, GNEUndoList *undoList, bool updateTLS, int lane=-1)
 remove all connections from the given edge More...
 
void removeConnectionsTo (GNEEdge *edge, GNEUndoList *undoList, bool updateTLS, int lane=-1)
 remove all connections to the given edge More...
 
void removeEdgeFromCrossings (GNEEdge *edge, GNEUndoList *undoList)
 removes the given edge from all pedestrian crossings More...
 
void removeIncomingGNEEdge (GNEEdge *edge)
 remove incoming GNEEdge More...
 
void removeOutgoingGNEEdge (GNEEdge *edge)
 remove outgoing GNEEdge More...
 
void replaceIncomingConnections (GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
 replace one edge by another in all tls connections More...
 
GNECrossingretrieveGNECrossing (NBNode::Crossing *crossing, bool createIfNoExist=true)
 get GNECrossing if exist, and if not create it if create is enabled More...
 
void selectTLS (bool selected)
 notify the junction of being selected in tls-mode. (used to control drawing) More...
 
void setLogicValid (bool valid, GNEUndoList *undoList, const std::string &status=FEATURE_GUESSED)
 
void setResponsible (bool newVal)
 set responsibility for deleting internal strctures More...
 
void unMarkAsCreateEdgeSource ()
 removes mark as first junction in createEdge-mode More...
 
bool unreferenced ()
 check if object ins't referenced More...
 
void updateGeometry (bool updateGrid)
 Update the boundary of the junction. More...
 
 ~GNEJunction ()
 Destructor. More...
 
inherited from GUIGlObject
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
Boundary getCenteringBoundary () const
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
void drawGL (const GUIVisualizationSettings &s) const
 Draws the object. More...
 
functions related with geometry movement
void startGeometryMoving (bool extendToNeighbors=true)
 begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree) More...
 
void endGeometryMoving (bool extendToNeighbors=true)
 begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree) More...
 
void moveGeometry (const Position &oldPos, const Position &offset)
 change the position of the element geometry without saving in undoList More...
 
void commitGeometryMoving (const Position &oldPos, GNEUndoList *undoList)
 registers completed movement with the undoList More...
 
void updateShapesAndGeometries (bool updateGrid)
 update shapes of all elements associated to the junction More...
 
inherited from GNEAttributeCarrier
std::string getAttribute (SumoXMLAttr key) const
 
void setAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
 
bool isValid (SumoXMLAttr key, const std::string &value)
 
Function related with Generic Parameters
std::string getGenericParametersStr () const
 return generic parameters in string format More...
 
std::vector< std::pair< std::string, std::string > > getGenericParameters () const
 return generic parameters as vector of pairs format More...
 
void setGenericParametersStr (const std::string &value)
 set generic parameters in string format More...
 
inherited from GUIGlObject
GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own parameter window. More...
 
inherited from GNEAttributeCarrier
void selectAttributeCarrier (bool changeFlag=true)
 select attribute carrier using GUIGlobalSelection More...
 
void unselectAttributeCarrier (bool changeFlag=true)
 unselect attribute carrier using GUIGlobalSelection More...
 
bool isAttributeCarrierSelected () const
 check if attribute carrier is selected More...
 
std::string getPopUpID () const
 get PopPup ID (Used in AC Hierarchy) More...
 
std::string getHierarchyName () const
 get Hierarchy Name (Used in AC Hierarchy) More...
 
Atomar getter methods

Returns the full name appearing in the tool tip

Returns
This object's typed id
const std::string & getFullName () const
 
virtual std::string getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
interfaces to be implemented by derived classes
virtual 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 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
 
Parameter table window I/O

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

Parameters
[in]wThe opened parameter window
void addParameterTable (GUIParameterTableWindow *w)
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Static Public Member Functions

static std::vector< SumoXMLTagallowedTags (bool onlyDrawables)
 get tags of all editable element types More...
 
static std::vector< SumoXMLTagallowedTagsByCategory (int tagPropertyCategory, bool onlyDrawables)
 get tags of all editable element types using TagProperty Type (TAGPROPERTY_NETELEMENT, TAGPROPERTY_ADDITIONAL, etc.) More...
 
template<typename T >
static bool canParse (const std::string &string)
 true if a value of type T can be parsed from string More...
 
template<typename T >
static bool canParse (GNENet *net, const std::string &value, bool report)
 true if a value of type T can be parsed from string More...
 
static int getCircleResolution (const GUIVisualizationSettings &settings)
 function to calculate circle resolution for all circles drawn in drawGL(...) functions More...
 
static int getHigherNumberOfAttributes ()
 return the number of attributes of the tag with the most highter number of attributes More...
 
static const TagPropertiesgetTagProperties (SumoXMLTag tag)
 get Tag Properties More...
 
static bool isGenericParametersValid (const std::string &value)
 check if given string can be parsed to a map/list of generic parameters More...
 
static bool lanesConsecutives (const std::vector< GNELane *> &lanes)
 check if lanes are consecutives More...
 
template<typename T >
static T parse (const std::string &string)
 parses a value of type T from string (used for basic types: int, double, bool, etc.) More...
 
template<typename T >
static T parse (GNENet *net, const std::string &value)
 parses a complex value of type T from string (use for list of edges, list of lanes, etc.) More...
 
template<typename T >
static T parseAttributeFromXML (const SUMOSAXAttributes &attrs, const std::string &objectID, const SumoXMLTag tag, const SumoXMLAttr attribute, bool &abort)
 Parse attribute from XML and show warnings if there are problems parsing it. More...
 
template<typename T >
static std::string parseIDs (const std::vector< T > &ACs)
 parses a list of specific Attribute Carriers into a string of IDs More...
 

Static Public Attributes

static const double BUBBLE_RADIUS
 constant values for drawing buubles More...
 
static const GUIGlID INVALID_ID = 0
 
static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 
Certain attributes and ACs (for example, connections) can be either loaded or guessed. The following static variables are used to remark it.

feature is still unchanged after being loaded (implies approval)

static const std::string FEATURE_LOADED = "loaded"
 
static const std::string FEATURE_GUESSED = "guessed"
 feature has been reguessed (may still be unchanged be we can't tell (yet) More...
 
static const std::string FEATURE_MODIFIED = "modified"
 feature has been manually modified (implies approval) More...
 
static const std::string FEATURE_APPROVED = "approved"
 feature has been approved but not changed (i.e. after being reguessed) More...
 

Protected Member Functions

void buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
void buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
helper methods for building popup-menus
void buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
 Builds the header. More...
 
void buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to center to the object. More...
 
void buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds entries which allow to copy the name / typed name into the clipboard. More...
 
void buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to (de)select the object. More...
 
void buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the parameter window. More...
 
void buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the type parameter window. More...
 
void buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More...
 
void buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the manipulator window. More...
 

Protected Attributes

std::vector< GNEAdditional * > myAdditionalChilds
 list of Additional Childs of this NetElement More...
 
std::vector< GNEAdditional * > myFirstAdditionalParents
 list of Additional parents of this NetElement More...
 
Boundary myMovingGeometryBoundary
 boundary used during moving of elements More...
 
GNENetmyNet
 the net to inform about updates More...
 
bool mySelected
 boolean to check if this AC is selected (instead of GUIGlObjectStorage) More...
 
const TagPropertiesmyTagProperty
 the xml tag to which this attribute carrier corresponds More...
 

Static Protected Attributes

static TagProperties dummyTagProperty
 dummy TagProperty used for reference some elements (for Example, dummyEdge) More...
 

Private Member Functions

void addTrafficLight (NBTrafficLightDefinition *tlDef, bool forceInsert)
 adds a traffic light More...
 
double getColorValue (const GUIVisualizationSettings &s, bool bubble) const
 determines color value More...
 
 GNEJunction (const GNEJunction &)=delete
 Invalidated copy constructor. More...
 
void mouseOverObject (const GUIVisualizationSettings &s) const
 method for check if mouse is over objects More...
 
void moveJunctionGeometry (const Position &pos, bool updateGrid)
 reposition the node at pos and informs the edges More...
 
GNEJunctionoperator= (const GNEJunction &)=delete
 Invalidated assignment operator. More...
 
void rebuildGNECrossings (bool rebuildNBNodeCrossings=true)
 rebuilds crossing objects for this junction More...
 
void removeTLSConnections (std::vector< NBConnection > &connections, GNEUndoList *undoList)
 remove the given connections from all traffic light definitions of this junction More...
 
void removeTrafficLight (NBTrafficLightDefinition *tlDef)
 removes a traffic light More...
 
void setAttribute (SumoXMLAttr key, const std::string &value)
 method for setting the attribute and nothing else (used in GNEChange_Attribute) More...
 
void setColor (const GUIVisualizationSettings &s, bool bubble) const
 sets junction color depending on circumstances More...
 

Private Attributes

bool myAmCreateEdgeSource
 whether this junction is the first junction for a newly creatededge More...
 
bool myAmResponsible
 whether we are responsible for deleting myNBNode More...
 
bool myAmTLSSelected
 whether this junction is selected in tls-mode More...
 
std::vector< GNECrossing * > myGNECrossings
 the built crossing objects More...
 
std::vector< GNEEdge * > myGNEEdges
 vector with the GNEEdges vinculated with this junction More...
 
std::vector< GNEEdge * > myGNEIncomingEdges
 vector with the incomings GNEEdges vinculated with this junction More...
 
std::vector< GNEEdge * > myGNEOutgoingEdges
 vector with the outgoings GNEEdges vinculated with this junction More...
 
bool myHasValidLogic
 whether this junctions logic is valid More...
 
Boundary myJunctionBoundary
 junction boundary More...
 
std::string myLogicStatus
 modification status of the junction logic (all connections across this junction) More...
 
double myMaxSize
 The maximum size (in either x-, or y-dimension) for determining whether to draw or not. More...
 
NBNodemyNBNode
 A reference to the represented junction. More...
 

Friends

class GNEChange_Crossing
 
class GNEChange_TLS
 Declare friend class. More...
 

Detailed Description

In the case the represented junction's shape is empty, the boundary is computed using the junction's position to which an offset of 1m to each side is added.

Definition at line 48 of file GNEJunction.h.

Member Enumeration Documentation

◆ AttrProperty

struct with the tag Properties

Enumerator
ATTRPROPERTY_INT 
ATTRPROPERTY_FLOAT 
ATTRPROPERTY_BOOL 
ATTRPROPERTY_STRING 
ATTRPROPERTY_POSITION 
ATTRPROPERTY_COLOR 
ATTRPROPERTY_VCLASS 
ATTRPROPERTY_POSITIVE 
ATTRPROPERTY_NOTZERO 
ATTRPROPERTY_UNIQUE 
ATTRPROPERTY_FILENAME 
ATTRPROPERTY_NONEDITABLE 
ATTRPROPERTY_DISCRETE 
ATTRPROPERTY_PROBABILITY 
ATTRPROPERTY_TIME 
ATTRPROPERTY_ANGLE 
ATTRPROPERTY_LIST 
ATTRPROPERTY_SECUENCIAL 
ATTRPROPERTY_OPTIONAL 
ATTRPROPERTY_DEFAULTVALUE 
ATTRPROPERTY_COMBINABLE 
ATTRPROPERTY_SYNONYM 
ATTRPROPERTY_RANGE 

Definition at line 60 of file GNEAttributeCarrier.h.

◆ TAGProperty

Enumerator
TAGPROPERTY_NETELEMENT 
TAGPROPERTY_ADDITIONAL 
TAGPROPERTY_SHAPE 
TAGPROPERTY_TAZ 
TAGPROPERTY_STOPPINGPLACE 
TAGPROPERTY_DETECTOR 
TAGPROPERTY_ROUTEELEMENT 
TAGPROPERTY_DRAWABLE 
TAGPROPERTY_BLOCKMOVEMENT 
TAGPROPERTY_BLOCKSHAPE 
TAGPROPERTY_CLOSESHAPE 
TAGPROPERTY_GEOPOSITION 
TAGPROPERTY_GEOSHAPE 
TAGPROPERTY_DIALOG 
TAGPROPERTY_PARENT 
TAGPROPERTY_MINIMUMCHILDS 
TAGPROPERTY_REPARENT 
TAGPROPERTY_SYNONYM 
TAGPROPERTY_AUTOMATICSORTING 
TAGPROPERTY_SELECTABLE 
TAGPROPERTY_MASKSTARTENDPOS 
TAGPROPERTY_MASKXYZPOSITION 
TAGPROPERTY_WRITECHILDSSEPARATE 
TAGPROPERTY_PLACEDOVER_VIEW 
TAGPROPERTY_PLACEDOVER_EDGE 
TAGPROPERTY_PLACEDOVER_LANE 
TAGPROPERTY_PLACEDOVER_JUNCTION 
TAGPROPERTY_PLACEDOVER_EDGES 
TAGPROPERTY_PLACEDOVER_LANES 
TAGPROPERTY_NOGENERICPARAMETERS 

Definition at line 223 of file GNEAttributeCarrier.h.

Constructor & Destructor Documentation

◆ GNEJunction() [1/2]

GNEJunction::GNEJunction ( NBNode nbn,
GNENet net,
bool  loaded = false 
)

Constructor.

Parameters
[in]nbnThe represented node
[in]netThe net to inform about gui updates
[in]loadedWhether the junction was loaded from a file

Definition at line 58 of file GNEJunction.cpp.

References NBNode::getPosition(), myJunctionBoundary, myNBNode, Position::x(), and Position::y().

◆ ~GNEJunction()

GNEJunction::~GNEJunction ( )

Destructor.

Definition at line 71 of file GNEJunction.cpp.

References GNEAttributeCarrier::getID(), myAmResponsible, myGNECrossings, myNBNode, and WRITE_DEBUG.

◆ GNEJunction() [2/2]

GNEJunction::GNEJunction ( const GNEJunction )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addAdditionalChild()

◆ addAdditionalParent()

void GNENetElement::addAdditionalParent ( GNEAdditional additional)
inherited

◆ addIncomingGNEEdge()

void GNEJunction::addIncomingGNEEdge ( GNEEdge edge)

◆ addOutgoingGNEEdge()

void GNEJunction::addOutgoingGNEEdge ( GNEEdge edge)

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

◆ addTrafficLight()

void GNEJunction::addTrafficLight ( NBTrafficLightDefinition tlDef,
bool  forceInsert 
)
private

◆ allowedTags()

std::vector< SumoXMLTag > GNEAttributeCarrier::allowedTags ( bool  onlyDrawables)
staticinherited

get tags of all editable element types

Definition at line 1056 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::fillAttributeCarriers(), and GNEAttributeCarrier::myTagProperties.

◆ allowedTagsByCategory()

◆ buildAdditionalsPopupOptions()

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

◆ buildCenterPopupEntry()

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

◆ buildPositionCopyEntry()

◆ 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

Definition at line 254 of file GUIGlObject.cpp.

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

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

◆ buildShowParamsPopupEntry()

◆ buildShowTypeParamsPopupEntry()

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

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

Parameters

Definition at line 233 of file GUIGlObject.cpp.

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

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

◆ canParse() [1/2]

template<typename T >
static bool GNEAttributeCarrier::canParse ( const std::string &  string)
inlinestaticinherited

◆ canParse() [2/2]

template<typename T >
static bool GNEAttributeCarrier::canParse ( GNENet net,
const std::string &  value,
bool  report 
)
inlinestaticinherited

true if a value of type T can be parsed from string

Definition at line 566 of file GNEAttributeCarrier.h.

References GNEAttributeCarrier::lanesConsecutives(), GNEAttributeCarrier::parse(), GNEAttributeCarrier::parseIDs(), and WRITE_WARNING.

◆ commitGeometryMoving()

void GNEJunction::commitGeometryMoving ( const Position oldPos,
GNEUndoList undoList 
)

◆ decRef()

◆ drawGL()

void GNEJunction::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 GNENetElement.

Definition at line 227 of file GNEJunction.cpp.

References PositionVector::area(), BUBBLE_RADIUS, PositionVector::closePolygon(), GUIVisualizationTextSettings::color, Position::distanceSquaredTo2D(), GLHelper::drawBoxLine(), GLHelper::drawFilledCircleReturnVertices(), GLHelper::drawFilledPoly(), GLHelper::drawFilledPolyTesselated(), GUIVisualizationSettings::drawForSelecting, GUIVisualizationSettings::drawJunctionShape, GUIGlObject::drawName(), GLHelper::drawShapeDottedContour(), GLHelper::drawText(), GUITexturesHelper::drawTexturedBox(), GNEViewNet::editingElevation(), GUIVisualizationSettings::editMode, GNEAttributeCarrier::getCircleResolution(), GNEViewNet::getDottedAC(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), NBNode::getPosition(), GUISUMOAbstractView::getPositionInformation(), NBNode::getShape(), GUITextureSubSys::getTexture(), GUIGlObject::getType(), GNENet::getViewNet(), GLO_MAX, GNE_MODE_TLS, GNETEXTURE_TLS, GNENetElement::isAttributeCarrierSelected(), NBNode::isTLControlled(), GUIVisualizationSettings::junctionName, GUIVisualizationSettings::junctionSize, myAmTLSSelected, myGNECrossings, myMaxSize, myNBNode, GNENetElement::myNet, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), PositionVector::scaleRelative(), GUIVisualizationSettings::selectionScale, setColor(), GNEViewNet::showJunctionAsBubbles(), toString(), Position::x(), Position::y(), and Position::z().

◆ 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, GUIPerson, and GUIContainer.

Definition at line 162 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

◆ drawName()

◆ endGeometryMoving()

void GNEJunction::endGeometryMoving ( bool  extendToNeighbors = true)

begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree)

Definition at line 514 of file GNEJunction.cpp.

References GNENet::addGLObjectIntoGrid(), myGNEEdges, GNENetElement::myMovingGeometryBoundary, GNENetElement::myNet, GNENet::removeGLObjectFromGrid(), Boundary::reset(), and updateGeometry().

Referenced by GNEViewNet::mergeJunctions(), and GNEViewNet::onLeftBtnRelease().

◆ getAdditionalChilds()

const std::vector< GNEAdditional * > & GNENetElement::getAdditionalChilds ( ) const
inherited

◆ getAdditionalParents()

const std::vector< GNEAdditional * > & GNENetElement::getAdditionalParents ( ) const
inherited

return vector of additionals that have as Parameter this edge (For example, Rerouters)

Definition at line 110 of file GNENetElement.cpp.

References GNENetElement::myFirstAdditionalParents.

Referenced by GNEDeleteFrame::removeAttributeCarrier(), and GNENet::replaceIncomingEdge().

◆ getAttribute()

◆ getAttributeForSelection()

std::string GNEAttributeCarrier::getAttributeForSelection ( SumoXMLAttr  key) const
virtualinherited

method for getting the attribute in the context of object selection

Reimplemented in GNEEdge, and GNELane.

Definition at line 995 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::getAttribute().

◆ getBoundary()

Boundary GNEJunction::getBoundary ( ) const

Returns the boundary of the junction.

Definition at line 332 of file GNEJunction.cpp.

References myJunctionBoundary.

Referenced by GNENet::registerJunction().

◆ getCenteringBoundary()

Boundary GNEJunction::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 GNENetElement.

Definition at line 214 of file GNEJunction.cpp.

References Boundary::grow(), Boundary::isInitialised(), myJunctionBoundary, and GNENetElement::myMovingGeometryBoundary.

Referenced by startGeometryMoving().

◆ getCircleResolution()

int GNEAttributeCarrier::getCircleResolution ( const GUIVisualizationSettings settings)
staticinherited

◆ getColorValue() [1/2]

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

Reimplemented in GUILane, GNELane, and GUIEdge.

Definition at line 145 of file GUIGlObject.h.

Referenced by GUISUMOAbstractView::showToolTipFor().

◆ getColorValue() [2/2]

◆ getFullName()

◆ getGenericParameters()

std::vector< std::pair< std::string, std::string > > GNEJunction::getGenericParameters ( ) const
virtual

return generic parameters as vector of pairs format

Implements GNENetElement.

Definition at line 1139 of file GNEJunction.cpp.

References Parameterised::getParametersMap(), and myNBNode.

◆ getGenericParametersStr()

std::string GNEJunction::getGenericParametersStr ( ) const
virtual

return generic parameters in string format

Implements GNENetElement.

Definition at line 1124 of file GNEJunction.cpp.

References Parameterised::getParametersMap(), and myNBNode.

Referenced by getAttribute().

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 129 of file GUIGlObject.cpp.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GUIGlObject::buildSelectionPopupEntry(), GNEAdditionalHandler::buildVaporizer(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), drawGL(), GNEVariableSpeedSign::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIPolygon::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIPointOfInterest::drawGL(), GNETAZ::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEDetectorE2::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GUIPerson::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrame::ACHierarchy::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().

◆ getGNEConnections()

std::vector< GNEConnection * > GNEJunction::getGNEConnections ( ) const

Returns all GNEConnections vinculated with this junction.

Definition at line 445 of file GNEJunction.cpp.

References myGNEIncomingEdges.

Referenced by GNEProhibitionFrame::buildProhibition(), GNENet::clearJunctionConnections(), and getPopUpMenu().

◆ getGNECrossings()

const std::vector< GNECrossing * > & GNEJunction::getGNECrossings ( ) const

◆ getGNEEdges()

◆ getGNEIncomingEdges()

const std::vector< GNEEdge * > & GNEJunction::getGNEIncomingEdges ( ) const

◆ getGNEOutgoingEdges()

const std::vector< GNEEdge * > & GNEJunction::getGNEOutgoingEdges ( ) const

Returns incoming GNEEdges.

Definition at line 433 of file GNEJunction.cpp.

References myGNEOutgoingEdges.

Referenced by GNENet::deleteEdge(), GNEAdditional::isRouteValid(), GNETLSEditorFrame::onCmdDefCreate(), and GNENet::splitJunction().

◆ getHierarchyName()

◆ getHigherNumberOfAttributes()

int GNEAttributeCarrier::getHigherNumberOfAttributes ( )
staticinherited

return the number of attributes of the tag with the most highter number of attributes

Definition at line 1120 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::fillAttributeCarriers(), MAX2(), and GNEAttributeCarrier::myTagProperties.

Referenced by GNEFrame::ACAttributes::ACAttributes(), and GNEInspectorFrame::AttributesEditor::AttributesEditor().

◆ getIcon()

◆ getID()

const std::string GNEAttributeCarrier::getID ( ) const
virtualinherited

function to support debugging

Implements GNEReferenceCounter.

Definition at line 1029 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::getAttribute(), and SUMO_ATTR_ID.

Referenced by GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNECrossingFrame::addCrossing(), GNEAdditional::addEdgeChild(), addIncomingGNEEdge(), GNEAdditional::addLaneChild(), addOutgoingGNEEdge(), GNENet::addPOI(), GNENet::addReversedEdge(), GNELane::addShapeChild(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNENet::changeShapeID(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEAdditional::generateAdditionalChildID(), GNEAdditionalFrame::generateID(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEChargingStation::getAttribute(), GNEParkingArea::getAttribute(), GNETAZSink::getAttribute(), GNETAZSource::getAttribute(), GNERouteProbe::getAttribute(), GNEClosingReroute::getAttribute(), GNERouteProbReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNERerouterInterval::getAttribute(), GNECalibratorFlow::getAttribute(), GNEAccess::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNECalibrator::getAttribute(), GNEConnection::getAttribute(), getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GNELane::getColorValue(), GNEClosingReroute::getHierarchyName(), GNEDestProbReroute::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEAccess::getHierarchyName(), GNETAZSink::getParentName(), GNETAZSource::getParentName(), GNEClosingReroute::getParentName(), GNERouteProbReroute::getParentName(), GNEDestProbReroute::getParentName(), GNEClosingLaneReroute::getParentName(), GNEParkingAreaReroute::getParentName(), GNEVariableSpeedSignStep::getParentName(), GNERerouterInterval::getParentName(), GNECalibratorFlow::getParentName(), GNEAccess::getParentName(), GNEDetectorE3::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNERerouter::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibrator::getPopUpID(), GNETAZ::getPopUpID(), GNEDetector::getPopUpID(), GNEShape::getPopUpID(), GNENetElement::getPopUpID(), GNEAdditionalHandler::getPosition(), GNENet::GNENet(), GNENet::insertAdditional(), GNENet::insertShape(), GNEAdditional::isRouteValid(), GNEAccess::isValid(), GNENet::joinSelectedJunctions(), GNECrossingFrame::CrossingParameters::markEdge(), GNENet::mergeJunctions(), GNERerouterDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdSetVariable(), GNEViewNet::onCmdTransformPOI(), GNEAdditionalHandler::parseAndBuildAccess(), GNEPolygonFrame::processClick(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), GNEEdge::removeConnection(), GNEAdditional::removeEdgeChild(), removeEdgeFromCrossings(), GNEEdge::removeEdgeOfAdditionalParents(), removeIncomingGNEEdge(), GNEEdge::removeLane(), GNEAdditional::removeLaneChild(), GNELane::removeLaneOfAdditionalParents(), removeOutgoingGNEEdge(), GNENet::removeShape(), GNELane::removeShapeChild(), GNENet::renameJunction(), GNENet::replaceIncomingEdge(), GNENet::retrieveEdge(), GNEEdge::retrieveGNEConnection(), retrieveGNECrossing(), GNENet::reverseEdge(), GNEEdge::setAttribute(), GNETAZFrame::TAZCurrent::setTAZ(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEEdge::smooth(), GNEEdge::smoothElevation(), GNEEdge::smoothShape(), GNENet::splitEdge(), GNENet::splitJunction(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNENet::updateAdditionalID(), GNECalibratorRouteDialog::updateCalibratorRouteValues(), GNEAdditional::writeAdditional(), GNEPOI::writeShape(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), GNEChange_TLS::~GNEChange_TLS(), and ~GNEJunction().

◆ getJunctionNeighbours()

std::vector< GNEJunction * > GNEJunction::getJunctionNeighbours ( ) const

return GNEJunction neighbours

Definition at line 350 of file GNEJunction.cpp.

References myGNEIncomingEdges, and myGNEOutgoingEdges.

Referenced by GNENet::deleteJunction(), and moveGeometry().

◆ getMicrosimID()

const std::string & GUIGlObject::getMicrosimID ( ) const
virtualinherited

Returns the id of the object as known to microsim.

Definition at line 143 of file GUIGlObject.cpp.

References GUIGlObject::myMicrosimID.

Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), getAttribute(), GNEEdge::getAttribute(), GNEDialogACChooser::getObjectName(), GUIDialog_GLObjChooser::getObjectName(), GNEVaporizer::getParentName(), GNERouteProbe::getParentName(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEParkingSpace::getParentName(), GNEVariableSpeedSign::getParentName(), GNECalibratorVehicleType::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEStoppingPlace::getParentName(), GNECalibrator::getParentName(), GNETAZ::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNEPOI::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), GNEProhibitionFrame::updateDescription(), and GNEConnection::updateID().

◆ getNBNode()

NBNode * GNEJunction::getNBNode ( ) const

◆ getNet()

GNENet * GNENetElement::getNet ( ) const
inherited

get Net in which this element is placed

Definition at line 50 of file GNENetElement.cpp.

References GNENetElement::myNet.

Referenced by GNEConnection::setAttribute().

◆ getParameterWindow()

GUIParameterTableWindow * GNENetElement::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtualinherited

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 122 of file GNENetElement.cpp.

References GUIParameterTableWindow::closeBuilding(), GNENetElement::getAttribute(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GUIParameterTableWindow::mkItem(), GNEAttributeCarrier::myTagProperty, and toString().

◆ getParentName()

◆ getPopUpID()

◆ getPopUpMenu()

◆ getPositionInView()

◆ getTagProperties()

◆ getTagProperty()

const GNEAttributeCarrier::TagProperties & GNEAttributeCarrier::getTagProperty ( ) const
inherited

get Tag Property assigned to this object

Definition at line 1013 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::myTagProperty.

Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNENet::additionalExist(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeSecondAdditionalParent(), GNENet::changeShapeID(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEAdditional::BlockIcon::draw(), GNEViewNet::getAttributeCarriersInBoundary(), GNEEdge::getRouteProbeRelativePosition(), GNEAdditional::GNEAdditional(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::GNENet(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNENet::insertShape(), GNEInspectorFrame::inspectSingleElement(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEViewNet::onCmdOpenAdditionalDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEViewNet::onCmdTransformPOI(), GNEViewNet::onLeftBtnPress(), GNEAdditionalHandler::parseGenericParameter(), GNEInspectorFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removeShape(), GNENet::replaceInListAttribute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNENet::retrieveShapes(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNENet::updateAdditionalID(), and GNEChange_Attribute::~GNEChange_Attribute().

◆ getTagStr()

const std::string & GNEAttributeCarrier::getTagStr ( ) const
inherited

get tag assigned to this object in string format

Definition at line 1007 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::TagProperties::getTagStr(), and GNEAttributeCarrier::myTagProperty.

Referenced by GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNEAdditional::addEdgeChild(), addIncomingGNEEdge(), GNEAdditional::addLaneChild(), addOutgoingGNEEdge(), GNENet::addPOI(), GNELane::addShapeChild(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNEAdditional::checkAdditionalChildRestriction(), GNETAZ::commitGeometryMoving(), GNEDetectorE3::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEDetectorEntry::commitGeometryMoving(), GNEDetectorExit::commitGeometryMoving(), GNEDetectorE1::commitGeometryMoving(), GNEDetectorE1Instant::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEPOI::commitGeometryMoving(), GNEDetectorE2::commitGeometryMoving(), commitGeometryMoving(), GNETAZ::commitShapeChange(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEEdge::commitShapeEndChange(), GNEEdge::commitShapeStartChange(), GNENet::deleteAdditional(), GNENet::deleteShape(), GNEAdditional::fixAdditionalProblem(), GNEBusStop::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEParkingArea::getAttribute(), GNEVaporizer::getAttribute(), GNETAZSink::getAttribute(), GNETAZSource::getAttribute(), GNERouteProbe::getAttribute(), GNEClosingReroute::getAttribute(), GNEDetectorE3::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNERouteProbReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNECalibratorRoute::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNECalibratorFlow::getAttribute(), GNERerouterInterval::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNECrossing::getAttribute(), GNEAccess::getAttribute(), GNERerouter::getAttribute(), GNECalibratorVehicleType::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNECalibrator::getAttribute(), GNETAZ::getAttribute(), GNEConnection::getAttribute(), GNEDetectorE2::getAttribute(), GNEPoly::getAttribute(), GNELane::getAttribute(), getAttribute(), GNEPOI::getAttribute(), GNEEdge::getAttribute(), GNEVaporizer::getHierarchyName(), GNERouteProbe::getHierarchyName(), GNETAZSink::getHierarchyName(), GNETAZSource::getHierarchyName(), GNEClosingReroute::getHierarchyName(), GNEDetectorE3::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNERouteProbReroute::getHierarchyName(), GNEDestProbReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEParkingSpace::getHierarchyName(), GNECalibratorRoute::getHierarchyName(), GNEVariableSpeedSignStep::getHierarchyName(), GNERerouterInterval::getHierarchyName(), GNECalibratorFlow::getHierarchyName(), GNEVariableSpeedSign::getHierarchyName(), GNERerouter::getHierarchyName(), GNEAccess::getHierarchyName(), GNECalibratorVehicleType::getHierarchyName(), GNEStoppingPlace::getHierarchyName(), GNECalibrator::getHierarchyName(), GNETAZ::getHierarchyName(), GNENetElement::getHierarchyName(), GNEShape::getHierarchyName(), GNEDetector::getHierarchyName(), GNEVaporizer::getPopUpID(), GNETAZSource::getPopUpID(), GNERouteProbe::getPopUpID(), GNETAZSink::getPopUpID(), GNEClosingReroute::getPopUpID(), GNEDestProbReroute::getPopUpID(), GNEDetectorE3::getPopUpID(), GNEClosingLaneReroute::getPopUpID(), GNERouteProbReroute::getPopUpID(), GNEParkingAreaReroute::getPopUpID(), GNEParkingSpace::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNEVariableSpeedSignStep::getPopUpID(), GNERerouterInterval::getPopUpID(), GNECalibratorFlow::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNEAccess::getPopUpID(), GNERerouter::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibrator::getPopUpID(), GNETAZ::getPopUpID(), GNEShape::getPopUpID(), GNENetElement::getPopUpID(), GNEDetector::getPopUpID(), GNEAdditional::getPopUpMenu(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNEAdditional::isRouteValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNEBusStop::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNETAZSink::isValid(), GNETAZSource::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEDetectorE3::isValid(), GNERouteProbReroute::isValid(), GNEDestProbReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNECalibratorRoute::isValid(), GNEVariableSpeedSignStep::isValid(), GNERerouterInterval::isValid(), GNECalibratorFlow::isValid(), GNEVariableSpeedSign::isValid(), GNECrossing::isValid(), GNEAccess::isValid(), GNERerouter::isValid(), GNECalibratorVehicleType::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNETAZ::isValid(), GNEConnection::isValid(), GNEDetectorE2::isValid(), GNEPoly::isValid(), GNELane::isValid(), isValid(), GNEPOI::isValid(), GNEEdge::isValid(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEAdditional::openAdditionalDialog(), GNEAdditionalHandler::parseGenericParameter(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Shape::redoName(), GNEChange_Additional::redoName(), GNEChange_Attribute::redoName(), GNEAdditionalFrame::removeAdditional(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), GNEEdge::removeConnection(), GNEAdditional::removeEdgeChild(), removeIncomingGNEEdge(), GNEEdge::removeLane(), GNEAdditional::removeLaneChild(), removeOutgoingGNEEdge(), GNELane::removeShapeChild(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNEEdge::retrieveGNEConnection(), retrieveGNECrossing(), GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEChargingStation::setAttribute(), GNEParkingArea::setAttribute(), GNEVaporizer::setAttribute(), GNETAZSource::setAttribute(), GNERouteProbe::setAttribute(), GNETAZSink::setAttribute(), GNEClosingReroute::setAttribute(), GNEDetectorE3::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNERouteProbReroute::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNECalibratorRoute::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNERerouterInterval::setAttribute(), GNECalibratorFlow::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNECrossing::setAttribute(), GNEAccess::setAttribute(), GNERerouter::setAttribute(), GNECalibratorVehicleType::setAttribute(), GNEDetectorExit::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNECalibrator::setAttribute(), GNETAZ::setAttribute(), GNEConnection::setAttribute(), GNEDetectorE2::setAttribute(), GNEPoly::setAttribute(), GNELane::setAttribute(), setAttribute(), GNEPOI::setAttribute(), GNEEdge::setAttribute(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Shape::undoName(), GNEChange_Additional::undoName(), GNEChange_Attribute::undoName(), GNENet::updateAdditionalID(), GNEAdditional::writeAdditional(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), and GNEChange_TLS::~GNEChange_TLS().

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 156 of file GUIGlObject.cpp.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GNEAdditional::BlockIcon::draw(), GNEAdditional::ChildConnections::draw(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), drawGL(), GNEVariableSpeedSign::drawGL(), GNECrossing::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEDetectorE2::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEShape::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNENetElement::unselectAttributeCarrier(), and GNEShape::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 GUIVehicle, GUIBaseVehicle, GUIMEVehicle, GUIPerson, and GUIContainer.

Definition at line 135 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().

◆ incRef()

void GNEReferenceCounter::incRef ( const std::string &  debugMsg = "")
inlineinherited

Increarse reference.

Definition at line 68 of file GNEReferenceCounter.h.

References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.

Referenced by GNEEdge::addLane(), GNENet::addPOI(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNENet::computeEverything(), GNEChange_Attribute::GNEChange_Attribute(), GNENet::GNENet(), rebuildGNECrossings(), GNENet::registerEdge(), GNENet::registerJunction(), GNEEdge::remakeGNEConnections(), and GNEInspectorFrame::TemplateEditor::setEdgeTemplate().

◆ invalidateShape()

◆ invalidateTLS()

◆ isAttributeCarrierSelected()

◆ isGenericParametersValid()

◆ isLogicValid()

bool GNEJunction::isLogicValid ( )

whether this junction has a valid logic

Definition at line 874 of file GNEJunction.cpp.

References myHasValidLogic.

Referenced by GNELane::drawGL().

◆ isValid()

◆ lanesConsecutives()

bool GNEAttributeCarrier::lanesConsecutives ( const std::vector< GNELane *> &  lanes)
staticinherited

check if lanes are consecutives

Definition at line 964 of file GNEAttributeCarrier.cpp.

Referenced by GNEAttributeCarrier::canParse(), GNEDetectorE2::isValid(), and GNEAdditionalHandler::parseAndBuildDetectorE2().

◆ markAsCreateEdgeSource()

void GNEJunction::markAsCreateEdgeSource ( )

marks as first junction in createEdge-mode

Definition at line 457 of file GNEJunction.cpp.

References myAmCreateEdgeSource.

Referenced by GNEViewNet::onLeftBtnPress().

◆ markAsModified()

void GNEJunction::markAsModified ( GNEUndoList undoList)

◆ markConnectionsDeprecated()

void GNEJunction::markConnectionsDeprecated ( bool  includingNeighbours)

mark connections as deprecated

Definition at line 903 of file GNEJunction.cpp.

References myGNEIncomingEdges.

Referenced by setAttribute().

◆ mouseOverObject()

◆ moveGeometry()

void GNEJunction::moveGeometry ( const Position oldPos,
const Position offset 
)

change the position of the element geometry without saving in undoList

Parameters
[in]oldPosold position before start moving

Definition at line 559 of file GNEJunction.cpp.

References Position::add(), getJunctionNeighbours(), NBNode::getPosition(), GNENet::getViewNet(), moveJunctionGeometry(), myNBNode, GNENetElement::myNet, and GUISUMOAbstractView::snapToActiveGrid().

Referenced by GNEViewNet::mergeJunctions(), and GNEViewNet::onMouseMove().

◆ moveJunctionGeometry()

void GNEJunction::moveJunctionGeometry ( const Position pos,
bool  updateGrid 
)
private

reposition the node at pos and informs the edges

Parameters
[in]posThe new position
Note
: those operations are not added to the undoList.

Definition at line 1341 of file GNEJunction.cpp.

References NBNode::getEdges(), getNBNode(), NBNode::getPosition(), NBNode::getType(), myNBNode, GNENetElement::myNet, NBNode::reinit(), GNENet::retrieveEdge(), and updateShapesAndGeometries().

Referenced by commitGeometryMoving(), moveGeometry(), and setAttribute().

◆ operator=()

GNEJunction& GNEJunction::operator= ( const GNEJunction )
privatedelete

Invalidated assignment operator.

◆ parse() [1/17]

template<typename T >
static T GNEAttributeCarrier::parse ( const std::string &  string)
staticinherited

parses a value of type T from string (used for basic types: int, double, bool, etc.)

Referenced by GNEAttributeCarrier::canParse(), GNECalibratorRoute::isValid(), and GNEDetectorE2::isValid().

◆ parse() [2/17]

template<typename T >
static T GNEAttributeCarrier::parse ( GNENet net,
const std::string &  value 
)
staticinherited

parses a complex value of type T from string (use for list of edges, list of lanes, etc.)

◆ parse() [3/17]

template<>
int GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 781 of file GNEAttributeCarrier.cpp.

References StringUtils::toInt().

◆ parse() [4/17]

template<>
double GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 787 of file GNEAttributeCarrier.cpp.

References StringUtils::toDouble().

◆ parse() [5/17]

template<>
bool GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 793 of file GNEAttributeCarrier.cpp.

References StringUtils::toBool().

◆ parse() [6/17]

template<>
std::string GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 799 of file GNEAttributeCarrier.cpp.

◆ parse() [7/17]

template<>
SUMOVehicleClass GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 805 of file GNEAttributeCarrier.cpp.

References SumoVehicleClassStrings, and SVC_IGNORING.

◆ parse() [8/17]

template<>
RGBColor GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 817 of file GNEAttributeCarrier.cpp.

References RGBColor::parseColor().

◆ parse() [9/17]

template<>
Position GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 823 of file GNEAttributeCarrier.cpp.

References GeomConvHelper::parseShapeReporting().

◆ parse() [10/17]

template<>
PositionVector GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 839 of file GNEAttributeCarrier.cpp.

References GeomConvHelper::parseShapeReporting().

◆ parse() [11/17]

template<>
SUMOVehicleShape GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 857 of file GNEAttributeCarrier.cpp.

References SumoVehicleShapeStrings, and SVS_UNKNOWN.

◆ parse() [12/17]

template<>
std::vector<std::string> GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 867 of file GNEAttributeCarrier.cpp.

References StringTokenizer::getVector().

◆ parse() [13/17]

template<>
std::vector<int> GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 873 of file GNEAttributeCarrier.cpp.

◆ parse() [14/17]

template<>
std::vector<double> GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 884 of file GNEAttributeCarrier.cpp.

◆ parse() [15/17]

template<>
std::vector<bool> GNEAttributeCarrier::parse ( const std::string &  string)
inherited

Definition at line 895 of file GNEAttributeCarrier.cpp.

◆ parse() [16/17]

template<>
std::vector<GNEEdge*> GNEAttributeCarrier::parse ( GNENet net,
const std::string &  value 
)
inherited

◆ parse() [17/17]

template<>
std::vector<GNELane*> GNEAttributeCarrier::parse ( GNENet net,
const std::string &  value 
)
inherited

◆ parseAttributeFromXML()

◆ parseIDs() [1/3]

template<typename T >
static std::string GNEAttributeCarrier::parseIDs ( const std::vector< T > &  ACs)
staticinherited

◆ parseIDs() [2/3]

template<>
std::string GNEAttributeCarrier::parseIDs ( const std::vector< GNEEdge *> &  ACs)
inherited

Definition at line 942 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ parseIDs() [3/3]

template<>
std::string GNEAttributeCarrier::parseIDs ( const std::vector< GNELane *> &  ACs)
inherited

Definition at line 953 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ rebuildGNECrossings()

◆ removeAdditionalChild()

void GNENetElement::removeAdditionalChild ( GNEAdditional additional)
inherited

◆ removeAdditionalParent()

void GNENetElement::removeAdditionalParent ( GNEAdditional additional)
inherited

◆ removeConnectionsFrom()

void GNEJunction::removeConnectionsFrom ( GNEEdge edge,
GNEUndoList undoList,
bool  updateTLS,
int  lane = -1 
)

◆ removeConnectionsTo()

void GNEJunction::removeConnectionsTo ( GNEEdge edge,
GNEUndoList undoList,
bool  updateTLS,
int  lane = -1 
)

◆ removeEdgeFromCrossings()

void GNEJunction::removeEdgeFromCrossings ( GNEEdge edge,
GNEUndoList undoList 
)

removes the given edge from all pedestrian crossings

Definition at line 848 of file GNEJunction.cpp.

References GNENet::deleteCrossing(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), joinToString(), myGNECrossings, GNENetElement::myNet, and SUMO_ATTR_EDGES.

Referenced by GNENet::deleteEdge().

◆ removeIncomingGNEEdge()

void GNEJunction::removeIncomingGNEEdge ( GNEEdge edge)

◆ removeOutgoingGNEEdge()

void GNEJunction::removeOutgoingGNEEdge ( GNEEdge edge)

◆ 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 269 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

◆ removeTLSConnections()

void GNEJunction::removeTLSConnections ( std::vector< NBConnection > &  connections,
GNEUndoList undoList 
)
private

◆ removeTrafficLight()

void GNEJunction::removeTrafficLight ( NBTrafficLightDefinition tlDef)
private

◆ replaceIncomingConnections()

void GNEJunction::replaceIncomingConnections ( GNEEdge which,
GNEEdge by,
GNEUndoList undoList 
)

◆ retrieveGNECrossing()

GNECrossing * GNEJunction::retrieveGNECrossing ( NBNode::Crossing crossing,
bool  createIfNoExist = true 
)

◆ selectAttributeCarrier()

◆ selectTLS()

void GNEJunction::selectTLS ( bool  selected)

notify the junction of being selected in tls-mode. (used to control drawing)

Definition at line 469 of file GNEJunction.cpp.

References myAmTLSSelected.

Referenced by GNETLSEditorFrame::cleanup(), and GNETLSEditorFrame::editJunction().

◆ setAttribute() [1/2]

◆ setAttribute() [2/2]

◆ setColor()

◆ setGenericParametersStr()

void GNEJunction::setGenericParametersStr ( const std::string &  value)
virtual

◆ setLogicValid()

◆ setMicrosimID()

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

◆ setResponsible()

void GNEJunction::setResponsible ( bool  newVal)

set responsibility for deleting internal strctures

Definition at line 1175 of file GNEJunction.cpp.

References myAmResponsible.

Referenced by GNENet::deleteSingleJunction(), and GNENet::registerJunction().

◆ startGeometryMoving()

void GNEJunction::startGeometryMoving ( bool  extendToNeighbors = true)

begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree)

Definition at line 475 of file GNEJunction.cpp.

References getCenteringBoundary(), myGNEEdges, and GNENetElement::myMovingGeometryBoundary.

Referenced by GNEViewNet::onLeftBtnPress().

◆ unMarkAsCreateEdgeSource()

void GNEJunction::unMarkAsCreateEdgeSource ( )

removes mark as first junction in createEdge-mode

Definition at line 463 of file GNEJunction.cpp.

References myAmCreateEdgeSource.

Referenced by GNEViewNet::abortOperation(), and GNEViewNet::onLeftBtnPress().

◆ unreferenced()

◆ unselectAttributeCarrier()

◆ updateGeometry()

◆ updateShapesAndGeometries()

void GNEJunction::updateShapesAndGeometries ( bool  updateGrid)

update shapes of all elements associated to the junction

Note
this include the adyacent nodes connected by edges
if this function is called during 'Move' mode, connections will not be updated to improve efficiency

Definition at line 593 of file GNEJunction.cpp.

References GNENet::getViewNet(), myGNEEdges, GNENetElement::myNet, and updateGeometry().

Referenced by moveJunctionGeometry().

Friends And Related Function Documentation

◆ GNEChange_Crossing

friend class GNEChange_Crossing
friend

Definition at line 52 of file GNEJunction.h.

◆ GNEChange_TLS

friend class GNEChange_TLS
friend

Declare friend class.

Definition at line 51 of file GNEJunction.h.

Referenced by invalidateTLS(), removeTLSConnections(), replaceIncomingConnections(), and setAttribute().

Field Documentation

◆ BUBBLE_RADIUS

const double GNEJunction::BUBBLE_RADIUS
static

constant values for drawing buubles

Definition at line 56 of file GNEJunction.h.

Referenced by GNEEdge::commitShapeChange(), drawGL(), and mouseOverObject().

◆ dummyTagProperty

GNEAttributeCarrier::TagProperties GNEAttributeCarrier::dummyTagProperty
staticprotectedinherited

dummy TagProperty used for reference some elements (for Example, dummyEdge)

Definition at line 921 of file GNEAttributeCarrier.h.

Referenced by GNEAttributeCarrier::getTagProperties().

◆ FEATURE_APPROVED

const std::string GNEAttributeCarrier::FEATURE_APPROVED = "approved"
staticinherited

feature has been approved but not changed (i.e. after being reguessed)

Definition at line 498 of file GNEAttributeCarrier.h.

◆ FEATURE_GUESSED

const std::string GNEAttributeCarrier::FEATURE_GUESSED = "guessed"
staticinherited

feature has been reguessed (may still be unchanged be we can't tell (yet)

Definition at line 492 of file GNEAttributeCarrier.h.

Referenced by setAttribute(), and GNEEdge::setAttribute().

◆ FEATURE_LOADED

const std::string GNEAttributeCarrier::FEATURE_LOADED = "loaded"
staticinherited

Definition at line 489 of file GNEAttributeCarrier.h.

◆ FEATURE_MODIFIED

const std::string GNEAttributeCarrier::FEATURE_MODIFIED = "modified"
staticinherited

feature has been manually modified (implies approval)

Definition at line 495 of file GNEAttributeCarrier.h.

Referenced by markAsModified(), and GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections().

◆ INVALID_ID

const GUIGlID GUIGlObject::INVALID_ID = 0
staticinherited

◆ myAdditionalChilds

◆ myAmCreateEdgeSource

bool GNEJunction::myAmCreateEdgeSource
private

whether this junction is the first junction for a newly creatededge

See also
GNEApplicationWindow::createEdgeSource)

Definition at line 275 of file GNEJunction.h.

Referenced by markAsCreateEdgeSource(), setColor(), and unMarkAsCreateEdgeSource().

◆ myAmResponsible

bool GNEJunction::myAmResponsible
private

whether we are responsible for deleting myNBNode

Definition at line 281 of file GNEJunction.h.

Referenced by setResponsible(), and ~GNEJunction().

◆ myAmTLSSelected

bool GNEJunction::myAmTLSSelected
private

whether this junction is selected in tls-mode

Definition at line 287 of file GNEJunction.h.

Referenced by drawGL(), and selectTLS().

◆ myFirstAdditionalParents

◆ myGNECrossings

std::vector<GNECrossing*> GNEJunction::myGNECrossings
private

◆ myGNEEdges

std::vector<GNEEdge*> GNEJunction::myGNEEdges
private

◆ myGNEIncomingEdges

std::vector<GNEEdge*> GNEJunction::myGNEIncomingEdges
private

vector with the incomings GNEEdges vinculated with this junction

Definition at line 265 of file GNEJunction.h.

Referenced by addIncomingGNEEdge(), getAttribute(), getGNEConnections(), getGNEIncomingEdges(), getJunctionNeighbours(), markConnectionsDeprecated(), removeIncomingGNEEdge(), and setAttribute().

◆ myGNEOutgoingEdges

std::vector<GNEEdge*> GNEJunction::myGNEOutgoingEdges
private

vector with the outgoings GNEEdges vinculated with this junction

Definition at line 268 of file GNEJunction.h.

Referenced by addOutgoingGNEEdge(), getGNEOutgoingEdges(), getJunctionNeighbours(), and removeOutgoingGNEEdge().

◆ myHasValidLogic

bool GNEJunction::myHasValidLogic
private

whether this junctions logic is valid

Definition at line 284 of file GNEJunction.h.

Referenced by isLogicValid(), and setLogicValid().

◆ myJunctionBoundary

Boundary GNEJunction::myJunctionBoundary
private

junction boundary

Definition at line 259 of file GNEJunction.h.

Referenced by getBoundary(), getCenteringBoundary(), GNEJunction(), and updateGeometry().

◆ myLogicStatus

std::string GNEJunction::myLogicStatus
private

modification status of the junction logic (all connections across this junction)

Definition at line 278 of file GNEJunction.h.

Referenced by getAttribute(), and setAttribute().

◆ myMaxSize

double GNEJunction::myMaxSize
private

The maximum size (in either x-, or y-dimension) for determining whether to draw or not.

Definition at line 271 of file GNEJunction.h.

Referenced by drawGL(), and updateGeometry().

◆ myMovingGeometryBoundary

Boundary GNENetElement::myMovingGeometryBoundary
protectedinherited

◆ myNBNode

◆ myNet

GNENet* GNENetElement::myNet
protectedinherited

the net to inform about updates

Definition at line 165 of file GNENetElement.h.

Referenced by GNEEdge::addLane(), addTrafficLight(), GNEEdge::clearGNEConnections(), GNEEdge::commitShapeChange(), GNEEdge::deleteGeometryPoint(), drawGL(), GNECrossing::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GNEEdge::drawGL(), GNEEdge::editEndpoint(), GNEEdge::endGeometryMoving(), endGeometryMoving(), GNENetElement::getNet(), GNEEdge::getOppositeEdge(), getPopUpMenu(), GNECrossing::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEEdge::getVertexIndex(), invalidateShape(), invalidateTLS(), GNECrossing::isValid(), isValid(), GNEEdge::isValid(), markAsModified(), mouseOverObject(), moveGeometry(), moveJunctionGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNEEdge::moveVertexShape(), GNELane::onDefault(), rebuildGNECrossings(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), removeConnectionsFrom(), removeConnectionsTo(), removeEdgeFromCrossings(), GNEEdge::removeEdgeFromCrossings(), GNEEdge::removeLane(), removeTLSConnections(), removeTrafficLight(), replaceIncomingConnections(), GNEEdge::retrieveGNEConnection(), GNENetElement::selectAttributeCarrier(), GNECrossing::setAttribute(), setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNELane::setAttribute(), GNEEdge::setGeometry(), setLogicValid(), GNENetElement::unselectAttributeCarrier(), GNEConnection::updateGeometry(), GNEEdge::updateGeometry(), GNELane::updateGeometry(), updateGeometry(), and updateShapesAndGeometries().

◆ mySelected

◆ myTagProperty

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 69 of file GUIGlObject.h.

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


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