SUMO - Simulation of Urban MObility
GNELane Class Reference

This lane is powered by an underlying GNEEdge and basically knows how to draw itself. More...

#include <GNELane.h>

Inheritance diagram for GNELane:
Inheritance graph
Collaboration diagram for GNELane:
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 boundry (including lanes) More...
 
virtual std::string getDescription ()
 how should this attribute carrier be called More...
 
const std::string getID () const
 function to support debugging More...
 
unsigned int getIndex () const
 
const PositionVectorgetShape () const
 
const std::vector< SUMOReal > & getShapeLengths () const
 
const std::vector< SUMOReal > & getShapeRotations () const
 
SumoXMLTag getTag () const
 
 GNELane (GNEEdge &edge, const unsigned int index)
 Constructor. More...
 
void incRef (const std::string &debugMsg="")
 
void setIndex (unsigned int index)
 
void setSpecialColor (const RGBColor *color)
 
bool unreferenced ()
 
void updateGeometry ()
 update pre-computed geometry information More...
 
virtual ~GNELane ()
 Destructor. More...
 
inherited from GUIGlObject
const std::string & getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own parameter window. More...
 
long onDefault (FXObject *, FXSelector, void *)
 multiplexes message to two targets More...
 
GNEEdgegetParentEdge ()
 Returns underlying parent edge. 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...
 
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 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

 GNELane ()
 FOX needs this. More...
 
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 drawArrows () const
 
bool drawAsRailway (const GUIVisualizationSettings &s) const
 whether to draw this lane as a railway More...
 
bool drawAsWaterway (const GUIVisualizationSettings &s) const
 whether to draw this lane as a waterways More...
 
void drawCrossties (SUMOReal length, SUMOReal spacing, SUMOReal halfWidth) const
 
void drawLane2LaneConnections () const
 
void drawLinkNo () const
 
void drawLinkRules () const
 
void drawMarkings (const bool &selectedEdge, SUMOReal scale) const
 
void drawTLSLinkNo () const
 
SUMOReal getColorValue (size_t activeScheme) const
 
 GNELane (const GNELane &)
 Invalidated copy constructor. More...
 
GNELaneoperator= (const GNELane &)
 Invalidated assignment operator. More...
 
void setAttribute (SumoXMLAttr key, const std::string &value)
 
bool setFunctionalColor (size_t activeScheme) const
 sets the color according to the current scheme index and some lane function More...
 
bool setMultiColor (const GUIColorer &c) const
 sets multiple colors according to the current scheme index and some lane function More...
 

Private Attributes

unsigned int myIndex
 The index of this lane. More...
 
GNEEdgemyParentEdge
 The Edge that to which this lane belongs. More...
 
std::vector< RGBColormyShapeColors
 The color of the shape parts (cached) More...
 
const RGBColormySpecialColor
 optional special color More...
 
GNETLSEditormyTLSEditor
 the tls-editor for setting multiple links in TLS-mode More...
 
computed only once (for performance) in updateGeometry()
std::vector< SUMORealmyShapeRotations
 The rotations of the shape parts. More...
 
std::vector< SUMORealmyShapeLengths
 The lengths of the shape parts. More...
 

Detailed Description

This lane is powered by an underlying GNEEdge and basically knows how to draw itself.

Definition at line 56 of file GNELane.h.

Constructor & Destructor Documentation

GNELane::GNELane ( GNEEdge edge,
const unsigned int  index 
)

Constructor.

Parameters
[in]idStorageThe storage of gl-ids to get the one for this lane representation from
[in]theedge this lane belongs to
[in]theindex of this lane

Definition at line 78 of file GNELane.cpp.

GNELane::~GNELane ( )
virtual

Destructor.

Definition at line 97 of file GNELane.cpp.

GNELane::GNELane ( )
protected

FOX needs this.

Definition at line 88 of file GNELane.cpp.

Referenced by setSpecialColor().

GNELane::GNELane ( const GNELane )
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.

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().

bool GNELane::drawAsRailway ( const GUIVisualizationSettings s) const
private

whether to draw this lane as a railway

Definition at line 667 of file GNELane.cpp.

References GNEEdge::getNBEdge(), NBEdge::getPermissions(), isRailway(), myIndex, myParentEdge, and GUIVisualizationSettings::showRails.

Referenced by drawGL().

bool GNELane::drawAsWaterway ( const GUIVisualizationSettings s) const
private

whether to draw this lane as a waterways

Definition at line 673 of file GNELane.cpp.

References GNEEdge::getNBEdge(), NBEdge::getPermissions(), isWaterway(), myIndex, myParentEdge, and GUIVisualizationSettings::showRails.

void GNELane::drawCrossties ( SUMOReal  length,
SUMOReal  spacing,
SUMOReal  halfWidth 
) const
private

Definition at line 679 of file GNELane.cpp.

References getShape(), myShapeLengths, myShapeRotations, and SUMOReal.

Referenced by drawGL().

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.

void GNELane::drawLinkNo ( ) const
private

Definition at line 101 of file GNELane.cpp.

void GNELane::drawLinkRules ( ) const
private

Definition at line 111 of file GNELane.cpp.

void GNELane::drawTLSLinkNo ( ) const
private

Definition at line 106 of file GNELane.cpp.

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

returns the boundry (including lanes)

Definition at line 448 of file GNELane.cpp.

References PositionVector::getBoxBoundary(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), myIndex, myParentEdge, and NBEdge::Lane::shape.

Referenced by getParentEdge().

Boundary GNELane::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 422 of file GNELane.cpp.

References PositionVector::getBoxBoundary(), getShape(), and Boundary::grow().

Referenced by getParentEdge().

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(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), 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(), getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), 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(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().

GUIParameterTableWindow * GNELane::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 409 of file GNELane.cpp.

References GUIParameterTableWindow::closeBuilding(), NBEdge::getLength(), GNEEdge::getNBEdge(), GUIParameterTableWindow::mkItem(), and myParentEdge.

const std::string & GNELane::getParentName ( ) const
virtual

Returns the name of the parent object (if any)

Returns
This object's parent id

Reimplemented from GUIGlObject.

Definition at line 703 of file GNELane.cpp.

References GUIGlObject::getMicrosimID(), and myParentEdge.

const std::vector< SUMOReal > & GNELane::getShapeLengths ( ) const

Definition at line 442 of file GNELane.cpp.

References myShapeLengths.

Referenced by drawMarkings(), and getParentEdge().

const std::vector< SUMOReal > & GNELane::getShapeRotations ( ) const

Definition at line 436 of file GNELane.cpp.

References myShapeRotations.

Referenced by drawMarkings(), and getParentEdge().

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(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), 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(), getColorValue(), GUILane::getColorValue(), GNEJunction::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(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().

void GNEReferenceCounter::incRef ( const std::string &  debugMsg = "")
inlineinherited
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 GNELane::isValid ( SumoXMLAttr  key,
const std::string &  value 
)
virtual
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(), GNEJunction::isValid(), and GNEEdge::isValid().

long GNELane::onDefault ( FXObject *  obj,
FXSelector  sel,
void *  data 
)

multiplexes message to two targets

Definition at line 709 of file GNELane.cpp.

References GNETLSEditor::handleMultiChange(), and myTLSEditor.

GNELane& GNELane::operator= ( const GNELane )
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 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 GNELane::setAttribute ( SumoXMLAttr  key,
const std::string &  value,
GNEUndoList undoList 
)
virtual
bool GNELane::setFunctionalColor ( size_t  activeScheme) const
private

sets the color according to the current scheme index and some lane function

Definition at line 579 of file GNELane.cpp.

References RGBColor::fromHSV(), getShape(), GeomHelper::naviDegree(), GLHelper::setColor(), and SUMOReal.

Referenced by drawGL().

void GNELane::setIndex ( unsigned int  index)
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(), setIndex(), and GNEEdge::setMicrosimID().

bool GNELane::setMultiColor ( const GUIColorer c) const
private

sets multiple colors according to the current scheme index and some lane function

Definition at line 593 of file GNELane.cpp.

References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GUIPropertySchemeStorage< T >::getScheme(), getShape(), MAX2(), myShapeColors, POSITION_EPS, and SUMOReal.

Referenced by drawGL().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited
void GNELane::setSpecialColor ( const RGBColor color)
inline

Definition at line 159 of file GNELane.h.

References GNELane(), and mySpecialColor.

Referenced by GNEConnector::cleanup(), and GNEConnector::handleLaneClick().

void GNELane::updateGeometry ( )

update pre-computed geometry information

Definition at line 454 of file GNELane.cpp.

References Position::distanceTo2D(), getShape(), myShapeLengths, myShapeRotations, PI, SUMOReal, Position::x(), and Position::y().

Referenced by getParentEdge().

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 GNEJunction::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().

unsigned int GNELane::myIndex
private
std::vector<RGBColor> GNELane::myShapeColors
mutableprivate

The color of the shape parts (cached)

Definition at line 226 of file GNELane.h.

Referenced by drawGL(), and setMultiColor().

std::vector<SUMOReal> GNELane::myShapeLengths
private

The lengths of the shape parts.

Definition at line 180 of file GNELane.h.

Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeLengths(), and updateGeometry().

std::vector<SUMOReal> GNELane::myShapeRotations
private

The rotations of the shape parts.

Definition at line 177 of file GNELane.h.

Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeRotations(), and updateGeometry().

const RGBColor* GNELane::mySpecialColor
private

optional special color

Definition at line 184 of file GNELane.h.

Referenced by drawGL(), and setSpecialColor().

GNETLSEditor* GNELane::myTLSEditor
private

the tls-editor for setting multiple links in TLS-mode

Definition at line 229 of file GNELane.h.

Referenced by getPopUpMenu(), and onDefault().

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: