SUMO - Simulation of Urban MObility
GNEJunction Class Reference

#include <GNEJunction.h>

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

Public Member Functions

void decRef (const std::string &debugMsg="")
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additional, user-triggered visualisations. More...
 
void drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
 
const std::vector< SumoXMLAttr > & getAttrs () const
 
Boundary getBoundary () const
 Returns the boundary of the junction. More...
 
virtual std::string getDescription ()
 how should this attribute carrier be called More...
 
const std::string getID () const
 function to support debugging More...
 
NBNodegetNBNode ()
 returns the internal NBNode More...
 
SumoXMLTag getTag () const
 
 GNEJunction (NBNode &nbn, GNENet *net, bool loaded=false)
 Constructor. More...
 
void incRef (const std::string &debugMsg="")
 
void invalidateShape ()
 
void invalidateTLS (GNEUndoList *undoList, const NBConnection &deletedConnection=NBConnection::InvalidConnection)
 
bool isLogicValid ()
 
void markAsCreateEdgeSource ()
 marks as first junction in createEdge-mode More...
 
void move (Position pos)
 reposition the node at pos and informs the edges More...
 
void registerMove (GNEUndoList *undoList)
 registers completed movement with the undoList More...
 
void removeFromCrossings (GNEEdge *edge, GNEUndoList *undoList)
 removes the given edge from all pedestrian crossings 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=0, const std::string &status=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 ()
 
void updateCrossingAttributes (NBNode::Crossing crossing)
 modify the specified crossing (using friend privileges) More...
 
virtual ~GNEJunction ()
 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...
 
void drawGL (const GUIVisualizationSettings &s) const
 Draws the object. More...
 
std::string getAttribute (SumoXMLAttr key) const
 
void setAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
 
bool isValid (SumoXMLAttr key, const std::string &value)
 
Atomar getter methods
const std::string & getFullName () const
 Returns the full name appearing in the tool tip. More...
 
virtual const std::string & getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
interfaces to be implemented by derived classes
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 (happens in NETEDIT) More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
Parameter table window I/O
void addParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was opened. More...
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Static Public Member Functions

static const std::vector< SumoXMLAttr > & allowedAttributes (SumoXMLTag tag)
 get all editable attributes for tag. More...
 
static const std::vector< SumoXMLTag > & allowedTags ()
 get all editable attributes for tag. More...
 
template<class T >
static bool canParse (const std::string &string)
 true if an object of type T can be parsed from string More...
 
static const std::vector< std::string > & discreteChoices (SumoXMLTag tag, SumoXMLAttr attr)
 return a list of discrete choices for this attribute or an empty vector More...
 
static bool discreteCombinableChoices (SumoXMLTag tag, SumoXMLAttr attr)
 return whether the given attribute allows for a combination of discrete values More...
 
static bool isNumerical (SumoXMLAttr attr)
 whether an attribute is numerical More...
 
template<class T >
static bool isPositive (const std::string &string)
 true if a positive number of type T can be parsed from string More...
 
static bool isUnique (SumoXMLAttr attr)
 whether an attribute is unique (may not be edited for a multi-selection) More...
 
static bool isValidID (const std::string &value)
 true if value is a valid sumo ID More...
 
template<class T >
static T parse (const std::string &string)
 parses an object of type T from from string More...
 
static void resetDecal ()
 

Static Public Attributes

static const std::string APPROVED = "approved"
 feature has been approved but not changed (i.e. after being reguessed) More...
 
static const std::string GUESSED = "guessed"
 feature has been reguessed (may still be unchanged be we can't tell (yet) More...
 
static const std::string LOADED = "loaded"
 feature is still unchanged after being loaded (implies approval) More...
 
static const std::string MODIFIED = "modified"
 feature has been manually modified (implies approval) More...
 
static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 

Protected Member Functions

void setPrefix (const std::string &prefix)
 
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 buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More...
 
void buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the manipulator window. More...
 

Private Member Functions

void addTrafficLight (NBTrafficLightDefinition *tlDef, bool forceInsert)
 adds a traffic light More...
 
SUMOReal getColorValue (const GUIVisualizationSettings &s, bool bubble) const
 determines color value More...
 
 GNEJunction (const GNEJunction &)
 Invalidated copy constructor. More...
 
GNEJunctionoperator= (const GNEJunction &)
 Invalidated assignment operator. More...
 
void rebuildCrossings (bool deleteOnly)
 rebuilds crossing objects for this junction More...
 
void removeTrafficLight (NBTrafficLightDefinition *tlDef)
 removes a traffic light More...
 
void setAttribute (SumoXMLAttr key, const std::string &value)
 
void setColor (const GUIVisualizationSettings &s, bool bubble) const
 sets junction color depending on circumstances More...
 
void setPosition (Position pos)
 reposition the NBNnode and nothing else More...
 

Private Attributes

bool myAmCreateEdgeSource
 
bool myAmResponsible
 whether we are responsible for deleting myNBNode More...
 
bool myAmTLSSelected
 whether this junction is selected in tls-mode More...
 
Boundary myBoundary
 The represented junction's boundary. More...
 
std::vector< GNECrossing * > myCrossings
 the built crossing objects More...
 
bool myHasValidLogic
 whether this junctions logic is valid More...
 
std::string myLogicStatus
 modification status of the junction logic (all connections across this junction) More...
 
SUMOReal 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...
 
GNENetmyNet
 
Position myOrigPos
 restore point for undo More...
 

Static Private Attributes

static int TLSDecalGlID = 0
 gl-id of the tls-decal (drawn in tls-mode) More...
 
static bool TLSDecalInitialized = false
 whether the tls-decal has been initialized More...
 

Friends

class GNEChange_TLS
 

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 61 of file GNEJunction.h.

Constructor & Destructor Documentation

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 76 of file GNEJunction.cpp.

References myBoundary, myMaxSize, myOrigPos, rebuildCrossings(), Position::x(), and Position::y().

GNEJunction::~GNEJunction ( )
virtual

Destructor.

Definition at line 96 of file GNEJunction.cpp.

References myAmResponsible, myNBNode, and rebuildCrossings().

GNEJunction::GNEJunction ( const GNEJunction )
private

Invalidated copy constructor.

Member Function Documentation

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

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

Parameters
[in]wThe opened parameter window

Definition at line 189 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

void GNEJunction::addTrafficLight ( NBTrafficLightDefinition tlDef,
bool  forceInsert 
)
private
const std::vector< SumoXMLTag > & GNEAttributeCarrier::allowedTags ( )
staticinherited
void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters

Definition at line 180 of file GUIGlObject.cpp.

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

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

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

true if an object of type T can be parsed from string

Definition at line 120 of file GNEAttributeCarrier.h.

bool GNEAttributeCarrier::discreteCombinableChoices ( SumoXMLTag  tag,
SumoXMLAttr  attr 
)
staticinherited

return whether the given attribute allows for a combination of discrete values

Definition at line 224 of file GNEAttributeCarrier.cpp.

References SUMO_ATTR_ALLOW, and SUMO_ATTR_DISALLOW.

Referenced by GNEInspector::AttrInput::AttrInput(), and GNEAttributeCarrier::getID().

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

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 190 of file GUIGlObject.h.

References SUMOReal, and UNUSED_PARAMETER.

const std::vector<SumoXMLAttr>& GNEAttributeCarrier::getAttrs ( ) const
inlineinherited
Boundary GNEJunction::getBoundary ( ) const
inline

Returns the boundary of the junction.

Returns
This junction's boundary

Definition at line 123 of file GNEJunction.h.

References myBoundary.

Referenced by GNENet::registerJunction().

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 GUIGlObject.

Definition at line 164 of file GNEJunction.cpp.

References Boundary::grow(), and myBoundary.

virtual std::string GNEAttributeCarrier::getDescription ( )
inlinevirtualinherited

how should this attribute carrier be called

Definition at line 83 of file GNEAttributeCarrier.h.

References GNEAttributeCarrier::myTag, and toString().

Referenced by GNEChange_Attribute::redoName(), and GNEChange_Attribute::undoName().

GUIGlID GUIGlObject::getGlID ( ) const
inlineinherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 123 of file GUIGlObject.h.

Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIContainer::getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().

GUIParameterTableWindow * GNEJunction::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 157 of file GNEJunction.cpp.

virtual const std::string& GUIGlObject::getParentName ( ) const
inlinevirtualinherited

Returns the name of the parent object (if any)

Returns
This object's parent id

Reimplemented in GUILane, and GNELane.

Definition at line 115 of file GUIGlObject.h.

References StringUtils::emptyString.

Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().

SumoXMLTag GNEAttributeCarrier::getTag ( ) const
inlineinherited

Definition at line 87 of file GNEAttributeCarrier.h.

References GNEAttributeCarrier::myTag.

Referenced by GNESelector::getMatches().

GUIGlObjectType GUIGlObject::getType ( ) const
inlineinherited

Returns the type of the object as coded in GUIGlObjectType.

Returns
The type of the object
See also
GUIGlObjectType

Definition at line 167 of file GUIGlObject.h.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnector::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), setColor(), and GUISelectedStorage::toggleSelection().

void GNEReferenceCounter::incRef ( const std::string &  debugMsg = "")
inlineinherited
bool GNEJunction::isLogicValid ( )
inline

Definition at line 210 of file GNEJunction.h.

References myHasValidLogic.

Referenced by GNELane::drawGL().

template<class T >
static bool GNEAttributeCarrier::isPositive ( const std::string &  string)
inlinestaticinherited

true if a positive number of type T can be parsed from string

Definition at line 138 of file GNEAttributeCarrier.h.

References GNEAttributeCarrier::isValidID().

bool GNEAttributeCarrier::isUnique ( SumoXMLAttr  attr)
staticinherited

whether an attribute is unique (may not be edited for a multi-selection)

Definition at line 174 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::_uniqueAttrs, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, and SUMO_ATTR_TO.

Referenced by GNEInspector::AttrPanel::AttrPanel(), and GNEAttributeCarrier::getID().

bool GNEAttributeCarrier::isValidID ( const std::string &  value)
staticinherited

true if value is a valid sumo ID

Definition at line 70 of file GNEAttributeCarrier.cpp.

Referenced by GNEAttributeCarrier::isPositive(), isValid(), and GNEEdge::isValid().

void GNEJunction::markAsCreateEdgeSource ( )
inline

marks as first junction in createEdge-mode

Definition at line 130 of file GNEJunction.h.

References myAmCreateEdgeSource.

Referenced by GNEViewNet::onLeftBtnPress().

void GNEJunction::move ( Position  pos)

reposition the node at pos and informs the edges

Parameters
[in]posThe new position
Note
: those operations are not added to the undoList. This is handled in registerMove to avoids merging lots of tiny movements

Definition at line 239 of file GNEJunction.cpp.

References NBNode::getEdges(), getNBNode(), NBNode::getPosition(), myNBNode, myNet, GNENet::refreshElement(), GNENet::retrieveEdge(), setPosition(), and GNEEdge::updateJunctionPosition().

Referenced by getNBNode(), GNENet::mergeJunctions(), GNEViewNet::onMouseMove(), and setAttribute().

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

Invalidated assignment operator.

template<class T >
static T GNEAttributeCarrier::parse ( const std::string &  string)
inlinestaticinherited

parses an object of type T from from string

Definition at line 129 of file GNEAttributeCarrier.h.

void GNEJunction::rebuildCrossings ( bool  deleteOnly)
private

rebuilds crossing objects for this junction

Definition at line 105 of file GNEJunction.cpp.

References NBNode::getCrossings(), myCrossings, and myNBNode.

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

void GNEJunction::registerMove ( GNEUndoList undoList)
void GNEJunction::removeFromCrossings ( GNEEdge edge,
GNEUndoList undoList 
)

removes the given edge from all pedestrian crossings

Definition at line 341 of file GNEJunction.cpp.

References NBNode::getCrossings(), GNEEdge::getNBEdge(), myNBNode, NBNode::removeCrossing(), and UNUSED_PARAMETER.

Referenced by GNENet::deleteEdge(), GNENet::deleteLane(), and setResponsible().

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

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

void GNEJunction::removeTrafficLight ( NBTrafficLightDefinition tlDef)
private
static void GNEJunction::resetDecal ( )
inlinestatic
void GNEJunction::selectTLS ( bool  selected)
inline

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

Definition at line 142 of file GNEJunction.h.

References myAmTLSSelected.

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

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

Changes the microsimID of the object (happens in NETEDIT)

Reimplemented in GNEEdge.

Definition at line 110 of file GUIGlObject.cpp.

References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().

void GNEJunction::setPosition ( Position  pos)
private

reposition the NBNnode and nothing else

Definition at line 494 of file GNEJunction.cpp.

References NBNode::getPosition(), NBNode::getType(), Boundary::moveby(), myBoundary, myNBNode, NBNode::reinit(), SUMOReal, Position::x(), and Position::y().

Referenced by move(), and registerMove().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited
void GNEJunction::setResponsible ( bool  newVal)
inline
void GNEJunction::unMarkAsCreateEdgeSource ( )
inline

removes mark as first junction in createEdge-mode

Definition at line 136 of file GNEJunction.h.

References myAmCreateEdgeSource.

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

void GNEJunction::updateCrossingAttributes ( NBNode::Crossing  crossing)

modify the specified crossing (using friend privileges)

Definition at line 583 of file GNEJunction.cpp.

References NBNode::Crossing::edges, NBNode::myCrossings, myNBNode, myNet, NBNode::Crossing::priority, GNENet::refreshElement(), and NBNode::Crossing::width.

Referenced by resetDecal(), and GNECrossing::setAttribute().

Friends And Related Function Documentation

friend class GNEChange_TLS
friend

Definition at line 63 of file GNEJunction.h.

Referenced by invalidateTLS(), and setAttribute().

Field Documentation

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

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

Definition at line 156 of file GNEAttributeCarrier.h.

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

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

Definition at line 152 of file GNEAttributeCarrier.h.

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

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

feature is still unchanged after being loaded (implies approval)

Definition at line 150 of file GNEAttributeCarrier.h.

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

feature has been manually modified (implies approval)

Definition at line 154 of file GNEAttributeCarrier.h.

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

bool GNEJunction::myAmCreateEdgeSource
private

Definition at line 237 of file GNEJunction.h.

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

bool GNEJunction::myAmResponsible
private

whether we are responsible for deleting myNBNode

Definition at line 246 of file GNEJunction.h.

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

bool GNEJunction::myAmTLSSelected
private

whether this junction is selected in tls-mode

Definition at line 252 of file GNEJunction.h.

Referenced by drawGL(), and selectTLS().

Boundary GNEJunction::myBoundary
private

The represented junction's boundary.

Definition at line 232 of file GNEJunction.h.

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

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

the built crossing objects

Definition at line 255 of file GNEJunction.h.

Referenced by drawGL(), and rebuildCrossings().

bool GNEJunction::myHasValidLogic
private

whether this junctions logic is valid

Definition at line 249 of file GNEJunction.h.

Referenced by isLogicValid(), and setLogicValid().

std::string GNEJunction::myLogicStatus
private

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

Definition at line 243 of file GNEJunction.h.

Referenced by getAttribute(), and setAttribute().

SUMOReal GNEJunction::myMaxSize
private

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

Definition at line 229 of file GNEJunction.h.

Referenced by drawGL(), and GNEJunction().

Position GNEJunction::myOrigPos
private

restore point for undo

Definition at line 226 of file GNEJunction.h.

Referenced by GNEJunction(), registerMove(), and setAttribute().

int GNEJunction::TLSDecalGlID = 0
staticprivate

gl-id of the tls-decal (drawn in tls-mode)

Definition at line 258 of file GNEJunction.h.

Referenced by drawGL().

bool GNEJunction::TLSDecalInitialized = false
staticprivate

whether the tls-decal has been initialized

Definition at line 261 of file GNEJunction.h.

Referenced by drawGL(), and resetDecal().

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 100 of file GUIGlObject.h.


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