예제 #1
0
def screenshot(viewID, filename):
    """screenshot(string, string) -> None
    
    Save a screenshot for the given view to the given filename.
    The fileformat is guessed from the extension, the available 
    formats differ from platform to platform but should at least
    include ps, svg and pdf, on linux probably gif, png and jpg as well.
    """
    trace._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_SCREENSHOT, viewID, filename)
예제 #2
0
def setShapeClass(typeID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
예제 #3
0
def setEmissionClass(typeID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
예제 #4
0
def trackVehicle(viewID, vehID):
    """trackVehicle(string, string) -> None
    
    Start visually tracking the given vehicle on the given view.
    """
    trace._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_TRACK_VEHICLE, viewID, vehID)
예제 #5
0
def setProgram(tlsID, programID):
    trace._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID,
                         programID)
예제 #6
0
def setSchema(viewID, schemeName):
    """setSchema(string, string) -> None
    
    Set the current coloring scheme for the given view.
    """
    trace._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_SCHEMA, viewID, schemeName)
예제 #7
0
def setProgram(tlsID, programID):
    trace._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
예제 #8
0
def setRouteID(vehID, routeID):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID,
                         routeID)
예제 #9
0
def setVehicleClass(vehID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_VEHICLECLASS, vehID, clazz)
예제 #10
0
def setRedYellowGreenState(tlsID, state):
    trace._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)
예제 #11
0
def setRouteID(vehID, routeID):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
예제 #12
0
def changeTarget(vehID, edgeID):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_CHANGETARGET, vehID, edgeID)
예제 #13
0
def setVehicleClass(vehID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_VEHICLECLASS,
                         vehID, clazz)
예제 #14
0
def setEmissionClass(typeID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS,
                         typeID, clazz)
예제 #15
0
def setRedYellowGreenState(tlsID, state):
    trace._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE,
                         tlsID, state)
예제 #16
0
def setShapeClass(typeID, clazz):
    trace._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS,
                         typeID, clazz)
예제 #17
0
def changeTarget(vehID, edgeID):
    trace._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_CHANGETARGET,
                         vehID, edgeID)