def draw_objects(self, objects, bounds, img):
        '''draw objects on the image'''
        keys = sorted(objects.keys())
        for k in keys:
            obj = objects[k]
            if not self.state.legend and isinstance(obj, SlipFlightModeLegend):
                continue
            bounds2 = obj.bounds()
            if bounds2 is None or mp_util.bounds_overlap(bounds, bounds2):
                obj.draw(img, self.pixmapper, bounds)
def draw_objects ( self , objects , bounds , img ) : keys = sorted ( objects . keys ( ) ) for k in keys : obj = objects [ k ] if not self . state . legend and isinstance ( obj , SlipFlightModeLegend ) : continue bounds2 = obj . bounds ( ) if bounds2 is None or mp_util . bounds_overlap ( bounds , bounds2 ) : obj . draw ( img , self . pixmapper , bounds )
draw objects on the image