Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETagProperties.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Abstract Base class for tag properties used in GNEAttributeCarrier
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
27
28// ===========================================================================
29// class definitions
30// ===========================================================================
31
33
34public:
35
37 enum class Type : int {
38 // basic types
39 NETWORKELEMENT = 1 << 0, // Network elements (Edges, Junctions, Lanes...)
40 ADDITIONALELEMENT = 1 << 1, // Additional elements (Bus Stops, Charging Stations, Detectors...)
41 DEMANDELEMENT = 1 << 2, // Demand elements (Routes, Vehicles, Trips...)
42 DATAELEMENT = 1 << 3, // Data elements (DataSets, Data Intervals, EdgeData...)
43 // sub additional elements
44 STOPPINGPLACE = 1 << 4, // StoppingPlaces (BusStops, ChargingStations...)
45 DETECTOR = 1 << 5, // Detectors (E1, E2...)
46 CALIBRATOR = 1 << 6, // Calibrators
47 SHAPE = 1 << 7, // Shapes (Polygons and POIs)
48 TAZELEMENT = 1 << 8, // Traffic Assignment Zones
49 WIRE = 1 << 9, // Wire elements
50 JUPEDSIM = 1 << 10, // JuPedSim elements
51 // sub demand elements
52 VTYPE = 1 << 11, // Vehicle types (vType and vTypeDistribution)
53 VEHICLE = 1 << 12, // Vehicles (Vehicles, trips, flows...)
54 ROUTE = 1 << 13, // Routes and embedded routes
55 STOP_VEHICLE = 1 << 14, // Vehicle stops
56 WAYPOINT_VEHICLE = 1 << 15, // Vehicle waypoints (note: All waypoints are also Stops)
57 FLOW = 1 << 16, // Flows
58 // persons
59 PERSON = 1 << 17, // Persons (Persons and personFlows)
60 PERSONPLAN = 1 << 18, // Person plans (Walks, rides, personTrips and stopPersons)
61 PERSONTRIP = 1 << 19, // Person Trips
62 WALK = 1 << 20, // Walks
63 RIDE = 1 << 21, // Rides
64 STOP_PERSON = 1 << 22, // Person stops
65 // containers
66 CONTAINER = 1 << 23, // Containers (Containers and personFlows)
67 CONTAINERPLAN = 1 << 24, // Container plans (transport, tranships and containerStops)
68 TRANSPORT = 1 << 25, // Transport
69 TRANSHIP = 1 << 26, // Tranship
70 STOP_CONTAINER = 1 << 27, // Container stops
71 // sub data elements
72 GENERICDATA = 1 << 28, // Generic data (GNEEdgeData, GNELaneData...)
73 MEANDATA = 1 << 29, // Mean datas
74 // other
75 INTERNALLANE = 1 << 30, // Internal Lane
76 OTHER = 1 << 31, // Other type (used for TAZSourceSinks, VTypes, etc.)
77 };
78
80 enum class Property : int {
81 NOTDRAWABLE = 1 << 0, // Element cannot be drawn in view
82 GEOSHAPE = 1 << 1, // Element's shape acn be defined using a GEO Shape
83 DIALOG = 1 << 2, // Element can be edited using a dialog (GNECalibratorDialog, GNERerouterDialog...)
84 XMLCHILD = 1 << 3, // Element is child of another element and will be written in XML (Example: E3Entry -> E3Detector...)
85 REPARENT = 1 << 4, // Element can be reparent
86 NOTSELECTABLE = 1 << 5, // Element cannot be selected
87 NOPARAMETERS = 1 << 6, // Element doesn't accept parameters "key1=value1|key2=value2|...|keyN=valueN" (by default all tags supports parameters)
88 RTREE = 1 << 7, // Element is placed in RTREE
89 CENTERAFTERCREATION = 1 << 8, // Camera is moved after element creation
90 REQUIRE_PROJ = 1 << 9, // Element require a geo-projection defined in network
91 VCLASS_ICON = 1 << 10, // Element returns icon depending of their vClass
92 SYMBOL = 1 << 11, // Element is a symbol (VSSSymbols, RerouterSymbols...)
93 EXTENDED = 1 << 12, // Element contains extended attributes (Usually vTypes)
94 HIERARCHICAL = 1 << 13, // Element is a hierarchical
95 NO_PROPERTY = 1 << 14, // Element doesn't have properties
96 };
97
99 enum class Over : int {
100 VIEW = 1 << 0, // No parents
101 JUNCTION = 1 << 1, // Placed over junction
102 EDGE = 1 << 2, // Placed over edge
103 EDGES = 1 << 3, // Placed over edges
104 CONSECUTIVE_EDGES = 1 << 4, // Placed over consecutive
105 LANE = 1 << 5, // Placed over lane
106 LANES = 1 << 6, // Placed over lanes
107 CONSECUTIVE_LANES = 1 << 4, // Placed over consecutive lanes
108 ROUTE = 1 << 7, // Placed over route
109 ROUTE_EMBEDDED = 1 << 8, // Placed over route embedded
110 BUSSTOP = 1 << 9, // Placed over busStop
111 TRAINSTOP = 1 << 10, // Placed over trainStop
112 CONTAINERSTOP = 1 << 11, // Placed over containerStop
113 CHARGINGSTATION = 1 << 12, // Placed over charging station
114 PARKINGAREA = 1 << 13, // Placed over parking area
115 FROM_EDGE = 1 << 14, // Starts in edge
116 FROM_TAZ = 1 << 15, // Starts in TAZ
117 FROM_JUNCTION = 1 << 16, // Starts in junction
118 FROM_BUSSTOP = 1 << 17, // Starts in busStop
119 FROM_TRAINSTOP = 1 << 18, // Starts in trainStop
120 FROM_CONTAINERSTOP = 1 << 19, // Starts in containerStop
121 FROM_CHARGINGSTATION = 1 << 20, // Starts in chargingStation
122 FROM_PARKINGAREA = 1 << 21, // Starts in parkingArea
123 TO_EDGE = 1 << 22, // Ends in edge
124 TO_TAZ = 1 << 23, // Ends in TAZ
125 TO_JUNCTION = 1 << 24, // Ends in junction
126 TO_BUSSTOP = 1 << 25, // Ends in busStop
127 TO_TRAINSTOP = 1 << 26, // Ends in trainStop
128 TO_CONTAINERSTOP = 1 << 27, // Ends in containerStop
129 TO_CHARGINGSTATION = 1 << 28, // Ends in chargingStation
130 TO_PARKINGAREA = 1 << 29, // Ends in parkingArea
131 };
132
133 // @brief conflicts
134 enum class Conflicts : int {
135 POS_LANE = 1 << 0, // Position over lane isn't valid
136 POS_LANE_START = 1 << 1, // Start position over lane isn't valid
137 POS_LANE_END = 1 << 2, // End position over lane isn't valid
138 NO_ADDITIONAL_CHILDREN = 1 << 3, // Element doesn't have additional children
139 NO_CONFLICTS = 1 << 4, // Element doesn't have conflicts
140 };
141
144
146 GNETagProperties(const SumoXMLTag tag, GNETagProperties* parent, const Type tagType, const Property tagProperty, const Over tagOver,
147 const Conflicts conflicts, const GUIIcon icon, const GUIGlObjectType GLType, const SumoXMLTag XMLTag,
148 const std::string tooltip, std::vector<SumoXMLTag> XMLParentTags = {},
149 const unsigned int backgroundColor = FXRGBA(255, 255, 255, 255), const std::string selectorText = "");
150
152 GNETagProperties(const SumoXMLTag tag, GNETagProperties* parent, const GUIIcon icon, const std::string tooltip,
153 const unsigned int backgroundColor = FXRGBA(255, 255, 255, 255), const std::string selectorText = "");
154
157
159 SumoXMLTag getTag() const;
160
162 const std::string& getTagStr() const;
163
165 void checkTagIntegrity() const;
166
168 const std::string& getSelectorText() const;
169
171 const std::string& getTooltipText() const;
172
174 unsigned int getBackGroundColor() const;
175
177 const std::vector<const GNEAttributeProperties*>& getAttributeProperties() const;
178
181
183 const GNEAttributeProperties* getAttributeProperties(const int index) const;
184
186 const GNEAttributeProperties* at(int index) const;
187
189 bool hasAttribute(SumoXMLAttr attr) const;
190
192 int getNumberOfAttributes() const;
193
195 GUIIcon getGUIIcon() const;
196
199
202
204 SumoXMLTag getXMLTag() const;
205
207 const std::vector<SumoXMLTag>& getXMLParentTags() const;
208
210 bool canBeReparent() const;
211
214
216 const std::string& getDefaultStringValue(SumoXMLAttr attr) const;
217
219 int getDefaultIntValue(SumoXMLAttr attr) const;
220
222 double getDefaultDoubleValue(SumoXMLAttr attr) const;
223
226
228 bool getDefaultBoolValue(SumoXMLAttr attr) const;
229
231 const RGBColor& getDefaultColorValue(SumoXMLAttr attr) const;
232
234
237
240
242 const std::vector<const GNETagProperties*> getHierarchicalParentsRecuersively() const;
243
245 const std::vector<const GNETagProperties*>& getHierarchicalChildren() const;
246
248 std::vector<const GNETagProperties*> getHierarchicalChildrenRecursively() const;
249
251 std::map<std::string, const GNEAttributeProperties*> getHierarchicalChildrenAttributesRecursively(const bool onlyCommon, const bool onlyDrawables) const;
252
254
256 Supermode getSupermode() const;
257
259 bool isHierarchicalTag() const;
260
263
265 bool isNetworkElement() const;
266
268 bool isAdditionalElement() const;
269
271 bool isAdditionalPureElement() const;
272
274 bool isDemandElement() const;
275
277 bool isDataElement() const;
278
280 bool isOtherElement() const;
281
283
287 bool isStoppingPlace() const;
288
290 bool isDetector() const;
291
293 bool isCalibrator() const;
294
296 bool isShapeElement() const;
297
299 bool isTAZElement() const;
300
302 bool isWireElement() const;
303
305 bool isJuPedSimElement() const;
306
308
312 bool isType() const;
313
315 bool isTypeDist() const;
316
318 bool isVehicle() const;
319
321 bool isRoute() const;
322
324 bool isVehicleStop() const;
325
327 bool isVehicleWaypoint() const;
328
330 bool isFlow() const;
331
333 bool isPerson() const;
334
336 bool isContainer() const;
337
339 bool hasTypeParent() const;
340
342
346 bool isPlan() const;
347
349 bool isPlanPerson() const;
350
352 bool isPlanContainer() const;
353
355 bool isPlanPersonTrip() const;
356
358 bool isPlanWalk() const;
359
361 bool isPlanRide() const;
362
364 bool isPlanTransport() const;
365
367 bool isPlanTranship() const;
368
370 bool isPlanStop() const;
371
373 bool isPlanStopPerson() const;
374
376 bool isPlanStopContainer() const;
377
379
383 bool isGenericData() const;
384
386 bool isMeanData() const;
387
389
392
394 bool vehicleRoute() const;
395
397 bool vehicleRouteEmbedded() const;
398
400 bool vehicleEdges() const;
401
403 bool vehicleJunctions() const;
404
406 bool vehicleTAZs() const;
407
409
413 bool planConsecutiveEdges() const;
414
416 bool planRoute() const;
417
419 bool planEdge() const;
420
422 bool planBusStop() const;
423
425 bool planTrainStop() const;
426
428 bool planContainerStop() const;
429
431 bool planChargingStation() const;
432
434 bool planParkingArea() const;
435
437 bool planStoppingPlace() const;
438
440 bool planFromTo() const;
441
443 bool planFromEdge() const;
444
446 bool planFromTAZ() const;
447
449 bool planFromJunction() const;
450
452 bool planFromBusStop() const;
453
455 bool planFromTrainStop() const;
456
458 bool planFromContainerStop() const;
459
461 bool planFromChargingStation() const;
462
464 bool planFromParkingArea() const;
465
467 bool planFromStoppingPlace() const;
468
470 bool planToEdge() const;
471
473 bool planToTAZ() const;
474
476 bool planToJunction() const;
477
479 bool planToBusStop() const;
480
482 bool planToTrainStop() const;
483
485 bool planToContainerStop() const;
486
488 bool planToChargingStation() const;
489
491 bool planToParkingArea() const;
492
494 bool planToStoppingPlace() const;
495
497
499 bool isChild() const;
500
502 bool isSymbol() const;
503
505 bool isInternalLane() const;
506
508 bool isDrawable() const;
509
511 bool isSelectable() const;
512
514 bool hasGEOShape() const;
515
517 bool hasDialog() const;
518
520 bool hasExtendedAttributes() const;
521
523 bool hasParameters() const;
524
526 bool isPlacedInRTree() const;
527
529 bool canCenterCameraAfterCreation() const;
530
532 bool requireProj() const;
533
535 bool vClassIcon() const;
536
537protected:
539 void addChild(const GNETagProperties* child);
540
541private:
544
546 const std::string myTagStr;
547
549 const GNETagProperties* myParent = nullptr;
550
552 std::vector<const GNETagProperties*> myChildren;
553
556
559
562
565
567 std::vector<const GNEAttributeProperties*> myAttributeProperties;
568
571
574
577
579 const std::string myTooltipText;
580
582 const std::vector<SumoXMLTag> myXMLParentTags;
583
585 const std::string mySelectorText;
586
588 const unsigned int myBackgroundColor = 0;
589
591 void getChildrenTagProperties(const GNETagProperties* tagProperties, std::vector<const GNETagProperties*>& result) const;
592
594 void getChildrenAttributes(const GNETagProperties* tagProperties, std::map<std::string, const GNEAttributeProperties*>& result, const bool onlyDrawables) const;
595
598
601
604};
605
608 return static_cast<GNETagProperties::Type>(static_cast<int>(a) | static_cast<int>(b));
609}
610
613 return (static_cast<int>(a) & static_cast<int>(b)) != 0;
614}
615
618 return static_cast<GNETagProperties::Property>(static_cast<int>(a) | static_cast<int>(b));
619}
620
623 return (static_cast<int>(a) & static_cast<int>(b)) != 0;
624}
625
628 return static_cast<GNETagProperties::Over>(static_cast<int>(a) | static_cast<int>(b));
629}
630
633 return (static_cast<int>(a) & static_cast<int>(b)) != 0;
634}
635
638 return static_cast<GNETagProperties::Conflicts>(static_cast<int>(a) | static_cast<int>(b));
639}
640
643 return (static_cast<int>(a) & static_cast<int>(b)) != 0;
644}
645
646/****************************************************************************/
constexpr bool operator&(GNETagProperties::Type a, GNETagProperties::Type b)
override tag parent bit operator
constexpr GNETagProperties::Type operator|(GNETagProperties::Type a, GNETagProperties::Type b)
override tag parent bit operator
Supermode
@brie enum for supermodes
long long int SUMOTime
Definition GUI.h:36
GUIGlObjectType
@ GLO_MAX
empty max
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ SUMO_TAG_NOTHING
invalid tag, must be the last one
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
bool hasExtendedAttributes() const
return true if tag correspond to an element that contains extended attributes
const std::string & getTooltipText() const
get tooltip text
bool isPlanTransport() const
return true if tag correspond to a transport
bool isMeanData() const
return true if tag correspond to a mean data element
bool isContainer() const
return true if tag correspond to a container element
bool planToContainerStop() const
return true if tag correspond to a plan that starts in containerStop
bool canBeReparent() const
return true if tag correspond to an element that can be reparent
bool isShapeElement() const
return true if tag correspond to a shape
const std::string & getSelectorText() const
get field string (by default tag in string format)
bool vClassIcon() const
return true if tag correspond to an element that has vClass icons
const Type myTagType
tag Types
bool getDefaultBoolValue(SumoXMLAttr attr) const
get default bool value
bool planFromChargingStation() const
return true if tag correspond to a plan that starts in chargingStation
bool isPlan() const
plans
bool planFromJunction() const
return true if tag correspond to a plan that starts in junction
bool isTAZElement() const
return true if tag correspond to a TAZ element
bool isFlow() const
return true if tag correspond to a flow element
bool hasGEOShape() const
return true if tag correspond to an element that can use a geo shape
const Over myTagOver
tag over
GUIGlObjectType getGLType() const
get GUIGlObjectType associated with this tag property
bool planToBusStop() const
return true if tag correspond to a plan that starts in busStop
bool isOtherElement() const
return true if tag correspond to a other element (sourceSinks, vTypes, etc.)
std::map< std::string, const GNEAttributeProperties * > getHierarchicalChildrenAttributesRecursively(const bool onlyCommon, const bool onlyDrawables) const
get all children attributes sorted by name (Including this)
bool isGenericData() const
data elements
const unsigned int myBackgroundColor
background color (used in labels and textFields, by default white)
bool planToStoppingPlace() const
return true if tag correspond to a plan that ends in stoppingPlace
bool planFromContainerStop() const
return true if tag correspond to a plan that starts in containerStop
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
bool planFromTo() const
return true if tag correspond to a plan with from-to parents
const RGBColor & getDefaultColorValue(SumoXMLAttr attr) const
get default bool value
const std::string myTooltipText
tooltip text
std::vector< const GNETagProperties * > myChildren
tag property children
bool planRoute() const
return true if tag correspond to a plan placed over route
const SumoXMLTag myTag
Sumo XML Tag vinculated wit this tag Property.
GNETagProperties(const GNETagProperties &)=delete
Invalidated copy constructor.
bool isChild() const
return true if tag correspond to an element child of another element (Example: E3->Entry/Exit)
const std::vector< SumoXMLTag > myXMLParentTags
vector with XML parent tags (used by child elements like access or spaces)
bool planStoppingPlace() const
return true if tag correspond to a plan placed in stoppingPlace
bool isNetworkElement() const
network elements
const GNETagProperties * myParent
tag property parent
bool isDataElement() const
return true if tag correspond to a data element
double getDefaultDoubleValue(SumoXMLAttr attr) const
get default double value
bool isSelectable() const
return true if tag correspond to a selectable element
bool planToJunction() const
return true if tag correspond to a plan that starts in junction
bool isType() const
demand elements
bool planFromParkingArea() const
return true if tag correspond to a plan that starts in parkingAera
bool isRoute() const
return true if tag correspond to a route element
bool isVehicle() const
return true if tag correspond to a vehicle element
bool planParkingArea() const
return true if tag correspond to a plan placed over parkingArea
SUMOTime getDefaultTimeValue(SumoXMLAttr attr) const
get default time value
bool isPlanStop() const
return true if tag correspond to a stop plan
bool planToTAZ() const
return true if tag correspond to a plan that starts in TAZ
bool planFromStoppingPlace() const
return true if tag correspond to a plan that starts in stoppingPlace
bool planConsecutiveEdges() const
plan parents
const std::vector< const GNETagProperties * > getHierarchicalParentsRecuersively() const
get all parents, beginning from current element (root not included) untils this element
std::vector< const GNETagProperties * > getHierarchicalChildrenRecursively() const
get all children tags (Including children of their children)
bool isHierarchicalTag() const
check if this is a hirearchical tag
bool isPlacedInRTree() const
return true if Tag correspond to an element that has to be placed in RTREE
bool vehicleJunctions() const
return true if tag correspond to a vehicle placed over from-to junctions
bool isPlanStopContainer() const
return true if tag correspond to a container stop plan
GNETagProperties()=delete
default constructor
GUIIcon getGUIIcon() const
get GUI icon associated to this tag property
bool hasParameters() const
return true if Tag correspond to an element that supports parameters "key1=value1|key2=value2|....
bool isStoppingPlace() const
additional elements
bool hasTypeParent() const
return true if tag correspond to an element with a type as a first parent
const GNEAttributeProperties * at(int index) const
get attribute value
const Property myTagProperty
tag properties
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)
Over
element in which this element is placed
const std::string myTagStr
Sumo XML Tag vinculated wit this tag Property in String format.
bool isCalibrator() const
return true if tag correspond to a calibrator (Only used to group all detectors in the XML)
const std::vector< const GNETagProperties * > & getHierarchicalChildren() const
get children of this tag property
bool isDrawable() const
return true if tag correspond to a drawable element
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
const Conflicts myConflicts
conflicts
bool planFromEdge() const
return true if tag correspond to a plan that starts in edge
Supermode getSupermode() const
get supermode associated with this tag
bool planFromBusStop() const
return true if tag correspond to a plan that starts in busStop
bool isDetector() const
return true if tag correspond to a shape (Only used to group all detectors in the XML)
bool planFromTrainStop() const
return true if tag correspond to a plan that starts in trainStop
void checkTagIntegrity() const
check Tag integrity (this include all their attributes)
bool planToTrainStop() const
return true if tag correspond to a plan that starts in trainStop
bool planFromTAZ() const
return true if tag correspond to a plan that starts in TAZ
bool vehicleRouteEmbedded() const
return true if tag correspond to a vehicle placed over an embedded route
bool isTypeDist() const
return true if tag correspond to a type distribution element
bool canCenterCameraAfterCreation() const
return true if tag correspond to an element that center camera after creation
bool isJuPedSimElement() const
return true if tag correspond to a JuPedSim element
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
GNETagProperties & operator=(const GNETagProperties &src)=delete
Invalidated assignment operator.
bool planEdge() const
return true if tag correspond to a plan placed over edge
bool hasDialog() const
return true if tag correspond to an element that can be edited using a dialog
bool isAdditionalPureElement() const
return true if tag correspond to a pure additional element
const SumoXMLTag myXMLTag
Tag written in XML and used in GNENetHelper::AttributeCarriers.
void getChildrenTagProperties(const GNETagProperties *tagProperties, std::vector< const GNETagProperties * > &result) const
recursive function for get all children tag properites (Including this)
const std::string mySelectorText
text show in selector text
bool isWireElement() const
return true if tag correspond to a Wire element
const GNETagProperties * getHierarchicalParent() const
hierarchy functions
int getNumberOfAttributes() const
get number of attributes
bool planContainerStop() const
return true if tag correspond to a plan placed over containerStop
bool vehicleEdges() const
return true if tag correspond to a vehicle placed over from-to edges
void addChild(const GNETagProperties *child)
add child
bool isPlanPerson() const
return true if tag correspond to a person plan
int getDefaultIntValue(SumoXMLAttr attr) const
get default int value
bool isDemandElement() const
return true if tag correspond to a demand element
const GUIGlObjectType myGLType
GUIGlObjectType associated with this tag property.
SumoXMLTag getXMLTag() const
default values
bool isPlanRide() const
return true if tag correspond to a ride plan
bool isInternalLane() const
return true if tag correspond to an internal lane
bool planTrainStop() const
return true if tag correspond to a plan placed over trainStop
bool isVehicleWaypoint() const
return true if tag correspond to a vehicle waypoint element
const std::vector< const GNEAttributeProperties * > & getAttributeProperties() const
get all attribute properties
bool isAdditionalElement() const
return true if tag correspond to an additional element (note: this include TAZ, shapes and wires)
bool isSymbol() const
return true if tag correspond to a symbol element
bool hasAttribute(SumoXMLAttr attr) const
check if current TagProperties owns the attribute "attr"
bool planToParkingArea() const
return true if tag correspond to a plan that starts in parkingArea
bool planToChargingStation() const
return true if tag correspond to a plan that starts in chargingStation
bool isPlanStopPerson() const
return true if tag correspond to a person stop plan
std::vector< const GNEAttributeProperties * > myAttributeProperties
vector with the attribute values vinculated with this Tag
unsigned int getBackGroundColor() const
get background color
bool isVehicleStop() const
return true if tag correspond to a vehicle stop element
bool isPerson() const
return true if tag correspond to a person element
bool vehicleTAZs() const
return true if tag correspond to a vehicle placed over from-to TAZs
~GNETagProperties()
destructor
bool vehicleRoute() const
plan parents
bool isPlanWalk() const
return true if tag correspond to a walk plan
bool planToEdge() const
return true if tag correspond to a plan that starts in edge
const GUIIcon myIcon
icon associated to this tag property
bool planBusStop() const
return true if tag correspond to a plan placed over busStop
const std::string & getDefaultStringValue(SumoXMLAttr attr) const
default values
bool requireProj() const
return true if tag correspond to an element that requires a geo projection
bool planChargingStation() const
return true if tag correspond to a plan placed over chargingStation
const std::vector< SumoXMLTag > & getXMLParentTags() const
get XML parent tags
bool isPlanTranship() const
return true if tag correspond to a tranship