Eclipse SUMO - Simulation of Urban MObility
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 ,
  SYMBOL = 1 << 28 , INTERNALLANE = 1 << 29
}
 

Public Member Functions

void addAttribute (const GNEAttributeProperties &attributeProperty)
 add attribute (duplicated attributed aren't allowed) More...
 
const GNEAttributePropertiesat (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 GNEAttributePropertiesgetAttributeProperties (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< GNEAttributePropertiesmyAttributeProperties
 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< SumoXMLTagmyParentTags
 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...
 

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 82 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 
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.

References EMPTY.

◆ 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 160 of file GNETagProperties.cpp.

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

◆ at()

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

get attribute value

Definition at line 221 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 209 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 499 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 511 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 468 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 505 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 215 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 196 of file GNETagProperties.cpp.

References myAttributeProperties, 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 190 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 178 of file GNETagProperties.cpp.

References myFieldString.

◆ getGUIIcon()

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().

◆ getNumberOfAttributes()

int GNETagProperties::getNumberOfAttributes ( ) const

get number of attributes

Definition at line 227 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 245 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(), 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(), 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().

◆ getTagStr()

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

◆ getXMLTag()

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().

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 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().

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 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().

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 474 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 486 of file GNETagProperties.cpp.

References myTagProperty, and NOPARAMETERS.

Referenced by GNEInspectorFrame::ParametersEditor::onCmdEditParameters(), GNEInspectorFrame::ParametersEditor::onCmdSetParameters(), and GNEInspectorFrame::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 275 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 305 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 437 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 401 of file GNETagProperties.cpp.

References CONTAINER, and myTagType.

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

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 407 of file GNETagProperties.cpp.

References CONTAINERPLAN, and myTagType.

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

Here is the caller graph for this function:

◆ isDataElement()

bool GNETagProperties::isDataElement ( ) const

◆ 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 299 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 455 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 359 of file GNETagProperties.cpp.

References FLOW, and myTagType.

Referenced by GNEDemandElement::adjustDefaultFlowAttributes(), 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 431 of file GNETagProperties.cpp.

References GENERICDATA, and myTagType.

Referenced by GNEAttributeCarrier::drawUsingSelectColor(), GNEViewNetHelper::ObjectsUnderCursor::processGUIGlObjects(), GNEChange_Attribute::redo(), 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 449 of file GNETagProperties.cpp.

References INTERNALLANE, and myTagType.

Referenced by checkTagIntegrity().

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 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().

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 371 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 377 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 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().

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 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().

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 341 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 461 of file GNETagProperties.cpp.

References myTagProperty, and NOTSELECTABLE.

Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GNESelectorFrame::SelectionOperation::onCmdLoad(), 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 311 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 347 of file GNETagProperties.cpp.

References myTagType, and STOP.

Referenced by GNEStopFrame::addStop(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), 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 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().

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 293 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 443 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 317 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 418 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 413 of file GNETagProperties.cpp.

References myTagType, and TRANSPORT.

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

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 335 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:

◆ isVehicleType()

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().

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 383 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 353 of file GNETagProperties.cpp.

References myTagType, and WAYPOINT.

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

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 323 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 523 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 184 of file GNETagProperties.cpp.

References myFieldString.

◆ vClassIcon()

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().

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 330 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 312 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 327 of file GNETagProperties.h.

Referenced by getBackGroundColor().

◆ myFieldString

std::string GNETagProperties::myFieldString
private

field string

Definition at line 324 of file GNETagProperties.h.

Referenced by getFieldString(), and setFieldString().

◆ myIcon

GUIIcon GNETagProperties::myIcon
private

icon associated to this Tag

Definition at line 315 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 321 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 300 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 303 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 318 of file GNETagProperties.h.

Referenced by getXMLTag().


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