174 myNet->deleteNetworkElement(
this,
myNet->getViewNet()->getUndoList());
190 if (
attrs.count(key) == 0) {
212 if (
attrs.count(key) == 0) {
218 if (
attrs.count(key) == 0) {
338 if (
myNet->getViewNet()->getViewParent()->getCreateEdgeFrame()->shown()) {
339 myNet->getViewNet()->getViewParent()->getCreateEdgeFrame()->getLaneTypeAttributes()->refreshAttributesEditor();
const std::string invalid_return< std::string >::value
const SVCPermissions SVCAll
all VClasses are allowed
SVCPermissions invertPermissions(SVCPermissions permissions)
negate the given permissions and ensure that only relevant bits are set
const std::string & getVehicleClassNames(SVCPermissions permissions, bool expand)
Returns the ids of the given classes, divided using a ' '.
SVCPermissions parseVehicleClasses(const std::string &allowedS)
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes g...
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
@ SUMO_TAG_LANETYPE
lane type
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A class that stores a 2D geometrical boundary.
double getCommonAttributeDouble(SumoXMLAttr key) const
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc....
PositionVector getCommonAttributePositionVector(SumoXMLAttr key) const
void setCommonAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
const std::string & getTagStr() const
get tag assigned to this object in string format
Position getCommonAttributePosition(SumoXMLAttr key) const
static bool canParse(const std::string &string)
true if a value of type T can be parsed from string
GNENet * myNet
pointer to net
GNENet * getNet() const
get pointer to net
bool isCommonAttributeValid(SumoXMLAttr key, const std::string &value) const
std::string getCommonAttribute(SumoXMLAttr key) const
void updateGeometry() override
update pre-computed geometry information
bool checkDrawMoveContour() const override
check if draw move contour (red)
GNEEdgeType * myEdgeTypeParent
pointer to EdgeTypeParent
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
bool isValid(SumoXMLAttr key, const std::string &value) override
Parameterised * getParameters() override
get parameters associated with this laneType
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
Position getPositionInView() const
Returns position of hierarchical element in view.
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
bool checkDrawRelatedContour() const override
check if draw related contour (cyan)
bool checkDrawOverContour() const override
check if draw over contour (orange)
double getAttributeDouble(SumoXMLAttr key) const override
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this laneType
GNELaneType(GNEEdgeType *edgeTypeParent)
Constructor.
PositionVector getAttributePositionVector(SumoXMLAttr key) const override
void copyLaneType(GNELaneType *originalLaneType, GNEUndoList *undoList)
copy values of given laneType in current laneType
bool checkDrawDeleteContour() const override
check if draw delete contour (pink/white)
bool checkDrawFromContour() const override
check if draw from contour (green)
void updateGLObject() override
update GLObject (geometry, ID, etc.)
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
GNEEdgeType * getEdgeTypeParent() const
get edge type parent
bool checkDrawToContour() const override
check if draw from contour (magenta)
Position getAttributePosition(SumoXMLAttr key) const override
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
bool checkDrawSelectContour() const override
check if draw select contour (blue)
bool checkDrawDeleteContourSmall() const override
check if draw delete contour small (pink/white)
~GNELaneType()
Destructor.
void deleteGLObject() override
delete element
std::string getAttribute(SumoXMLAttr key) const override
GNEContour myNetworkElementContour
network element contour
GNENetworkElement(GNENet *net, const std::string &id, SumoXMLTag tag)
Constructor.
Stores the information about how to visualize structures.
A storage for available edgeTypes of edges.
static OptionsCont & getOptions()
Retrieves the options.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.
double speed
The maximal velocity on a lane in m/s.
LaneTypeDefinition()
default Constructor
SVCPermissions permissions
List of vehicle edgeTypes that are allowed on this lane.
std::set< SumoXMLAttr > attrs
The attributes which have been set.
double width
lane width [m]