예제 #1
0
 def draw_objects(self, objects, bounds, img):
     '''draw objects on the image'''
     keys = objects.keys()
     keys.sort()
     for k in keys:
         obj = objects[k]
         bounds2 = obj.bounds()
         if bounds2 is None or mp_util.bounds_overlap(bounds, bounds2):
             obj.draw(img, self.pixmapper, bounds)
예제 #2
0
 def draw_objects(self, objects, bounds, img):
     '''draw objects on the image'''
     keys = objects.keys()
     keys.sort()
     for k in keys:
         obj = objects[k]
         bounds2 = obj.bounds()
         if bounds2 is None or mp_util.bounds_overlap(bounds, bounds2):
             obj.draw(img, self.pixmapper, bounds)
예제 #3
0
 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)
예제 #4
0
 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)