![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETagProperties.h>
Public Types | |
enum | TagProperty { NOTDRAWABLE = 1 << 0 , CLOSESHAPE = 1 << 1 , GEOSHAPE = 1 << 2 , DIALOG = 1 << 3 , CHILD = 1 << 4 , REPARENT = 1 << 5 , NOTSELECTABLE = 1 << 6 , MASKSTARTENDPOS = 1 << 7 , NOPARAMETERS = 1 << 8 , RTREE = 1 << 9 , CENTERAFTERCREATION = 1 << 10 , EMBEDDED_ROUTE = 1 << 11 , REQUIRE_PROJ = 1 << 12 , VCLASS_ICON = 1 << 13 } |
enum | TagType { NETWORKELEMENT = 1 << 0 , ADDITIONALELEMENT = 1 << 1 , DEMANDELEMENT = 1 << 2 , DATAELEMENT = 1 << 3 , STOPPINGPLACE = 1 << 4 , DETECTOR = 1 << 5 , CALIBRATOR = 1 << 6 , SHAPE = 1 << 7 , TAZELEMENT = 1 << 8 , WIRE = 1 << 9 , VTYPE = 1 << 10 , VEHICLE = 1 << 11 , ROUTE = 1 << 12 , STOP = 1 << 13 , WAYPOINT = 1 << 14 , FLOW = 1 << 15 , PERSON = 1 << 16 , PERSONPLAN = 1 << 17 , PERSONTRIP = 1 << 18 , WALK = 1 << 19 , RIDE = 1 << 20 , STOPPERSON = 1 << 21 , CONTAINER = 1 << 22 , CONTAINERPLAN = 1 << 23 , TRANSPORT = 1 << 24 , TRANSHIP = 1 << 25 , STOPCONTAINER = 1 << 26 , GENERICDATA = 1 << 27 , SYMBOL = 1 << 28 , INTERNALLANE = 1 << 29 } |
Public Member Functions | |
void | addAttribute (const GNEAttributeProperties &attributeProperty) |
add attribute (duplicated attributed aren't allowed) More... | |
const GNEAttributeProperties & | at (int index) const |
get attribute value 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 | 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... | |
void | checkTagIntegrity () const |
check Tag integrity (this include all their attributes) 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... | |
unsigned int | getBackGroundColor () const |
get background color More... | |
const std::string & | getDefaultValue (SumoXMLAttr attr) const |
return the default value of the attribute of an element More... | |
const std::string & | getFieldString () const |
get field string (by default tag in string format) More... | |
GUIIcon | getGUIIcon () const |
get GUI icon associated to this Tag More... | |
int | getNumberOfAttributes () const |
get number of attributes More... | |
const std::vector< SumoXMLTag > & | getParentTags () const |
get parent tags More... | |
Supermode | getSupermode () const |
get supermode associated with this 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 | getXMLTag () const |
get XML tag More... | |
GNETagProperties () | |
default constructor More... | |
GNETagProperties (const SumoXMLTag tag, const int tagType, const int tagProperty, const GUIIcon icon, const SumoXMLTag XMLTag, const std::vector< SumoXMLTag > parentTags={}, const unsigned int backgroundColor=FXRGBA(255, 255, 255, 255)) | |
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 | hasEmbeddedRoute () const |
return true if tag correspond to an element that owns an embedded route More... | |
bool | hasGEOShape () const |
return true if tag correspond to an element that can use a geo shape More... | |
bool | hasParameters () const |
return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|...|keyN=valueN" More... | |
bool | isAdditionalElement () const |
return true if tag correspond to an additional element (note: this include TAZ, shapes and wires) More... | |
bool | isAdditionalPureElement () const |
return true if tag correspond to a pure additional element More... | |
bool | isCalibrator () const |
return true if tag correspond to a calibrator (Only used to group all detectors in the XML) More... | |
bool | isChild () const |
return true if tag correspond to an element child of another element (Example: E3->Entry/Exit) More... | |
bool | isContainer () const |
return true if tag correspond to a container element More... | |
bool | isContainerPlan () const |
return true if tag correspond to a container plan 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 | isFlow () const |
return true if tag correspond to a flow element More... | |
bool | isGenericData () const |
return true if tag correspond to a generic data element More... | |
bool | isInternalLane () const |
return true if tag correspond to an internal lane 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 | 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 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 | isShapeElement () const |
return true if tag correspond to a shape More... | |
bool | isStop () const |
return true if tag correspond to a stop element More... | |
bool | isStopContainer () const |
return true if tag correspond to a container stop element More... | |
bool | isStopPerson () const |
return true if tag correspond to a person 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 | isTranshipPlan () const |
return true if tag correspond to a tranship More... | |
bool | isTransportPlan () const |
return true if tag correspond to a transport 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 | isWaypoint () const |
return true if tag correspond to a waypoint element More... | |
bool | isWireElement () const |
return true if tag correspond to a Wire element More... | |
bool | requireProj () const |
return true if tag correspond to an element that requires a geo projection More... | |
void | setFieldString (const std::string &fieldString) |
set field that will be drawn in TextFields/ComboBox/etc, More... | |
bool | vClassIcon () const |
return true if tag correspond to an element that has vClass icons More... | |
~GNETagProperties () | |
destructor More... | |
Private Attributes | |
std::vector< GNEAttributeProperties > | myAttributeProperties |
vector with the attribute values vinculated with this Tag More... | |
unsigned int | myBackgroundColor |
background color (used in labels and textFields, by default white) More... | |
std::string | myFieldString |
field string More... | |
GUIIcon | myIcon |
icon associated to this Tag More... | |
std::vector< SumoXMLTag > | myParentTags |
vector with master tags (used by child 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... | |
int | myTagType |
Attribute Type. More... | |
SumoXMLTag | myXMLTag |
Tag written in XML and used in GNENetHelper::AttributeCarriers. More... | |
Static Private Attributes | |
static const size_t | MAXNUMBEROFATTRIBUTES = 128 |
max number of attributes allowed for every tag More... | |
Definition at line 38 of file GNETagProperties.h.
Enumerator | |
---|---|
NOTDRAWABLE | |
CLOSESHAPE | |
GEOSHAPE | |
DIALOG | |
CHILD | |
REPARENT | |
NOTSELECTABLE | |
MASKSTARTENDPOS | |
NOPARAMETERS | |
RTREE | |
CENTERAFTERCREATION | |
EMBEDDED_ROUTE | |
REQUIRE_PROJ | |
VCLASS_ICON |
Definition at line 82 of file GNETagProperties.h.
Definition at line 42 of file GNETagProperties.h.
GNETagProperties::GNETagProperties | ( | ) |
GNETagProperties::GNETagProperties | ( | const SumoXMLTag | tag, |
const int | tagType, | ||
const int | tagProperty, | ||
const GUIIcon | icon, | ||
const SumoXMLTag | XMLTag, | ||
const std::vector< SumoXMLTag > | parentTags = {} , |
||
const unsigned int | backgroundColor = FXRGBA(255, 255, 255, 255) |
||
) |
parameter constructor
Definition at line 49 of file GNETagProperties.cpp.
GNETagProperties::~GNETagProperties | ( | ) |
destructor
Definition at line 63 of file GNETagProperties.cpp.
void GNETagProperties::addAttribute | ( | const GNEAttributeProperties & | attributeProperty | ) |
add attribute (duplicated attributed aren't allowed)
Definition at line 160 of file GNETagProperties.cpp.
References GNEAttributeProperties::getAttr(), GNEAttributeProperties::getAttrStr(), MAXNUMBEROFATTRIBUTES, and myAttributeProperties.
const GNEAttributeProperties & GNETagProperties::at | ( | int | index | ) | const |
get attribute value
Definition at line 221 of file GNETagProperties.cpp.
References myAttributeProperties.
std::vector< GNEAttributeProperties >::const_iterator GNETagProperties::begin | ( | ) | const |
get begin of attribute values (used for iterate)
Definition at line 209 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 499 of file GNETagProperties.cpp.
References myTagProperty, and REPARENT.
Referenced by checkTagIntegrity().
bool GNETagProperties::canCenterCameraAfterCreation | ( | ) | const |
return true if tag correspond to an element that center camera after creation
Definition at line 511 of file GNETagProperties.cpp.
References CENTERAFTERCREATION, and myTagProperty.
Referenced by GNENeteditAttributes::showNeteditAttributesModule().
bool GNETagProperties::canCloseShape | ( | ) | const |
return true if tag correspond to an element that can close their shape
Definition at line 468 of file GNETagProperties.cpp.
References CLOSESHAPE, and myTagProperty.
Referenced by GNENeteditAttributes::showNeteditAttributesModule().
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 505 of file GNETagProperties.cpp.
References MASKSTARTENDPOS, and myTagProperty.
Referenced by checkTagIntegrity(), and GNENeteditAttributes::showNeteditAttributesModule().
void GNETagProperties::checkTagIntegrity | ( | ) | const |
check Tag integrity (this include all their attributes)
Definition at line 91 of file GNETagProperties.cpp.
References canBeReparent(), canMaskStartEndPos(), GNE_ATTR_STOPOEXCEPTION, hasAttribute(), isAdditionalElement(), isChild(), isDataElement(), isDemandElement(), isInternalLane(), isNetworkElement(), isShapeElement(), isTAZElement(), isWireElement(), myAttributeProperties, myParentTags, SUMO_ATTR_ALLOW, SUMO_ATTR_CHANGE_LEFT, SUMO_ATTR_CHANGE_RIGHT, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, SUMO_ATTR_VCLASS, and vClassIcon().
std::vector< GNEAttributeProperties >::const_iterator GNETagProperties::end | ( | ) | const |
get end of attribute values (used for iterate)
Definition at line 215 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 196 of file GNETagProperties.cpp.
References myAttributeProperties, and toString().
Referenced by GNEChange_Attribute::redo(), GNENet::replaceInListAttribute(), GNEVType::setAttribute(), and GNEChange_Attribute::undo().
unsigned int GNETagProperties::getBackGroundColor | ( | ) | const |
get background color
Definition at line 190 of file GNETagProperties.cpp.
References myBackgroundColor.
const std::string & GNETagProperties::getDefaultValue | ( | SumoXMLAttr | attr | ) | const |
return the default value of the attribute of an element
Definition at line 144 of file GNETagProperties.cpp.
References myAttributeProperties, and toString().
Referenced by GNEDemandElement::adjustDefaultFlowAttributes(), GNECalibratorFlow::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNECalibratorFlow::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEBusStop::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), and GNETractionSubstation::writeAdditional().
const std::string & GNETagProperties::getFieldString | ( | ) | const |
get field string (by default tag in string format)
Definition at line 178 of file GNETagProperties.cpp.
References myFieldString.
GUIIcon GNETagProperties::getGUIIcon | ( | ) | const |
get GUI icon associated to this Tag
Definition at line 233 of file GNETagProperties.cpp.
References myIcon.
Referenced by GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNEEntryExitDetector::commitMoveShape(), GNEInductionLoopDetector::commitMoveShape(), GNEInstantInductionLoopDetector::commitMoveShape(), GNELaneAreaDetector::commitMoveShape(), GNEOverheadWire::commitMoveShape(), GNEParkingSpace::commitMoveShape(), GNEStoppingPlace::commitMoveShape(), GNEPerson::commitMoveShape(), GNEPersonTrip::commitMoveShape(), GNERide::commitMoveShape(), GNEStop::commitMoveShape(), GNETranship::commitMoveShape(), GNETransport::commitMoveShape(), GNEVehicle::commitMoveShape(), GNEWalk::commitMoveShape(), GNEPOI::commitMoveShape(), GNEContainerFrame::createPath(), GNEPersonFrame::createPath(), GNEAttributeCarrier::getACIcon(), GNEAdditionalDialog::initChanges(), GNEDemandElementDialog::initChanges(), GNESingleParametersDialog::onCmdAccept(), GNEElementTree::onCmdMoveItemDown(), GNEElementTree::onCmdMoveItemUp(), GNEInspectorFrame::ParametersEditor::onCmdSetParameters(), GNEVType::overwriteVType(), GNEAdditionalDialog::resetChanges(), GNEDemandElementDialog::resetChanges(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStop::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEWalk::setAttribute(), GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
int GNETagProperties::getNumberOfAttributes | ( | ) | const |
get number of attributes
Definition at line 227 of file GNETagProperties.cpp.
References myAttributeProperties.
Referenced by GNEFrame::openHelpAttributesDialog().
const std::vector< SumoXMLTag > & GNETagProperties::getParentTags | ( | ) | const |
get parent tags
Definition at line 245 of file GNETagProperties.cpp.
References myParentTags.
Referenced by GNEAdditionalFrame::createBaseAdditionalObject().
Supermode GNETagProperties::getSupermode | ( | ) | const |
get supermode associated with this tag
Definition at line 73 of file GNETagProperties.cpp.
References DATA, DEMAND, isDataElement(), isDemandElement(), and NETWORK.
SumoXMLTag GNETagProperties::getTag | ( | ) | const |
get Tag vinculated with this attribute Property
Definition at line 67 of file GNETagProperties.cpp.
References myTag.
Referenced by GNETagSelector::ACTemplate::ACTemplate(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNENetHelper::AttributeCarriers::addDefaultVTypes(), GNENetHelper::AttributeCarriers::additionalExist(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), GNEPathCreator::addStoppingPlace(), GNETAZFrame::CurrentTAZ::addTAZChild(), GNEVehicleFrame::addVehicle(), GNENet::adjustPersonPlans(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNEPathManager::PathCalculator::busStopConnected(), GNERoute::computePathElement(), GNETranship::computePathElement(), GNEVehicle::computePathElement(), GNEWalk::computePathElement(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEVehicleFrame::createPath(), GNEElementTree::createPopUpMenu(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNENet::deleteDemandElement(), GNENetHelper::AttributeCarriers::deleteGenericData(), GNENet::deleteNetworkElement(), GNENetHelper::AttributeCarriers::demandElementExist(), GNEContainerFrame::demandElementSelected(), GNEContainerPlanFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEGenericData::drawAttribute(), GNEBusStop::drawGL(), GNEEntryExitDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEConnection::drawGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNETLSEditorFrame::editTLS(), GNEAttributesCreatorRow::generateID(), GNEPersonTrip::getAttribute(), GNEWalk::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GNEPerson::getAttributePosition(), DemandElementSelector::getContainerPlanPreviousEdge(), GNEVehicle::getDemandElementProblem(), GNERoute::getFirstPathLane(), GNEVehicle::getFirstPathLane(), GNEWalk::getFirstPathLane(), GNEContainer::getHierarchyName(), GNEPersonTrip::getHierarchyName(), GNERide::getHierarchyName(), GNETranship::getHierarchyName(), GNETransport::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEWalk::getHierarchyName(), GNENetworkElement::getHierarchyName(), GNERoute::getLastPathLane(), GNEVehicle::getLastPathLane(), GNEWalk::getLastPathLane(), GNEDetector::getMoveOperation(), GNEStop::getMoveOperation(), GNEHierarchicalElement::getNewListOfParents(), GNEVehicle::getParentName(), GNEDemandElement::getPathElementArrivalPos(), GNEDemandElement::getPathElementArrivalValue(), DemandElementSelector::getPersonPlanPreviousEdge(), GNENetworkElement::getPopUpID(), GNEEdge::getRouteProbeRelativePosition(), GNEStopFrame::getStopParameter(), GNETagSelector::getTemplateAC(), GNEPathCreator::getToStoppingPlace(), GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNENetHelper::AttributeCarriers::insertGenericData(), GNEInspectorFrame::inspectSingleElement(), GNEStop::isAttributeEnabled(), GNEStop::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNENetHelper::AttributeCarriers::isNetworkElementAroundShape(), GNETAZSourceSink::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNEAttributesCreatorRow::isValidID(), GNEGenericData::isVisibleInspectDeleteSelect(), GNEViewNet::onCmdClearConnections(), GNEElementTree::onCmdDeleteItem(), GNEInspectorFrame::AdditionalDialog::onCmdOpenAdditionalDialog(), GNEViewNet::onCmdResetConnections(), GNEShapeFrame::processClick(), GNEChange_DemandElement::redo(), GNEDeleteFrame::removeGeometryPoint(), GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNENetHelper::AttributeCarriers::retrieveGenericData(), GNEInspectorFrame::selectedOverlappedElement(), GNEVehicle::setAttribute(), GNERoute::setAttribute(), GNEWalk::setAttribute(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), DemandElementSelector::setDemandElement(), GNELane::setLaneColor(), GNEInspectorFrame::NeteditAttributesEditor::setNewParent(), GNEInspectorFrame::AdditionalDialog::showAdditionalDialog(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNECalibrator::splitEdgeGeometry(), GNEDetector::splitEdgeGeometry(), GNEStoppingPlace::splitEdgeGeometry(), GNETranship::splitEdgeGeometry(), GNEWalk::splitEdgeGeometry(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEShapeFrame::tagSelected(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNEChange_DemandElement::undo(), GNEViewNetHelper::ObjectsUnderCursor::updateAttributeCarriers(), GNELaneAreaDetector::updateGeometry(), GNELaneAreaDetector::writeAdditional(), GNETAZSourceSink::writeAdditional(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNETranship::writeDemandElement(), GNETransport::writeDemandElement(), GNEVehicle::writeDemandElement(), and GNEWalk::writeDemandElement().
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 85 of file GNETagProperties.cpp.
References myTagStr.
Referenced by GNEAdditionalFrame::createBaseAdditionalObject(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEStopFrame::getStopParameter(), GNEAttributeCarrier::getTagStr(), GNEChange_EnableAttribute::GNEChange_EnableAttribute(), GNEPersonTrip::isValid(), GNEFrame::openHelpAttributesDialog(), GNEAttributesCreator::showWarningMessage(), GNEMultiEntryExitDetector::writeAdditional(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
SumoXMLTag GNETagProperties::getXMLTag | ( | ) | const |
get XML tag
Definition at line 239 of file GNETagProperties.cpp.
References myXMLTag.
Referenced by GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().
bool GNETagProperties::hasAttribute | ( | SumoXMLAttr | attr | ) | const |
check if current TagProperties owns the attribute "attr"
Definition at line 251 of file GNETagProperties.cpp.
References myAttributeProperties.
Referenced by GNENet::adjustPersonPlans(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), checkTagIntegrity(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEAdditional::getPopUpMenu(), GNEStopFrame::getStopParameter(), GNEChange_Attribute::redo(), GNEVType::setAttribute(), GNEStop::setAttribute(), GNEPersonPlanFrame::tagSelected(), GNEChange_Attribute::undo(), and GNEStoppingPlace::updateCenteringBoundary().
bool GNETagProperties::hasDialog | ( | ) | const |
return true if tag correspond to an element that can be edited using a dialog
Definition at line 480 of file GNETagProperties.cpp.
References DIALOG, and myTagProperty.
Referenced by GNEAdditional::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), and GNEViewNet::onCmdOpenAdditionalDialog().
bool GNETagProperties::hasEmbeddedRoute | ( | ) | const |
return true if tag correspond to an element that owns an embedded route
Definition at line 517 of file GNETagProperties.cpp.
References EMBEDDED_ROUTE, and myTagProperty.
Referenced by GNEVehicle::getFirstPathLane(), GNEVehicle::getLastPathLane(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
bool GNETagProperties::hasGEOShape | ( | ) | const |
return true if tag correspond to an element that can use a geo shape
Definition at line 474 of file GNETagProperties.cpp.
References GEOSHAPE, and myTagProperty.
bool GNETagProperties::hasParameters | ( | ) | const |
return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 486 of file GNETagProperties.cpp.
References myTagProperty, and NOPARAMETERS.
Referenced by GNEInspectorFrame::ParametersEditor::onCmdEditParameters(), GNEInspectorFrame::ParametersEditor::onCmdSetParameters(), and GNEInspectorFrame::ParametersEditor::refreshParametersEditor().
bool GNETagProperties::isAdditionalElement | ( | ) | const |
return true if tag correspond to an additional element (note: this include TAZ, shapes and wires)
Definition at line 269 of file GNETagProperties.cpp.
References ADDITIONALELEMENT, and myTagType.
Referenced by GNEViewNetHelper::LockIcon::checkDrawing(), checkTagIntegrity(), GNEViewNet::drawDeleteContour(), GNEViewNet::drawSelectContour(), GNEAttributeCarrier::drawUsingSelectColor(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEAttributesCreatorRow::generateID(), GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers(), isAdditionalPureElement(), GNENetHelper::AttributeCarriers::isNetworkElementAroundShape(), GNEFrameAttributeModules::isSupermodeValid(), GNEAttributesCreatorRow::isValidID(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), and GNEChange_EnableAttribute::undo().
bool GNETagProperties::isAdditionalPureElement | ( | ) | const |
return true if tag correspond to a pure additional element
Definition at line 275 of file GNETagProperties.cpp.
References isAdditionalElement(), isShapeElement(), isTAZElement(), and isWireElement().
Referenced by GNESelectorFrame::SelectionOperation::processNetworkElementSelection(), and GNENet::writeOtherAdditionalsComment().
bool GNETagProperties::isCalibrator | ( | ) | const |
return true if tag correspond to a calibrator (Only used to group all detectors in the XML)
Definition at line 305 of file GNETagProperties.cpp.
References CALIBRATOR, and myTagType.
Referenced by GNENet::writeCalibratorComment(), GNEVehicle::writeDemandElement(), and GNENet::writeOtherAdditionalsComment().
bool GNETagProperties::isChild | ( | ) | const |
return true if tag correspond to an element child of another element (Example: E3->Entry/Exit)
Definition at line 437 of file GNETagProperties.cpp.
References CHILD, and myTagProperty.
Referenced by checkTagIntegrity(), and GNEAdditionalFrame::createBaseAdditionalObject().
bool GNETagProperties::isContainer | ( | ) | const |
return true if tag correspond to a container element
Definition at line 401 of file GNETagProperties.cpp.
References CONTAINER, and myTagType.
Referenced by GNERouteHandler::buildStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), DemandElementSelector::getContainerPlanPreviousEdge(), and GNEViewNet::onCmdToggleLockContainer().
bool GNETagProperties::isContainerPlan | ( | ) | const |
return true if tag correspond to a container plan
Definition at line 407 of file GNETagProperties.cpp.
References CONTAINERPLAN, and myTagType.
Referenced by GNEDemandElement::deleteGLObject(), and GNEDemandElement::drawContainerPlan().
bool GNETagProperties::isDataElement | ( | ) | const |
return true if tag correspond to a data element
Definition at line 287 of file GNETagProperties.cpp.
References DATAELEMENT, and myTagType.
Referenced by GNEViewNetHelper::LockIcon::checkDrawing(), checkTagIntegrity(), GNEViewNet::drawDeleteContour(), GNEViewNet::drawSelectContour(), GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers(), getSupermode(), GNEFrameAttributeModules::isSupermodeValid(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEChange_Attribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), and GNEChange_Attribute::undo().
bool GNETagProperties::isDemandElement | ( | ) | const |
return true if tag correspond to a demand element
Definition at line 281 of file GNETagProperties.cpp.
References DEMANDELEMENT, and myTagType.
Referenced by GNEViewNetHelper::LockIcon::checkDrawing(), checkTagIntegrity(), GNEViewNet::drawDeleteContour(), GNEViewNet::drawSelectContour(), GNEAttributeCarrier::drawUsingSelectColor(), GNEAttributesCreatorRow::generateID(), GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers(), getSupermode(), GNEFrameAttributeModules::isSupermodeValid(), GNEAttributesCreatorRow::isValidID(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), and GNEChange_EnableAttribute::undo().
bool GNETagProperties::isDetector | ( | ) | const |
return true if tag correspond to a shape (Only used to group all detectors in the XML)
Definition at line 299 of file GNETagProperties.cpp.
References DETECTOR, and myTagType.
Referenced by GNENet::writeDetectorComment(), and GNENet::writeOtherAdditionalsComment().
bool GNETagProperties::isDrawable | ( | ) | const |
return true if tag correspond to a drawable element
Definition at line 455 of file GNETagProperties.cpp.
References myTagProperty, and NOTDRAWABLE.
bool GNETagProperties::isFlow | ( | ) | const |
return true if tag correspond to a flow element
Definition at line 359 of file GNETagProperties.cpp.
References FLOW, and myTagType.
Referenced by GNEDemandElement::adjustDefaultFlowAttributes(), GNEVehicle::drawGL(), and GNEVehicle::writeDemandElement().
bool GNETagProperties::isGenericData | ( | ) | const |
return true if tag correspond to a generic data element
Definition at line 431 of file GNETagProperties.cpp.
References GENERICDATA, and myTagType.
Referenced by GNEAttributeCarrier::drawUsingSelectColor(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), and GNEChange_Attribute::undo().
bool GNETagProperties::isInternalLane | ( | ) | const |
return true if tag correspond to an internal lane
Definition at line 449 of file GNETagProperties.cpp.
References INTERNALLANE, and myTagType.
Referenced by checkTagIntegrity().
bool GNETagProperties::isNetworkElement | ( | ) | const |
return true if tag correspond to a network element
Definition at line 263 of file GNETagProperties.cpp.
References myTagType, and NETWORKELEMENT.
Referenced by GNEViewNetHelper::LockIcon::checkDrawing(), checkTagIntegrity(), GNEViewNet::drawDeleteContour(), GNEViewNet::drawSelectContour(), GNEAttributeCarrier::drawUsingSelectColor(), GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers(), GNEFrameAttributeModules::isSupermodeValid(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEDeleteFrame::removeGeometryPoint(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), and GNEChange_EnableAttribute::undo().
bool GNETagProperties::isPerson | ( | ) | const |
return true if tag correspond to a person element
Definition at line 365 of file GNETagProperties.cpp.
References myTagType, and PERSON.
Referenced by GNEPersonPlanFrame::addPersonPlanElement(), GNERouteHandler::buildStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), DemandElementSelector::getPersonPlanPreviousEdge(), GNEViewNet::onCmdToggleLockPerson(), and GNEPersonPlanFrame::show().
bool GNETagProperties::isPersonPlan | ( | ) | const |
return true if tag correspond to a person plan
Definition at line 371 of file GNETagProperties.cpp.
References myTagType, and PERSONPLAN.
Referenced by GNEDemandElement::deleteGLObject(), GNEDemandElement::drawPersonPlan(), and GNEElementTree::onCmdDeleteItem().
bool GNETagProperties::isPersonTrip | ( | ) | const |
return true if tag correspond to a person trip
Definition at line 377 of file GNETagProperties.cpp.
References myTagType, and PERSONTRIP.
Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().
bool GNETagProperties::isPlacedInRTree | ( | ) | const |
return true if Tag correspond to an element that has to be placed in RTREE
Definition at line 493 of file GNETagProperties.cpp.
References myTagProperty, and RTREE.
Referenced by GNEDataInterval::addGenericDataChild(), GNENet::addGLObjectIntoGrid(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEViewNet::recalculateBoundaries(), GNEDataInterval::removeGenericDataChild(), and GNENet::removeGLObjectFromGrid().
bool GNETagProperties::isRide | ( | ) | const |
return true if tag correspond to a ride element
Definition at line 389 of file GNETagProperties.cpp.
References myTagType, and RIDE.
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEPersonFrame::show(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
bool GNETagProperties::isRoute | ( | ) | const |
return true if tag correspond to a route element
Definition at line 341 of file GNETagProperties.cpp.
References myTagType, and ROUTE.
Referenced by GNEDemandElement::buildMenuCommandRouteLength(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEApplicationWindowHelper::LockMenuCommands::editLocking().
bool GNETagProperties::isSelectable | ( | ) | const |
return true if tag correspond to a selectable element
Definition at line 461 of file GNETagProperties.cpp.
References myTagProperty, and NOTSELECTABLE.
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::processNetworkElementSelection(), GNEAttributeCarrier::selectAttributeCarrier(), and GNEAttributeCarrier::unselectAttributeCarrier().
bool GNETagProperties::isShapeElement | ( | ) | const |
return true if tag correspond to a shape
Definition at line 311 of file GNETagProperties.cpp.
References myTagType, and SHAPE.
Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), and GNENet::writeShapesComment().
bool GNETagProperties::isStop | ( | ) | const |
return true if tag correspond to a stop element
Definition at line 347 of file GNETagProperties.cpp.
References myTagType, and STOP.
Referenced by GNEStopFrame::addStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEAttributesCreatorRow::onCmdSetAttribute().
bool GNETagProperties::isStopContainer | ( | ) | const |
return true if tag correspond to a container stop element
Definition at line 425 of file GNETagProperties.cpp.
References myTagType, and STOPCONTAINER.
Referenced by GNEStop::commitMoveShape(), GNEContainerFrame::demandElementSelected(), GNEContainer::getAttributePosition(), GNEStop::getDemandElementProblem(), GNEStop::getPositionInView(), GNEStop::isDemandElementValid(), GNEStop::isValid(), GNEStop::setAttribute(), GNEStop::setMoveShape(), GNEContainerFrame::tagSelected(), and GNEContainerPlanFrame::tagSelected().
bool GNETagProperties::isStopPerson | ( | ) | const |
return true if tag correspond to a person stop element
Definition at line 395 of file GNETagProperties.cpp.
References myTagType, and STOPPERSON.
Referenced by GNEStop::commitMoveShape(), GNEPersonFrame::demandElementSelected(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEPerson::getAttributePosition(), GNEDemandElement::getBeginPosition(), GNEStop::getDemandElementProblem(), GNEDemandElement::getPathElementDepartPos(), GNEDemandElement::getPathElementDepartValue(), GNEStop::getPositionInView(), GNEStop::isDemandElementValid(), GNEStop::isValid(), GNEStop::setAttribute(), GNEStop::setMoveShape(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
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 293 of file GNETagProperties.cpp.
References myTagType, and STOPPINGPLACE.
Referenced by GNENet::writeOtherAdditionalsComment(), and GNENet::writeStoppingPlaceComment().
bool GNETagProperties::isSymbol | ( | ) | const |
return true if tag correspond to a symbol element
Definition at line 443 of file GNETagProperties.cpp.
bool GNETagProperties::isTAZElement | ( | ) | const |
return true if tag correspond to a TAZ element
Definition at line 317 of file GNETagProperties.cpp.
References myTagType, and TAZELEMENT.
Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), and GNEElementTree::showAttributeCarrierParents().
bool GNETagProperties::isTranshipPlan | ( | ) | const |
return true if tag correspond to a tranship
Definition at line 418 of file GNETagProperties.cpp.
References myTagType, and TRANSHIP.
Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().
bool GNETagProperties::isTransportPlan | ( | ) | const |
return true if tag correspond to a transport
Definition at line 413 of file GNETagProperties.cpp.
References myTagType, and TRANSPORT.
Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEContainerFrame::show().
bool GNETagProperties::isVehicle | ( | ) | const |
return true if tag correspond to a vehicle element
Definition at line 335 of file GNETagProperties.cpp.
References myTagType, and VEHICLE.
Referenced by GNEStopFrame::addStop(), GNERouteHandler::buildStop(), and GNEApplicationWindowHelper::LockMenuCommands::editLocking().
bool GNETagProperties::isVehicleType | ( | ) | const |
return true if tag correspond to a vehicle type element
Definition at line 329 of file GNETagProperties.cpp.
References myTagType, and VTYPE.
Referenced by GNEElementTree::createPopUpMenu().
bool GNETagProperties::isWalk | ( | ) | const |
return true if tag correspond to a walk element
Definition at line 383 of file GNETagProperties.cpp.
References myTagType, and WALK.
Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().
bool GNETagProperties::isWaypoint | ( | ) | const |
return true if tag correspond to a waypoint element
Definition at line 353 of file GNETagProperties.cpp.
References myTagType, and WAYPOINT.
Referenced by GNEStop::drawVehicleStop(), and GNEStop::getColor().
bool GNETagProperties::isWireElement | ( | ) | const |
return true if tag correspond to a Wire element
Definition at line 323 of file GNETagProperties.cpp.
References myTagType, and WIRE.
Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), and GNESelectorFrame::SelectionOperation::processNetworkElementSelection().
bool GNETagProperties::requireProj | ( | ) | const |
return true if tag correspond to an element that requires a geo projection
Definition at line 523 of file GNETagProperties.cpp.
References myTagProperty, and REQUIRE_PROJ.
void GNETagProperties::setFieldString | ( | const std::string & | fieldString | ) |
set field that will be drawn in TextFields/ComboBox/etc,
Definition at line 184 of file GNETagProperties.cpp.
References myFieldString.
bool GNETagProperties::vClassIcon | ( | ) | const |
return true if tag correspond to an element that has vClass icons
Definition at line 529 of file GNETagProperties.cpp.
References myTagProperty, and VCLASS_ICON.
Referenced by checkTagIntegrity(), and GNEAttributeCarrier::getACIcon().
|
staticprivate |
max number of attributes allowed for every tag
Definition at line 330 of file GNETagProperties.h.
Referenced by addAttribute().
|
private |
vector with the attribute values vinculated with this Tag
Definition at line 312 of file GNETagProperties.h.
Referenced by addAttribute(), at(), begin(), checkTagIntegrity(), end(), getAttributeProperties(), getDefaultValue(), getNumberOfAttributes(), and hasAttribute().
|
private |
background color (used in labels and textFields, by default white)
Definition at line 327 of file GNETagProperties.h.
Referenced by getBackGroundColor().
|
private |
field string
Definition at line 324 of file GNETagProperties.h.
Referenced by getFieldString(), and setFieldString().
|
private |
icon associated to this Tag
Definition at line 315 of file GNETagProperties.h.
Referenced by getGUIIcon().
|
private |
vector with master tags (used by child elements)
Definition at line 321 of file GNETagProperties.h.
Referenced by checkTagIntegrity(), and getParentTags().
|
private |
Sumo XML Tag vinculated wit this tag Property.
Definition at line 300 of file GNETagProperties.h.
Referenced by getTag().
|
private |
Attribute properties.
Definition at line 309 of file GNETagProperties.h.
Referenced by canBeReparent(), canCenterCameraAfterCreation(), canCloseShape(), canMaskStartEndPos(), hasDialog(), hasEmbeddedRoute(), hasGEOShape(), hasParameters(), isChild(), isDrawable(), isPlacedInRTree(), isSelectable(), requireProj(), and vClassIcon().
|
private |
Sumo XML Tag vinculated wit this tag Property in String format.
Definition at line 303 of file GNETagProperties.h.
Referenced by getTagStr().
|
private |
Attribute Type.
Definition at line 306 of file GNETagProperties.h.
Referenced by isAdditionalElement(), isCalibrator(), isContainer(), isContainerPlan(), isDataElement(), isDemandElement(), isDetector(), isFlow(), isGenericData(), isInternalLane(), isNetworkElement(), isPerson(), isPersonPlan(), isPersonTrip(), isRide(), isRoute(), isShapeElement(), isStop(), isStopContainer(), isStopPerson(), isStoppingPlace(), isSymbol(), isTAZElement(), isTranshipPlan(), isTransportPlan(), isVehicle(), isVehicleType(), isWalk(), isWaypoint(), and isWireElement().
|
private |
Tag written in XML and used in GNENetHelper::AttributeCarriers.
Definition at line 318 of file GNETagProperties.h.
Referenced by getXMLTag().