![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#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 GNEAttributeProperties & | getAttributeProperties (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< GNEAttributeProperties > | myAttributeProperties |
vector with the attribute values vinculated with this Tag More... | |
std::vector< SumoXMLAttr > | myDeprecatedAttributes |
List with the deprecated Attributes. More... | |
GUIIcon | myIcon |
icon associated to this Tag More... | |
std::vector< SumoXMLTag > | myMasterTags |
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... | |
Definition at line 36 of file GNETagProperties.h.
Definition at line 68 of file GNETagProperties.h.
Definition at line 40 of file GNETagProperties.h.
GNETagProperties::GNETagProperties | ( | ) |
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 | ( | ) |
destructor
Definition at line 59 of file GNETagProperties.cpp.
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.
void GNETagProperties::addDeprecatedAttribute | ( | SumoXMLAttr | attr | ) |
add deprecated Attribute
Definition at line 158 of file GNETagProperties.cpp.
References myAttributeProperties, myDeprecatedAttributes, and toString().
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().
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.
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().
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().
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().
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().
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().
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().
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().
void GNETagProperties::checkTagIntegrity | ( | ) | const |
check Tag integrity (this include all their attributes)
Definition at line 75 of file GNETagProperties.cpp.
References canMaskStartEndPos(), hasAttribute(), hasTagSynonym(), isAdditionalElement(), isDataElement(), isDemandElement(), isNetworkElement(), isShape(), isSlave(), isTAZElement(), myAttributeProperties, myMasterTags, myTagSynonym, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, and SUMO_TAG_NOTHING.
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().
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().
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().
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().
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().
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().
int GNETagProperties::getNumberOfAttributes | ( | ) | const |
get number of attributes
Definition at line 196 of file GNETagProperties.cpp.
References myAttributeProperties.
Referenced by GNEFrame::openHelpAttributesDialog().
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().
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().
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().
bool GNETagProperties::hasAttribute | ( | SumoXMLAttr | attr | ) | const |
check if current TagProperties owns the attribute "attr"
Definition at line 224 of file GNETagProperties.cpp.
References myAttributeProperties.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), checkTagIntegrity(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEDemandElement::drawPersonPlanPartialLane(), GNEAttributeCarrier::getAlternativeValueForDisabledAttributes(), GNEDemandElement::getFirstAllowedVehicleLane(), GNEDemandElement::getLastAllowedVehicleLane(), GNEAdditional::getPopUpMenu(), GNEChange_Attribute::redo(), GNEVehicleType::setAttribute(), GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEAdditionalFrame::tagSelected(), GNEChange_Attribute::undo(), GNEStoppingPlace::updateCenteringBoundary(), and GNEAdditional::writeAdditional().
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().
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().
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.
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.
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().
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().
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().
bool GNETagProperties::isAdditionalElement | ( | ) | const |
return true if tag correspond to an additional element
Definition at line 242 of file GNETagProperties.cpp.
References ADDITIONALELEMENT, and myTagType.
Referenced by checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_EnableAttribute::undo(), GNENetHelper::AttributeCarriers::updateID(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
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().
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().
bool GNETagProperties::isDemandElement | ( | ) | const |
return true if tag correspond to a demand element
Definition at line 259 of file GNETagProperties.cpp.
References DEMANDELEMENT, and myTagType.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_EnableAttribute::undo(), GNENetHelper::AttributeCarriers::updateID(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
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().
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.
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().
bool GNETagProperties::isNetworkElement | ( | ) | const |
return true if tag correspond to a network element
Definition at line 236 of file GNETagProperties.cpp.
References myTagType, and NETWORKELEMENT.
Referenced by checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEDeleteFrame::removeGeometryPoint(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_EnableAttribute::undo(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
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().
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().
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().
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.
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().
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().
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().
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().
bool GNETagProperties::isShape | ( | ) | const |
return true if tag correspond to a shape
Definition at line 247 of file GNETagProperties.cpp.
References myTagType, and SHAPE.
Referenced by checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_EnableAttribute::undo(), GNENetHelper::AttributeCarriers::updateID(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
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().
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().
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().
bool GNETagProperties::isSymbol | ( | ) | const |
return true if tag correspond to a symbol element
Definition at line 354 of file GNETagProperties.cpp.
bool GNETagProperties::isTAZElement | ( | ) | const |
return true if tag correspond to a TAZ element
Definition at line 253 of file GNETagProperties.cpp.
References myTagType, and TAZELEMENT.
Referenced by checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENet::getSelectedAttributeCarriers(), GNEFrameAttributesModuls::isSupermodeValid(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_Attribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNENetHelper::AttributeCarriers::updateID(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
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().
bool GNETagProperties::isVehicleType | ( | ) | const |
return true if tag correspond to a vehicle type element
Definition at line 283 of file GNETagProperties.cpp.
bool GNETagProperties::isWalk | ( | ) | const |
return true if tag correspond to a walk element
Definition at line 324 of file GNETagProperties.cpp.
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().
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().
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.
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().
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().
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.
|
staticprivate |
max number of attributes allowed for every tag
Definition at line 318 of file GNETagProperties.h.
Referenced by addAttribute().
|
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().
|
private |
List with the deprecated Attributes.
Definition at line 315 of file GNETagProperties.h.
Referenced by addDeprecatedAttribute(), and isAttributeDeprecated().
|
private |
icon associated to this Tag
Definition at line 306 of file GNETagProperties.h.
Referenced by getGUIIcon().
|
private |
vector with master tags (used by slave elements)
Definition at line 309 of file GNETagProperties.h.
Referenced by checkTagIntegrity(), and getMasterTags().
|
private |
Sumo XML Tag vinculated wit this tag Property.
Definition at line 291 of file GNETagProperties.h.
Referenced by getTag().
|
private |
Attribute properties.
Definition at line 300 of file GNETagProperties.h.
Referenced by canBeReparent(), canBlockMovement(), canBlockShape(), canCenterCameraAfterCreation(), canCloseShape(), canMaskStartEndPos(), canMaskXYZPositions(), canWriteChildrenSeparate(), embebbedRoute(), hasDialog(), hasDoubleParameters(), hasGEOPosition(), hasGEOShape(), hasMinimumNumberOfChildren(), hasParameters(), hasTagSynonym(), isDrawable(), isPlacedInRTree(), isSelectable(), isSlave(), personPlanEndBusStop(), personPlanEndEdge(), personPlanEndStop(), personPlanStartBusStop(), personPlanStartEdge(), and personPlanStartStop().
|
private |
Sumo XML Tag vinculated wit this tag Property in String format.
Definition at line 294 of file GNETagProperties.h.
Referenced by getTagStr().
|
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().
|
private |
Attribute Type.
Definition at line 297 of file GNETagProperties.h.
Referenced by isAdditionalElement(), isDataElement(), isDemandElement(), isDetector(), isGenericData(), isNetworkElement(), isPerson(), isPersonPlan(), isPersonStop(), isPersonTrip(), isRide(), isRoute(), isShape(), isStop(), isStoppingPlace(), isSymbol(), isTAZElement(), isVehicle(), isVehicleType(), and isWalk().