Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETagProperties Class Reference

#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 ,
  MEANDATA = 1 << 28 , SYMBOL = 1 << 29 , INTERNALLANE = 1 << 30
}
 

Public Member Functions

void addAttribute (const GNEAttributeProperties &attributeProperty)
 add attribute (duplicated attributed aren't allowed)
 
const GNEAttributePropertiesat (int index) const
 get attribute value
 
std::vector< GNEAttributeProperties >::const_iterator begin () const
 get begin of attribute values (used for iterate)
 
bool canBeReparent () const
 return true if tag correspond to an element that can be reparent
 
bool canCenterCameraAfterCreation () const
 return true if tag correspond to an element that center camera after creation
 
bool canCloseShape () const
 return true if tag correspond to an element that can close their shape
 
bool canMaskStartEndPos () const
 return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "length"
 
void checkTagIntegrity () const
 check Tag integrity (this include all their attributes)
 
std::vector< GNEAttributeProperties >::const_iterator end () const
 get end of attribute values (used for iterate)
 
const GNEAttributePropertiesgetAttributeProperties (SumoXMLAttr attr) const
 get attribute (throw error if doesn't exist)
 
unsigned int getBackGroundColor () const
 get background color
 
const std::string & getDefaultValue (SumoXMLAttr attr) const
 return the default value of the attribute of an element
 
const std::string & getFieldString () const
 get field string (by default tag in string format)
 
GUIIcon getGUIIcon () const
 get GUI icon associated to this Tag
 
int getNumberOfAttributes () const
 get number of attributes
 
const std::vector< SumoXMLTag > & getParentTags () const
 get parent tags
 
Supermode getSupermode () const
 get supermode associated with this tag
 
SumoXMLTag getTag () const
 get Tag vinculated with this attribute Property
 
const std::string & getTagStr () const
 get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...)
 
SumoXMLTag getXMLTag () const
 get XML tag
 
 GNETagProperties ()
 default constructor
 
 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
 
bool hasAttribute (SumoXMLAttr attr) const
 check if current TagProperties owns the attribute "attr"
 
bool hasDialog () const
 return true if tag correspond to an element that can be edited using a dialog
 
bool hasEmbeddedRoute () const
 return true if tag correspond to an element that owns an embedded route
 
bool hasGEOShape () const
 return true if tag correspond to an element that can use a geo shape
 
bool hasParameters () const
 return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|...|keyN=valueN"
 
bool isAdditionalElement () const
 return true if tag correspond to an additional element (note: this include TAZ, shapes and wires)
 
bool isAdditionalPureElement () const
 return true if tag correspond to a pure additional element
 
bool isCalibrator () const
 return true if tag correspond to a calibrator (Only used to group all detectors in the XML)
 
bool isChild () const
 return true if tag correspond to an element child of another element (Example: E3->Entry/Exit)
 
bool isContainer () const
 return true if tag correspond to a container element
 
bool isContainerPlan () const
 return true if tag correspond to a container plan
 
bool isDataElement () const
 return true if tag correspond to a data element
 
bool isDemandElement () const
 return true if tag correspond to a demand element
 
bool isDetector () const
 return true if tag correspond to a shape (Only used to group all detectors in the XML)
 
bool isDrawable () const
 return true if tag correspond to a drawable element
 
bool isFlow () const
 return true if tag correspond to a flow element
 
bool isGenericData () const
 return true if tag correspond to a generic data element
 
bool isInternalLane () const
 return true if tag correspond to an internal lane
 
bool isMeanData () const
 return true if tag correspond to a mean data element
 
bool isNetworkElement () const
 return true if tag correspond to a network element
 
bool isPerson () const
 return true if tag correspond to a person element
 
bool isPersonPlan () const
 return true if tag correspond to a person plan
 
bool isPersonTrip () const
 return true if tag correspond to a person trip
 
bool isPlacedInRTree () const
 return true if Tag correspond to an element that has to be placed in RTREE
 
bool isRide () const
 return true if tag correspond to a ride element
 
bool isRoute () const
 return true if tag correspond to a route element
 
bool isSelectable () const
 return true if tag correspond to a selectable element
 
bool isShapeElement () const
 return true if tag correspond to a shape
 
bool isStop () const
 return true if tag correspond to a stop element
 
bool isStopContainer () const
 return true if tag correspond to a container stop element
 
bool isStopPerson () const
 return true if tag correspond to a person stop element
 
bool isStoppingPlace () const
 return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML)
 
bool isSymbol () const
 return true if tag correspond to a symbol element
 
bool isTAZElement () const
 return true if tag correspond to a TAZ element
 
bool isTranshipPlan () const
 return true if tag correspond to a tranship
 
bool isTransportPlan () const
 return true if tag correspond to a transport
 
bool isType () const
 return true if tag correspond to a vehicle/person/container type element
 
bool isVehicle () const
 return true if tag correspond to a vehicle element
 
bool isWalk () const
 return true if tag correspond to a walk element
 
bool isWaypoint () const
 return true if tag correspond to a waypoint element
 
bool isWireElement () const
 return true if tag correspond to a Wire element
 
bool requireProj () const
 return true if tag correspond to an element that requires a geo projection
 
void setFieldString (const std::string &fieldString)
 set field that will be drawn in TextFields/ComboBox/etc,
 
bool vClassIcon () const
 return true if tag correspond to an element that has vClass icons
 
 ~GNETagProperties ()
 destructor
 

Private Attributes

std::vector< GNEAttributePropertiesmyAttributeProperties
 vector with the attribute values vinculated with this Tag
 
unsigned int myBackgroundColor
 background color (used in labels and textFields, by default white)
 
std::string myFieldString
 field string
 
GUIIcon myIcon
 icon associated to this Tag
 
std::vector< SumoXMLTagmyParentTags
 vector with master tags (used by child elements)
 
SumoXMLTag myTag
 Sumo XML Tag vinculated wit this tag Property.
 
int myTagProperty
 Attribute properties.
 
std::string myTagStr
 Sumo XML Tag vinculated wit this tag Property in String format.
 
int myTagType
 Attribute Type.
 
SumoXMLTag myXMLTag
 Tag written in XML and used in GNENetHelper::AttributeCarriers.
 

Static Private Attributes

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

Detailed Description

Definition at line 38 of file GNETagProperties.h.

Member Enumeration Documentation

◆ TagProperty

Enumerator
NOTDRAWABLE 
CLOSESHAPE 
GEOSHAPE 
DIALOG 
CHILD 
REPARENT 
NOTSELECTABLE 
MASKSTARTENDPOS 
NOPARAMETERS 
RTREE 
CENTERAFTERCREATION 
EMBEDDED_ROUTE 
REQUIRE_PROJ 
VCLASS_ICON 

Definition at line 83 of file GNETagProperties.h.

◆ TagType

Enumerator
NETWORKELEMENT 
ADDITIONALELEMENT 
DEMANDELEMENT 
DATAELEMENT 
STOPPINGPLACE 
DETECTOR 
CALIBRATOR 
SHAPE 
TAZELEMENT 
WIRE 
VTYPE 
VEHICLE 
ROUTE 
STOP 
WAYPOINT 
FLOW 
PERSON 
PERSONPLAN 
PERSONTRIP 
WALK 
RIDE 
STOPPERSON 
CONTAINER 
CONTAINERPLAN 
TRANSPORT 
TRANSHIP 
STOPCONTAINER 
GENERICDATA 
MEANDATA 
SYMBOL 
INTERNALLANE 

Definition at line 42 of file GNETagProperties.h.

Constructor & Destructor Documentation

◆ GNETagProperties() [1/2]

GNETagProperties::GNETagProperties ( )

default constructor

Definition at line 39 of file GNETagProperties.cpp.

◆ GNETagProperties() [2/2]

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::~GNETagProperties ( )

destructor

Definition at line 63 of file GNETagProperties.cpp.

Member Function Documentation

◆ addAttribute()

void GNETagProperties::addAttribute ( const GNEAttributeProperties attributeProperty)

add attribute (duplicated attributed aren't allowed)

Definition at line 163 of file GNETagProperties.cpp.

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

Referenced by GNEAttributeCarrier::fillAdditionalElements(), GNEAttributeCarrier::fillContainerStopElements(), GNEAttributeCarrier::fillStopPersonElements(), and GNEAttributeCarrier::fillTAZElements().

Here is the caller graph for this function:

◆ at()

const GNEAttributeProperties & GNETagProperties::at ( int  index) const

get attribute value

Definition at line 224 of file GNETagProperties.cpp.

References myAttributeProperties.

◆ begin()

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

get begin of attribute values (used for iterate)

Definition at line 212 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEAttributeProperties::getPositionListed().

Here is the caller graph for this function:

◆ canBeReparent()

bool GNETagProperties::canBeReparent ( ) const

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

Definition at line 508 of file GNETagProperties.cpp.

References myTagProperty, and REPARENT.

Referenced by checkTagIntegrity().

Here is the caller graph for this function:

◆ canCenterCameraAfterCreation()

bool GNETagProperties::canCenterCameraAfterCreation ( ) const

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

Definition at line 520 of file GNETagProperties.cpp.

References CENTERAFTERCREATION, and myTagProperty.

Referenced by GNENeteditAttributes::showNeteditAttributesModule().

Here is the caller graph for this function:

◆ canCloseShape()

bool GNETagProperties::canCloseShape ( ) const

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

Definition at line 477 of file GNETagProperties.cpp.

References CLOSESHAPE, and myTagProperty.

Referenced by GNENeteditAttributes::showNeteditAttributesModule().

Here is the caller graph for this function:

◆ canMaskStartEndPos()

bool GNETagProperties::canMaskStartEndPos ( ) const

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

Definition at line 514 of file GNETagProperties.cpp.

References MASKSTARTENDPOS, and myTagProperty.

Referenced by checkTagIntegrity(), and GNENeteditAttributes::showNeteditAttributesModule().

Here is the caller graph for this function:

◆ checkTagIntegrity()

◆ end()

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

get end of attribute values (used for iterate)

Definition at line 218 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEAttributeProperties::getPositionListed().

Here is the caller graph for this function:

◆ getAttributeProperties()

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

get attribute (throw error if doesn't exist)

Definition at line 199 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

Referenced by GNEChange_Attribute::redo(), GNENet::replaceInListAttribute(), GNEVType::setAttribute(), and GNEChange_Attribute::undo().

Here is the caller graph for this function:

◆ getBackGroundColor()

unsigned int GNETagProperties::getBackGroundColor ( ) const

get background color

Definition at line 193 of file GNETagProperties.cpp.

References myBackgroundColor.

◆ getDefaultValue()

◆ getFieldString()

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

get field string (by default tag in string format)

Definition at line 181 of file GNETagProperties.cpp.

References myFieldString.

◆ getGUIIcon()

GUIIcon GNETagProperties::getGUIIcon ( ) const

get GUI icon associated to this Tag

Definition at line 236 of file GNETagProperties.cpp.

References myIcon.

Referenced by GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), 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(), GNEFrameAttributeModules::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().

◆ getNumberOfAttributes()

int GNETagProperties::getNumberOfAttributes ( ) const

get number of attributes

Definition at line 230 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEFrame::openHelpAttributesDialog().

Here is the caller graph for this function:

◆ getParentTags()

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

get parent tags

Definition at line 248 of file GNETagProperties.cpp.

References myParentTags.

Referenced by GNEAdditionalFrame::createBaseAdditionalObject().

Here is the caller graph for this function:

◆ getSupermode()

Supermode GNETagProperties::getSupermode ( ) const

get supermode associated with this tag

Definition at line 73 of file GNETagProperties.cpp.

References DATA, DEMAND, isDataElement(), isDemandElement(), isMeanData(), and NETWORK.

◆ getTag()

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(), GNERouteHandler::buildStop(), 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(), GNENetHelper::AttributeCarriers::deleteMeanData(), GNENet::deleteNetworkElement(), GNENetHelper::AttributeCarriers::demandElementExist(), GNEContainerFrame::demandElementSelected(), GNEContainerPlanFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEGenericData::drawAttribute(), GNEBusStop::drawGL(), GNEEntryExitDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEConnection::drawGL(), GNEAdditional::drawParentChildLines(), GNELaneAreaDetector::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNELaneAreaDetector::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), 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(), GNENetHelper::AttributeCarriers::insertMeanData(), GNEInspectorFrame::inspectSingleElement(), GNEStop::isAttributeEnabled(), GNEStop::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNENetHelper::AttributeCarriers::isNetworkElementAroundShape(), GNEBusStop::isValid(), GNETAZSourceSink::isValid(), GNEMeanData::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNEAttributesCreatorRow::isValidID(), GNEGenericData::isVisibleInspectDeleteSelect(), GNENetHelper::AttributeCarriers::meanDataExist(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEViewNet::onCmdClearConnections(), GNEElementTree::onCmdDeleteItem(), GNEInspectorFrame::AdditionalDialog::onCmdOpenAdditionalDialog(), GNEViewNet::onCmdResetConnections(), GNEShapeFrame::processClick(), GNEChange_Attribute::redo(), GNEChange_DemandElement::redo(), GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNENetHelper::AttributeCarriers::retrieveGenericData(), GNENetHelper::AttributeCarriers::retrieveMeanData(), 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_Attribute::undo(), GNEChange_DemandElement::undo(), GNEViewNetHelper::ObjectsUnderCursor::updateAttributeCarriers(), GNELaneAreaDetector::updateGeometry(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNETAZSourceSink::writeAdditional(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNETranship::writeDemandElement(), GNETransport::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEVTypeDistribution::writeDemandElement(), and GNEWalk::writeDemandElement().

◆ getTagStr()

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

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

Definition at line 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(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().

Here is the caller graph for this function:

◆ getXMLTag()

SumoXMLTag GNETagProperties::getXMLTag ( ) const

get XML tag

Definition at line 242 of file GNETagProperties.cpp.

References myXMLTag.

Referenced by GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().

Here is the caller graph for this function:

◆ hasAttribute()

bool GNETagProperties::hasAttribute ( SumoXMLAttr  attr) const

◆ hasDialog()

bool GNETagProperties::hasDialog ( ) const

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

Definition at line 489 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().

Here is the caller graph for this function:

◆ hasEmbeddedRoute()

bool GNETagProperties::hasEmbeddedRoute ( ) const

return true if tag correspond to an element that owns an embedded route

Definition at line 526 of file GNETagProperties.cpp.

References EMBEDDED_ROUTE, and myTagProperty.

Referenced by GNEVehicle::getFirstPathLane(), GNEVehicle::getLastPathLane(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().

Here is the caller graph for this function:

◆ hasGEOShape()

bool GNETagProperties::hasGEOShape ( ) const

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

Definition at line 483 of file GNETagProperties.cpp.

References GEOSHAPE, and myTagProperty.

◆ hasParameters()

bool GNETagProperties::hasParameters ( ) const

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

Definition at line 495 of file GNETagProperties.cpp.

References myTagProperty, and NOPARAMETERS.

Referenced by GNEFrameAttributeModules::ParametersEditor::onCmdEditParameters(), GNEFrameAttributeModules::ParametersEditor::onCmdSetParameters(), and GNEFrameAttributeModules::ParametersEditor::refreshParametersEditor().

Here is the caller graph for this function:

◆ isAdditionalElement()

◆ isAdditionalPureElement()

bool GNETagProperties::isAdditionalPureElement ( ) const

return true if tag correspond to a pure additional element

Definition at line 278 of file GNETagProperties.cpp.

References isAdditionalElement(), isShapeElement(), isTAZElement(), and isWireElement().

Referenced by GNESelectorFrame::SelectionOperation::processNetworkElementSelection(), and GNENet::writeOtherAdditionalsComment().

Here is the caller graph for this function:

◆ isCalibrator()

bool GNETagProperties::isCalibrator ( ) const

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

Definition at line 308 of file GNETagProperties.cpp.

References CALIBRATOR, and myTagType.

Referenced by GNENet::writeCalibratorComment(), GNEVehicle::writeDemandElement(), and GNENet::writeOtherAdditionalsComment().

Here is the caller graph for this function:

◆ isChild()

bool GNETagProperties::isChild ( ) const

return true if tag correspond to an element child of another element (Example: E3->Entry/Exit)

Definition at line 446 of file GNETagProperties.cpp.

References CHILD, and myTagProperty.

Referenced by checkTagIntegrity(), and GNEAdditionalFrame::createBaseAdditionalObject().

Here is the caller graph for this function:

◆ isContainer()

bool GNETagProperties::isContainer ( ) const

return true if tag correspond to a container element

Definition at line 404 of file GNETagProperties.cpp.

References CONTAINER, and myTagType.

Referenced by GNERouteHandler::buildStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), DemandElementSelector::getContainerPlanPreviousEdge(), GNEViewNet::onCmdToggleLockContainer(), and GNENetHelper::AttributeCarriers::updateDemandElementFrames().

Here is the caller graph for this function:

◆ isContainerPlan()

bool GNETagProperties::isContainerPlan ( ) const

return true if tag correspond to a container plan

Definition at line 410 of file GNETagProperties.cpp.

References CONTAINERPLAN, and myTagType.

Referenced by GNEDemandElement::deleteGLObject(), and GNEDemandElement::drawContainerPlan().

Here is the caller graph for this function:

◆ isDataElement()

◆ isDemandElement()

◆ isDetector()

bool GNETagProperties::isDetector ( ) const

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

Definition at line 302 of file GNETagProperties.cpp.

References DETECTOR, and myTagType.

Referenced by GNENet::writeDetectorComment(), and GNENet::writeOtherAdditionalsComment().

Here is the caller graph for this function:

◆ isDrawable()

bool GNETagProperties::isDrawable ( ) const

return true if tag correspond to a drawable element

Definition at line 464 of file GNETagProperties.cpp.

References myTagProperty, and NOTDRAWABLE.

◆ isFlow()

bool GNETagProperties::isFlow ( ) const

return true if tag correspond to a flow element

Definition at line 362 of file GNETagProperties.cpp.

References FLOW, and myTagType.

Referenced by GNEDemandElement::adjustDefaultFlowAttributes(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), and GNEVehicle::writeDemandElement().

Here is the caller graph for this function:

◆ isGenericData()

bool GNETagProperties::isGenericData ( ) const

return true if tag correspond to a generic data element

Definition at line 434 of file GNETagProperties.cpp.

References GENERICDATA, and myTagType.

Referenced by GNEAttributeCarrier::drawUsingSelectColor(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), GNENetHelper::AttributeCarriers::retrieveAttributeCarriers(), and GNEChange_Attribute::undo().

Here is the caller graph for this function:

◆ isInternalLane()

bool GNETagProperties::isInternalLane ( ) const

return true if tag correspond to an internal lane

Definition at line 458 of file GNETagProperties.cpp.

References INTERNALLANE, and myTagType.

Referenced by checkTagIntegrity().

Here is the caller graph for this function:

◆ isMeanData()

bool GNETagProperties::isMeanData ( ) const

return true if tag correspond to a mean data element

Definition at line 440 of file GNETagProperties.cpp.

References MEANDATA, and myTagType.

Referenced by checkTagIntegrity(), getSupermode(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNENetHelper::AttributeCarriers::retrieveAttributeCarriers(), GNEChange_Attribute::undo(), and GNEChange_EnableAttribute::undo().

Here is the caller graph for this function:

◆ isNetworkElement()

◆ isPerson()

bool GNETagProperties::isPerson ( ) const

return true if tag correspond to a person element

Definition at line 368 of file GNETagProperties.cpp.

References myTagType, and PERSON.

Referenced by GNEPersonPlanFrame::addPersonPlanElement(), GNERouteHandler::buildStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), DemandElementSelector::getPersonPlanPreviousEdge(), GNEViewNet::onCmdToggleLockPerson(), GNEPersonPlanFrame::show(), and GNENetHelper::AttributeCarriers::updateDemandElementFrames().

Here is the caller graph for this function:

◆ isPersonPlan()

bool GNETagProperties::isPersonPlan ( ) const

return true if tag correspond to a person plan

Definition at line 374 of file GNETagProperties.cpp.

References myTagType, and PERSONPLAN.

Referenced by GNEDemandElement::deleteGLObject(), GNEDemandElement::drawPersonPlan(), and GNEElementTree::onCmdDeleteItem().

Here is the caller graph for this function:

◆ isPersonTrip()

bool GNETagProperties::isPersonTrip ( ) const

return true if tag correspond to a person trip

Definition at line 380 of file GNETagProperties.cpp.

References myTagType, and PERSONTRIP.

Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().

Here is the caller graph for this function:

◆ isPlacedInRTree()

bool GNETagProperties::isPlacedInRTree ( ) const

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

Definition at line 502 of file GNETagProperties.cpp.

References myTagProperty, and RTREE.

Referenced by GNEDataInterval::addGenericDataChild(), GNENet::addGLObjectIntoGrid(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNENetHelper::AttributeCarriers::deleteMeanData(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENetHelper::AttributeCarriers::insertMeanData(), GNEViewNet::recalculateBoundaries(), GNEDataInterval::removeGenericDataChild(), and GNENet::removeGLObjectFromGrid().

Here is the caller graph for this function:

◆ isRide()

bool GNETagProperties::isRide ( ) const

return true if tag correspond to a ride element

Definition at line 392 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().

Here is the caller graph for this function:

◆ isRoute()

bool GNETagProperties::isRoute ( ) const

return true if tag correspond to a route element

Definition at line 344 of file GNETagProperties.cpp.

References myTagType, and ROUTE.

Referenced by GNEDemandElement::buildMenuCommandRouteLength(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEApplicationWindowHelper::LockMenuCommands::editLocking().

Here is the caller graph for this function:

◆ isSelectable()

bool GNETagProperties::isSelectable ( ) const

return true if tag correspond to a selectable element

Definition at line 470 of file GNETagProperties.cpp.

References myTagProperty, and NOTSELECTABLE.

Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GNESelectorFrame::SelectionOperation::loadFromFile(), GNESelectorFrame::SelectionOperation::processNetworkElementSelection(), GNEAttributeCarrier::selectAttributeCarrier(), and GNEAttributeCarrier::unselectAttributeCarrier().

Here is the caller graph for this function:

◆ isShapeElement()

bool GNETagProperties::isShapeElement ( ) const

return true if tag correspond to a shape

Definition at line 314 of file GNETagProperties.cpp.

References myTagType, and SHAPE.

Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), and GNENet::writeShapesComment().

Here is the caller graph for this function:

◆ isStop()

bool GNETagProperties::isStop ( ) const

return true if tag correspond to a stop element

Definition at line 350 of file GNETagProperties.cpp.

References myTagType, and STOP.

Referenced by GNEStopFrame::addStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEDemandElement::getInvalidStops(), and GNEAttributesCreatorRow::onCmdSetAttribute().

Here is the caller graph for this function:

◆ isStopContainer()

bool GNETagProperties::isStopContainer ( ) const

return true if tag correspond to a container stop element

Definition at line 428 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().

Here is the caller graph for this function:

◆ isStopPerson()

◆ isStoppingPlace()

bool GNETagProperties::isStoppingPlace ( ) const

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

Definition at line 296 of file GNETagProperties.cpp.

References myTagType, and STOPPINGPLACE.

Referenced by GNENet::writeOtherAdditionalsComment(), and GNENet::writeStoppingPlaceComment().

Here is the caller graph for this function:

◆ isSymbol()

bool GNETagProperties::isSymbol ( ) const

return true if tag correspond to a symbol element

Definition at line 452 of file GNETagProperties.cpp.

References myTagType, and SYMBOL.

◆ isTAZElement()

bool GNETagProperties::isTAZElement ( ) const

return true if tag correspond to a TAZ element

Definition at line 320 of file GNETagProperties.cpp.

References myTagType, and TAZELEMENT.

Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), and GNEElementTree::showAttributeCarrierParents().

Here is the caller graph for this function:

◆ isTranshipPlan()

bool GNETagProperties::isTranshipPlan ( ) const

return true if tag correspond to a tranship

Definition at line 421 of file GNETagProperties.cpp.

References myTagType, and TRANSHIP.

Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().

Here is the caller graph for this function:

◆ isTransportPlan()

bool GNETagProperties::isTransportPlan ( ) const

return true if tag correspond to a transport

Definition at line 416 of file GNETagProperties.cpp.

References myTagType, and TRANSPORT.

Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEContainerFrame::show().

Here is the caller graph for this function:

◆ isType()

bool GNETagProperties::isType ( ) const

return true if tag correspond to a vehicle/person/container type element

Definition at line 332 of file GNETagProperties.cpp.

References myTagType, and VTYPE.

Referenced by GNEElementTree::createPopUpMenu(), and GNENetHelper::AttributeCarriers::updateDemandElementFrames().

Here is the caller graph for this function:

◆ isVehicle()

bool GNETagProperties::isVehicle ( ) const

return true if tag correspond to a vehicle element

Definition at line 338 of file GNETagProperties.cpp.

References myTagType, and VEHICLE.

Referenced by GNEStopFrame::addStop(), GNERouteHandler::buildStop(), and GNEApplicationWindowHelper::LockMenuCommands::editLocking().

Here is the caller graph for this function:

◆ isWalk()

bool GNETagProperties::isWalk ( ) const

return true if tag correspond to a walk element

Definition at line 386 of file GNETagProperties.cpp.

References myTagType, and WALK.

Referenced by GNEApplicationWindowHelper::LockMenuCommands::editLocking().

Here is the caller graph for this function:

◆ isWaypoint()

bool GNETagProperties::isWaypoint ( ) const

return true if tag correspond to a waypoint element

Definition at line 356 of file GNETagProperties.cpp.

References myTagType, and WAYPOINT.

Referenced by GNEStop::drawVehicleStop(), GNEStop::getColor(), and GNEDemandElement::getInvalidStops().

Here is the caller graph for this function:

◆ isWireElement()

bool GNETagProperties::isWireElement ( ) const

return true if tag correspond to a Wire element

Definition at line 326 of file GNETagProperties.cpp.

References myTagType, and WIRE.

Referenced by checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), and GNESelectorFrame::SelectionOperation::processNetworkElementSelection().

Here is the caller graph for this function:

◆ requireProj()

bool GNETagProperties::requireProj ( ) const

return true if tag correspond to an element that requires a geo projection

Definition at line 532 of file GNETagProperties.cpp.

References myTagProperty, and REQUIRE_PROJ.

◆ setFieldString()

void GNETagProperties::setFieldString ( const std::string &  fieldString)

set field that will be drawn in TextFields/ComboBox/etc,

Definition at line 187 of file GNETagProperties.cpp.

References myFieldString.

Referenced by GNEAttributeCarrier::fillVehicleElements().

Here is the caller graph for this function:

◆ vClassIcon()

bool GNETagProperties::vClassIcon ( ) const

return true if tag correspond to an element that has vClass icons

Definition at line 538 of file GNETagProperties.cpp.

References myTagProperty, and VCLASS_ICON.

Referenced by checkTagIntegrity(), and GNEAttributeCarrier::getACIcon().

Here is the caller graph for this function:

Field Documentation

◆ MAXNUMBEROFATTRIBUTES

const size_t GNETagProperties::MAXNUMBEROFATTRIBUTES = 128
staticprivate

max number of attributes allowed for every tag

Definition at line 334 of file GNETagProperties.h.

Referenced by addAttribute().

◆ myAttributeProperties

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

vector with the attribute values vinculated with this Tag

Definition at line 316 of file GNETagProperties.h.

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

◆ myBackgroundColor

unsigned int GNETagProperties::myBackgroundColor
private

background color (used in labels and textFields, by default white)

Definition at line 331 of file GNETagProperties.h.

Referenced by getBackGroundColor().

◆ myFieldString

std::string GNETagProperties::myFieldString
private

field string

Definition at line 328 of file GNETagProperties.h.

Referenced by getFieldString(), and setFieldString().

◆ myIcon

GUIIcon GNETagProperties::myIcon
private

icon associated to this Tag

Definition at line 319 of file GNETagProperties.h.

Referenced by getGUIIcon().

◆ myParentTags

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

vector with master tags (used by child elements)

Definition at line 325 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), and getParentTags().

◆ myTag

SumoXMLTag GNETagProperties::myTag
private

Sumo XML Tag vinculated wit this tag Property.

Definition at line 304 of file GNETagProperties.h.

Referenced by getTag().

◆ myTagProperty

◆ myTagStr

std::string GNETagProperties::myTagStr
private

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

Definition at line 307 of file GNETagProperties.h.

Referenced by getTagStr().

◆ myTagType

◆ myXMLTag

SumoXMLTag GNETagProperties::myXMLTag
private

Tag written in XML and used in GNENetHelper::AttributeCarriers.

Definition at line 322 of file GNETagProperties.h.

Referenced by getXMLTag().


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