Eclipse SUMO - Simulation of Urban MObility
GNETagProperties Class Reference

#include <GNETagProperties.h>

Public Types

enum  TagProperty {
  DRAWABLE = 1 << 0 , BLOCKMOVEMENT = 1 << 1 , BLOCKSHAPE = 1 << 2 , CLOSESHAPE = 1 << 3 ,
  GEOPOSITION = 1 << 4 , GEOSHAPE = 1 << 5 , DIALOG = 1 << 6 , SLAVE = 1 << 7 ,
  MINIMUMCHILDREN = 1 << 8 , REPARENT = 1 << 9 , SYNONYM = 1 << 10 , SELECTABLE = 1 << 11 ,
  MASKSTARTENDPOS = 1 << 12 , MASKXYZPOSITION = 1 << 13 , WRITECHILDRENSEPARATE = 1 << 14 , NOPARAMETERS = 1 << 15 ,
  PARAMETERSDOUBLE = 1 << 16 , RTREE = 1 << 17 , CENTERAFTERCREATION = 1 << 18 , PERSONPLAN_START_EDGE = 1 << 19 ,
  PERSONPLAN_END_EDGE = 1 << 20 , PERSONPLAN_START_BUSSTOP = 1 << 21 , PERSONPLAN_END_BUSSTOP = 1 << 22 , PERSONPLAN_START_STOP = 1 << 23 ,
  PERSONPLAN_END_STOP = 1 << 24 , EMBEDDED_ROUTE = 1 << 27
}
 
enum  TagType {
  NETWORKELEMENT = 1 << 0 , ADDITIONALELEMENT = 1 << 1 , SHAPE = 1 << 2 , TAZELEMENT = 1 << 3 ,
  DEMANDELEMENT = 1 << 4 , DATAELEMENT = 1 << 5 , STOPPINGPLACE = 1 << 6 , DETECTOR = 1 << 7 ,
  VTYPE = 1 << 8 , VEHICLE = 1 << 9 , ROUTE = 1 << 10 , STOP = 1 << 11 ,
  PERSON = 1 << 12 , PERSONPLAN = 1 << 13 , PERSONTRIP = 1 << 14 , WALK = 1 << 15 ,
  RIDE = 1 << 16 , PERSONSTOP = 1 << 17 , GENERICDATA = 1 << 18 , SYMBOL = 1 << 19
}
 

Public Member Functions

void addAttribute (const GNEAttributeProperties &attributeProperty)
 add attribute (duplicated attributed aren't allowed) More...
 
void addDeprecatedAttribute (SumoXMLAttr attr)
 add deprecated Attribute More...
 
std::vector< GNEAttributeProperties >::const_iterator begin () const
 get begin of attribute values (used for iterate) More...
 
bool canBeReparent () const
 return true if tag correspond to an element that can be reparent More...
 
bool canBlockMovement () const
 return true if tag correspond to an element that can block their movement More...
 
bool canBlockShape () const
 return true if tag correspond to an element that can block their shape More...
 
bool canCenterCameraAfterCreation () const
 return true if tag correspond to an element that center camera after creation More...
 
bool canCloseShape () const
 return true if tag correspond to an element that can close their shape More...
 
bool canMaskStartEndPos () const
 return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "length" More...
 
bool canMaskXYZPositions () const
 return true if tag correspond to an element that can mask the attributes "X", "Y" and "Z" position as attribute "Position" More...
 
bool canWriteChildrenSeparate () const
 return true if tag correspond to an element that can write their child in a different file More...
 
void checkTagIntegrity () const
 check Tag integrity (this include all their attributes) More...
 
bool embebbedRoute () const
 return true if tag correspond to an element that owns a embebbed route More...
 
std::vector< GNEAttributeProperties >::const_iterator end () const
 get end of attribute values (used for iterate) More...
 
const GNEAttributePropertiesgetAttributeProperties (SumoXMLAttr attr) const
 get attribute (throw error if doesn't exist) More...
 
const std::string & getDefaultValue (SumoXMLAttr attr) const
 return the default value of the attribute of an element More...
 
GUIIcon getGUIIcon () const
 get GUI icon associated to this Tag More...
 
const std::vector< SumoXMLTag > & getMasterTags () const
 get master tags More...
 
int getNumberOfAttributes () const
 get number of attributes More...
 
SumoXMLTag getTag () const
 get Tag vinculated with this attribute Property More...
 
const std::string & getTagStr () const
 get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...) More...
 
SumoXMLTag getTagSynonym () const
 get tag synonym More...
 
 GNETagProperties ()
 default constructor More...
 
 GNETagProperties (SumoXMLTag tag, int tagType, int tagProperty, GUIIcon icon, const std::vector< SumoXMLTag > &master_tag={}, SumoXMLTag tagSynonym=SUMO_TAG_NOTHING)
 parameter constructor More...
 
bool hasAttribute (SumoXMLAttr attr) const
 check if current TagProperties owns the attribute "attr" More...
 
bool hasDialog () const
 return true if tag correspond to an element that can be edited using a dialog More...
 
bool hasDoubleParameters () const
 return true if Tag correspond to an element that supports double parameters "key1=double1|key2=double2|...|keyN=doubleN" More...
 
bool hasGEOPosition () const
 return true if tag correspond to an element that can use a geo position More...
 
bool hasGEOShape () const
 return true if tag correspond to an element that can use a geo shape More...
 
bool hasMinimumNumberOfChildren () const
 return true if tag correspond to an element that only have a limited number of children More...
 
bool hasParameters () const
 return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|...|keyN=valueN" More...
 
bool hasTagSynonym () const
 return true if tag correspond to an element that will be written in XML with another tag More...
 
bool isAdditionalElement () const
 return true if tag correspond to an additional element More...
 
bool isAttributeDeprecated (SumoXMLAttr attr) const
 return true if attribute of this tag is deprecated More...
 
bool isDataElement () const
 return true if tag correspond to a data element More...
 
bool isDemandElement () const
 return true if tag correspond to a demand element More...
 
bool isDetector () const
 return true if tag correspond to a shape (Only used to group all detectors in the XML) More...
 
bool isDrawable () const
 return true if tag correspond to a drawable element More...
 
bool isGenericData () const
 return true if tag correspond to a generic data element More...
 
bool isNetworkElement () const
 return true if tag correspond to a network element More...
 
bool isPerson () const
 return true if tag correspond to a person element More...
 
bool isPersonPlan () const
 return true if tag correspond to a person plan More...
 
bool isPersonStop () const
 return true if tag correspond to a person stop element More...
 
bool isPersonTrip () const
 return true if tag correspond to a person trip More...
 
bool isPlacedInRTree () const
 return true if Tag correspond to an element that has has to be placed in RTREE More...
 
bool isRide () const
 return true if tag correspond to a ride element More...
 
bool isRoute () const
 return true if tag correspond to a route element More...
 
bool isSelectable () const
 return true if tag correspond to a selectable element More...
 
bool isShape () const
 return true if tag correspond to a shape More...
 
bool isSlave () const
 return true if tag correspond to an element slave of another element (I.e. doesn't have their own ID) More...
 
bool isStop () const
 return true if tag correspond to a stop element More...
 
bool isStoppingPlace () const
 return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML) More...
 
bool isSymbol () const
 return true if tag correspond to a symbol element More...
 
bool isTAZElement () const
 return true if tag correspond to a TAZ element More...
 
bool isVehicle () const
 return true if tag correspond to a vehicle element More...
 
bool isVehicleType () const
 return true if tag correspond to a vehicle type element More...
 
bool isWalk () const
 return true if tag correspond to a walk element More...
 
bool personPlanEndBusStop () const
 return true if tag correspond to a person plan that starts in a busStop More...
 
bool personPlanEndEdge () const
 return true if tag correspond to a person plan that starts in an edge More...
 
bool personPlanEndStop () const
 return true if tag correspond to a person plan that starts in a Stop More...
 
bool personPlanStartBusStop () const
 return true if tag correspond to a person plan that starts in a busStop More...
 
bool personPlanStartEdge () const
 return true if tag correspond to a person plan that starts in an edge More...
 
bool personPlanStartStop () const
 return true if tag correspond to a person plan that starts in a Stop More...
 
 ~GNETagProperties ()
 destructor More...
 

Private Attributes

std::vector< GNEAttributePropertiesmyAttributeProperties
 vector with the attribute values vinculated with this Tag More...
 
std::vector< SumoXMLAttrmyDeprecatedAttributes
 List with the deprecated Attributes. More...
 
GUIIcon myIcon
 icon associated to this Tag More...
 
std::vector< SumoXMLTagmyMasterTags
 vector with master tags (used by slave elements) More...
 
SumoXMLTag myTag
 Sumo XML Tag vinculated wit this tag Property. More...
 
int myTagProperty
 Attribute properties. More...
 
std::string myTagStr
 Sumo XML Tag vinculated wit this tag Property in String format. More...
 
SumoXMLTag myTagSynonym
 Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written) More...
 
int myTagType
 Attribute Type. More...
 

Static Private Attributes

static const size_t MAXNUMBEROFATTRIBUTES = 128
 max number of attributes allowed for every tag More...
 

Detailed Description

Definition at line 36 of file GNETagProperties.h.

Member Enumeration Documentation

◆ TagProperty

Enumerator
DRAWABLE 
BLOCKMOVEMENT 
BLOCKSHAPE 
CLOSESHAPE 
GEOPOSITION 
GEOSHAPE 
DIALOG 
SLAVE 
MINIMUMCHILDREN 
REPARENT 
SYNONYM 
SELECTABLE 
MASKSTARTENDPOS 
MASKXYZPOSITION 
WRITECHILDRENSEPARATE 
NOPARAMETERS 
PARAMETERSDOUBLE 
RTREE 
CENTERAFTERCREATION 
PERSONPLAN_START_EDGE 
PERSONPLAN_END_EDGE 
PERSONPLAN_START_BUSSTOP 
PERSONPLAN_END_BUSSTOP 
PERSONPLAN_START_STOP 
PERSONPLAN_END_STOP 
EMBEDDED_ROUTE 

Definition at line 68 of file GNETagProperties.h.

◆ TagType

Enumerator
NETWORKELEMENT 
ADDITIONALELEMENT 
SHAPE 
TAZELEMENT 
DEMANDELEMENT 
DATAELEMENT 
STOPPINGPLACE 
DETECTOR 
VTYPE 
VEHICLE 
ROUTE 
STOP 
PERSON 
PERSONPLAN 
PERSONTRIP 
WALK 
RIDE 
PERSONSTOP 
GENERICDATA 
SYMBOL 

Definition at line 40 of file GNETagProperties.h.

Constructor & Destructor Documentation

◆ GNETagProperties() [1/2]

GNETagProperties::GNETagProperties ( )

default constructor

Definition at line 39 of file GNETagProperties.cpp.

References EMPTY.

◆ GNETagProperties() [2/2]

GNETagProperties::GNETagProperties ( SumoXMLTag  tag,
int  tagType,
int  tagProperty,
GUIIcon  icon,
const std::vector< SumoXMLTag > &  master_tag = {},
SumoXMLTag  tagSynonym = SUMO_TAG_NOTHING 
)

parameter constructor

Definition at line 48 of file GNETagProperties.cpp.

◆ ~GNETagProperties()

GNETagProperties::~GNETagProperties ( )

destructor

Definition at line 59 of file GNETagProperties.cpp.

Member Function Documentation

◆ addAttribute()

void GNETagProperties::addAttribute ( const GNEAttributeProperties attributeProperty)

add attribute (duplicated attributed aren't allowed)

Definition at line 138 of file GNETagProperties.cpp.

References GNEAttributeProperties::getAttr(), GNEAttributeProperties::getAttrStr(), isAttributeDeprecated(), MAXNUMBEROFATTRIBUTES, and myAttributeProperties.

◆ addDeprecatedAttribute()

void GNETagProperties::addDeprecatedAttribute ( SumoXMLAttr  attr)

add deprecated Attribute

Definition at line 158 of file GNETagProperties.cpp.

References myAttributeProperties, myDeprecatedAttributes, and toString().

◆ begin()

std::vector< GNEAttributeProperties >::const_iterator GNETagProperties::begin ( ) const

get begin of attribute values (used for iterate)

Definition at line 184 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEAttributeProperties::getPositionListed().

Here is the caller graph for this function:

◆ canBeReparent()

bool GNETagProperties::canBeReparent ( ) const

return true if tag correspond to an element that can be reparent

Definition at line 439 of file GNETagProperties.cpp.

References myTagProperty, and REPARENT.

◆ canBlockMovement()

bool GNETagProperties::canBlockMovement ( ) const

return true if tag correspond to an element that can block their movement

Definition at line 372 of file GNETagProperties.cpp.

References BLOCKMOVEMENT, and myTagProperty.

Referenced by GNEViewNetHelper::LockIcon::getLockIcon(), and GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().

Here is the caller graph for this function:

◆ canBlockShape()

bool GNETagProperties::canBlockShape ( ) const

return true if tag correspond to an element that can block their shape

Definition at line 378 of file GNETagProperties.cpp.

References BLOCKSHAPE, and myTagProperty.

Referenced by GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().

Here is the caller graph for this function:

◆ canCenterCameraAfterCreation()

bool GNETagProperties::canCenterCameraAfterCreation ( ) const

return true if tag correspond to an element that center camera after creation

Definition at line 463 of file GNETagProperties.cpp.

References CENTERAFTERCREATION, and myTagProperty.

Referenced by GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().

Here is the caller graph for this function:

◆ canCloseShape()

bool GNETagProperties::canCloseShape ( ) const

return true if tag correspond to an element that can close their shape

Definition at line 384 of file GNETagProperties.cpp.

References CLOSESHAPE, and myTagProperty.

Referenced by GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().

Here is the caller graph for this function:

◆ canMaskStartEndPos()

bool GNETagProperties::canMaskStartEndPos ( ) const

return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "length"

Definition at line 451 of file GNETagProperties.cpp.

References MASKSTARTENDPOS, and myTagProperty.

Referenced by checkTagIntegrity(), and GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().

Here is the caller graph for this function:

◆ canMaskXYZPositions()

bool GNETagProperties::canMaskXYZPositions ( ) const

return true if tag correspond to an element that can mask the attributes "X", "Y" and "Z" position as attribute "Position"

Definition at line 457 of file GNETagProperties.cpp.

References MASKXYZPOSITION, and myTagProperty.

Referenced by GNEAdditional::writeAdditional().

Here is the caller graph for this function:

◆ canWriteChildrenSeparate()

bool GNETagProperties::canWriteChildrenSeparate ( ) const

return true if tag correspond to an element that can write their child in a different file

Definition at line 445 of file GNETagProperties.cpp.

References myTagProperty, and WRITECHILDRENSEPARATE.

Referenced by GNEAdditional::writeAdditional().

Here is the caller graph for this function:

◆ checkTagIntegrity()

◆ embebbedRoute()

bool GNETagProperties::embebbedRoute ( ) const

return true if tag correspond to an element that owns a embebbed route

Definition at line 505 of file GNETagProperties.cpp.

References EMBEDDED_ROUTE, and myTagProperty.

Referenced by GNENetHelper::AttributeCarriers::updateDemandElementID().

Here is the caller graph for this function:

◆ end()

std::vector< GNEAttributeProperties >::const_iterator GNETagProperties::end ( ) const

get end of attribute values (used for iterate)

Definition at line 190 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEAttributeProperties::getPositionListed().

Here is the caller graph for this function:

◆ getAttributeProperties()

const GNEAttributeProperties & GNETagProperties::getAttributeProperties ( SumoXMLAttr  attr) const

get attribute (throw error if doesn't exist)

Definition at line 171 of file GNETagProperties.cpp.

References myAttributeProperties, and toString().

Referenced by GNEPersonStop::enableAttribute(), GNEStop::enableAttribute(), GNEAttributeCarrier::getAlternativeValueForDisabledAttributes(), GNEChange_Attribute::redo(), GNENet::replaceInListAttribute(), GNEVehicleType::setAttribute(), and GNEChange_Attribute::undo().

Here is the caller graph for this function:

◆ getDefaultValue()

const std::string & GNETagProperties::getDefaultValue ( SumoXMLAttr  attr) const

return the default value of the attribute of an element

Definition at line 122 of file GNETagProperties.cpp.

References myAttributeProperties, and toString().

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

Here is the caller graph for this function:

◆ getGUIIcon()

GUIIcon GNETagProperties::getGUIIcon ( ) const

get GUI icon associated to this Tag

Definition at line 202 of file GNETagProperties.cpp.

References myIcon.

Referenced by GNEAttributeCarrier::getIcon().

Here is the caller graph for this function:

◆ getMasterTags()

const std::vector< SumoXMLTag > & GNETagProperties::getMasterTags ( ) const

get master tags

Definition at line 208 of file GNETagProperties.cpp.

References myMasterTags.

Referenced by GNEAdditionalFrame::buildSlaveAdditional(), and GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ getNumberOfAttributes()

int GNETagProperties::getNumberOfAttributes ( ) const

get number of attributes

Definition at line 196 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEFrame::openHelpAttributesDialog().

Here is the caller graph for this function:

◆ getTag()

SumoXMLTag GNETagProperties::getTag ( ) const

get Tag vinculated with this attribute Property

Definition at line 63 of file GNETagProperties.cpp.

References myTag.

Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNEAdditionalFrame::addAdditional(), GNENetHelper::AttributeCarriers::addDefaultVTypes(), GNENetHelper::AttributeCarriers::additionalExist(), GNEJunction::addPathAdditionalElement(), GNELane::addPathAdditionalElement(), GNEJunction::addPathDemandElement(), GNELane::addPathDemandElement(), GNEJunction::addPathGenericData(), GNELane::addPathGenericData(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEAdditionalFrame::buildSlaveAdditional(), GNENetHelper::PathCalculator::busStopConnected(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNEPersonTrip::computePath(), GNERide::computePath(), GNEVehicle::computePath(), GNEWalk::computePath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEVehicleFrame::createPath(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNENet::deleteDemandElement(), GNENetHelper::AttributeCarriers::deleteShape(), GNENetHelper::AttributeCarriers::deleteTAZElement(), GNENetHelper::AttributeCarriers::demandElementExist(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEGenericData::drawAttribute(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVehicle::drawGL(), GNEAdditionalFrame::generateID(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNEViewNet::getAttributeCarriersInBoundary(), GNEPerson::getBegin(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GNEVehicle::getDemandElementProblem(), GNEWalk::getDemandElementProblem(), GNEDemandElement::getFirstAllowedVehicleLane(), GNEDemandElement::getFirstPersonPlanEdge(), GNEPerson::getHierarchyName(), GNEPersonTrip::getHierarchyName(), GNERide::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEWalk::getHierarchyName(), GNENetworkElement::getHierarchyName(), GNEDemandElement::getLastAllowedVehicleLane(), GNEHierarchicalElement::getNewListOfParents(), GNEVehicle::getParentName(), GNEFrameModuls::DemandElementSelector::getPersonPlanPreviousEdge(), GNENetworkElement::getPopUpID(), GNEEdge::getRouteProbeRelativePosition(), GNEAdditionalHandler::LastInsertedElement::getShapeParent(), GNEStopFrame::getStopParameter(), GNEAdditionalHandler::LastInsertedElement::getTAZElementParent(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNENetHelper::AttributeCarriers::insertShape(), GNENetHelper::AttributeCarriers::insertTAZElement(), GNEInspectorFrame::inspectSingleElement(), GNEPersonTrip::invalidatePath(), GNERide::invalidatePath(), GNEVehicle::invalidatePath(), GNEWalk::invalidatePath(), GNEPersonStop::isDemandElementValid(), GNEStop::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNETAZElement::isValidTAZElementID(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdResetConnections(), GNEPolygonFrame::processClick(), GNEChange_DemandElement::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEJunction::removePathAdditionalElement(), GNELane::removePathAdditionalElement(), GNEJunction::removePathDemandElement(), GNELane::removePathDemandElement(), GNEJunction::removePathGenericData(), GNELane::removePathGenericData(), GNEInspectorFrame::selectedOverlappedElement(), GNEVehicle::setAttribute(), GNEFrameModuls::DemandElementSelector::setDemandElement(), GNELane::setLaneColor(), GNENetHelper::AttributeCarriers::shapeExist(), GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNECalibrator::splitEdgeGeometry(), GNEDetector::splitEdgeGeometry(), GNEStoppingPlace::splitEdgeGeometry(), GNEWalk::splitEdgeGeometry(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNENetHelper::AttributeCarriers::TAZElementExist(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNEChange_DemandElement::undo(), GNENetHelper::AttributeCarriers::updateAdditionalID(), GNEViewNetHelper::ObjectsUnderCursor::updateAttributeCarriers(), GNENetHelper::AttributeCarriers::updateDemandElementID(), GNEDetectorE2::updateGeometry(), GNEVehicle::updateGeometry(), GNEWalk::updateGeometry(), GNENetHelper::AttributeCarriers::updateID(), GNEAdditional::updatePartialGeometry(), GNENetHelper::AttributeCarriers::updateShapeID(), GNENetHelper::AttributeCarriers::updateTAZElementID(), GNEAdditional::writeAdditional(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEWalk::writeDemandElement(), GNETAZSourceSink::writeTAZElement(), GNEChange_Shape::~GNEChange_Shape(), and GNEChange_TAZElement::~GNEChange_TAZElement().

◆ getTagStr()

const std::string & GNETagProperties::getTagStr ( ) const

get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...)

Definition at line 69 of file GNETagProperties.cpp.

References myTagStr.

Referenced by GNEAdditionalFrame::buildSlaveAdditional(), GNEAttributeCarrier::checkParsedAttribute(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEStopFrame::getStopParameter(), GNEAttributeCarrier::getTagStr(), GNEPersonTrip::isValid(), GNEGenericData::isVisibleInspectDeleteSelect(), GNEFrame::openHelpAttributesDialog(), GNEAttributeCarrier::parseMaskedPositionAttribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().

Here is the caller graph for this function:

◆ getTagSynonym()

SumoXMLTag GNETagProperties::getTagSynonym ( ) const

get tag synonym

Definition at line 214 of file GNETagProperties.cpp.

References hasTagSynonym(), and myTagSynonym.

Referenced by GNEAdditional::writeAdditional(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().

Here is the caller graph for this function:

◆ hasAttribute()

◆ hasDialog()

bool GNETagProperties::hasDialog ( ) const

return true if tag correspond to an element that can be edited using a dialog

Definition at line 408 of file GNETagProperties.cpp.

References DIALOG, and myTagProperty.

Referenced by GNEAdditional::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), and GNEViewNet::onCmdOpenAdditionalDialog().

Here is the caller graph for this function:

◆ hasDoubleParameters()

bool GNETagProperties::hasDoubleParameters ( ) const

return true if Tag correspond to an element that supports double parameters "key1=double1|key2=double2|...|keyN=doubleN"

Definition at line 427 of file GNETagProperties.cpp.

References myTagProperty, and PARAMETERSDOUBLE.

Referenced by GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), and GNEAdditionalHandler::parseParameter().

Here is the caller graph for this function:

◆ hasGEOPosition()

bool GNETagProperties::hasGEOPosition ( ) const

return true if tag correspond to an element that can use a geo position

Definition at line 390 of file GNETagProperties.cpp.

References GEOPOSITION, and myTagProperty.

◆ hasGEOShape()

bool GNETagProperties::hasGEOShape ( ) const

return true if tag correspond to an element that can use a geo shape

Definition at line 396 of file GNETagProperties.cpp.

References GEOSHAPE, and myTagProperty.

◆ hasMinimumNumberOfChildren()

bool GNETagProperties::hasMinimumNumberOfChildren ( ) const

return true if tag correspond to an element that only have a limited number of children

Definition at line 414 of file GNETagProperties.cpp.

References MINIMUMCHILDREN, and myTagProperty.

Referenced by GNEAdditional::writeAdditional().

Here is the caller graph for this function:

◆ hasParameters()

bool GNETagProperties::hasParameters ( ) const

return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|...|keyN=valueN"

Definition at line 420 of file GNETagProperties.cpp.

References myTagProperty, and NOPARAMETERS.

Referenced by GNEInspectorFrame::ParametersEditorInspector::onCmdEditParameters(), GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), and GNEInspectorFrame::ParametersEditorInspector::refreshParametersEditorInspector().

Here is the caller graph for this function:

◆ hasTagSynonym()

bool GNETagProperties::hasTagSynonym ( ) const

return true if tag correspond to an element that will be written in XML with another tag

Definition at line 402 of file GNETagProperties.cpp.

References myTagProperty, and SYNONYM.

Referenced by checkTagIntegrity(), getTagSynonym(), GNEAdditional::writeAdditional(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().

Here is the caller graph for this function:

◆ isAdditionalElement()

◆ isAttributeDeprecated()

bool GNETagProperties::isAttributeDeprecated ( SumoXMLAttr  attr) const

return true if attribute of this tag is deprecated

Definition at line 511 of file GNETagProperties.cpp.

References myDeprecatedAttributes.

Referenced by addAttribute().

Here is the caller graph for this function:

◆ isDataElement()

bool GNETagProperties::isDataElement ( ) const

return true if tag correspond to a data element

Definition at line 265 of file GNETagProperties.cpp.

References DATAELEMENT, and myTagType.

Referenced by checkTagIntegrity(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNEViewNet::processLeftButtonPressData(), GNEChange_Attribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), and GNENetHelper::AttributeCarriers::updateID().

Here is the caller graph for this function:

◆ isDemandElement()

◆ isDetector()

bool GNETagProperties::isDetector ( ) const

return true if tag correspond to a shape (Only used to group all detectors in the XML)

Definition at line 277 of file GNETagProperties.cpp.

References DETECTOR, and myTagType.

Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNENet::saveAdditionalsConfirmed().

Here is the caller graph for this function:

◆ isDrawable()

bool GNETagProperties::isDrawable ( ) const

return true if tag correspond to a drawable element

Definition at line 360 of file GNETagProperties.cpp.

References DRAWABLE, and myTagProperty.

◆ isGenericData()

bool GNETagProperties::isGenericData ( ) const

return true if tag correspond to a generic data element

Definition at line 342 of file GNETagProperties.cpp.

References GENERICDATA, and myTagType.

Referenced by GNEAttributeCarrier::drawUsingSelectColor(), GNEChange_Attribute::redo(), GNEChange_Attribute::undo(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().

Here is the caller graph for this function:

◆ isNetworkElement()

◆ isPerson()

bool GNETagProperties::isPerson ( ) const

return true if tag correspond to a person element

Definition at line 306 of file GNETagProperties.cpp.

References myTagType, and PERSON.

Referenced by GNERouteHandler::buildStop(), GNEViewNet::doPaintGL(), and GNEViewNet::onCmdToogleLockPerson().

Here is the caller graph for this function:

◆ isPersonPlan()

bool GNETagProperties::isPersonPlan ( ) const

return true if tag correspond to a person plan

Definition at line 312 of file GNETagProperties.cpp.

References myTagType, and PERSONPLAN.

Referenced by GNEViewNet::doPaintGL(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDemandElement::updatePartialGeometry().

Here is the caller graph for this function:

◆ isPersonStop()

bool GNETagProperties::isPersonStop ( ) const

return true if tag correspond to a person stop element

Definition at line 336 of file GNETagProperties.cpp.

References myTagType, and PERSONSTOP.

Referenced by GNEPersonFrame::demandElementSelected(), GNEViewNet::doPaintGL(), GNEPersonStop::drawGL(), and GNEPersonFrame::tagSelected().

Here is the caller graph for this function:

◆ isPersonTrip()

bool GNETagProperties::isPersonTrip ( ) const

return true if tag correspond to a person trip

Definition at line 318 of file GNETagProperties.cpp.

References myTagType, and PERSONTRIP.

◆ isPlacedInRTree()

bool GNETagProperties::isPlacedInRTree ( ) const

return true if Tag correspond to an element that has has to be placed in RTREE

Definition at line 433 of file GNETagProperties.cpp.

References myTagProperty, and RTREE.

Referenced by GNENet::addGLObjectIntoGrid(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENet::removeGLObjectFromGrid(), and GNEStoppingPlace::updateCenteringBoundary().

Here is the caller graph for this function:

◆ isRide()

bool GNETagProperties::isRide ( ) const

return true if tag correspond to a ride element

Definition at line 330 of file GNETagProperties.cpp.

References myTagType, and RIDE.

Referenced by GNEPersonFrame::demandElementSelected(), GNEDemandElement::getFirstAllowedVehicleLane(), GNEDemandElement::getLastAllowedVehicleLane(), GNEPersonFrame::show(), and GNEPersonFrame::tagSelected().

Here is the caller graph for this function:

◆ isRoute()

bool GNETagProperties::isRoute ( ) const

return true if tag correspond to a route element

Definition at line 294 of file GNETagProperties.cpp.

References myTagType, and ROUTE.

Referenced by GNEVehicleFrame::addVehicle().

Here is the caller graph for this function:

◆ isSelectable()

bool GNETagProperties::isSelectable ( ) const

return true if tag correspond to a selectable element

Definition at line 366 of file GNETagProperties.cpp.

References myTagProperty, and SELECTABLE.

Referenced by GNESelectorFrame::ACsToSelected(), GNESelectorFrame::clearCurrentSelection(), GNEViewNet::getAttributeCarriersInBoundary(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEAttributeCarrier::selectAttributeCarrier(), and GNEAttributeCarrier::unselectAttributeCarrier().

Here is the caller graph for this function:

◆ isShape()

◆ isSlave()

bool GNETagProperties::isSlave ( ) const

return true if tag correspond to an element slave of another element (I.e. doesn't have their own ID)

Definition at line 348 of file GNETagProperties.cpp.

References myTagProperty, and SLAVE.

Referenced by GNEHierarchicalElement::addChildElement(), checkTagIntegrity(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNEHierarchicalElement::removeChildElement(), and GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ isStop()

bool GNETagProperties::isStop ( ) const

return true if tag correspond to a stop element

Definition at line 300 of file GNETagProperties.cpp.

References myTagType, and STOP.

Referenced by GNEStop::drawGL().

Here is the caller graph for this function:

◆ isStoppingPlace()

bool GNETagProperties::isStoppingPlace ( ) const

return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML)

Definition at line 271 of file GNETagProperties.cpp.

References myTagType, and STOPPINGPLACE.

Referenced by GNENet::saveAdditionalsConfirmed().

Here is the caller graph for this function:

◆ isSymbol()

bool GNETagProperties::isSymbol ( ) const

return true if tag correspond to a symbol element

Definition at line 354 of file GNETagProperties.cpp.

References myTagType, and SYMBOL.

◆ isTAZElement()

bool GNETagProperties::isTAZElement ( ) const

◆ isVehicle()

bool GNETagProperties::isVehicle ( ) const

return true if tag correspond to a vehicle element

Definition at line 289 of file GNETagProperties.cpp.

References myTagType, and VEHICLE.

Referenced by GNEStopFrame::addStop(), and GNEDemandElement::updatePartialGeometry().

Here is the caller graph for this function:

◆ isVehicleType()

bool GNETagProperties::isVehicleType ( ) const

return true if tag correspond to a vehicle type element

Definition at line 283 of file GNETagProperties.cpp.

References myTagType, and VTYPE.

◆ isWalk()

bool GNETagProperties::isWalk ( ) const

return true if tag correspond to a walk element

Definition at line 324 of file GNETagProperties.cpp.

References myTagType, and WALK.

◆ personPlanEndBusStop()

bool GNETagProperties::personPlanEndBusStop ( ) const

return true if tag correspond to a person plan that starts in a busStop

Definition at line 487 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_END_BUSSTOP.

Referenced by GNEDemandElement::calculatePersonPlanLaneStartEndPos(), and GNEDemandElement::getLastAllowedVehicleLane().

Here is the caller graph for this function:

◆ personPlanEndEdge()

bool GNETagProperties::personPlanEndEdge ( ) const

return true if tag correspond to a person plan that starts in an edge

Definition at line 475 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_END_EDGE.

Referenced by GNEDemandElement::calculatePersonPlanLaneStartEndPos().

Here is the caller graph for this function:

◆ personPlanEndStop()

bool GNETagProperties::personPlanEndStop ( ) const

return true if tag correspond to a person plan that starts in a Stop

Definition at line 499 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_END_STOP.

◆ personPlanStartBusStop()

bool GNETagProperties::personPlanStartBusStop ( ) const

return true if tag correspond to a person plan that starts in a busStop

Definition at line 481 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_START_BUSSTOP.

Referenced by GNEDemandElement::calculatePersonPlanLaneStartEndPos(), GNEDemandElement::getFirstAllowedVehicleLane(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), and GNEWalk::writeDemandElement().

Here is the caller graph for this function:

◆ personPlanStartEdge()

bool GNETagProperties::personPlanStartEdge ( ) const

return true if tag correspond to a person plan that starts in an edge

Definition at line 469 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_START_EDGE.

Referenced by GNEDemandElement::calculatePersonPlanLaneStartEndPos(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), and GNEWalk::writeDemandElement().

Here is the caller graph for this function:

◆ personPlanStartStop()

bool GNETagProperties::personPlanStartStop ( ) const

return true if tag correspond to a person plan that starts in a Stop

Definition at line 493 of file GNETagProperties.cpp.

References myTagProperty, and PERSONPLAN_START_STOP.

Field Documentation

◆ MAXNUMBEROFATTRIBUTES

const size_t GNETagProperties::MAXNUMBEROFATTRIBUTES = 128
staticprivate

max number of attributes allowed for every tag

Definition at line 318 of file GNETagProperties.h.

Referenced by addAttribute().

◆ myAttributeProperties

std::vector<GNEAttributeProperties> GNETagProperties::myAttributeProperties
private

vector with the attribute values vinculated with this Tag

Definition at line 303 of file GNETagProperties.h.

Referenced by addAttribute(), addDeprecatedAttribute(), begin(), checkTagIntegrity(), end(), getAttributeProperties(), getDefaultValue(), getNumberOfAttributes(), and hasAttribute().

◆ myDeprecatedAttributes

std::vector<SumoXMLAttr> GNETagProperties::myDeprecatedAttributes
private

List with the deprecated Attributes.

Definition at line 315 of file GNETagProperties.h.

Referenced by addDeprecatedAttribute(), and isAttributeDeprecated().

◆ myIcon

GUIIcon GNETagProperties::myIcon
private

icon associated to this Tag

Definition at line 306 of file GNETagProperties.h.

Referenced by getGUIIcon().

◆ myMasterTags

std::vector<SumoXMLTag> GNETagProperties::myMasterTags
private

vector with master tags (used by slave elements)

Definition at line 309 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), and getMasterTags().

◆ myTag

SumoXMLTag GNETagProperties::myTag
private

Sumo XML Tag vinculated wit this tag Property.

Definition at line 291 of file GNETagProperties.h.

Referenced by getTag().

◆ myTagProperty

◆ myTagStr

std::string GNETagProperties::myTagStr
private

Sumo XML Tag vinculated wit this tag Property in String format.

Definition at line 294 of file GNETagProperties.h.

Referenced by getTagStr().

◆ myTagSynonym

SumoXMLTag GNETagProperties::myTagSynonym
private

Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written)

Definition at line 312 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), and getTagSynonym().

◆ myTagType


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