SUMO - Simulation of Urban MObility
GNEShape Class Referenceabstract

#include <GNEShape.h>

Inheritance diagram for GNEShape:
Inheritance graph
Collaboration diagram for GNEShape:
Collaboration graph

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...
 
void drawLockIcon (const Position &pos, double layer, double size=0.5) const
 draw lock icon More...
 
virtual std::string getAttributeForSelection (SumoXMLAttr key) const
 method for getting the attribute in the context of object selection More...
 
virtual GUIGlID getGlID () const =0
 Returns the numerical id of the object. More...
 
FXIcon * getIcon () const
 get FXIcon associated to this AC More...
 
const std::string getID () const
 function to support debugging More...
 
GNENet * getNet () const
 get Net in which this element is placed More...
 
virtual Position getPositionInView () const =0
 Returns position of additional in view. More...
 
SumoXMLTag getTag () const
 get XML Tag assigned to this object More...
 
 GNEShape (GNENet *net, SumoXMLTag tag, bool movementBlocked, bool shapeBlocked)
 Constructor. More...
 
void incRef (const std::string &debugMsg="")
 Increarse reference. More...
 
bool isMovementBlocked () const
 return true if movement is blocked More...
 
bool isShapeBlocked () const
 return true if shape is blocked 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 void updateGeometry (bool updateGrid)=0
 update pre-computed geometry information More...
 
virtual void writeShape (OutputDevice &device)=0
 writte shape element into a xml file More...
 
 ~GNEShape ()
 Destructor. More...
 
functions for edit geometry

begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree)

virtual void startGeometryMoving ()=0
 
virtual void endGeometryMoving ()=0
 begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree) More...
 
inherited from GUIPolygon/GUIPointOfInterest
virtual GUIGLObjectPopupMenu * getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)=0
 Returns an own popup-menu. More...
 
virtual GUIParameterTableWindow * getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)=0
 Returns an own parameter window. More...
 
virtual Boundary getCenteringBoundary () const =0
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
virtual void drawGL (const GUIVisualizationSettings &s) const =0
 Draws the object. More...
 
inherited from GNEAttributeCarrier

select attribute carrier using GUIGlobalSelection

void selectAttributeCarrier (bool changeFlag=true)
 
void unselectAttributeCarrier (bool changeFlag=true)
 unselect attribute carrier using GUIGlobalSelection More...
 
bool isAttributeCarrierSelected () const
 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
 
std::string getPopUpID () const
 get PopPup ID (Used in AC Hierarchy) More...
 
std::string getHierarchyName () const
 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...
 

Static Protected Member Functions

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

Protected Attributes

bool myBlockMovement
 flag to block movement More...
 
bool myBlockShape
 flag for block shape More...
 
Boundary myMovingGeometryBoundary
 boundary used during moving of elements More...
 
GNENet * myNet
 the net to inform about updates More...
 
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...
 

Private Member Functions

 GNEShape (const GNEShape &)=delete
 Invalidated copy constructor. More...
 
virtual void mouseOverObject (const GUIVisualizationSettings &s) const =0
 method for check if mouse is over objects More...
 
GNEShape & operator= (const GNEShape &)=delete
 Invalidated assignment operator. More...
 
virtual void setAttribute (SumoXMLAttr key, const std::string &value)=0
 set attribute after validation More...
 

Detailed Description

Definition at line 49 of file GNEShape.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

◆ GNEShape() [1/2]

GNEShape::GNEShape ( GNENet *  net,
SumoXMLTag  tag,
bool  movementBlocked,
bool  shapeBlocked 
)

Constructor.

Parameters
[in]netThe net to inform about gui updates
[in]tagsumo xml tag of the element
[in]movementBlockedif movement of POI is blocked
[in]shapeBlockedif shape of POI is blocked

Definition at line 39 of file GNEShape.cpp.

◆ ~GNEShape()

GNEShape::~GNEShape ( )

Destructor.

Definition at line 47 of file GNEShape.cpp.

◆ GNEShape() [2/2]

GNEShape::GNEShape ( const GNEShape &  )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addGenericParameter()

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

add generic parameter

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ allowedAdditionalTags()

◆ allowedNetElementsTags()

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

◆ allowedShapeTags()

◆ allowedTags()

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

get all editable for tag elements of all types

Definition at line 822 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::fillAttributeCarriers(), and GNEAttributeCarrier::myAllowedTags.

◆ canParse() [1/2]

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

◆ canParse() [2/2]

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

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

Definition at line 499 of file GNEAttributeCarrier.h.

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

◆ decRef()

◆ drawGL()

virtual void GNEShape::drawGL ( const GUIVisualizationSettings &  s) const
pure virtual

Draws the object.

Parameters
[in]sThe settings for the current view (may influence drawing)
See also
GUIGlObject::drawGL

Implemented in GNEPOI, and GNEPoly.

◆ drawLockIcon()

◆ endGeometryMoving()

virtual void GNEShape::endGeometryMoving ( )
pure virtual

begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree)

Implemented in GNEPOI, and GNEPoly.

◆ fillAttributeCarriers()

void GNEAttributeCarrier::fillAttributeCarriers ( )
staticprotectedinherited

fill Attribute Carriers

Definition at line 949 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::ATTRPROPERTY_ANGLE, GNEAttributeCarrier::ATTRPROPERTY_BOOL, GNEAttributeCarrier::ATTRPROPERTY_COLOR, GNEAttributeCarrier::ATTRPROPERTY_COMBINABLE, GNEAttributeCarrier::ATTRPROPERTY_DEFAULTVALUE, GNEAttributeCarrier::ATTRPROPERTY_DISCRETE, GNEAttributeCarrier::ATTRPROPERTY_FILENAME, GNEAttributeCarrier::ATTRPROPERTY_FLOAT, GNEAttributeCarrier::ATTRPROPERTY_INT, GNEAttributeCarrier::ATTRPROPERTY_LIST, GNEAttributeCarrier::ATTRPROPERTY_NONEDITABLE, GNEAttributeCarrier::ATTRPROPERTY_OPTIONAL, GNEAttributeCarrier::ATTRPROPERTY_POSITION, GNEAttributeCarrier::ATTRPROPERTY_POSITIVE, GNEAttributeCarrier::ATTRPROPERTY_PROBABILITY, GNEAttributeCarrier::ATTRPROPERTY_STRING, GNEAttributeCarrier::ATTRPROPERTY_SYNONYM, GNEAttributeCarrier::ATTRPROPERTY_TIME, GNEAttributeCarrier::ATTRPROPERTY_UNIQUE, GNEAttributeCarrier::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, GNEAttributeCarrier::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, GNEAttributeCarrier::TAGPROPERTY_ADDITIONAL, GNEAttributeCarrier::TAGPROPERTY_AUTOMATICSORTING, GNEAttributeCarrier::TAGPROPERTY_BLOCKMOVEMENT, GNEAttributeCarrier::TAGPROPERTY_BLOCKSHAPE, GNEAttributeCarrier::TAGPROPERTY_CLOSESHAPE, GNEAttributeCarrier::TAGPROPERTY_DETECTOR, GNEAttributeCarrier::TAGPROPERTY_DIALOG, GNEAttributeCarrier::TAGPROPERTY_DRAWABLE, GNEAttributeCarrier::TAGPROPERTY_GEOPOSITION, GNEAttributeCarrier::TAGPROPERTY_GEOSHAPE, GNEAttributeCarrier::TAGPROPERTY_MINIMUMCHILDS, GNEAttributeCarrier::TAGPROPERTY_NETELEMENT, GNEAttributeCarrier::TAGPROPERTY_PARENT, GNEAttributeCarrier::TAGPROPERTY_REPARENT, GNEAttributeCarrier::TAGPROPERTY_SELECTABLE, GNEAttributeCarrier::TAGPROPERTY_SHAPE, GNEAttributeCarrier::TAGPROPERTY_STOPPINGPLACE, GNEAttributeCarrier::TAGPROPERTY_SYNONYM, GNEAttributeCarrier::TAGPROPERTY_WRITECHILDSSEPARATE, toString(), SUMOXMLDefinitions::TrafficLightTypes, NBEdge::UNSPECIFIED_CONTPOS, NBEdge::UNSPECIFIED_SPEED, and NBEdge::UNSPECIFIED_VISIBILITY_DISTANCE.

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

◆ getAttribute()

virtual std::string GNEShape::getAttribute ( SumoXMLAttr  key) const
pure virtual

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

Referenced by GNENet::insertShape(), and GNENet::removeShape().

◆ getAttributeForSelection()

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

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 GNEAttributeCarrier::getAttribute().

◆ getCenteringBoundary()

virtual Boundary GNEShape::getCenteringBoundary ( ) const
pure virtual

Returns the boundary to which the view shall be centered in order to show the object.

Implemented in GNEPOI, and GNEPoly.

◆ getCircleResolution()

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

◆ getGenericParameters()

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

return generic parameters as vector of pairs format

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ getGenericParametersStr()

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

return generic parameters in string format

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ getGlID()

virtual GUIGlID GNEShape::getGlID ( ) const
pure virtual

Returns the numerical id of the object.

Implemented in GNEPOI, and GNEPoly.

Referenced by selectAttributeCarrier(), and unselectAttributeCarrier().

◆ getHierarchyName()

std::string GNEShape::getHierarchyName ( ) const
virtual

get Hierarchy Name (Used in AC Hierarchy)

Implements GNEAttributeCarrier.

Definition at line 142 of file GNEShape.cpp.

References GNEAttributeCarrier::getTag(), and toString().

◆ getHigherNumberOfAttributes()

int GNEAttributeCarrier::getHigherNumberOfAttributes ( )
staticinherited

◆ getIcon()

◆ getID()

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

function to support debugging

Implements GNEReferenceCounter.

Definition at line 798 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::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(), 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_Connection::undo(), GNEChange_Additional::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().

◆ getNet()

GNENet * GNEShape::getNet ( ) const

get Net in which this element is placed

Definition at line 51 of file GNEShape.cpp.

References myNet.

◆ getParameterWindow()

virtual GUIParameterTableWindow* GNEShape::getParameterWindow ( GUIMainWindow &  app,
GUISUMOAbstractView &  parent 
)
pure virtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See also
GUIGlObject::getParameterWindow

Implemented in GNEPOI, and GNEPoly.

◆ getPopUpID()

std::string GNEShape::getPopUpID ( ) const
virtual

get PopPup ID (Used in AC Hierarchy)

Implements GNEAttributeCarrier.

Definition at line 136 of file GNEShape.cpp.

References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), and toString().

◆ getPopUpMenu()

virtual GUIGLObjectPopupMenu* GNEShape::getPopUpMenu ( GUIMainWindow &  app,
GUISUMOAbstractView &  parent 
)
pure virtual

Returns an own popup-menu.

Parameters
[in]appThe application needed to build the popup-menu
[in]parentThe parent window needed to build the popup-menu
Returns
The built popup-menu
See also
GUIGlObject::getPopUpMenu

Implemented in GNEPOI, and GNEPoly.

◆ getPositionInView()

virtual Position GNEShape::getPositionInView ( ) const
pure virtual

Returns position of additional in view.

Implemented in GNEPOI, and GNEPoly.

◆ getTag()

SumoXMLTag GNEAttributeCarrier::getTag ( ) const
inherited

get XML Tag assigned to this object

Definition at line 782 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::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(), 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(), 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(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::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(), GNEDetectorE1::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorExit::setAttribute(), GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEParkingArea::setAttribute(), GNEDetectorE2::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEDetectorE3::setAttribute(), GNERouteProbReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNECrossing::setAttribute(), GNERerouterInterval::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(), GNELane::setAttribute(), GNEPOI::setAttribute(), GNEJunction::setAttribute(), GNEEdge::setAttribute(), GNEAdditional::setDefaultValues(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditional::sortAdditionalChilds(), GNEChange_Junction::undo(), GNEChange_Shape::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)
staticinherited

get Tag Properties

Definition at line 807 of file GNEAttributeCarrier.cpp.

References GNEAttributeCarrier::fillAttributeCarriers(), GNEAttributeCarrier::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(), GNEAttributeCarrier::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()

bool GNEShape::isAttributeCarrierSelected ( ) const
virtual

◆ isGenericParametersValid()

◆ isMovementBlocked()

bool GNEShape::isMovementBlocked ( ) const

return true if movement is blocked

Definition at line 57 of file GNEShape.cpp.

References myBlockMovement.

Referenced by GNEViewNet::onLeftBtnPress().

◆ isShapeBlocked()

bool GNEShape::isShapeBlocked ( ) const

return true if shape is blocked

Definition at line 63 of file GNEShape.cpp.

References myBlockShape.

Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().

◆ isValid()

virtual bool GNEShape::isValid ( SumoXMLAttr  key,
const std::string &  value 
)
pure virtual

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ mouseOverObject()

void GNEShape::mouseOverObject ( const GUIVisualizationSettings &  s) const
privatepure virtual

method for check if mouse is over objects

Implements GNEAttributeCarrier.

Implemented in GNEPoly, and GNEPOI.

Definition at line 148 of file GNEShape.cpp.

◆ operator=()

GNEShape& GNEShape::operator= ( const GNEShape &  )
privatedelete

Invalidated assignment operator.

◆ parse() [1/16]

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

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

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

◆ parse() [2/16]

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

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)
inherited

Definition at line 589 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2int().

◆ parse() [4/16]

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

Definition at line 595 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2double().

◆ parse() [5/16]

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

Definition at line 601 of file GNEAttributeCarrier.cpp.

References TplConvert::_str2Bool().

◆ parse() [6/16]

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

Definition at line 607 of file GNEAttributeCarrier.cpp.

◆ parse() [7/16]

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

Definition at line 613 of file GNEAttributeCarrier.cpp.

References SumoVehicleClassStrings, and SVC_IGNORING.

◆ parse() [8/16]

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

Definition at line 625 of file GNEAttributeCarrier.cpp.

References RGBColor::parseColor().

◆ parse() [9/16]

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

Definition at line 631 of file GNEAttributeCarrier.cpp.

References GeomConvHelper::parseShapeReporting().

◆ parse() [10/16]

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

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)
inherited

Definition at line 657 of file GNEAttributeCarrier.cpp.

References StringTokenizer::getVector().

◆ parse() [12/16]

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

Definition at line 663 of file GNEAttributeCarrier.cpp.

◆ parse() [13/16]

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

Definition at line 674 of file GNEAttributeCarrier.cpp.

◆ parse() [14/16]

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

Definition at line 685 of file GNEAttributeCarrier.cpp.

◆ parse() [15/16]

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

◆ parse() [16/16]

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

◆ parseAttributeFromXML()

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

◆ parseIDs() [1/3]

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

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

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

◆ parseIDs() [2/3]

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

Definition at line 732 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ parseIDs() [3/3]

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

Definition at line 743 of file GNEAttributeCarrier.cpp.

References joinToString().

◆ parseStringToANDBool()

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

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

Definition at line 754 of file GNEAttributeCarrier.cpp.

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

◆ removeGenericParameter()

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

remove generic parameter

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ selectAttributeCarrier()

void GNEShape::selectAttributeCarrier ( bool  changeFlag = true)
virtual

◆ setAttribute() [1/2]

virtual void GNEShape::setAttribute ( SumoXMLAttr  key,
const std::string &  value,
GNEUndoList *  undoList 
)
pure virtual

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ setAttribute() [2/2]

virtual void GNEShape::setAttribute ( SumoXMLAttr  key,
const std::string &  value 
)
privatepure virtual

set attribute after validation

Implements GNEAttributeCarrier.

Implemented in GNEPoly, and GNEPOI.

◆ setGenericParametersStr()

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

set generic parameters in string format

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ startGeometryMoving()

virtual void GNEShape::startGeometryMoving ( )
pure virtual

Implemented in GNEPOI, and GNEPoly.

◆ unreferenced()

◆ unselectAttributeCarrier()

void GNEShape::unselectAttributeCarrier ( bool  changeFlag = true)
virtual

unselect attribute carrier using GUIGlobalSelection

Implements GNEAttributeCarrier.

Definition at line 117 of file GNEShape.cpp.

References GUISelectedStorage::deselect(), getGlID(), gSelected, myNet, and GNEAttributeCarrier::mySelected.

Referenced by GNENet::removeShape(), GNEPOI::setAttribute(), and GNEPoly::setAttribute().

◆ updateGenericParameter()

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

update generic parameter

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ updateGenericParameterValue()

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

update value generic parameter

Implements GNEAttributeCarrier.

Implemented in GNEPOI, and GNEPoly.

◆ updateGeometry()

virtual void GNEShape::updateGeometry ( bool  updateGrid)
pure virtual

update pre-computed geometry information

Note
: must be called when geometry changes (i.e. lane moved) and implemented in ALL childrens

Implemented in GNEPOI, and GNEPoly.

Referenced by GNELane::addShapeChild().

◆ writeShape()

virtual void GNEShape::writeShape ( OutputDevice &  device)
pure virtual

writte shape element into a xml file

Parameters
[in]devicedevice in which write parameters of additional element

Implemented in GNEPOI, and GNEPoly.

Field Documentation

◆ FEATURE_APPROVED

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

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"
staticinherited

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"
staticinherited

Definition at line 407 of file GNEAttributeCarrier.h.

◆ FEATURE_MODIFIED

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

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
staticinherited

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

Definition at line 523 of file GNEAttributeCarrier.h.

◆ myAllowedTags

◆ myBlockMovement

◆ myBlockShape

bool GNEShape::myBlockShape
protected

◆ myMovingGeometryBoundary

Boundary GNEShape::myMovingGeometryBoundary
protected

boundary used during moving of elements

Definition at line 199 of file GNEShape.h.

Referenced by GNEPOI::endGeometryMoving(), GNEPOI::getCenteringBoundary(), and GNEPOI::startGeometryMoving().

◆ myNet

◆ mySelected

◆ myTag

const SumoXMLTag GNEAttributeCarrier::myTag
protectedinherited

the xml tag to which this attribute carrier corresponds

Definition at line 754 of file GNEAttributeCarrier.h.

Referenced by GNEAttributeCarrier::getIcon(), and GNEAttributeCarrier::getTag().


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