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

#include <GNETagProperties.h>

Collaboration diagram for GNETagProperties:
[legend]

Public Types

enum class  Conflicts : int {
  POS_LANE = 1 << 0 , POS_LANE_START = 1 << 1 , POS_LANE_END = 1 << 2 , NO_ADDITIONAL_CHILDREN = 1 << 3 ,
  NO_CONFLICTS = 1 << 4
}
 
enum class  Over : int {
  VIEW = 1 << 0 , JUNCTION = 1 << 1 , EDGE = 1 << 2 , EDGES = 1 << 3 ,
  CONSECUTIVE_EDGES = 1 << 4 , LANE = 1 << 5 , LANES = 1 << 6 , CONSECUTIVE_LANES = 1 << 4 ,
  ROUTE = 1 << 7 , ROUTE_EMBEDDED = 1 << 8 , BUSSTOP = 1 << 9 , TRAINSTOP = 1 << 10 ,
  CONTAINERSTOP = 1 << 11 , CHARGINGSTATION = 1 << 12 , PARKINGAREA = 1 << 13 , FROM_EDGE = 1 << 14 ,
  FROM_TAZ = 1 << 15 , FROM_JUNCTION = 1 << 16 , FROM_BUSSTOP = 1 << 17 , FROM_TRAINSTOP = 1 << 18 ,
  FROM_CONTAINERSTOP = 1 << 19 , FROM_CHARGINGSTATION = 1 << 20 , FROM_PARKINGAREA = 1 << 21 , TO_EDGE = 1 << 22 ,
  TO_TAZ = 1 << 23 , TO_JUNCTION = 1 << 24 , TO_BUSSTOP = 1 << 25 , TO_TRAINSTOP = 1 << 26 ,
  TO_CONTAINERSTOP = 1 << 27 , TO_CHARGINGSTATION = 1 << 28 , TO_PARKINGAREA = 1 << 29
}
 element in which this element is placed More...
 
enum class  Property : int {
  NOTDRAWABLE = 1 << 0 , GEOSHAPE = 1 << 1 , DIALOG = 1 << 2 , XMLCHILD = 1 << 3 ,
  REPARENT = 1 << 4 , NOTSELECTABLE = 1 << 5 , NOPARAMETERS = 1 << 6 , RTREE = 1 << 7 ,
  CENTERAFTERCREATION = 1 << 8 , REQUIRE_PROJ = 1 << 9 , VCLASS_ICON = 1 << 10 , SYMBOL = 1 << 11 ,
  EXTENDED = 1 << 12 , HIERARCHICAL = 1 << 13 , NO_PROPERTY = 1 << 14
}
 tag property More...
 
enum class  Type : int {
  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 , JUPEDSIM = 1 << 10 , VTYPE = 1 << 11 ,
  VEHICLE = 1 << 12 , ROUTE = 1 << 13 , STOP_VEHICLE = 1 << 14 , WAYPOINT_VEHICLE = 1 << 15 ,
  FLOW = 1 << 16 , PERSON = 1 << 17 , PERSONPLAN = 1 << 18 , PERSONTRIP = 1 << 19 ,
  WALK = 1 << 20 , RIDE = 1 << 21 , STOP_PERSON = 1 << 22 , CONTAINER = 1 << 23 ,
  CONTAINERPLAN = 1 << 24 , TRANSPORT = 1 << 25 , TRANSHIP = 1 << 26 , STOP_CONTAINER = 1 << 27 ,
  GENERICDATA = 1 << 28 , MEANDATA = 1 << 29 , INTERNALLANE = 1 << 30 , OTHER = 1 << 31
}
 tag types More...
 

Public Member Functions

const GNEAttributePropertiesat (int index) const
 get attribute value
 
bool canCenterCameraAfterCreation () const
 return true if tag correspond to an element that center camera after creation
 
void checkTagIntegrity () const
 check Tag integrity (this include all their attributes)
 
const std::vector< const GNEAttributeProperties * > & getAttributeProperties () const
 get all attribute properties
 
const GNEAttributePropertiesgetAttributeProperties (const int index) const
 get attribute propety by index (throw error if doesn't exist)
 
const GNEAttributePropertiesgetAttributeProperties (SumoXMLAttr attr) const
 get attribute propety associated with the given Sumo XML Attribute (throw error if doesn't exist)
 
unsigned int getBackGroundColor () const
 get background color
 
GUIGlObjectType getGLType () const
 get GUIGlObjectType associated with this tag property
 
GUIIcon getGUIIcon () const
 get GUI icon associated to this tag property
 
int getNumberOfAttributes () const
 get number of attributes
 
const std::string & getSelectorText () const
 get field string (by default tag in string format)
 
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(...)
 
const std::string & getTooltipText () const
 get tooltip text
 
 GNETagProperties (const SumoXMLTag tag, GNETagProperties *parent, const GUIIcon icon, const std::string tooltip, const unsigned int backgroundColor=FXRGBA(255, 255, 255, 255), const std::string selectorText="")
 parameter constructor for hierarchical elements
 
 GNETagProperties (const SumoXMLTag tag, GNETagProperties *parent, const Type tagType, const Property tagProperty, const Over tagOver, const Conflicts conflicts, const GUIIcon icon, const GUIGlObjectType GLType, const SumoXMLTag XMLTag, const std::string tooltip, std::vector< SumoXMLTag > XMLParentTags={}, const unsigned int backgroundColor=FXRGBA(255, 255, 255, 255), const std::string selectorText="")
 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 hasExtendedAttributes () const
 return true if tag correspond to an element that contains extended attributes
 
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 isChild () const
 return true if tag correspond to an element child of another element (Example: E3->Entry/Exit)
 
bool isDrawable () const
 return true if tag correspond to a drawable element
 
bool isHierarchicalTag () const
 check if this is a hirearchical tag
 
bool isInternalLane () const
 return true if tag correspond to an internal lane
 
bool isPlacedInRTree () const
 return true if Tag correspond to an element that has to be placed in RTREE
 
bool isSelectable () const
 return true if tag correspond to a selectable element
 
bool isSymbol () const
 return true if tag correspond to a symbol element
 
bool requireProj () const
 return true if tag correspond to an element that requires a geo projection
 
bool vClassIcon () const
 return true if tag correspond to an element that has vClass icons
 
 ~GNETagProperties ()
 destructor
 
SumoXMLTag getXMLTag () const
 default values
 
const std::vector< SumoXMLTag > & getXMLParentTags () const
 get XML parent tags
 
bool canBeReparent () const
 return true if tag correspond to an element that can be reparent
 
const std::string & getDefaultStringValue (SumoXMLAttr attr) const
 default values
 
int getDefaultIntValue (SumoXMLAttr attr) const
 get default int value
 
double getDefaultDoubleValue (SumoXMLAttr attr) const
 get default double value
 
SUMOTime getDefaultTimeValue (SumoXMLAttr attr) const
 get default time value
 
bool getDefaultBoolValue (SumoXMLAttr attr) const
 get default bool value
 
const RGBColorgetDefaultColorValue (SumoXMLAttr attr) const
 get default bool value
 
const GNETagPropertiesgetHierarchicalParent () const
 hierarchy functions
 
const std::vector< const GNETagProperties * > getHierarchicalParentsRecuersively () const
 get all parents, beginning from current element (root not included) untils this element
 
const std::vector< const GNETagProperties * > & getHierarchicalChildren () const
 get children of this tag property
 
std::vector< const GNETagProperties * > getHierarchicalChildrenRecursively () const
 get all children tags (Including children of their children)
 
std::map< std::string, const GNEAttributeProperties * > getHierarchicalChildrenAttributesRecursively (const bool onlyCommon, const bool onlyDrawables) const
 get all children attributes sorted by name (Including this)
 
bool isNetworkElement () const
 network elements
 
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 isDemandElement () const
 return true if tag correspond to a demand element
 
bool isDataElement () const
 return true if tag correspond to a data element
 
bool isOtherElement () const
 return true if tag correspond to a other element (sourceSinks, vTypes, etc.)
 
bool isStoppingPlace () const
 additional elements
 
bool isDetector () const
 return true if tag correspond to a shape (Only used to group all detectors in the XML)
 
bool isCalibrator () const
 return true if tag correspond to a calibrator (Only used to group all detectors in the XML)
 
bool isShapeElement () const
 return true if tag correspond to a shape
 
bool isTAZElement () const
 return true if tag correspond to a TAZ element
 
bool isWireElement () const
 return true if tag correspond to a Wire element
 
bool isJuPedSimElement () const
 return true if tag correspond to a JuPedSim element
 
bool isType () const
 demand elements
 
bool isTypeDist () const
 return true if tag correspond to a type distribution element
 
bool isVehicle () const
 return true if tag correspond to a vehicle element
 
bool isRoute () const
 return true if tag correspond to a route element
 
bool isVehicleStop () const
 return true if tag correspond to a vehicle stop element
 
bool isVehicleWaypoint () const
 return true if tag correspond to a vehicle waypoint element
 
bool isFlow () const
 return true if tag correspond to a flow element
 
bool isPerson () const
 return true if tag correspond to a person element
 
bool isContainer () const
 return true if tag correspond to a container element
 
bool hasTypeParent () const
 return true if tag correspond to an element with a type as a first parent
 
bool isPlan () const
 plans
 
bool isPlanPerson () const
 return true if tag correspond to a person plan
 
bool isPlanContainer () const
 return true if tag correspond to a container plan
 
bool isPlanPersonTrip () const
 return true if tag correspond to a person trip plan
 
bool isPlanWalk () const
 return true if tag correspond to a walk plan
 
bool isPlanRide () const
 return true if tag correspond to a ride plan
 
bool isPlanTransport () const
 return true if tag correspond to a transport
 
bool isPlanTranship () const
 return true if tag correspond to a tranship
 
bool isPlanStop () const
 return true if tag correspond to a stop plan
 
bool isPlanStopPerson () const
 return true if tag correspond to a person stop plan
 
bool isPlanStopContainer () const
 return true if tag correspond to a container stop plan
 
bool isGenericData () const
 data elements
 
bool isMeanData () const
 return true if tag correspond to a mean data element
 
bool vehicleRoute () const
 plan parents
 
bool vehicleRouteEmbedded () const
 return true if tag correspond to a vehicle placed over an embedded route
 
bool vehicleEdges () const
 return true if tag correspond to a vehicle placed over from-to edges
 
bool vehicleJunctions () const
 return true if tag correspond to a vehicle placed over from-to junctions
 
bool vehicleTAZs () const
 return true if tag correspond to a vehicle placed over from-to TAZs
 
bool planConsecutiveEdges () const
 plan parents
 
bool planRoute () const
 return true if tag correspond to a plan placed over route
 
bool planEdge () const
 return true if tag correspond to a plan placed over edge
 
bool planBusStop () const
 return true if tag correspond to a plan placed over busStop
 
bool planTrainStop () const
 return true if tag correspond to a plan placed over trainStop
 
bool planContainerStop () const
 return true if tag correspond to a plan placed over containerStop
 
bool planChargingStation () const
 return true if tag correspond to a plan placed over chargingStation
 
bool planParkingArea () const
 return true if tag correspond to a plan placed over parkingArea
 
bool planStoppingPlace () const
 return true if tag correspond to a plan placed in stoppingPlace
 
bool planFromTo () const
 return true if tag correspond to a plan with from-to parents
 
bool planFromEdge () const
 return true if tag correspond to a plan that starts in edge
 
bool planFromTAZ () const
 return true if tag correspond to a plan that starts in TAZ
 
bool planFromJunction () const
 return true if tag correspond to a plan that starts in junction
 
bool planFromBusStop () const
 return true if tag correspond to a plan that starts in busStop
 
bool planFromTrainStop () const
 return true if tag correspond to a plan that starts in trainStop
 
bool planFromContainerStop () const
 return true if tag correspond to a plan that starts in containerStop
 
bool planFromChargingStation () const
 return true if tag correspond to a plan that starts in chargingStation
 
bool planFromParkingArea () const
 return true if tag correspond to a plan that starts in parkingAera
 
bool planFromStoppingPlace () const
 return true if tag correspond to a plan that starts in stoppingPlace
 
bool planToEdge () const
 return true if tag correspond to a plan that starts in edge
 
bool planToTAZ () const
 return true if tag correspond to a plan that starts in TAZ
 
bool planToJunction () const
 return true if tag correspond to a plan that starts in junction
 
bool planToBusStop () const
 return true if tag correspond to a plan that starts in busStop
 
bool planToTrainStop () const
 return true if tag correspond to a plan that starts in trainStop
 
bool planToContainerStop () const
 return true if tag correspond to a plan that starts in containerStop
 
bool planToChargingStation () const
 return true if tag correspond to a plan that starts in chargingStation
 
bool planToParkingArea () const
 return true if tag correspond to a plan that starts in parkingArea
 
bool planToStoppingPlace () const
 return true if tag correspond to a plan that ends in stoppingPlace
 

Protected Member Functions

void addChild (const GNETagProperties *child)
 add child
 

Private Member Functions

void getChildrenAttributes (const GNETagProperties *tagProperties, std::map< std::string, const GNEAttributeProperties * > &result, const bool onlyDrawables) const
 recursive function for get all children attributes (Including this)
 
void getChildrenTagProperties (const GNETagProperties *tagProperties, std::vector< const GNETagProperties * > &result) const
 recursive function for get all children tag properites (Including this)
 
 GNETagProperties ()=delete
 default constructor
 
 GNETagProperties (const GNETagProperties &)=delete
 Invalidated copy constructor.
 
GNETagPropertiesoperator= (const GNETagProperties &src)=delete
 Invalidated assignment operator.
 

Private Attributes

std::vector< const GNEAttributeProperties * > myAttributeProperties
 vector with the attribute values vinculated with this Tag
 
const unsigned int myBackgroundColor = 0
 background color (used in labels and textFields, by default white)
 
std::vector< const GNETagProperties * > myChildren
 tag property children
 
const Conflicts myConflicts = Conflicts::NO_CONFLICTS
 conflicts
 
const GUIGlObjectType myGLType = GUIGlObjectType::GLO_MAX
 GUIGlObjectType associated with this tag property.
 
const GUIIcon myIcon = GUIIcon::EMPTY
 icon associated to this tag property
 
const GNETagPropertiesmyParent = nullptr
 tag property parent
 
const std::string mySelectorText
 text show in selector text
 
const SumoXMLTag myTag = SUMO_TAG_NOTHING
 Sumo XML Tag vinculated wit this tag Property.
 
const Over myTagOver = Over::VIEW
 tag over
 
const Property myTagProperty = Property::NO_PROPERTY
 tag properties
 
const std::string myTagStr
 Sumo XML Tag vinculated wit this tag Property in String format.
 
const Type myTagType = Type::OTHER
 tag Types
 
const std::string myTooltipText
 tooltip text
 
const std::vector< SumoXMLTagmyXMLParentTags
 vector with XML parent tags (used by child elements like access or spaces)
 
const SumoXMLTag myXMLTag = SUMO_TAG_NOTHING
 Tag written in XML and used in GNENetHelper::AttributeCarriers.
 

Friends

class GNEAttributeProperties
 declare friend class
 

Detailed Description

Definition at line 32 of file GNETagProperties.h.

Member Enumeration Documentation

◆ Conflicts

Enumerator
POS_LANE 
POS_LANE_START 
POS_LANE_END 
NO_ADDITIONAL_CHILDREN 
NO_CONFLICTS 

Definition at line 134 of file GNETagProperties.h.

◆ Over

enum class GNETagProperties::Over : int
strong

element in which this element is placed

Enumerator
VIEW 
JUNCTION 
EDGE 
EDGES 
CONSECUTIVE_EDGES 
LANE 
LANES 
CONSECUTIVE_LANES 
ROUTE 
ROUTE_EMBEDDED 
BUSSTOP 
TRAINSTOP 
CONTAINERSTOP 
CHARGINGSTATION 
PARKINGAREA 
FROM_EDGE 
FROM_TAZ 
FROM_JUNCTION 
FROM_BUSSTOP 
FROM_TRAINSTOP 
FROM_CONTAINERSTOP 
FROM_CHARGINGSTATION 
FROM_PARKINGAREA 
TO_EDGE 
TO_TAZ 
TO_JUNCTION 
TO_BUSSTOP 
TO_TRAINSTOP 
TO_CONTAINERSTOP 
TO_CHARGINGSTATION 
TO_PARKINGAREA 

Definition at line 99 of file GNETagProperties.h.

◆ Property

enum class GNETagProperties::Property : int
strong

tag property

Enumerator
NOTDRAWABLE 
GEOSHAPE 
DIALOG 
XMLCHILD 
REPARENT 
NOTSELECTABLE 
NOPARAMETERS 
RTREE 
CENTERAFTERCREATION 
REQUIRE_PROJ 
VCLASS_ICON 
SYMBOL 
EXTENDED 
HIERARCHICAL 
NO_PROPERTY 

Definition at line 80 of file GNETagProperties.h.

◆ Type

enum class GNETagProperties::Type : int
strong

tag types

Enumerator
NETWORKELEMENT 
ADDITIONALELEMENT 
DEMANDELEMENT 
DATAELEMENT 
STOPPINGPLACE 
DETECTOR 
CALIBRATOR 
SHAPE 
TAZELEMENT 
WIRE 
JUPEDSIM 
VTYPE 
VEHICLE 
ROUTE 
STOP_VEHICLE 
WAYPOINT_VEHICLE 
FLOW 
PERSON 
PERSONPLAN 
PERSONTRIP 
WALK 
RIDE 
STOP_PERSON 
CONTAINER 
CONTAINERPLAN 
TRANSPORT 
TRANSHIP 
STOP_CONTAINER 
GENERICDATA 
MEANDATA 
INTERNALLANE 
OTHER 

Definition at line 37 of file GNETagProperties.h.

Constructor & Destructor Documentation

◆ GNETagProperties() [1/4]

GNETagProperties::GNETagProperties ( const SumoXMLTag  tag,
GNETagProperties parent,
const Type  tagType,
const Property  tagProperty,
const Over  tagOver,
const Conflicts  conflicts,
const GUIIcon  icon,
const GUIGlObjectType  GLType,
const SumoXMLTag  XMLTag,
const std::string  tooltip,
std::vector< SumoXMLTag XMLParentTags = {},
const unsigned int  backgroundColor = FXRGBA(255, 255, 255, 255),
const std::string  selectorText = "" 
)

parameter constructor

Definition at line 27 of file GNETagProperties.cpp.

References addChild().

◆ GNETagProperties() [2/4]

GNETagProperties::GNETagProperties ( const SumoXMLTag  tag,
GNETagProperties parent,
const GUIIcon  icon,
const std::string  tooltip,
const unsigned int  backgroundColor = FXRGBA(255, 255, 255, 255),
const std::string  selectorText = "" 
)

parameter constructor for hierarchical elements

Definition at line 52 of file GNETagProperties.cpp.

References addChild().

◆ ~GNETagProperties()

GNETagProperties::~GNETagProperties ( )

destructor

Definition at line 69 of file GNETagProperties.cpp.

References myAttributeProperties.

◆ GNETagProperties() [3/4]

GNETagProperties::GNETagProperties ( )
privatedelete

default constructor

◆ GNETagProperties() [4/4]

GNETagProperties::GNETagProperties ( const GNETagProperties )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addChild()

void GNETagProperties::addChild ( const GNETagProperties child)
protected

add child

Definition at line 1008 of file GNETagProperties.cpp.

References myChildren.

Referenced by GNETagProperties(), and GNETagProperties().

Here is the caller graph for this function:

◆ at()

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

get attribute value

Definition at line 366 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by MFXComboBoxTagProperty::getTagProperties(), and GNETagPropertiesDatabase::getTagProperty().

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

References myTagProperty, and REPARENT.

Referenced by checkTagIntegrity(), and GNETagPropertiesDatabase::fillCommonAttributes().

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

References CENTERAFTERCREATION, and myTagProperty.

Referenced by GNETagPropertiesDatabase::fillCommonAttributes().

Here is the caller graph for this function:

◆ checkTagIntegrity()

◆ getAttributeProperties() [1/3]

◆ getAttributeProperties() [2/3]

const GNEAttributeProperties * GNETagProperties::getAttributeProperties ( const int  index) const

get attribute propety by index (throw error if doesn't exist)

Definition at line 356 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

◆ getAttributeProperties() [3/3]

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

get attribute propety associated with the given Sumo XML Attribute (throw error if doesn't exist)

Definition at line 343 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

◆ getBackGroundColor()

unsigned int GNETagProperties::getBackGroundColor ( ) const

get background color

Definition at line 331 of file GNETagProperties.cpp.

References myBackgroundColor.

◆ getChildrenAttributes()

void GNETagProperties::getChildrenAttributes ( const GNETagProperties tagProperties,
std::map< std::string, const GNEAttributeProperties * > &  result,
const bool  onlyDrawables 
) const
private

recursive function for get all children attributes (Including this)

Definition at line 1024 of file GNETagProperties.cpp.

References getChildrenAttributes(), isDrawable(), myAttributeProperties, and myChildren.

Referenced by getChildrenAttributes(), and getHierarchicalChildrenAttributesRecursively().

Here is the caller graph for this function:

◆ getChildrenTagProperties()

void GNETagProperties::getChildrenTagProperties ( const GNETagProperties tagProperties,
std::vector< const GNETagProperties * > &  result 
) const
private

recursive function for get all children tag properites (Including this)

Definition at line 1014 of file GNETagProperties.cpp.

References getChildrenTagProperties(), and myChildren.

Referenced by getChildrenTagProperties(), and getHierarchicalChildrenRecursively().

Here is the caller graph for this function:

◆ getDefaultBoolValue()

bool GNETagProperties::getDefaultBoolValue ( SumoXMLAttr  attr) const

get default bool value

Definition at line 295 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

Referenced by GNEChargingStation::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), and GNEParkingArea::writeAdditional().

Here is the caller graph for this function:

◆ getDefaultColorValue()

const RGBColor & GNETagProperties::getDefaultColorValue ( SumoXMLAttr  attr) const

get default bool value

Definition at line 307 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

Referenced by GNECalibratorFlow::setAttribute(), GNEVehicle::setAttribute(), and GNERoute::writeDemandElement().

Here is the caller graph for this function:

◆ getDefaultDoubleValue()

◆ getDefaultIntValue()

int GNETagProperties::getDefaultIntValue ( SumoXMLAttr  attr) const

get default int value

Definition at line 259 of file GNETagProperties.cpp.

References myAttributeProperties, TLF, and toString().

Referenced by GNECalibratorFlow::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEBusStop::writeAdditional(), GNEContainerStop::writeAdditional(), GNEParkingArea::writeAdditional(), and GNEVTypeDistribution::writeDemandElement().

Here is the caller graph for this function:

◆ getDefaultStringValue()

const std::string & GNETagProperties::getDefaultStringValue ( SumoXMLAttr  attr) const

◆ getDefaultTimeValue()

◆ getGLType()

GUIGlObjectType GNETagProperties::getGLType ( ) const

get GUIGlObjectType associated with this tag property

Definition at line 396 of file GNETagProperties.cpp.

References myGLType.

◆ getGUIIcon()

GUIIcon GNETagProperties::getGUIIcon ( ) const

get GUI icon associated to this tag property

Definition at line 390 of file GNETagProperties.cpp.

References myIcon.

Referenced by MFXComboBoxTagProperty::appendTagItem(), GNEUndoList::begin(), GNEAttributeCarrier::getACIcon(), GNEDistributionFrame::DistributionEditor::onCmdCreateDistribution(), GNEAttributesEditorRow::onCmdOpenFileDialog(), GNEAttributeCarrier::resetDefaultValues(), and GNEAttributesEditorRow::showAttributeInspectParent().

Here is the caller graph for this function:

◆ getHierarchicalChildren()

const std::vector< const GNETagProperties * > & GNETagProperties::getHierarchicalChildren ( ) const

get children of this tag property

Definition at line 433 of file GNETagProperties.cpp.

References myChildren.

Referenced by GNENetHelper::AttributeCarriers::retrieveAttributeCarriersRecursively().

Here is the caller graph for this function:

◆ getHierarchicalChildrenAttributesRecursively()

std::map< std::string, const GNEAttributeProperties * > GNETagProperties::getHierarchicalChildrenAttributesRecursively ( const bool  onlyCommon,
const bool  onlyDrawables 
) const

get all children attributes sorted by name (Including this)

Definition at line 448 of file GNETagProperties.cpp.

References getChildrenAttributes(), and getHierarchicalChildrenRecursively().

Referenced by GNEMatchAttribute::refreshMatchAttribute().

Here is the caller graph for this function:

◆ getHierarchicalChildrenRecursively()

std::vector< const GNETagProperties * > GNETagProperties::getHierarchicalChildrenRecursively ( ) const

get all children tags (Including children of their children)

Definition at line 439 of file GNETagProperties.cpp.

References getChildrenTagProperties().

Referenced by getHierarchicalChildrenAttributesRecursively().

Here is the caller graph for this function:

◆ getHierarchicalParent()

const GNETagProperties * GNETagProperties::getHierarchicalParent ( ) const

hierarchy functions

get hierarchical parent of this element

Definition at line 414 of file GNETagProperties.cpp.

References myParent.

◆ getHierarchicalParentsRecuersively()

const std::vector< const GNETagProperties * > GNETagProperties::getHierarchicalParentsRecuersively ( ) const

get all parents, beginning from current element (root not included) untils this element

Definition at line 420 of file GNETagProperties.cpp.

Referenced by getSupermode(), GNEMatchAttribute::refreshMatchAttribute(), and GNEMatchAttribute::CurrentEditedProperties::setTagProperties().

Here is the caller graph for this function:

◆ getNumberOfAttributes()

int GNETagProperties::getNumberOfAttributes ( ) const

get number of attributes

Definition at line 384 of file GNETagProperties.cpp.

References myAttributeProperties.

Referenced by GNEFrame::openHelpAttributesDialog().

Here is the caller graph for this function:

◆ getSelectorText()

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

get field string (by default tag in string format)

Definition at line 319 of file GNETagProperties.cpp.

References mySelectorText.

Referenced by MFXComboBoxTagProperty::appendTagItem().

Here is the caller graph for this function:

◆ getSupermode()

Supermode GNETagProperties::getSupermode ( ) const

get supermode associated with this tag

Definition at line 479 of file GNETagProperties.cpp.

References DATA, DEMAND, getHierarchicalParentsRecuersively(), GNE_TAG_SUPERMODE_DATA, GNE_TAG_SUPERMODE_DEMAND, GNE_TAG_SUPERMODE_NETWORK, myParent, and NETWORK.

Referenced by GNEMatchAttribute::CurrentEditedProperties::setAttributeProperties(), and GNEMatchAttribute::CurrentEditedProperties::setTagProperties().

Here is the caller graph for this function:

◆ getTag()

SumoXMLTag GNETagProperties::getTag ( ) const

get Tag vinculated with this attribute Property

Definition at line 77 of file GNETagProperties.cpp.

References myTag.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNENetHelper::AttributeCarriers::addDefaultVTypes(), GNEPlanCreator::addFromToStoppingPlace(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNERouteHandler::addReverse(), GNEPlanCreator::addSingleStoppingPlace(), GNETAZFrame::CurrentTAZ::addSourceSink(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNENet::adjustPersonPlans(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildStop(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNEPathManager::PathCalculator::busStopConnected(), GNERouteHandler::canReverse(), GNEConnection::checkDrawConnection(), GNEDemandElement::checkDrawDeleteContourSmall(), GNEDetector::checkDrawMoveContour(), GNEDemandElement::checkDrawOverContour(), GNEEdge::checkDrawOverContour(), GNELane::checkDrawOverContour(), GNEDemandElement::checkDrawRelatedContour(), GNEAdditional::checkDrawToContour(), GNEAdditionalHandler::checkElement(), GNERouteHandler::checkElement(), GNEAttributesEditorType::checkNewParent(), checkTagIntegrity(), GNERoute::computePathElement(), GNEVehicle::copyVehicle(), GNEWireFrame::createBaseWireObject(), GNEVehicleFrame::createPath(), GNEElementTree::createPopUpMenu(), GNENetHelper::AttributeCarriers::deleteAdditional(), GNEViewNet::deleteDataAttributeCarrier(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNENet::deleteDemandElement(), GNENetHelper::AttributeCarriers::deleteGenericData(), GNEDemandElement::deleteGLObject(), GNENetHelper::AttributeCarriers::deleteMeanData(), GNEViewNet::deleteNetworkAttributeCarrier(), GNENet::deleteNetworkElement(), GNENetHelper::AttributeCarriers::deleteTAZSourceSink(), GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEGenericData::drawAttribute(), GNEEntryExitDetector::drawEntryLogo(), GNEBusStop::drawGL(), GNEEntryExitDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNELaneAreaDetector::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawParentChildLines(), GNERoute::drawRoutePartialJunction(), GNERoute::drawRoutePartialLane(), GNERouteHandler::duplicatePlan(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNETLSEditorFrame::editTLS(), GNEAttributesEditorRow::getAttributeValue(), GNERoute::getFirstPathLane(), GNEPlanParents::getFromBusStop(), GNEPlanParents::getFromChargingStation(), GNEPlanParents::getFromContainerStop(), GNEPlanParents::getFromParkingArea(), GNEPlanParents::getFromTrainStop(), GNENetworkElement::getGeometryPointUnderCursorShapeEdited(), GNEContainer::getHierarchyName(), GNENetworkElement::getHierarchyName(), GNERoute::getLastPathLane(), GNEMatchAttribute::getMatches(), GNEDetector::getMoveOperation(), GNEStop::getMoveOperation(), GNEHierarchicalElement::getNewListOfParents(), GNEDemandElementPlan::getPlanPopUpMenu(), GNENetworkElement::getPopUpID(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNERouteRef::getPopUpMenu(), GNEVTypeRef::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEEdge::getRouteProbeRelativePosition(), GNENetworkElement::getShapeEditedPopUpMenu(), GNEStopFrame::getStopParameter(), GNEPoly::getSumoBaseObject(), GNEPlanParents::getToBusStop(), GNEPlanParents::getToChargingStation(), GNEPlanParents::getToContainerStop(), GNEPlanParents::getToParkingArea(), GNEPlanParents::getToTrainStop(), GNERoute::getVClass(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu(), GNEAdditionalFrame::initBaseAdditionalObject(), GNENetHelper::AttributeCarriers::insertAdditional(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNENetHelper::AttributeCarriers::insertGenericData(), GNENetHelper::AttributeCarriers::insertMeanData(), GNENetHelper::AttributeCarriers::insertTAZSourceSink(), GNEInspectorFrame::inspectElement(), GNEStop::isAttributeEnabled(), GNEPOI::isAttributeEnabled(), GNENetHelper::AttributeCarriers::isNetworkElementAroundTriangle(), GNEStoppingPlace::isStoppingPlaceValid(), GNEMeanData::isValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNEGenericData::isVisibleInspectDeleteSelect(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEViewNet::onCmdClearConnections(), GNEMeanDataFrame::MeanDataEditor::onCmdCopyMeanData(), GNEElementTree::onCmdDeleteItem(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdTriangulatePolygon(), GNEShapeFrame::processClick(), GNEChange_Attribute::redo(), GNEChange_DemandElement::redo(), GNENetHelper::AttributeCarriers::retrieveAttributeCarriersRecursively(), GNEAdditional::setAdditionalID(), GNEPOI::setAttribute(), GNERoute::setAttribute(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), GNEDemandElementSelector::setDemandElement(), GNEShapeFrame::shapeDrawed(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEPathCreator::showPathCreatorModule(), GNEAttributesEditorRow::showValueComboBox(), GNECalibrator::splitEdgeGeometry(), GNEDetector::splitEdgeGeometry(), GNEStoppingPlace::splitEdgeGeometry(), GNETranship::splitEdgeGeometry(), GNEWalk::splitEdgeGeometry(), GNEShapeFrame::tagSelected(), GNEChange_Attribute::undo(), GNEChange_DemandElement::undo(), GNENetHelper::AttributeCarriers::updateAdditionalID(), GNENetHelper::AttributeCarriers::updateDemandElementID(), GNELaneAreaDetector::updateGeometry(), GNENetHelper::AttributeCarriers::updateMeanDataID(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNERoute::writeDemandElement(), GNETAZSourceSink::writeTAZSourceSink(), and GNEChange_MeanData::~GNEChange_MeanData().

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

References myTagStr.

Referenced by GNEStoppingPlace::adjustLenght(), GNEDemandElement::buildMenuAddReverse(), GNEContainerFrame::createPath(), GNEPersonFrame::createPath(), GNETagPropertiesDatabase::fillColorAttribute(), GNETagPropertiesDatabase::fillCommonAttributes(), GNETagPropertiesDatabase::fillCommonStoppingPlaceAttributes(), GNETagPropertiesDatabase::fillDepartAttribute(), GNETagPropertiesDatabase::fillDetectorPeriodAttribute(), GNETagPropertiesDatabase::fillIDAttribute(), GNETagPropertiesDatabase::fillImgFileAttribute(), GNETagPropertiesDatabase::fillLaneAttribute(), GNETagPropertiesDatabase::fillNameAttribute(), GNETagPropertiesDatabase::fillPosOverLaneAttribute(), GNETagPropertiesDatabase::fillWalkCommonAttributes(), GNERouteRef::getHierarchyName(), GNEVTypeRef::getHierarchyName(), GNEStopFrame::getStopParameter(), GNEAttributeCarrier::getTagStr(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEContainer::isValid(), GNEPersonTrip::isValid(), GNEVehicle::isValid(), GNEDemandElementFlow::isValidFlowAttribute(), GNEAttributeCarrier::resetDefaultValues(), GNECalibratorFlow::setAttribute(), GNEContainer::setAttribute(), GNEVehicle::setAttribute(), GNETagSelector::setCurrentTag(), GNEDemandElementFlow::setFlowAttribute(), and GNEChange_ToggleAttribute::~GNEChange_ToggleAttribute().

Here is the caller graph for this function:

◆ getTooltipText()

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

get tooltip text

Definition at line 325 of file GNETagProperties.cpp.

References myTooltipText.

◆ getXMLParentTags()

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

get XML parent tags

Definition at line 408 of file GNETagProperties.cpp.

References myXMLParentTags.

Referenced by GNEAdditional::checkDrawToContour(), and GNEAdditionalFrame::initBaseAdditionalObject().

Here is the caller graph for this function:

◆ getXMLTag()

SumoXMLTag GNETagProperties::getXMLTag ( ) const

default values

get XML tag

Definition at line 402 of file GNETagProperties.cpp.

References myXMLTag.

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

Here is the caller graph for this function:

◆ hasAttribute()

◆ hasDialog()

bool GNETagProperties::hasDialog ( ) const

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

Definition at line 959 of file GNETagProperties.cpp.

References DIALOG, and myTagProperty.

Referenced by GNEAdditional::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), and GNEViewNet::onCmdOpenAdditionalDialog().

Here is the caller graph for this function:

◆ hasExtendedAttributes()

bool GNETagProperties::hasExtendedAttributes ( ) const

return true if tag correspond to an element that contains extended attributes

Definition at line 965 of file GNETagProperties.cpp.

References EXTENDED, and myTagProperty.

◆ hasGEOShape()

bool GNETagProperties::hasGEOShape ( ) const

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

Definition at line 953 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 971 of file GNETagProperties.cpp.

References myTagProperty, and NOPARAMETERS.

Referenced by GNETagPropertiesDatabase::fillCommonAttributes().

Here is the caller graph for this function:

◆ hasTypeParent()

bool GNETagProperties::hasTypeParent ( ) const

return true if tag correspond to an element with a type as a first parent

Definition at line 635 of file GNETagProperties.cpp.

References isContainer(), isPerson(), and isVehicle().

◆ isAdditionalElement()

◆ isAdditionalPureElement()

bool GNETagProperties::isAdditionalPureElement ( ) const

return true if tag correspond to a pure additional element

Definition at line 517 of file GNETagProperties.cpp.

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

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

References CALIBRATOR, and myTagType.

Referenced by GNEVehicle::writeDemandElement().

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

References myTagProperty, and XMLCHILD.

Referenced by checkTagIntegrity(), GNETagPropertiesDatabase::fillCommonAttributes(), and GNEAdditionalFrame::initBaseAdditionalObject().

Here is the caller graph for this function:

◆ isContainer()

bool GNETagProperties::isContainer ( ) const

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

References DETECTOR, and myTagType.

Referenced by checkTagIntegrity().

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

References myTagProperty, and NOTDRAWABLE.

Referenced by GNETagPropertiesDatabase::fillCommonAttributes(), and getChildrenAttributes().

Here is the caller graph for this function:

◆ isFlow()

bool GNETagProperties::isFlow ( ) const

return true if tag correspond to a flow element

Definition at line 617 of file GNETagProperties.cpp.

References FLOW, and myTagType.

Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEDemandElementFlow::setDefaultFlowAttributes(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), and GNEDemandElementFlow::writeFlowAttributes().

Here is the caller graph for this function:

◆ isGenericData()

bool GNETagProperties::isGenericData ( ) const

data elements

return true if tag correspond to a generic data element

Definition at line 707 of file GNETagProperties.cpp.

References GENERICDATA, and myTagType.

Referenced by checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNEChange_Attribute::redo(), and GNEChange_Attribute::undo().

Here is the caller graph for this function:

◆ isHierarchicalTag()

bool GNETagProperties::isHierarchicalTag ( ) const

check if this is a hirearchical tag

Definition at line 499 of file GNETagProperties.cpp.

References HIERARCHICAL, and myTagProperty.

Referenced by checkTagIntegrity().

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

References INTERNALLANE, and myTagType.

Referenced by checkTagIntegrity().

Here is the caller graph for this function:

◆ isJuPedSimElement()

bool GNETagProperties::isJuPedSimElement ( ) const

return true if tag correspond to a JuPedSim element

Definition at line 577 of file GNETagProperties.cpp.

References JUPEDSIM, and myTagType.

Referenced by checkTagIntegrity(), GNEPoly::drawPolygon(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), and GNEApplicationWindow::onCmdSaveJuPedSimElementsAs().

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

References MEANDATA, and myTagType.

Referenced by checkTagIntegrity(), GNETagPropertiesDatabase::fillCommonAttributes(), GNEAttributesEditorRow::getAttributeValue(), GNEAttributeCarrier::GNEAttributeCarrier(), GNEChange_Attribute::redo(), GNEChange_ToggleAttribute::redo(), GNEChange_Attribute::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ isNetworkElement()

bool GNETagProperties::isNetworkElement ( ) const

network elements

return true if tag correspond to a network element

Definition at line 505 of file GNETagProperties.cpp.

References myTagType, and NETWORKELEMENT.

Referenced by GNEViewNetHelper::LockIcon::checkDrawing(), checkTagIntegrity(), GNEAttributeCarrier::drawUsingSelectColor(), GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers(), GNEChange_Attribute::redo(), GNEChange_ToggleAttribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEChange_Attribute::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ isOtherElement()

bool GNETagProperties::isOtherElement ( ) const

return true if tag correspond to a other element (sourceSinks, vTypes, etc.)

Definition at line 535 of file GNETagProperties.cpp.

References myTagType, and OTHER.

Referenced by checkTagIntegrity().

Here is the caller graph for this function:

◆ isPerson()

bool GNETagProperties::isPerson ( ) const

◆ isPlacedInRTree()

bool GNETagProperties::isPlacedInRTree ( ) const

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

Definition at line 978 of file GNETagProperties.cpp.

References myTagProperty, and RTREE.

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

Here is the caller graph for this function:

◆ isPlan()

bool GNETagProperties::isPlan ( ) const

◆ isPlanContainer()

bool GNETagProperties::isPlanContainer ( ) const

return true if tag correspond to a container plan

Definition at line 653 of file GNETagProperties.cpp.

References CONTAINERPLAN, and myTagType.

Referenced by checkTagIntegrity(), and isPlan().

Here is the caller graph for this function:

◆ isPlanPerson()

bool GNETagProperties::isPlanPerson ( ) const

return true if tag correspond to a person plan

Definition at line 647 of file GNETagProperties.cpp.

References myTagType, and PERSONPLAN.

Referenced by checkTagIntegrity(), isPlan(), and GNEDemandElementPlan::replacePlanParent().

Here is the caller graph for this function:

◆ isPlanPersonTrip()

bool GNETagProperties::isPlanPersonTrip ( ) const

return true if tag correspond to a person trip plan

Definition at line 659 of file GNETagProperties.cpp.

References myTagType, and PERSONTRIP.

Referenced by GNERouteHandler::buildPersonPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanRide()

bool GNETagProperties::isPlanRide ( ) const

return true if tag correspond to a ride plan

Definition at line 671 of file GNETagProperties.cpp.

References myTagType, and RIDE.

Referenced by GNERouteHandler::buildPersonPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanStop()

bool GNETagProperties::isPlanStop ( ) const

return true if tag correspond to a stop plan

Definition at line 689 of file GNETagProperties.cpp.

References isPlanStopContainer(), and isPlanStopPerson().

◆ isPlanStopContainer()

bool GNETagProperties::isPlanStopContainer ( ) const

return true if tag correspond to a container stop plan

Definition at line 701 of file GNETagProperties.cpp.

References myTagType, and STOP_CONTAINER.

Referenced by GNERouteHandler::buildContainerPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEContainer::getAttributePosition(), isPlanStop(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanStopPerson()

bool GNETagProperties::isPlanStopPerson ( ) const

return true if tag correspond to a person stop plan

Definition at line 695 of file GNETagProperties.cpp.

References myTagType, and STOP_PERSON.

Referenced by GNERouteHandler::buildPersonPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEPerson::getAttributePosition(), isPlanStop(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanTranship()

bool GNETagProperties::isPlanTranship ( ) const

return true if tag correspond to a tranship

Definition at line 683 of file GNETagProperties.cpp.

References myTagType, and TRANSHIP.

Referenced by GNERouteHandler::buildContainerPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNETagPropertiesDatabase::fillPlanParentAttributes(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanTransport()

bool GNETagProperties::isPlanTransport ( ) const

return true if tag correspond to a transport

Definition at line 677 of file GNETagProperties.cpp.

References myTagType, and TRANSPORT.

Referenced by GNERouteHandler::buildContainerPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEPlanCreator::planCanBeCreated().

Here is the caller graph for this function:

◆ isPlanWalk()

bool GNETagProperties::isPlanWalk ( ) const

return true if tag correspond to a walk plan

Definition at line 665 of file GNETagProperties.cpp.

References myTagType, and WALK.

Referenced by GNERouteHandler::buildPersonPlan(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), and GNEPlanCreator::planCanBeCreated().

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

References myTagType, and ROUTE.

Referenced by GNEDemandElement::buildMenuCommandRouteLength(), GNEVehicleFrame::buildVehicleOverRoute(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), GNEPathCreator::showPathCreatorModule(), and GNENetHelper::AttributeCarriers::updateDemandElementFrames().

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

References myTagProperty, and NOTSELECTABLE.

Referenced by GNESelectorFrame::SelectionOperation::loadFromFile(), 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 559 of file GNETagProperties.cpp.

References myTagType, and SHAPE.

Referenced by checkTagIntegrity(), and isAdditionalPureElement().

Here is the caller graph for this function:

◆ isStoppingPlace()

bool GNETagProperties::isStoppingPlace ( ) const

additional elements

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

Definition at line 541 of file GNETagProperties.cpp.

References myTagType, and STOPPINGPLACE.

Referenced by GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonPlanFrame::addPersonPlanElement(), GNEAdditional::checkDrawOverContour(), and checkTagIntegrity().

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

References myTagProperty, and SYMBOL.

Referenced by GNETagPropertiesDatabase::fillCommonAttributes().

Here is the caller graph for this function:

◆ isTAZElement()

bool GNETagProperties::isTAZElement ( ) const

return true if tag correspond to a TAZ element

Definition at line 565 of file GNETagProperties.cpp.

References myTagType, and TAZELEMENT.

Referenced by GNEAdditional::checkDrawOverContour(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), isAdditionalPureElement(), and GNEElementTree::showAttributeCarrierParents().

Here is the caller graph for this function:

◆ isType()

bool GNETagProperties::isType ( ) const

demand elements

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

Definition at line 583 of file GNETagProperties.cpp.

References myTagType, and VTYPE.

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

Here is the caller graph for this function:

◆ isTypeDist()

bool GNETagProperties::isTypeDist ( ) const

return true if tag correspond to a type distribution element

Definition at line 588 of file GNETagProperties.cpp.

References myTag, and SUMO_TAG_VTYPE_DISTRIBUTION.

◆ isVehicle()

bool GNETagProperties::isVehicle ( ) const

return true if tag correspond to a vehicle element

Definition at line 593 of file GNETagProperties.cpp.

References myTagType, and VEHICLE.

Referenced by GNERouteHandler::addReverse(), GNEStopFrame::addStop(), GNERouteHandler::buildStop(), GNEDemandElement::checkDrawMoveContour(), checkTagIntegrity(), GNEApplicationWindowHelper::LockMenuCommands::editLocking(), hasTypeParent(), vehicleEdges(), vehicleJunctions(), vehicleRoute(), vehicleRouteEmbedded(), and vehicleTAZs().

Here is the caller graph for this function:

◆ isVehicleStop()

bool GNETagProperties::isVehicleStop ( ) const

return true if tag correspond to a vehicle stop element

Definition at line 605 of file GNETagProperties.cpp.

References myTagType, and STOP_VEHICLE.

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

Here is the caller graph for this function:

◆ isVehicleWaypoint()

bool GNETagProperties::isVehicleWaypoint ( ) const

return true if tag correspond to a vehicle waypoint element

Definition at line 611 of file GNETagProperties.cpp.

References myTagType, and WAYPOINT_VEHICLE.

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

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

References myTagType, and WIRE.

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

Here is the caller graph for this function:

◆ operator=()

GNETagProperties & GNETagProperties::operator= ( const GNETagProperties src)
privatedelete

Invalidated assignment operator.

◆ planBusStop()

bool GNETagProperties::planBusStop ( ) const

return true if tag correspond to a plan placed over busStop

Definition at line 767 of file GNETagProperties.cpp.

References BUSSTOP, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planStoppingPlace().

Here is the caller graph for this function:

◆ planChargingStation()

bool GNETagProperties::planChargingStation ( ) const

return true if tag correspond to a plan placed over chargingStation

Definition at line 785 of file GNETagProperties.cpp.

References CHARGINGSTATION, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planStoppingPlace().

Here is the caller graph for this function:

◆ planConsecutiveEdges()

bool GNETagProperties::planConsecutiveEdges ( ) const

plan parents

return true if tag correspond to a plan placed over edges

Definition at line 749 of file GNETagProperties.cpp.

References CONSECUTIVE_EDGES, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes().

Here is the caller graph for this function:

◆ planContainerStop()

bool GNETagProperties::planContainerStop ( ) const

return true if tag correspond to a plan placed over containerStop

Definition at line 779 of file GNETagProperties.cpp.

References CONTAINERSTOP, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planStoppingPlace().

Here is the caller graph for this function:

◆ planEdge()

bool GNETagProperties::planEdge ( ) const

return true if tag correspond to a plan placed over edge

Definition at line 761 of file GNETagProperties.cpp.

References EDGE, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes().

Here is the caller graph for this function:

◆ planFromBusStop()

bool GNETagProperties::planFromBusStop ( ) const

return true if tag correspond to a plan that starts in busStop

Definition at line 831 of file GNETagProperties.cpp.

References FROM_BUSSTOP, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromStoppingPlace().

Here is the caller graph for this function:

◆ planFromChargingStation()

bool GNETagProperties::planFromChargingStation ( ) const

return true if tag correspond to a plan that starts in chargingStation

Definition at line 849 of file GNETagProperties.cpp.

References FROM_CHARGINGSTATION, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromStoppingPlace().

Here is the caller graph for this function:

◆ planFromContainerStop()

bool GNETagProperties::planFromContainerStop ( ) const

return true if tag correspond to a plan that starts in containerStop

Definition at line 843 of file GNETagProperties.cpp.

References FROM_CONTAINERSTOP, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromStoppingPlace().

Here is the caller graph for this function:

◆ planFromEdge()

bool GNETagProperties::planFromEdge ( ) const

return true if tag correspond to a plan that starts in edge

Definition at line 813 of file GNETagProperties.cpp.

References FROM_EDGE, and myTagOver.

Referenced by GNEDemandElementPlan::computePlanPathElement(), GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromTo().

Here is the caller graph for this function:

◆ planFromJunction()

bool GNETagProperties::planFromJunction ( ) const

return true if tag correspond to a plan that starts in junction

Definition at line 825 of file GNETagProperties.cpp.

References FROM_JUNCTION, isPlan(), and myTagOver.

Referenced by GNEDemandElementPlan::computePlanPathElement(), GNETagPropertiesDatabase::fillPlanParentAttributes(), GNEContainer::getAttributePosition(), GNEPerson::getAttributePosition(), and planFromTo().

Here is the caller graph for this function:

◆ planFromParkingArea()

bool GNETagProperties::planFromParkingArea ( ) const

return true if tag correspond to a plan that starts in parkingAera

Definition at line 855 of file GNETagProperties.cpp.

References FROM_PARKINGAREA, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromStoppingPlace().

Here is the caller graph for this function:

◆ planFromStoppingPlace()

bool GNETagProperties::planFromStoppingPlace ( ) const

return true if tag correspond to a plan that starts in stoppingPlace

Definition at line 861 of file GNETagProperties.cpp.

References planFromBusStop(), planFromChargingStation(), planFromContainerStop(), planFromParkingArea(), and planFromTrainStop().

Referenced by GNEDemandElementPlan::computePlanPathElement(), and planFromTo().

Here is the caller graph for this function:

◆ planFromTAZ()

bool GNETagProperties::planFromTAZ ( ) const

return true if tag correspond to a plan that starts in TAZ

Definition at line 819 of file GNETagProperties.cpp.

References FROM_TAZ, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), GNEContainer::getAttributePosition(), GNEPerson::getAttributePosition(), and planFromTo().

Here is the caller graph for this function:

◆ planFromTo()

bool GNETagProperties::planFromTo ( ) const

return true if tag correspond to a plan with from-to parents

Definition at line 804 of file GNETagProperties.cpp.

References planFromEdge(), planFromJunction(), planFromStoppingPlace(), planFromTAZ(), planToEdge(), planToJunction(), planToStoppingPlace(), and planToTAZ().

◆ planFromTrainStop()

bool GNETagProperties::planFromTrainStop ( ) const

return true if tag correspond to a plan that starts in trainStop

Definition at line 837 of file GNETagProperties.cpp.

References FROM_TRAINSTOP, isPlan(), and myTagOver.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromStoppingPlace().

Here is the caller graph for this function:

◆ planParkingArea()

bool GNETagProperties::planParkingArea ( ) const

return true if tag correspond to a plan placed over parkingArea

Definition at line 791 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and PARKINGAREA.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planStoppingPlace().

Here is the caller graph for this function:

◆ planRoute()

bool GNETagProperties::planRoute ( ) const

return true if tag correspond to a plan placed over route

Definition at line 755 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and ROUTE.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ planStoppingPlace()

bool GNETagProperties::planStoppingPlace ( ) const

return true if tag correspond to a plan placed in stoppingPlace

Definition at line 797 of file GNETagProperties.cpp.

References planBusStop(), planChargingStation(), planContainerStop(), planParkingArea(), and planTrainStop().

Referenced by GNEDemandElementPlan::computePlanPathElement().

Here is the caller graph for this function:

◆ planToBusStop()

bool GNETagProperties::planToBusStop ( ) const

return true if tag correspond to a plan that starts in busStop

Definition at line 885 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_BUSSTOP.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planToStoppingPlace().

Here is the caller graph for this function:

◆ planToChargingStation()

bool GNETagProperties::planToChargingStation ( ) const

return true if tag correspond to a plan that starts in chargingStation

Definition at line 903 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_CHARGINGSTATION.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planToStoppingPlace().

Here is the caller graph for this function:

◆ planToContainerStop()

bool GNETagProperties::planToContainerStop ( ) const

return true if tag correspond to a plan that starts in containerStop

Definition at line 897 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_CONTAINERSTOP.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planToStoppingPlace().

Here is the caller graph for this function:

◆ planToEdge()

bool GNETagProperties::planToEdge ( ) const

return true if tag correspond to a plan that starts in edge

Definition at line 868 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_EDGE.

Referenced by GNEDemandElementPlan::computePlanPathElement(), GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromTo().

Here is the caller graph for this function:

◆ planToJunction()

bool GNETagProperties::planToJunction ( ) const

return true if tag correspond to a plan that starts in junction

Definition at line 880 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_JUNCTION.

Referenced by GNEDemandElementPlan::computePlanPathElement(), GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromTo().

Here is the caller graph for this function:

◆ planToParkingArea()

bool GNETagProperties::planToParkingArea ( ) const

return true if tag correspond to a plan that starts in parkingArea

Definition at line 909 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_PARKINGAREA.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planToStoppingPlace().

Here is the caller graph for this function:

◆ planToStoppingPlace()

bool GNETagProperties::planToStoppingPlace ( ) const

return true if tag correspond to a plan that ends in stoppingPlace

Definition at line 915 of file GNETagProperties.cpp.

References planToBusStop(), planToChargingStation(), planToContainerStop(), planToParkingArea(), and planToTrainStop().

Referenced by GNEDemandElementPlan::computePlanPathElement(), and planFromTo().

Here is the caller graph for this function:

◆ planToTAZ()

bool GNETagProperties::planToTAZ ( ) const

return true if tag correspond to a plan that starts in TAZ

Definition at line 874 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_TAZ.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planFromTo().

Here is the caller graph for this function:

◆ planToTrainStop()

bool GNETagProperties::planToTrainStop ( ) const

return true if tag correspond to a plan that starts in trainStop

Definition at line 891 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TO_TRAINSTOP.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planToStoppingPlace().

Here is the caller graph for this function:

◆ planTrainStop()

bool GNETagProperties::planTrainStop ( ) const

return true if tag correspond to a plan placed over trainStop

Definition at line 773 of file GNETagProperties.cpp.

References isPlan(), myTagOver, and TRAINSTOP.

Referenced by GNETagPropertiesDatabase::fillPlanParentAttributes(), and planStoppingPlace().

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

References myTagProperty, and REQUIRE_PROJ.

◆ vClassIcon()

bool GNETagProperties::vClassIcon ( ) const

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

Definition at line 1002 of file GNETagProperties.cpp.

References myTagProperty, and VCLASS_ICON.

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

Here is the caller graph for this function:

◆ vehicleEdges()

◆ vehicleJunctions()

bool GNETagProperties::vehicleJunctions ( ) const

◆ vehicleRoute()

◆ vehicleRouteEmbedded()

◆ vehicleTAZs()

bool GNETagProperties::vehicleTAZs ( ) const

return true if tag correspond to a vehicle placed over from-to TAZs

Definition at line 743 of file GNETagProperties.cpp.

References FROM_TAZ, isVehicle(), myTagOver, and TO_TAZ.

Referenced by GNERouteHandler::canReverse(), GNEVehicle::copyVehicle(), GNEVehicle::getParentName(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu(), GNEVehicle::isDemandElementValid(), GNERouteHandler::reverse(), and GNEPathCreator::showPathCreatorModule().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ GNEAttributeProperties

declare friend class

Definition at line 143 of file GNETagProperties.h.

Field Documentation

◆ myAttributeProperties

◆ myBackgroundColor

const unsigned int GNETagProperties::myBackgroundColor = 0
private

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

Definition at line 588 of file GNETagProperties.h.

Referenced by getBackGroundColor().

◆ myChildren

std::vector<const GNETagProperties*> GNETagProperties::myChildren
private

tag property children

Definition at line 552 of file GNETagProperties.h.

Referenced by addChild(), getChildrenAttributes(), getChildrenTagProperties(), and getHierarchicalChildren().

◆ myConflicts

const Conflicts GNETagProperties::myConflicts = Conflicts::NO_CONFLICTS
private

conflicts

Definition at line 564 of file GNETagProperties.h.

◆ myGLType

const GUIGlObjectType GNETagProperties::myGLType = GUIGlObjectType::GLO_MAX
private

GUIGlObjectType associated with this tag property.

Definition at line 573 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), and getGLType().

◆ myIcon

const GUIIcon GNETagProperties::myIcon = GUIIcon::EMPTY
private

icon associated to this tag property

Definition at line 570 of file GNETagProperties.h.

Referenced by getGUIIcon().

◆ myParent

const GNETagProperties* GNETagProperties::myParent = nullptr
private

tag property parent

Definition at line 549 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), getHierarchicalParent(), and getSupermode().

◆ mySelectorText

const std::string GNETagProperties::mySelectorText
private

text show in selector text

Definition at line 585 of file GNETagProperties.h.

Referenced by getSelectorText().

◆ myTag

const SumoXMLTag GNETagProperties::myTag = SUMO_TAG_NOTHING
private

Sumo XML Tag vinculated wit this tag Property.

Definition at line 543 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), getTag(), and isTypeDist().

◆ myTagOver

◆ myTagProperty

◆ myTagStr

const std::string GNETagProperties::myTagStr
private

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

Definition at line 546 of file GNETagProperties.h.

Referenced by getTagStr().

◆ myTagType

◆ myTooltipText

const std::string GNETagProperties::myTooltipText
private

tooltip text

Definition at line 579 of file GNETagProperties.h.

Referenced by getTooltipText().

◆ myXMLParentTags

const std::vector<SumoXMLTag> GNETagProperties::myXMLParentTags
private

vector with XML parent tags (used by child elements like access or spaces)

Definition at line 582 of file GNETagProperties.h.

Referenced by checkTagIntegrity(), and getXMLParentTags().

◆ myXMLTag

const SumoXMLTag GNETagProperties::myXMLTag = SUMO_TAG_NOTHING
private

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

Definition at line 576 of file GNETagProperties.h.

Referenced by getXMLTag().


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