def __init__(self,bt1,bt2,color,width=3, drawing_order = 5): SimViz.__init__(self,drawing_order) self.bt1 = bt1; self.bt2 = bt2; self.color = color; self.width=width
def __init__(self,location,label,color,width=5, drawing_order=0): SimViz.__init__(self,drawing_order) self.label = label; self.loc = location; self.color = color; self.width = width
def __init__(self,matchup,color,width=3,diameter=20,duration=10, drawing_order=10): """matchup should be a GPSBusSchedule object""" SimViz.__init__(self,drawing_order) self.matchup = matchup self.color = color self.width = width self.duration = duration self.diam = diameter self.xys = []
def __init__(self, getLocAtTime1, getLocAtTime2, linecolor=red, linewidth=3, drawingOrder=0): """ getLocAtTime 1 and 2 represent the location of the 1st and 2nd endpoint of this lasso, respectively. They should take a single argument (time) and return the (lat,lon) of that endpoint. """ SimViz.__init__(self, drawingOrder); self.xy1 = None self.xy2 = None self.linecolor = linecolor self.linewidth = linewidth self.getLoc1 = getLocAtTime1 self.getLoc2 = getLocAtTime2
def __init__(self, getLocAtTime1, getLocAtTime2, linecolor=red, linewidth=3, drawingOrder=0): """ getLocAtTime 1 and 2 represent the location of the 1st and 2nd endpoint of this lasso, respectively. They should take a single argument (time) and return the (lat,lon) of that endpoint. """ SimViz.__init__(self, drawingOrder) self.xy1 = None self.xy2 = None self.linecolor = linecolor self.linewidth = linewidth self.getLoc1 = getLocAtTime1 self.getLoc2 = getLocAtTime2