neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to additional mode netedit.changeShape("poi") # change color using dialog netedit.changeColorUsingDialog(2, 5) # create poi netedit.leftClick(match, 100, 50) # change color manually (invalid) netedit.modifyShapeDefaultValue(3, "Vlue") # try to create POI netedit.leftClick(match, 150, 50) # change color manually (valid) netedit.modifyShapeDefaultValue(3, "blue") # create POI netedit.leftClick(match, 150, 50) # change type netedit.modifyShapeDefaultValue(4, "poi_test") # create POI netedit.leftClick(match, 200, 50)
import neteditTestFunctions as netedit # noqa # Open netedit neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to shape mode netedit.changeShape("poiLane") # create poi netedit.leftClick(match, 100, 100) # change color to white (To see icon) netedit.modifyShapeDefaultValue(3, "white") # Change parameter 6 with a valid value netedit.modifyAttribute(6, "10") # Change parameter 6 with a valid value netedit.modifyAttribute(7, "10") # change imgfile (valid) netedit.modifyShapeDefaultValue(8, "berlin_icon.ico") # create poi netedit.leftClick(match, 100, 350) # go to move mode netedit.moveMode()
neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to shape mode netedit.changeShape("poly") # change color using dialog netedit.changeColorUsingDialog(2, 5) # create polygon netedit.createSquaredPoly(match, 100, 50, 100, True) # change color manually (invalid) netedit.modifyShapeDefaultValue(3, "Vlue") # try to create polygon netedit.createSquaredPoly(match, 200, 50, 100, True) # change color manually (valid) netedit.modifyShapeDefaultValue(3, "red") # create polygon netedit.createSquaredPoly(match, 200, 50, 100, True) # change block netedit.modifyShapeDefaultBoolValue(4) # create polygon netedit.createSquaredPoly(match, 300, 50, 100, True)