SUMO - Simulation of Urban MObility
GNEAttributeCarrier Class Referenceabstract

#include <GNEAttributeCarrier.h>

Inheritance diagram for GNEAttributeCarrier:
Inheritance graph
Collaboration diagram for GNEAttributeCarrier:
Collaboration graph

Data Structures

class  AttributeValues
 struct with the attribute Properties More...
 
class  TagValues
 struct with the attribute Properties More...
 

Public Types

enum  AttrProperty {
  ATTRPROPERTY_INT = 1 << 0, ATTRPROPERTY_FLOAT = 1 << 1, ATTRPROPERTY_BOOL = 1 << 2, ATTRPROPERTY_STRING = 1 << 3,
  ATTRPROPERTY_POSITION = 1 << 4, ATTRPROPERTY_COLOR = 1 << 5, ATTRPROPERTY_VCLASS = 1 << 6, ATTRPROPERTY_POSITIVE = 1 << 7,
  ATTRPROPERTY_NOTZERO = 1 << 8, ATTRPROPERTY_UNIQUE = 1 << 9, ATTRPROPERTY_FILENAME = 1 << 10, ATTRPROPERTY_NONEDITABLE = 1 << 11,
  ATTRPROPERTY_DISCRETE = 1 << 12, ATTRPROPERTY_PROBABILITY = 1 << 13, ATTRPROPERTY_TIME = 1 << 14, ATTRPROPERTY_ANGLE = 1 << 15,
  ATTRPROPERTY_LIST = 1 << 16, ATTRPROPERTY_OPTIONAL = 1 << 17, ATTRPROPERTY_DEFAULTVALUE = 1 << 18, ATTRPROPERTY_COMBINABLE = 1 << 19,
  ATTRPROPERTY_SYNONYM = 1 << 20
}
 struct with the tag Properties More...
 
enum  TAGProperty {
  TAGPROPERTY_NETELEMENT = 1 << 0, TAGPROPERTY_ADDITIONAL = 1 << 1, TAGPROPERTY_SHAPE = 1 << 2, TAGPROPERTY_STOPPINGPLACE = 1 << 3,
  TAGPROPERTY_DETECTOR = 1 << 4, TAGPROPERTY_ROUTEELEMENT = 1 << 5, TAGPROPERTY_DRAWABLE = 1 << 6, TAGPROPERTY_BLOCKMOVEMENT = 1 << 7,
  TAGPROPERTY_BLOCKSHAPE = 1 << 8, TAGPROPERTY_CLOSESHAPE = 1 << 9, TAGPROPERTY_GEOPOSITION = 1 << 10, TAGPROPERTY_GEOSHAPE = 1 << 11,
  TAGPROPERTY_DIALOG = 1 << 12, TAGPROPERTY_PARENT = 1 << 13, TAGPROPERTY_MINIMUMCHILDS = 1 << 14, TAGPROPERTY_REPARENT = 1 << 15,
  TAGPROPERTY_SYNONYM = 1 << 16, TAGPROPERTY_AUTOMATICSORTING = 1 << 17, TAGPROPERTY_SELECTABLE = 1 << 18, TAGPROPERTY_WRITECHILDSSEPARATE = 1 << 19
}
 

Public Member Functions

void decRef (const std::string &debugMsg="")
 Decrease reference. More...
 
virtual std::string getAttributeForSelection (SumoXMLAttr key) const
 method for getting the attribute in the context of object selection More...
 
FXIcon * getIcon () const
 get FXIcon associated to this AC More...
 
const std::string getID () const
 function to support debugging More...
 
SumoXMLTag getTag () const
 get XML Tag assigned to this object More...
 
 GNEAttributeCarrier (SumoXMLTag tag)
 Constructor. More...
 
void incRef (const std::string &debugMsg="")
 Increarse reference. More...
 
template<>
int parse (const std::string &string)
 
template<>
double parse (const std::string &string)
 
template<>
bool parse (const std::string &string)
 
template<>
std::string parse (const std::string &string)
 
template<>
SUMOVehicleClass parse (const std::string &string)
 
template<>
RGBColor parse (const std::string &string)
 
template<>
Position parse (const std::string &string)
 
template<>
SUMOVehicleShape parse (const std::string &string)
 
template<>
std::vector< std::string > parse (const std::string &string)
 
template<>
std::vector< int > parse (const std::string &string)
 
template<>
std::vector< double > parse (const std::string &string)
 
template<>
std::vector< bool > parse (const std::string &string)
 
template<>
std::vector< GNEEdge * > parse (GNENet *net, const std::string &value)
 
template<>
std::vector< GNELane * > parse (GNENet *net, const std::string &value)
 
template<>
std::string parseIDs (const std::vector< GNEEdge *> &ACs)
 
template<>
std::string parseIDs (const std::vector< GNELane *> &ACs)
 
bool unreferenced ()
 check if object ins't referenced More...
 
virtual ~GNEAttributeCarrier ()
 Destructor. More...
 
This functions has to be implemented in all GNEAttributeCarriers

select attribute carrier using GUIGlobalSelection

virtual void selectAttributeCarrier (bool changeFlag=true)=0
 
virtual void unselectAttributeCarrier (bool changeFlag=true)=0
 unselect attribute carrier using GUIGlobalSelection More...
 
virtual bool isAttributeCarrierSelected () const =0
 check if attribute carrier is selected More...
 
virtual std::string getAttribute (SumoXMLAttr key) const =0
 
virtual void setAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
 
virtual bool isValid (SumoXMLAttr key, const std::string &value)=0
 
virtual std::string getPopUpID () const =0
 get PopPup ID (Used in AC Hierarchy) More...
 
virtual std::string getHierarchyName () const =0
 get Hierarchy Name (Used in AC Hierarchy) More...
 
This functions related with generic parameters has to be implemented in all GNEAttributeCarriers
virtual bool addGenericParameter (const std::string &key, const std::string &value)=0
 add generic parameter More...
 
virtual bool removeGenericParameter (const std::string &key)=0
 remove generic parameter More...
 
virtual bool updateGenericParameter (const std::string &oldKey, const std::string &newKey)=0
 update generic parameter More...
 
virtual bool updateGenericParameterValue (const std::string &key, const std::string &newValue)=0
 update value generic parameter More...
 
virtual std::string getGenericParametersStr () const =0
 return generic parameters in string format More...
 
virtual std::vector< std::pair< std::string, std::string > > getGenericParameters () const =0
 return generic parameters as vector of pairs format More...
 
virtual void setGenericParametersStr (const std::string &value)=0
 set generic parameters in string format More...
 

Static Public Member Functions

static std::vector< SumoXMLTag > allowedAdditionalTags (bool onlyDrawables)
 get all editable for tag additional elements More...
 
static std::vector< SumoXMLTag > allowedNetElementsTags (bool onlyDrawables)
 get all editable for tag net elements More...
 
static std::vector< SumoXMLTag > allowedShapeTags (bool onlyDrawables)
 get all editable for tag shape elements More...
 
static std::vector< SumoXMLTag > allowedTags (bool onlyDrawables)
 get all editable for tag elements of all types More...
 
template<typename T >
static bool canParse (const std::string &string)
 true if a value of type T can be parsed from string More...
 
template<typename T >
static bool canParse (GNENet *net, const std::string &value, bool report)
 true if a value of type T can be parsed from string More...
 
static int getCircleResolution (const GUIVisualizationSettings &settings)
 function to calculate circle resolution for all circles drawn in drawGL(...) functions More...
 
static int getHigherNumberOfAttributes ()
 return the number of attributes of the tag with the most highter number of attributes More...
 
static const TagValues & getTagProperties (SumoXMLTag tag)
 get Tag Properties More...
 
static bool isGenericParametersValid (const std::string &value)
 check if given string can be parsed to a map/list of generic parameters More...
 
template<typename T >
static T parse (const std::string &string)
 parses a value of type T from string (used for basic types: int, double, bool, etc.) More...
 
template<typename T >
static T parse (GNENet *net, const std::string &value)
 parses a complex value of type T from string (use for list of edges, list of lanes, etc.) More...
 
template<typename T >
static T parseAttributeFromXML (const SUMOSAXAttributes &attrs, const std::string &objectID, const SumoXMLTag tag, const SumoXMLAttr attribute, bool &abort)
 Parse attribute from XML and show warnings if there are problems parsing it. More...
 
template<typename T >
static std::string parseIDs (const std::vector< T > &ACs)
 parses a list of specific Attribute Carriers into a string of IDs More...
 
static bool parseStringToANDBool (const std::string &string)
 parse a string of booleans (1 0 1 1....) using AND operation More...
 

Static Public Attributes

static const double INVALID_POSITION = -1000000
 default value for invalid positions (used by POIs and Polygons) More...
 
Certain attributes and ACs (for example, connections) can be either loaded or guessed. The following static variables are used to remark it.

feature is still unchanged after being loaded (implies approval)

static const std::string FEATURE_LOADED = "loaded"
 
static const std::string FEATURE_GUESSED = "guessed"
 feature has been reguessed (may still be unchanged be we can't tell (yet) More...
 
static const std::string FEATURE_MODIFIED = "modified"
 feature has been manually modified (implies approval) More...
 
static const std::string FEATURE_APPROVED = "approved"
 feature has been approved but not changed (i.e. after being reguessed) More...
 

Protected Member Functions

 GNEAttributeCarrier (const GNEAttributeCarrier &)=delete
 Invalidated copy constructor. More...
 
virtual void mouseOverObject (const GUIVisualizationSettings &s) const =0
 method for check if mouse is over objects More...
 
GNEAttributeCarrier & operator= (const GNEAttributeCarrier &src)=delete
 Invalidated assignment operator. More...
 
virtual void setAttribute (SumoXMLAttr key, const std::string &value)=0
 method for setting the attribute and nothing else (used in GNEChange_Attribute) More...
 

Static Protected Member Functions

static void fillAttributeCarriers ()
 fill Attribute Carriers More...
 

Protected Attributes

bool mySelected
 boolean to check if this AC is selected (instead of GUIGlObjectStorage) More...
 
const SumoXMLTag myTag
 the xml tag to which this attribute carrier corresponds More...
 

Static Protected Attributes

static std::map< SumoXMLTag, TagValues > myAllowedTags
 map with the tags values More...
 

Friends

class GNEChange_Attribute
 declare friend class More...
 

Detailed Description

Abstract Base class for gui objects which carry attributes inherits from GNEReferenceCounter for convenience

Definition at line 62 of file GNEAttributeCarrier.h.

Member Enumeration Documentation

◆ AttrProperty

struct with the tag Properties

Enumerator
ATTRPROPERTY_INT 
ATTRPROPERTY_FLOAT 
ATTRPROPERTY_BOOL 
ATTRPROPERTY_STRING 
ATTRPROPERTY_POSITION 
ATTRPROPERTY_COLOR 
ATTRPROPERTY_VCLASS 
ATTRPROPERTY_POSITIVE 
ATTRPROPERTY_NOTZERO 
ATTRPROPERTY_UNIQUE 
ATTRPROPERTY_FILENAME 
ATTRPROPERTY_NONEDITABLE 
ATTRPROPERTY_DISCRETE 
ATTRPROPERTY_PROBABILITY 
ATTRPROPERTY_TIME 
ATTRPROPERTY_ANGLE 
ATTRPROPERTY_LIST 
ATTRPROPERTY_OPTIONAL 
ATTRPROPERTY_DEFAULTVALUE 
ATTRPROPERTY_COMBINABLE 
ATTRPROPERTY_SYNONYM 

Definition at line 68 of file GNEAttributeCarrier.h.

◆ TAGProperty

Enumerator
TAGPROPERTY_NETELEMENT 
TAGPROPERTY_ADDITIONAL 
TAGPROPERTY_SHAPE 
TAGPROPERTY_STOPPINGPLACE 
TAGPROPERTY_DETECTOR 
TAGPROPERTY_ROUTEELEMENT 
TAGPROPERTY_DRAWABLE 
TAGPROPERTY_BLOCKMOVEMENT 
TAGPROPERTY_BLOCKSHAPE 
TAGPROPERTY_CLOSESHAPE 
TAGPROPERTY_GEOPOSITION 
TAGPROPERTY_GEOSHAPE 
TAGPROPERTY_DIALOG 
TAGPROPERTY_PARENT 
TAGPROPERTY_MINIMUMCHILDS 
TAGPROPERTY_REPARENT 
TAGPROPERTY_SYNONYM 
TAGPROPERTY_AUTOMATICSORTING 
TAGPROPERTY_SELECTABLE 
TAGPROPERTY_WRITECHILDSSEPARATE 

Definition at line 202 of file GNEAttributeCarrier.h.

Constructor & Destructor Documentation

◆ GNEAttributeCarrier() [1/2]

GNEAttributeCarrier::GNEAttributeCarrier ( SumoXMLTag  tag)

Constructor.

Parameters
[in]tagSUMO Tag assigned to this type of object
[in]iconGUIIcon associated to the type of object

Definition at line 582 of file GNEAttributeCarrier.cpp.

◆ ~GNEAttributeCarrier()

virtual GNEAttributeCarrier::~GNEAttributeCarrier ( )
inlinevirtual

◆ GNEAttributeCarrier() [2/2]

GNEAttributeCarrier::GNEAttributeCarrier ( const GNEAttributeCarrier &  )
protecteddelete

Invalidated copy constructor.

Member Function Documentation

◆ addGenericParameter()

virtual bool GNEAttributeCarrier::addGenericParameter ( const std::string &  key,
const std::string &  value 
)
pure virtual

◆ allowedAdditionalTags()

◆ allowedNetElementsTags()

std::vector< SumoXMLTag > GNEAttributeCarrier::allowedNetElementsTags ( bool  onlyDrawables)
static

◆ allowedShapeTags()

std::vector< SumoXMLTag > GNEAttributeCarrier::allowedShapeTags ( bool  onlyDrawables)
static

◆ allowedTags()

std::vector< SumoXMLTag > GNEAttributeCarrier::allowedTags ( bool  onlyDrawables)
static

get all editable for tag elements of all types

Definition at line 822 of file GNEAttributeCarrier.cpp.

References fillAttributeCarriers(), and myAllowedTags.

◆ canParse() [1/2]

template<typename T >
static bool GNEAttributeCarrier::canParse ( const std::string &  string)
inlinestatic

◆ canParse() [2/2]

template<typename T >
static bool GNEAttributeCarrier::canParse ( GNENet *  net,
const std::string &  value,
bool  report 
)
inlinestatic

true if a value of type T can be parsed from string

Definition at line 499 of file GNEAttributeCarrier.h.

References parse(), parseIDs(), parseStringToANDBool(), and WRITE_WARNING.

◆ decRef()

◆ fillAttributeCarriers()

void GNEAttributeCarrier::fillAttributeCarriers ( )
staticprotected

fill Attribute Carriers

Definition at line 949 of file GNEAttributeCarrier.cpp.

References ATTRPROPERTY_ANGLE, ATTRPROPERTY_BOOL, ATTRPROPERTY_COLOR, ATTRPROPERTY_COMBINABLE, ATTRPROPERTY_DEFAULTVALUE, ATTRPROPERTY_DISCRETE, ATTRPROPERTY_FILENAME, ATTRPROPERTY_FLOAT, ATTRPROPERTY_INT, ATTRPROPERTY_LIST, ATTRPROPERTY_NONEDITABLE, ATTRPROPERTY_OPTIONAL, ATTRPROPERTY_POSITION, ATTRPROPERTY_POSITIVE, ATTRPROPERTY_PROBABILITY, ATTRPROPERTY_STRING, ATTRPROPERTY_SYNONYM, ATTRPROPERTY_TIME, ATTRPROPERTY_UNIQUE, ATTRPROPERTY_VCLASS, SUMOXMLDefinitions::CarFollowModels, Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_IMG_HEIGHT, Shape::DEFAULT_IMG_WIDTH, Shape::DEFAULT_LAYER, Shape::DEFAULT_LAYER_POI, Shape::DEFAULT_RELATIVEPATH, Shape::DEFAULT_TYPE, DEFAULT_VTYPE_ID, OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), StringBijection< T >::getStrings(), GNE_ATTR_BIDIR, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, ICON_ACCESS, ICON_BUSSTOP, ICON_CALIBRATOR, ICON_CHARGINGSTATION, ICON_CLOSINGLANEREROUTE, ICON_CLOSINGREROUTE, ICON_CONNECTION, ICON_CONTAINERSTOP, ICON_CROSSING, ICON_DESTPROBREROUTE, ICON_E1, ICON_E1INSTANT, ICON_E2, ICON_E3, ICON_E3ENTRY, ICON_E3EXIT, ICON_EDGE, ICON_FLOW, ICON_JUNCTION, ICON_LANE, ICON_LOCATEPOI, ICON_LOCATEPOLY, ICON_PARKINGAREA, ICON_PARKINGSPACE, ICON_PARKINGZONEREROUTE, ICON_REROUTER, ICON_REROUTERINTERVAL, ICON_ROUTE, ICON_ROUTEPROBE, ICON_ROUTEPROBREROUTE, ICON_VAPORIZER, ICON_VARIABLESPEEDSIGN, ICON_VSSSTEP, ICON_VTYPE, SUMOXMLDefinitions::LaneChangeModels, SUMOXMLDefinitions::LaneSpreadFunctions, SUMOXMLDefinitions::LateralAlignments, myAllowedTags, NODETYPE_DEAD_END_DEPRECATED, SUMOXMLDefinitions::NodeTypes, SUMO_ATTR_ACCEL, SUMO_ATTR_ACCELERATION, SUMO_ATTR_ALLOW, SUMO_ATTR_ANGLE, SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGEINTRANSIT, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_COLOR, SUMO_ATTR_CONT, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_CONTPOS, SUMO_ATTR_CUSTOMSHAPE, SUMO_ATTR_DECEL, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_DISALLOW, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_EFFICIENCY, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_END, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_ENDPOS, SUMO_ATTR_FILE, SUMO_ATTR_FILL, SUMO_ATTR_FREQUENCY, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_FROM, SUMO_ATTR_FROM_LANE, SUMO_ATTR_GUISHAPE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_INDEX, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_LANE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LANES, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LAYER, SUMO_ATTR_LENGTH, SUMO_ATTR_LINE, SUMO_ATTR_LINES, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_OFF, SUMO_ATTR_OUTPUT, SUMO_ATTR_PARKING, SUMO_ATTR_PASS, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_PRIORITY, SUMO_ATTR_PROB, SUMO_ATTR_RADIUS, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_REROUTE, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_ROUTE, SUMO_ATTR_ROUTEPROBE, SUMO_ATTR_SHAPE, SUMO_ATTR_SIGMA, SUMO_ATTR_SPEED, SUMO_ATTR_SPEEDDEV, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_STARTPOS, SUMO_ATTR_TAU, SUMO_ATTR_TIME, SUMO_ATTR_TLID, SUMO_ATTR_TLLINKINDEX, SUMO_ATTR_TLLINKINDEX2, SUMO_ATTR_TLTYPE, SUMO_ATTR_TO, SUMO_ATTR_TO_LANE, SUMO_ATTR_TYPE, SUMO_ATTR_UNCONTROLLED, SUMO_ATTR_VCLASS, SUMO_ATTR_VEHSPERHOUR, SUMO_ATTR_VISIBILITY_DISTANCE, SUMO_ATTR_VISIBLE, SUMO_ATTR_VTYPES, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_CONNECTION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_CROSSING, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E3DETECTOR, SUMO_TAG_EDGE, SUMO_TAG_FLOW, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_LANECALIBRATOR, SUMO_TAG_NOTHING, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_PARKING_ZONE_REROUTE, SUMO_TAG_POI, SUMO_TAG_POILANE, SUMO_TAG_POLY, SUMO_TAG_REROUTER, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_PROB_REROUTE, SUMO_TAG_ROUTEPROBE, SUMO_TAG_STEP, SUMO_TAG_VAPORIZER, SUMO_TAG_VSS, SUMO_TAG_VTYPE, SumoVehicleClassStrings, SumoVehicleShapeStrings, TAGPROPERTY_ADDITIONAL, TAGPROPERTY_AUTOMATICSORTING, TAGPROPERTY_BLOCKMOVEMENT, TAGPROPERTY_BLOCKSHAPE, TAGPROPERTY_CLOSESHAPE, TAGPROPERTY_DETECTOR, TAGPROPERTY_DIALOG, TAGPROPERTY_DRAWABLE, TAGPROPERTY_GEOPOSITION, TAGPROPERTY_GEOSHAPE, TAGPROPERTY_MINIMUMCHILDS, TAGPROPERTY_NETELEMENT, TAGPROPERTY_PARENT, TAGPROPERTY_REPARENT, TAGPROPERTY_SELECTABLE, TAGPROPERTY_SHAPE, TAGPROPERTY_STOPPINGPLACE, TAGPROPERTY_SYNONYM, TAGPROPERTY_WRITECHILDSSEPARATE, toString(), SUMOXMLDefinitions::TrafficLightTypes, NBEdge::UNSPECIFIED_CONTPOS, NBEdge::UNSPECIFIED_SPEED, and NBEdge::UNSPECIFIED_VISIBILITY_DISTANCE.

Referenced by allowedAdditionalTags(), allowedNetElementsTags(), allowedShapeTags(), allowedTags(), getHigherNumberOfAttributes(), getIcon(), getTagProperties(), and parseAttributeFromXML().

◆ getAttribute()

◆ getAttributeForSelection()

std::string GNEAttributeCarrier::getAttributeForSelection ( SumoXMLAttr  key) const
virtual

method for getting the attribute in the context of object selection

Reimplemented in GNEEdge, and GNELane.

Definition at line 776 of file GNEAttributeCarrier.cpp.

References getAttribute().

◆ getCircleResolution()

int GNEAttributeCarrier::getCircleResolution ( const GUIVisualizationSettings &  settings)
static

◆ getGenericParameters()

virtual std::vector<std::pair<std::string, std::string> > GNEAttributeCarrier::getGenericParameters ( ) const
pure virtual

return generic parameters as vector of pairs format

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

Referenced by GNEFrame::GenericParametersEditor::showGenericParametersEditor().

◆ getGenericParametersStr()

virtual std::string GNEAttributeCarrier::getGenericParametersStr ( ) const
pure virtual

return generic parameters in string format

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

◆ getHierarchyName()

◆ getHigherNumberOfAttributes()

int GNEAttributeCarrier::getHigherNumberOfAttributes ( )
static

return the number of attributes of the tag with the most highter number of attributes

Definition at line 890 of file GNEAttributeCarrier.cpp.

References fillAttributeCarriers(), MAX2(), and myAllowedTags.

Referenced by GNEAdditionalFrame::AdditionalAttributes::AdditionalAttributes(), GNEInspectorFrame::AttributesEditor::AttributesEditor(), and GNEPolygonFrame::ShapeAttributes::ShapeAttributes().

◆ getIcon()

◆ getID()

const std::string GNEAttributeCarrier::getID ( ) const
virtual

function to support debugging

Implements GNEReferenceCounter.

Definition at line 798 of file GNEAttributeCarrier.cpp.

References getAttribute(), and SUMO_ATTR_ID.

Referenced by GNEAdditionalFrame::addAdditional(), GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNECrossingFrame::addCrossing(), GNEAdditional::addEdgeChild(), GNEJunction::addIncomingGNEEdge(), GNEAdditional::addLaneChild(), GNEJunction::addOutgoingGNEEdge(), GNENet::addPOI(), GNENet::addReversedEdge(), GNELane::addShapeChild(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalHandler::buildRerouterInterval(), GNENet::changeShapeID(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEAdditional::generateAdditionalChildID(), GNEAdditionalFrame::generateID(), GNEChargingStation::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEParkingArea::getAttribute(), GNEDetectorE2::getAttribute(), GNERouteProbe::getAttribute(), GNEDestProbReroute::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNECalibratorFlow::getAttribute(), GNEAccess::getAttribute(), GNEParkingSpace::getAttribute(), GNECalibrator::getAttribute(), GNEConnection::getAttribute(), GNEJunction::getAttribute(), GNEDestProbReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNEClosingReroute::getHierarchyName(), GNEAccess::getHierarchyName(), GNERerouterInterval::getParentName(), GNERouteProbReroute::getParentName(), GNEDestProbReroute::getParentName(), GNEParkingAreaReroute::getParentName(), GNEClosingLaneReroute::getParentName(), GNEClosingReroute::getParentName(), GNEVariableSpeedSignStep::getParentName(), GNEAccess::getParentName(), GNECalibratorFlow::getParentName(), GNEDetectorE3::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNERerouter::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNECalibrator::getPopUpID(), GNEDetector::getPopUpID(), GNENetElement::getPopUpID(), GNEShape::getPopUpID(), GNEAdditionalHandler::getPosition(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::GNENet(), GNENet::insertAdditional(), GNENet::insertShape(), GNEAdditional::isRouteValid(), GNEAccess::isValid(), GNENet::joinSelectedJunctions(), GNECrossingFrame::crossingParameters::markEdge(), GNENet::mergeJunctions(), GNERerouterDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdSetVariable(), GNEViewNet::onCmdTransformPOI(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildCalibratorRoute(), GNEAdditionalHandler::parseAndBuildCalibratorVehicleType(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNEPolygonFrame::processClick(), GNEViewNet::SelectingArea::processSelection(), GNEChange_Shape::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), GNEEdge::removeConnection(), GNEAdditional::removeEdgeChild(), GNEJunction::removeEdgeFromCrossings(), GNEEdge::removeEdgeOfAdditionalParents(), GNEJunction::removeIncomingGNEEdge(), GNEEdge::removeLane(), GNEAdditional::removeLaneChild(), GNELane::removeLaneOfAdditionalParents(), GNEJunction::removeOutgoingGNEEdge(), GNENet::removeShape(), GNELane::removeShapeChild(), GNENet::renameJunction(), GNENet::replaceIncomingEdge(), GNENet::retrieveEdge(), GNEEdge::retrieveGNEConnection(), GNEJunction::retrieveGNECrossing(), GNENet::reverseEdge(), GNEEdge::setAttribute(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEEdge::smooth(), GNEEdge::smoothElevation(), GNEEdge::smoothShape(), GNENet::splitEdge(), GNENet::splitJunction(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNENet::updateAdditionalID(), GNECalibratorRouteDialog::updateCalibratorRouteValues(), GNEAdditional::writeAdditional(), GNEPOI::writeShape(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), GNEChange_TLS::~GNEChange_TLS(), and GNEJunction::~GNEJunction().

◆ getPopUpID()

◆ getTag()

SumoXMLTag GNEAttributeCarrier::getTag ( ) const

get XML Tag assigned to this object

Definition at line 782 of file GNEAttributeCarrier.cpp.

References myTag.

Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNEAdditionalFrame::addAdditional(), GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNEAdditional::addEdgeChild(), GNEJunction::addIncomingGNEEdge(), GNEAdditional::addLaneChild(), GNEJunction::addOutgoingGNEEdge(), GNENet::addPOI(), GNELane::addShapeChild(), GNEViewNet::beginMoveSelection(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNENet::changeShapeID(), GNEAdditional::checkAdditionalChildRestriction(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNEDetectorE3::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEDetector::commitGeometryMoving(), GNEPOI::commitGeometryMoving(), GNEJunction::commitGeometryMoving(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEEdge::commitShapeEndChange(), GNEEdge::commitShapeStartChange(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNENet::deleteShape(), GNEAdditional::drawLockIcon(), GNEChargingStation::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEBusStop::getAttribute(), GNEContainerStop::getAttribute(), GNEParkingArea::getAttribute(), GNEDetectorE2::getAttribute(), GNEVaporizer::getAttribute(), GNERouteProbe::getAttribute(), GNEDetectorE3::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbReroute::getAttribute(), GNECrossing::getAttribute(), GNEDestProbReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNECalibratorRoute::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEAccess::getAttribute(), GNECalibratorFlow::getAttribute(), GNERerouter::getAttribute(), GNEParkingSpace::getAttribute(), GNECalibratorVehicleType::getAttribute(), GNECalibrator::getAttribute(), GNEConnection::getAttribute(), GNEPoly::getAttribute(), GNELane::getAttribute(), GNEPOI::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEVaporizer::getHierarchyName(), GNERouteProbe::getHierarchyName(), GNEDetectorE3::getHierarchyName(), GNEDestProbReroute::getHierarchyName(), GNERerouterInterval::getHierarchyName(), GNERouteProbReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNEClosingReroute::getHierarchyName(), GNEVariableSpeedSign::getHierarchyName(), GNECalibratorRoute::getHierarchyName(), GNEVariableSpeedSignStep::getHierarchyName(), GNEAccess::getHierarchyName(), GNERerouter::getHierarchyName(), GNECalibratorFlow::getHierarchyName(), GNEParkingSpace::getHierarchyName(), GNEStoppingPlace::getHierarchyName(), GNECalibratorVehicleType::getHierarchyName(), GNECalibrator::getHierarchyName(), GNEDetector::getHierarchyName(), GNENetElement::getHierarchyName(), GNEShape::getHierarchyName(), GNENetElement::getParameterWindow(), GNEAdditional::getParameterWindow(), GNEVaporizer::getPopUpID(), GNERouteProbe::getPopUpID(), GNEDetectorE3::getPopUpID(), GNEDestProbReroute::getPopUpID(), GNERerouterInterval::getPopUpID(), GNERouteProbReroute::getPopUpID(), GNEParkingAreaReroute::getPopUpID(), GNEClosingLaneReroute::getPopUpID(), GNEClosingReroute::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNEVariableSpeedSignStep::getPopUpID(), GNEAccess::getPopUpID(), GNERerouter::getPopUpID(), GNECalibratorFlow::getPopUpID(), GNEParkingSpace::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNECalibrator::getPopUpID(), GNEDetector::getPopUpID(), GNENetElement::getPopUpID(), GNEShape::getPopUpID(), GNEAdditional::getPopUpMenu(), GNEEdge::getRouteProbeRelativePosition(), GNEAdditional::GNEAdditional(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::GNENet(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNENet::insertShape(), GNEInspectorFrame::inspectElement(), GNEAdditional::isRouteValid(), GNEChargingStation::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEDetectorE2::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEDetectorE3::isValid(), GNEDestProbReroute::isValid(), GNECrossing::isValid(), GNERerouterInterval::isValid(), GNERouteProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEClosingReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEVariableSpeedSign::isValid(), GNECalibratorRoute::isValid(), GNEVariableSpeedSignStep::isValid(), GNEAccess::isValid(), GNERerouter::isValid(), GNECalibratorFlow::isValid(), GNEParkingSpace::isValid(), GNECalibratorVehicleType::isValid(), GNECalibrator::isValid(), GNEConnection::isValid(), GNEPoly::isValid(), GNELane::isValid(), GNEPOI::isValid(), GNEJunction::isValid(), GNEEdge::isValid(), GNEAdditional::isValidAdditionalID(), GNECalibratorFlowDialog::onCmdAccept(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEViewNet::onCmdOpenAdditionalDialog(), GNEViewNet::onCmdTransformPOI(), GNEViewNet::onLeftBtnPress(), GNEAdditional::openAdditionalDialog(), GNEAdditionalHandler::parseGenericParameter(), GNEViewNet::SelectingArea::processSelection(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Shape::redoName(), GNEChange_Additional::redoName(), GNEChange_Attribute::redoName(), GNEAdditionalFrame::removeAdditional(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), GNEEdge::removeConnection(), GNEAdditional::removeEdgeChild(), GNEJunction::removeIncomingGNEEdge(), GNEEdge::removeLane(), GNEAdditional::removeLaneChild(), GNEJunction::removeOutgoingGNEEdge(), GNENet::removeShape(), GNELane::removeShapeChild(), GNENet::replaceInListAttribute(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNEEdge::retrieveGNEConnection(), GNEJunction::retrieveGNECrossing(), GNENet::retrieveShapes(), GNEChargingStation::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorExit::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorE1::setAttribute(), GNEBusStop::setAttribute(), GNEContainerStop::setAttribute(), GNEParkingArea::setAttribute(), GNEDetectorE2::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEDetectorE3::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNECrossing::setAttribute(), GNEClosingReroute::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNECalibratorRoute::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNERerouter::setAttribute(), GNEAccess::setAttribute(), GNECalibratorFlow::setAttribute(), GNEParkingSpace::setAttribute(), GNECalibratorVehicleType::setAttribute(), GNECalibrator::setAttribute(), GNEConnection::setAttribute(), GNEPoly::setAttribute(), GNEPOI::setAttribute(), GNELane::setAttribute(), GNEJunction::setAttribute(), GNEEdge::setAttribute(), GNEAdditional::setDefaultValues(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditional::sortAdditionalChilds(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Shape::undoName(), GNEChange_Additional::undoName(), GNEChange_Attribute::undoName(), GNENet::updateAdditionalID(), GNEAdditional::writeAdditional(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), and GNEChange_TLS::~GNEChange_TLS().

◆ getTagProperties()

const GNEAttributeCarrier::TagValues & GNEAttributeCarrier::getTagProperties ( SumoXMLTag  tag)
static

get Tag Properties

Definition at line 807 of file GNEAttributeCarrier.cpp.

References fillAttributeCarriers(), myAllowedTags, and toString().

Referenced by GNEAdditionalFrame::addAdditional(), GNEAdditional::addAdditionalChild(), GNEAdditionalFrame::AdditionalAttributes::addAttribute(), GNEPolygonFrame::ShapeAttributes::addAttribute(), GNEAdditionalFrame::AdditionalAttributes::areValuesValid(), GNEPolygonFrame::ShapeAttributes::areValuesValid(), GNEAdditional::checkAdditionalChildsOverlapping(), GNENet::computeAndUpdate(), GNENet::deleteAdditional(), GNEAdditional::drawLockIcon(), GNECrossingFrame::crossingParameters::enableCrossingParameters(), GNESelectorFrame::getMatches(), GNENetElement::getParameterWindow(), GNEAdditional::getParameterWindow(), GNEAdditional::getPopUpMenu(), GNEAdditionalFrame::AdditionalAttributeSingle::getValue(), GNEPolygonFrame::ShapeAttributeSingle::getValue(), GNEAdditional::GNEAdditional(), GNEChange_Additional::GNEChange_Additional(), GNEDialog_AllowDisallow::GNEDialog_AllowDisallow(), GNESelectorFrame::handleIDs(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEViewNet::onCmdOpenAdditionalDialog(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::MatchAttribute::onCmdSelMBAttribute(), GNESelectorFrame::MatchAttribute::onCmdSelMBString(), GNESelectorFrame::MatchAttribute::onCmdSelMBTag(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNEAdditionalFrame::AdditionalAttributeSingle::onCmdSetAttribute(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetAttribute(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetColorAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEFrame::openHelpAttributesDialog(), parseAttributeFromXML(), GNEViewNet::SelectingArea::processSelection(), GNEInspectorFrame::AttributesEditor::refreshAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::refreshGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::refreshNeteditAttributesEditor(), GNEAdditional::removeAdditionalChild(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::replaceInListAttribute(), GNENet::retrieveAttributeCarriers(), GNENet::saveAdditionalsConfirmed(), GNEAdditionalFrame::AdditionalSelector::setCurrentAdditional(), GNEPolygonFrame::ShapeSelector::setCurrentShape(), GNEAdditional::setDefaultValues(), GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEInspectorFrame::AttributesEditor::showAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributeSingle::showParameter(), GNEPolygonFrame::ShapeAttributeSingle::showParameter(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEAdditional::sortAdditionalChilds(), GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor(), and GNEAdditional::writeAdditional().

◆ incRef()

void GNEReferenceCounter::incRef ( const std::string &  debugMsg = "")
inlineinherited

Increarse reference.

Definition at line 70 of file GNEReferenceCounter.h.

References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.

Referenced by GNEEdge::addLane(), GNENet::addPOI(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE2(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNENet::computeEverything(), GNEChange_Attribute::GNEChange_Attribute(), GNENet::GNENet(), GNEJunction::rebuildGNECrossings(), GNENet::registerEdge(), GNENet::registerJunction(), GNEEdge::remakeGNEConnections(), and GNEInspectorFrame::TemplateEditor::setEdgeTemplate().

◆ isAttributeCarrierSelected()

◆ isGenericParametersValid()

◆ isValid()

◆ mouseOverObject()

virtual void GNEAttributeCarrier::mouseOverObject ( const GUIVisualizationSettings &  s) const
protectedpure virtual

method for check if mouse is over objects

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNELane, GNEPoly, GNEPOI, GNEShape, GNEConnection, GNENetElement, and GNECrossing.

Referenced by parseAttributeFromXML().

◆ operator=()

GNEAttributeCarrier& GNEAttributeCarrier::operator= ( const GNEAttributeCarrier &  src)
protecteddelete

Invalidated assignment operator.

◆ parse() [1/16]

template<typename T >
static T GNEAttributeCarrier::parse ( const std::string &  string)
static

parses a value of type T from string (used for basic types: int, double, bool, etc.)

Referenced by canParse(), and GNECalibratorRoute::isValid().

◆ parse() [2/16]

template<typename T >
static T GNEAttributeCarrier::parse ( GNENet *  net,
const std::string &  value 
)
static

parses a complex value of type T from string (use for list of edges, list of lanes, etc.)

◆ parse() [3/16]

template<>
int GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 589 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2int().

◆ parse() [4/16]

template<>
double GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 595 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2double().

◆ parse() [5/16]

template<>
bool GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 601 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2Bool().

◆ parse() [6/16]

template<>
std::string GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 607 of file GNEAttributeCarrier.cpp.

◆ parse() [7/16]

template<>
SUMOVehicleClass GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 613 of file GNEAttributeCarrier.cpp.

References SumoVehicleClassStrings, and SVC_IGNORING.

◆ parse() [8/16]

template<>
RGBColor GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 625 of file GNEAttributeCarrier.cpp.

References RGBColor::parseColor().

◆ parse() [9/16]

template<>
Position GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 631 of file GNEAttributeCarrier.cpp.

References GeomConvHelper::parseShapeReporting().

◆ parse() [10/16]

template<>
SUMOVehicleShape GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 647 of file GNEAttributeCarrier.cpp.

References SumoVehicleShapeStrings, and SVS_UNKNOWN.

◆ parse() [11/16]

template<>
std::vector<std::string> GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 657 of file GNEAttributeCarrier.cpp.

References StringTokenizer::getVector().

◆ parse() [12/16]

template<>
std::vector<int> GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 663 of file GNEAttributeCarrier.cpp.

◆ parse() [13/16]

template<>
std::vector<double> GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 674 of file GNEAttributeCarrier.cpp.

◆ parse() [14/16]

template<>
std::vector<bool> GNEAttributeCarrier::parse ( const std::string &  string)

Definition at line 685 of file GNEAttributeCarrier.cpp.

◆ parse() [15/16]

template<>
std::vector<GNEEdge*> GNEAttributeCarrier::parse ( GNENet *  net,
const std::string &  value 
)

◆ parse() [16/16]

template<>
std::vector<GNELane*> GNEAttributeCarrier::parse ( GNENet *  net,
const std::string &  value 
)

◆ parseAttributeFromXML()

template<typename T >
static T GNEAttributeCarrier::parseAttributeFromXML ( const SUMOSAXAttributes &  attrs,
const std::string &  objectID,
const SumoXMLTag  tag,
const SumoXMLAttr  attribute,
bool &  abort 
)
inlinestatic

◆ parseIDs() [1/3]

template<typename T >
static std::string GNEAttributeCarrier::parseIDs ( const std::vector< T > &  ACs)
static

parses a list of specific Attribute Carriers into a string of IDs

Referenced by canParse(), GNECalibratorRoute::getAttribute(), GNEVariableSpeedSign::getAttribute(), and GNERerouter::getAttribute().

◆ parseIDs() [2/3]

template<>
std::string GNEAttributeCarrier::parseIDs ( const std::vector< GNEEdge *> &  ACs)

Definition at line 732 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ parseIDs() [3/3]

template<>
std::string GNEAttributeCarrier::parseIDs ( const std::vector< GNELane *> &  ACs)

Definition at line 743 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ parseStringToANDBool()

bool GNEAttributeCarrier::parseStringToANDBool ( const std::string &  string)
static

parse a string of booleans (1 0 1 1....) using AND operation

Definition at line 754 of file GNEAttributeCarrier.cpp.

Referenced by canParse(), and GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute().

◆ removeGenericParameter()

virtual bool GNEAttributeCarrier::removeGenericParameter ( const std::string &  key)
pure virtual

remove generic parameter

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

◆ selectAttributeCarrier()

virtual void GNEAttributeCarrier::selectAttributeCarrier ( bool  changeFlag = true)
pure virtual

◆ setAttribute() [1/2]

◆ setAttribute() [2/2]

◆ setGenericParametersStr()

virtual void GNEAttributeCarrier::setGenericParametersStr ( const std::string &  value)
pure virtual

set generic parameters in string format

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

◆ unreferenced()

◆ unselectAttributeCarrier()

virtual void GNEAttributeCarrier::unselectAttributeCarrier ( bool  changeFlag = true)
pure virtual

unselect attribute carrier using GUIGlobalSelection

Implemented in GNEAdditional, GNEShape, and GNENetElement.

Referenced by GNEViewNet::onCmdRemoveSelected(), GNEViewNet::onLeftBtnPress(), GNEDialogACChooser::toggleSelection(), and ~GNEAttributeCarrier().

◆ updateGenericParameter()

virtual bool GNEAttributeCarrier::updateGenericParameter ( const std::string &  oldKey,
const std::string &  newKey 
)
pure virtual

update generic parameter

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

◆ updateGenericParameterValue()

virtual bool GNEAttributeCarrier::updateGenericParameterValue ( const std::string &  key,
const std::string &  newValue 
)
pure virtual

update value generic parameter

Implemented in GNEAdditional, GNEEdge, GNEJunction, GNEPOI, GNELane, GNEPoly, GNEShape, GNENetElement, GNEConnection, and GNECrossing.

Friends And Related Function Documentation

◆ GNEChange_Attribute

friend class GNEChange_Attribute
friend

declare friend class

Definition at line 64 of file GNEAttributeCarrier.h.

Referenced by GNEDetectorE3::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEDetector::commitGeometryMoving(), GNEPOI::commitGeometryMoving(), GNEJunction::commitGeometryMoving(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEEdge::commitShapeEndChange(), GNEEdge::commitShapeStartChange(), GNEJunction::invalidateTLS(), GNEJunction::markAsModified(), GNEChargingStation::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorExit::setAttribute(), GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEParkingArea::setAttribute(), GNEDetectorE2::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEDetectorE3::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbReroute::setAttribute(), GNECrossing::setAttribute(), GNEDestProbReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNECalibratorRoute::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNERerouter::setAttribute(), GNEAccess::setAttribute(), GNECalibratorFlow::setAttribute(), GNEParkingSpace::setAttribute(), GNECalibratorVehicleType::setAttribute(), GNECalibrator::setAttribute(), GNEConnection::setAttribute(), GNEPoly::setAttribute(), GNEPOI::setAttribute(), GNELane::setAttribute(), GNEJunction::setAttribute(), GNEEdge::setAttribute(), and GNEJunction::setLogicValid().

Field Documentation

◆ FEATURE_APPROVED

const std::string GNEAttributeCarrier::FEATURE_APPROVED = "approved"
static

feature has been approved but not changed (i.e. after being reguessed)

Definition at line 416 of file GNEAttributeCarrier.h.

◆ FEATURE_GUESSED

const std::string GNEAttributeCarrier::FEATURE_GUESSED = "guessed"
static

feature has been reguessed (may still be unchanged be we can't tell (yet)

Definition at line 410 of file GNEAttributeCarrier.h.

Referenced by GNEJunction::setAttribute(), and GNEEdge::setAttribute().

◆ FEATURE_LOADED

const std::string GNEAttributeCarrier::FEATURE_LOADED = "loaded"
static

Definition at line 407 of file GNEAttributeCarrier.h.

◆ FEATURE_MODIFIED

const std::string GNEAttributeCarrier::FEATURE_MODIFIED = "modified"
static

feature has been manually modified (implies approval)

Definition at line 413 of file GNEAttributeCarrier.h.

Referenced by GNEJunction::markAsModified(), and GNEConnectorFrame::onCmdClearSelectedConnections().

◆ INVALID_POSITION

const double GNEAttributeCarrier::INVALID_POSITION = -1000000
static

default value for invalid positions (used by POIs and Polygons)

Definition at line 523 of file GNEAttributeCarrier.h.

◆ myAllowedTags

std::map< SumoXMLTag, GNEAttributeCarrier::TagValues > GNEAttributeCarrier::myAllowedTags
staticprotected

◆ mySelected

◆ myTag

const SumoXMLTag GNEAttributeCarrier::myTag
protected

the xml tag to which this attribute carrier corresponds

Definition at line 751 of file GNEAttributeCarrier.h.

Referenced by getIcon(), and getTag().


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