37 GNENetworkElement(edgeTypeParent->getNet(),
"",
GLO_LANETYPE,
SUMO_TAG_LANETYPE,
GUIIconSubSys::getIcon(
GUIIcon::
LANETYPE), {}, {}, {}, {}, {}, {}),
38 myEdgeTypeParent(edgeTypeParent) {
43 GNENetworkElement(edgeTypeParent->getNet(),
"",
GLO_LANETYPE,
SUMO_TAG_LANETYPE,
GUIIconSubSys::getIcon(
GUIIcon::
LANETYPE), {}, {}, {}, {}, {}, {}),
45 myEdgeTypeParent(edgeTypeParent) {
180 if (
attrs.count(key) == 0) {
202 if (
attrs.count(key) == 0) {
208 if (
attrs.count(key) == 0) {
233 if (value.empty() || (value ==
"default")) {
236 return canParse<double>(value) && (parse<double>(value) > 0);
242 if (value.empty() || (value ==
"-1") || (value ==
"default")) {
245 return canParse<double>(value);
270 if (value.empty() || (value ==
"default")) {
274 speed = parse<double>(value);
308 if (value.empty() || (value ==
"-1") || (value ==
"default")) {
312 width = parse<double>(value);
GUIIcon
An enumeration of icons used by the gui applications.
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.
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * myNet
pointer to net
void refreshAttributesCreator()
refresh attribute creator
Boundary getContourBoundary() const
get contour boundary
GNEAttributesCreator * getLaneTypeAttributes() const
get laneType attributes
int getLaneTypeIndex(const GNELaneType *laneType) const
get laneType index
bool checkDrawDeleteContour() const
check if draw delete contour (pink/white)
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)
remove geometry point in the clicked position
GNEEdgeType * myEdgeTypeParent
pointer to EdgeTypeParent
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
bool checkDrawOverContour() const
check if draw over contour (orange)
Position getPositionInView() const
Returns position of hierarchical element in view.
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
void updateGeometry()
update pre-computed geometry information
bool checkDrawMoveContour() const
check if draw move contour (red)
bool isValid(SumoXMLAttr key, const std::string &value)
bool checkDrawRelatedContour() const
check if draw related contour (cyan)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
std::string getAttribute(SumoXMLAttr key) const
void deleteGLObject()
delete element
const Parameterised::Map & getACParametersMap() const
get parameters map
GNELaneType(GNEEdgeType *edgeTypeParent)
Constructor.
void copyLaneType(GNELaneType *originalLaneType, GNEUndoList *undoList)
copy values of given laneType in current laneType
GNEMoveOperation * getMoveOperation()
get move operation
GNEEdgeType * getEdgeTypeParent() const
get edge type parent
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
bool checkDrawSelectContour() const
check if draw select contour (blue)
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
~GNELaneType()
Destructor.
bool checkDrawToContour() const
check if draw from contour (magenta)
void updateGLObject()
update GLObject (geometry, ID, etc.)
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
bool checkDrawFromContour() const
check if draw from contour (green)
void deleteNetworkElement(GNENetworkElement *networkElement, GNEUndoList *undoList)
delete network element
GNEViewNet * getViewNet() const
get view net
GNEContour myNetworkElementContour
network element contour
GNEViewParent * getViewParent() const
get the net object
GNEUndoList * getUndoList() const
get the undoList object
GNECreateEdgeFrame * getCreateEdgeFrame() const
get frame for NETWORK_CREATEEDGE
Stores the information about how to visualize structures.
static OptionsCont & getOptions()
Retrieves the options.
static bool areParametersValid(const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
std::map< std::string, std::string > Map
parameters map
void setParametersStr(const std::string ¶msString, const std::string kvsep="=", const std::string sep="|")
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
const Parameterised::Map & getParametersMap() const
Returns the inner key/value map.
std::string getParametersStr(const std::string kvsep="=", const std::string sep="|") const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
A point in 2D or 3D with translation and scaling methods.
double speed
The maximal velocity on a lane in m/s.
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]