![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct with the attribute Properties More...
#include <GNEAttributeCarrier.h>
Public Member Functions | |
void | addAttribute (const AttributeProperties &attributeProperty) |
add attribute (duplicated attributed aren't allowed) More... | |
void | addDeprecatedAttribute (SumoXMLAttr attr) |
add deprecated Attribute More... | |
std::vector< AttributeProperties >::const_iterator | begin () const |
get begin of attribute values (used for iterate) More... | |
bool | canAutomaticSortChildren () const |
return true if tag correspond to an element that can sort their children automatic More... | |
bool | canBeReparent () const |
return true if tag correspond to an element that can be reparent More... | |
bool | canBeSortedManually () const |
return true if Tag correspond to an element that can be sorted within their parent 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 | 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 "lenght" 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 sort their children automatic More... | |
void | checkTagIntegrity () const |
check Tag integrity (this include all their attributes) More... | |
std::vector< AttributeProperties >::const_iterator | end () const |
get end of attribute values (used for iterate) More... | |
const AttributeProperties & | 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... | |
int | getNumberOfAttributes () const |
get number of attributes More... | |
SumoXMLTag | getParentTag () const |
if Tag owns a parent, return parent tag 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... | |
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 | hasGenericParameters () const |
return true if Tag correspond to an element that supports generic parameters 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 | hasParent () const |
return true if tag correspond to an element that can had another element as parent More... | |
bool | hasTagSynonym () const |
return true if tag correspond to an element that will be written in XML with another tag More... | |
bool | isAdditional () const |
return true if tag correspond to an additional More... | |
bool | isAttributeDeprecated (SumoXMLAttr attr) const |
return true if attribute of this tag is deprecated 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 | isNetElement () const |
return true if tag correspond to a netElement 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 | 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 | isTAZ () const |
return true if tag correspond to a TAZ 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... | |
TagProperties () | |
default constructor More... | |
TagProperties (SumoXMLTag tag, int tagType, int tagProperty, GUIIcon icon, SumoXMLTag parentTag=SUMO_TAG_NOTHING, SumoXMLTag tagSynonym=SUMO_TAG_NOTHING) | |
parameter constructor More... | |
~TagProperties () | |
destructor More... | |
Private Attributes | |
std::vector< AttributeProperties > | 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... | |
SumoXMLTag | myParentTag |
parent tag 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... | |
struct with the attribute Properties
Definition at line 324 of file GNEAttributeCarrier.h.
GNEAttributeCarrier::TagProperties::TagProperties | ( | ) |
default constructor
Definition at line 496 of file GNEAttributeCarrier.cpp.
GNEAttributeCarrier::TagProperties::TagProperties | ( | SumoXMLTag | tag, |
int | tagType, | ||
int | tagProperty, | ||
GUIIcon | icon, | ||
SumoXMLTag | parentTag = SUMO_TAG_NOTHING , |
||
SumoXMLTag | tagSynonym = SUMO_TAG_NOTHING |
||
) |
parameter constructor
Definition at line 506 of file GNEAttributeCarrier.cpp.
GNEAttributeCarrier::TagProperties::~TagProperties | ( | ) |
destructor
Definition at line 517 of file GNEAttributeCarrier.cpp.
void GNEAttributeCarrier::TagProperties::addAttribute | ( | const AttributeProperties & | attributeProperty | ) |
add attribute (duplicated attributed aren't allowed)
Definition at line 588 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::AttributeProperties::getAttr(), GNEAttributeCarrier::AttributeProperties::getAttrStr(), isAttributeDeprecated(), GNEAttributeCarrier::MAXNUMBEROFATTRIBUTES, and myAttributeProperties.
void GNEAttributeCarrier::TagProperties::addDeprecatedAttribute | ( | SumoXMLAttr | attr | ) |
add deprecated Attribute
Definition at line 608 of file GNEAttributeCarrier.cpp.
References myAttributeProperties, myDeprecatedAttributes, and toString().
std::vector< GNEAttributeCarrier::AttributeProperties >::const_iterator GNEAttributeCarrier::TagProperties::begin | ( | ) | const |
get begin of attribute values (used for iterate)
Definition at line 634 of file GNEAttributeCarrier.cpp.
References myAttributeProperties.
Referenced by GNEAttributeCarrier::AttributeProperties::getPositionListed().
bool GNEAttributeCarrier::TagProperties::canAutomaticSortChildren | ( | ) | const |
return true if tag correspond to an element that can sort their children automatic
Definition at line 881 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_AUTOMATICSORTING.
Referenced by GNEHierarchicalElementChildren::addAdditionalChild(), GNEHierarchicalElementChildren::addDemandElementChild(), GNEHierarchicalElementChildren::removeAdditionalChild(), and GNEHierarchicalElementChildren::removeDemandElementChild().
bool GNEAttributeCarrier::TagProperties::canBeReparent | ( | ) | const |
return true if tag correspond to an element that can be reparent
Definition at line 875 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_REPARENT.
bool GNEAttributeCarrier::TagProperties::canBeSortedManually | ( | ) | const |
return true if Tag correspond to an element that can be sorted within their parent
Definition at line 869 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SORTINGCHILDREN.
Referenced by GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu().
bool GNEAttributeCarrier::TagProperties::canBlockMovement | ( | ) | const |
return true if tag correspond to an element that can block their movement
Definition at line 802 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_BLOCKMOVEMENT.
Referenced by GNEAdditional::BlockIcon::drawIcon(), and GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().
bool GNEAttributeCarrier::TagProperties::canBlockShape | ( | ) | const |
return true if tag correspond to an element that can block their shape
Definition at line 808 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_BLOCKSHAPE.
Referenced by GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().
bool GNEAttributeCarrier::TagProperties::canCloseShape | ( | ) | const |
return true if tag correspond to an element that can close their shape
Definition at line 814 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_CLOSESHAPE.
Referenced by GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul().
bool GNEAttributeCarrier::TagProperties::canMaskStartEndPos | ( | ) | const |
return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "lenght"
Definition at line 893 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MASKSTARTENDPOS.
Referenced by checkTagIntegrity(), GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul(), and GNEAdditional::startGeometryMoving().
bool GNEAttributeCarrier::TagProperties::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 899 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MASKXYZPOSITION.
bool GNEAttributeCarrier::TagProperties::canWriteChildrenSeparate | ( | ) | const |
return true if tag correspond to an element that can sort their children automatic
Definition at line 887 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_WRITECHILDRENSEPARATE.
void GNEAttributeCarrier::TagProperties::checkTagIntegrity | ( | ) | const |
check Tag integrity (this include all their attributes)
Definition at line 533 of file GNEAttributeCarrier.cpp.
References canMaskStartEndPos(), hasAttribute(), hasTagSynonym(), isAdditional(), isDemandElement(), isNetElement(), isShape(), isTAZ(), myAttributeProperties, myTagSynonym, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, and SUMO_TAG_NOTHING.
std::vector< GNEAttributeCarrier::AttributeProperties >::const_iterator GNEAttributeCarrier::TagProperties::end | ( | ) | const |
get end of attribute values (used for iterate)
Definition at line 640 of file GNEAttributeCarrier.cpp.
References myAttributeProperties.
Referenced by GNEAttributeCarrier::AttributeProperties::getPositionListed().
const GNEAttributeCarrier::AttributeProperties & GNEAttributeCarrier::TagProperties::getAttributeProperties | ( | SumoXMLAttr | attr | ) | const |
get attribute (throw error if doesn't exist)
Definition at line 621 of file GNEAttributeCarrier.cpp.
References myAttributeProperties, and toString().
Referenced by GNEChange_Attribute::redo(), GNENet::replaceInListAttribute(), GNEChange_Attribute::undo(), and GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().
const std::string & GNEAttributeCarrier::TagProperties::getDefaultValue | ( | SumoXMLAttr | attr | ) | const |
return the default value of the attribute of an element
Definition at line 572 of file GNEAttributeCarrier.cpp.
References myAttributeProperties, and toString().
Referenced by GNEVehicleType::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue(), and GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::updateValue().
GUIIcon GNEAttributeCarrier::TagProperties::getGUIIcon | ( | ) | const |
get GUI icon associated to this Tag
Definition at line 652 of file GNEAttributeCarrier.cpp.
References myIcon.
Referenced by GNEAttributeCarrier::getIcon().
int GNEAttributeCarrier::TagProperties::getNumberOfAttributes | ( | ) | const |
get number of attributes
Definition at line 646 of file GNEAttributeCarrier.cpp.
References myAttributeProperties.
Referenced by GNENetElement::getParameterWindow(), GNEAdditional::getParameterWindow(), GNEDemandElement::getParameterWindow(), and GNEFrame::openHelpAttributesDialog().
SumoXMLTag GNEAttributeCarrier::TagProperties::getParentTag | ( | ) | const |
if Tag owns a parent, return parent tag
Definition at line 658 of file GNEAttributeCarrier.cpp.
References hasParent(), and myParentTag.
Referenced by GNEAdditionalFrame::buildAdditionalWithParent(), and GNEAdditionalFrame::tagSelected().
SumoXMLTag GNEAttributeCarrier::TagProperties::getTag | ( | ) | const |
get Tag vinculated with this attribute Property
Definition at line 521 of file GNEAttributeCarrier.cpp.
References myTag.
Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNEAdditionalFrame::addAdditional(), GNEHierarchicalElementChildren::addDemandElementChild(), GNENet::additionalExist(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEPerson::calculatePersonPlanConnectionStop(), GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNENet::changeShapeID(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::demandElementExist(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEDetectorEntryExit::drawGL(), GNEDetectorE2::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNEAdditionalFrame::generateID(), GNEViewNet::getAttributeCarriersInBoundary(), GNEPerson::getBegin(), GNEVehicle::getBegin(), GNEWalk::getDemandElementProblem(), GNEVehicle::getDemandElementProblem(), GNENetElement::getHierarchyName(), GNERide::getHierarchyName(), GNEPersonTrip::getHierarchyName(), GNEWalk::getHierarchyName(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEVehicle::getParentName(), GNENetElement::getPopUpID(), GNEEdge::getRouteProbeRelativePosition(), GNEStopFrame::getStopParameter(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::insertAdditional(), GNENet::insertDemandElement(), GNENet::insertShape(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNEInspectorFrame::inspectSingleElement(), GNEStop::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEViewNet::onCmdTransformPOI(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNEViewNet::processLeftButtonPressNetwork(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEChange_DemandElement::redo(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNEDeleteFrame::removeAttributeCarrier(), GNEHierarchicalElementChildren::removeDemandElementChild(), GNENet::removeShape(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNENet::retrieveShapes(), GNEFrameModuls::DemandElementSelector::setDemandElement(), GNELane::setLaneColor(), GNENet::setViewNet(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEHierarchicalElementChildren::sortAdditionalChildren(), GNEViewNetHelper::EditShapes::startEditCustomShape(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), GNEPersonFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNEChange_DemandElement::undo(), GNENet::updateAdditionalID(), GNENet::updateDemandElementID(), GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes(), GNEPersonFrame::HelpCreation::updateHelpCreation(), GNEPersonPlanFrame::HelpCreation::updateHelpCreation(), GNEVehicleFrame::HelpCreation::updateHelpCreation(), GNEStopFrame::HelpCreation::updateHelpCreation(), GNEAdditional::writeAdditional(), GNEWalk::writeDemandElement(), GNERoute::writeDemandElement(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEChange_Attribute::~GNEChange_Attribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
const std::string & GNEAttributeCarrier::TagProperties::getTagStr | ( | ) | const |
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...)
Definition at line 527 of file GNEAttributeCarrier.cpp.
References myTagStr.
Referenced by GNEFrameModuls::EdgePathCreator::addEdge(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEAttributeCarrier::checkParsedAttribute(), GNEPersonFrame::edgePathCreated(), GNEStopFrame::getStopParameter(), GNEAttributeCarrier::getTagStr(), GNEPersonTrip::isValid(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrame::openHelpAttributesDialog(), GNEAttributeCarrier::parseMaskedPositionAttribute(), GNEPersonPlanFrame::personPlanCreated(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
SumoXMLTag GNEAttributeCarrier::TagProperties::getTagSynonym | ( | ) | const |
get tag synonym
Definition at line 668 of file GNEAttributeCarrier.cpp.
References hasTagSynonym(), and myTagSynonym.
Referenced by GNEAdditional::writeAdditional(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().
bool GNEAttributeCarrier::TagProperties::hasAttribute | ( | SumoXMLAttr | attr | ) | const |
check if current TagProperties owns the attribute attr
Definition at line 678 of file GNEAttributeCarrier.cpp.
References myAttributeProperties.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverLanes(), checkTagIntegrity(), GNEEdge::drawPartialPersonPlan(), GNEAdditional::getPopUpMenu(), GNEChange_Attribute::redo(), GNEViewNetHelper::EditShapes::saveEditedShape(), GNEAdditional::startGeometryMoving(), GNEAdditionalFrame::tagSelected(), and GNEChange_Attribute::undo().
bool GNEAttributeCarrier::TagProperties::hasDialog | ( | ) | const |
return true if tag correspond to an element that can be edited using a dialog
Definition at line 844 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_DIALOG.
Referenced by GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), and GNEViewNet::onCmdOpenAdditionalDialog().
bool GNEAttributeCarrier::TagProperties::hasGenericParameters | ( | ) | const |
return true if Tag correspond to an element that supports generic parameters
Definition at line 856 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_NOGENERICPARAMETERS.
Referenced by GNEAdditionalHandler::parseGenericParameter().
bool GNEAttributeCarrier::TagProperties::hasGEOPosition | ( | ) | const |
return true if tag correspond to an element that can use a geo position
Definition at line 820 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_GEOPOSITION.
bool GNEAttributeCarrier::TagProperties::hasGEOShape | ( | ) | const |
return true if tag correspond to an element that can use a geo shape
Definition at line 826 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_GEOSHAPE.
bool GNEAttributeCarrier::TagProperties::hasMinimumNumberOfChildren | ( | ) | const |
return true if tag correspond to an element that only have a limited number of children
Definition at line 850 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MINIMUMCHILDREN.
Referenced by GNEAdditional::writeAdditional().
bool GNEAttributeCarrier::TagProperties::hasParent | ( | ) | const |
return true if tag correspond to an element that can had another element as parent
Definition at line 832 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PARENT.
Referenced by getParentTag(), and GNEAdditionalFrame::tagSelected().
bool GNEAttributeCarrier::TagProperties::hasTagSynonym | ( | ) | const |
return true if tag correspond to an element that will be written in XML with another tag
Definition at line 838 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SYNONYM.
Referenced by checkTagIntegrity(), getTagSynonym(), GNEAdditional::writeAdditional(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().
bool GNEAttributeCarrier::TagProperties::isAdditional | ( | ) | const |
return true if tag correspond to an additional
Definition at line 696 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_ADDITIONAL.
Referenced by checkTagIntegrity(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::redo(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEChange_EnableAttribute::undo(), and GNEChange_Attribute::undo().
bool GNEAttributeCarrier::TagProperties::isAttributeDeprecated | ( | SumoXMLAttr | attr | ) | const |
return true if attribute of this tag is deprecated
Definition at line 905 of file GNEAttributeCarrier.cpp.
References myDeprecatedAttributes.
Referenced by addAttribute().
bool GNEAttributeCarrier::TagProperties::isDemandElement | ( | ) | const |
return true if tag correspond to a demand element
Definition at line 713 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_DEMANDELEMENT.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAttributeCarrier::checkParsedAttribute(), checkTagIntegrity(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNENet::getSelectedAttributeCarriers(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::redo(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements(), GNEChange_EnableAttribute::undo(), and GNEChange_Attribute::undo().
bool GNEAttributeCarrier::TagProperties::isDetector | ( | ) | const |
return true if tag correspond to a shape (Only used to group all detectors in the XML)
Definition at line 725 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_DETECTOR.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNENet::saveAdditionalsConfirmed().
bool GNEAttributeCarrier::TagProperties::isDrawable | ( | ) | const |
return true if tag correspond to a drawable element
Definition at line 790 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_DRAWABLE.
Referenced by GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNEAdditional::endGeometryMoving(), GNENet::insertAdditional(), GNENet::insertDemandElement(), and GNEAdditional::startGeometryMoving().
bool GNEAttributeCarrier::TagProperties::isNetElement | ( | ) | const |
return true if tag correspond to a netElement
Definition at line 690 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_NETELEMENT.
Referenced by checkTagIntegrity(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::redo(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEChange_EnableAttribute::undo(), and GNEChange_Attribute::undo().
bool GNEAttributeCarrier::TagProperties::isPerson | ( | ) | const |
return true if tag correspond to a person element
Definition at line 754 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_PERSON.
Referenced by GNERouteHandler::buildStop(), GNENet::deleteDemandElement(), GNEViewNet::doPaintGL(), GNENet::insertDemandElement(), and GNEViewNet::onCmdToogleLockPerson().
bool GNEAttributeCarrier::TagProperties::isPersonPlan | ( | ) | const |
return true if tag correspond to a person plan
Definition at line 760 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_PERSONPLAN.
Referenced by GNEViewNet::doPaintGL(), GNEStop::drawGL(), and GNEEdge::drawPartialPersonPlan().
bool GNEAttributeCarrier::TagProperties::isPersonStop | ( | ) | const |
return true if tag correspond to a person stop element
Definition at line 784 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_PERSONSTOP.
Referenced by GNEPersonFrame::addPerson(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNEPersonFrame::demandElementSelected(), GNEViewNet::doPaintGL(), GNEStop::drawGL(), GNEStop::getColor(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNEPersonFrame::tagSelected(), and GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().
bool GNEAttributeCarrier::TagProperties::isPersonTrip | ( | ) | const |
return true if tag correspond to a person trip
Definition at line 766 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_PERSONTRIP.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEEdge::drawPartialPersonPlan(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
bool GNEAttributeCarrier::TagProperties::isPlacedInRTree | ( | ) | const |
return true if Tag correspond to an element that has has to be placed in RTREE
Definition at line 863 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_RTREE.
Referenced by GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNEAdditional::endGeometryMoving(), GNENet::insertAdditional(), GNENet::insertDemandElement(), GNENet::insertShape(), GNENet::removeShape(), GNEAdditional::startGeometryMoving(), and GNEChange_Shape::~GNEChange_Shape().
bool GNEAttributeCarrier::TagProperties::isRide | ( | ) | const |
return true if tag correspond to a ride element
Definition at line 778 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_RIDE.
Referenced by GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNEPerson::calculateSmoothPersonPlanConnection(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEEdge::drawPartialPersonPlan(), GNEPersonPlanFrame::PersonPlanCreator::onCmdRemoveLastElement(), GNEPersonFrame::show(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEPerson::updateGeometry().
bool GNEAttributeCarrier::TagProperties::isRoute | ( | ) | const |
return true if tag correspond to a route element
Definition at line 742 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_ROUTE.
Referenced by GNEVehicleFrame::addVehicle().
bool GNEAttributeCarrier::TagProperties::isSelectable | ( | ) | const |
return true if tag correspond to a selectable element
Definition at line 796 of file GNEAttributeCarrier.cpp.
References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SELECTABLE.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNESelectorFrame::clearCurrentSelection(), GNESelectorFrame::SelectionOperation::onCmdInvert(), and GNESelectorFrame::SelectionOperation::onCmdLoad().
bool GNEAttributeCarrier::TagProperties::isShape | ( | ) | const |
return true if tag correspond to a shape
Definition at line 701 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_SHAPE.
Referenced by checkTagIntegrity(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::redo(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEChange_EnableAttribute::undo(), GNEChange_Attribute::undo(), GNEChange_Attribute::~GNEChange_Attribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
bool GNEAttributeCarrier::TagProperties::isStop | ( | ) | const |
return true if tag correspond to a stop element
Definition at line 748 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_STOP.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEStop::drawGL(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), and GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().
bool GNEAttributeCarrier::TagProperties::isStoppingPlace | ( | ) | const |
return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML)
Definition at line 719 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_STOPPINGPLACE.
Referenced by GNENet::saveAdditionalsConfirmed().
bool GNEAttributeCarrier::TagProperties::isTAZ | ( | ) | const |
return true if tag correspond to a TAZ
Definition at line 707 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_TAZ.
Referenced by checkTagIntegrity(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
bool GNEAttributeCarrier::TagProperties::isVehicle | ( | ) | const |
return true if tag correspond to a vehicle element
Definition at line 737 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_VEHICLE.
Referenced by GNEStopFrame::addStop(), GNENet::deleteDemandElement(), GNENet::insertDemandElement(), GNENet::updateDemandElementBegin(), and GNENet::updateDemandElementID().
bool GNEAttributeCarrier::TagProperties::isVehicleType | ( | ) | const |
return true if tag correspond to a vehicle type element
Definition at line 731 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_VTYPE.
Referenced by GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu().
bool GNEAttributeCarrier::TagProperties::isWalk | ( | ) | const |
return true if tag correspond to a walk element
Definition at line 772 of file GNEAttributeCarrier.cpp.
References myTagType, and GNEAttributeCarrier::TAGTYPE_WALK.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEEdge::drawPartialPersonPlan(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
|
private |
vector with the attribute values vinculated with this Tag
Definition at line 502 of file GNEAttributeCarrier.h.
Referenced by addAttribute(), addDeprecatedAttribute(), begin(), checkTagIntegrity(), end(), getAttributeProperties(), getDefaultValue(), getNumberOfAttributes(), and hasAttribute().
|
private |
List with the deprecated Attributes.
Definition at line 514 of file GNEAttributeCarrier.h.
Referenced by addDeprecatedAttribute(), and isAttributeDeprecated().
|
private |
icon associated to this Tag
Definition at line 505 of file GNEAttributeCarrier.h.
Referenced by getGUIIcon().
|
private |
|
private |
Sumo XML Tag vinculated wit this tag Property.
Definition at line 490 of file GNEAttributeCarrier.h.
Referenced by getTag().
|
private |
Attribute properties.
Definition at line 499 of file GNEAttributeCarrier.h.
Referenced by canAutomaticSortChildren(), canBeReparent(), canBeSortedManually(), canBlockMovement(), canBlockShape(), canCloseShape(), canMaskStartEndPos(), canMaskXYZPositions(), canWriteChildrenSeparate(), hasDialog(), hasGenericParameters(), hasGEOPosition(), hasGEOShape(), hasMinimumNumberOfChildren(), hasParent(), hasTagSynonym(), isDrawable(), isPlacedInRTree(), and isSelectable().
|
private |
Sumo XML Tag vinculated wit this tag Property in String format.
Definition at line 493 of file GNEAttributeCarrier.h.
Referenced by getTagStr().
|
private |
Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written)
Definition at line 511 of file GNEAttributeCarrier.h.
Referenced by checkTagIntegrity(), and getTagSynonym().
|
private |
Attribute Type.
Definition at line 496 of file GNEAttributeCarrier.h.
Referenced by isAdditional(), isDemandElement(), isDetector(), isNetElement(), isPerson(), isPersonPlan(), isPersonStop(), isPersonTrip(), isRide(), isRoute(), isShape(), isStop(), isStoppingPlace(), isTAZ(), isVehicle(), isVehicleType(), and isWalk().