 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
38 {}, {}, {}, {rerouterIntervalDialog->getEditedAdditional()}, {}, {}, {}, {}, {}, {}),
39 myClosedEdge(rerouterIntervalDialog->getEditedAdditional()->getParentAdditionals().at(0)->getChildEdges().at(0)) {
47 {}, {}, {}, {rerouterIntervalParent}, {}, {}, {}, {}, {}, {}),
48 myClosedEdge(closedEdge),
49 myPermissions(permissions) {
bool isAttributeEnabled(SumoXMLAttr key) const
SVCPermissions myPermissions
An Element which don't belongs to GNENet but has influency in the simulation.
std::string getParametersStr() const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
const std::string & getAdditionalID() const
const std::string getID() const
function to support debugging
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEEdge * myClosedEdge
closed edge
void changeAdditionalID(const std::string &newID)
change ID of additional
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
A road/street connecting two junctions (netedit-version)
friend class GNEChange_Attribute
declare friend class
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GNENet * getNet() const
get the net object
SVCPermissions parseVehicleClasses(const std::string &allowedS)
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes g...
Position getPositionInView() const
Returns position of additional in view.
const std::vector< GNEAdditional * > & getParentAdditionals() const
get parent additionals
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
A class that stores a 2D geometrical boundary.
parameters "key1=value1|key2=value2|...|keyN=valueN"
const std::string & getVehicleClassNames(SVCPermissions permissions, bool expand)
Returns the ids of the given classes, divided using a ' '.
A point in 2D or 3D with translation and scaling methods.
~GNEClosingReroute()
destructor
std::string getAttribute(SumoXMLAttr key) const
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void setParametersStr(const std::string ¶msString)
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
static bool areParametersValid(const std::string &value, bool report=false)
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
void updateGeometry()
update pre-computed geometry information
double getAttributeDouble(SumoXMLAttr key) const
const std::string & getTagStr() const
get tag assigned to this object in string format
Stores the information about how to visualize structures.
GNEClosingReroute(GNERerouterIntervalDialog *rerouterIntervalDialog)
constructor (Used in GNERerouterIntervalDialog)
std::string getParentName() const
Returns the name of the parent object.
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
SVCPermissions invertPermissions(SVCPermissions permissions)
negate the given permissions and ensure that only relevant bits are set
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Dialog for edit rerouter intervals.
parent of an additional element
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList