def redraw(self, current_track :Track, track_graphics, analyzer): track_graphics.reset_to_blank() current_track.configure_track_graphics(track_graphics) for do in self.drawing_order: if do == "G" and self.grid_on: current_track.draw_grid(track_graphics, COLOUR_GREY) if do == "T": current_track.draw_track_edges(track_graphics, self.track_colour) # current_track.draw_section_dividers(track_graphics, self.track_colour) current_track.draw_starting_line(track_graphics, self.track_colour) if self.waypoints_on: current_track.draw_waypoints(track_graphics, self.track_colour, self.waypoint_minor_size, self.waypoint_major_size) if do == "A": analyzer.redraw()
def redraw(self, current_track :Track, track_graphics, analyzer, background_analyser, episode_filter: EpisodeFilter): analyzer.recalculate() if background_analyser: background_analyser.recalculate() track_graphics.reset_to_blank() if self.zoom_in and self.zoom_x: track_graphics.set_track_area(self.zoom_x, self.zoom_y, self.zoom_x2, self.zoom_y2) else: current_track.configure_track_graphics(track_graphics) for do in self.drawing_order: if do == "G" and self.grid_on: current_track.draw_grid(track_graphics, COLOUR_GREY) if do == "T": current_track.draw_track_edges(track_graphics, self.track_colour) if episode_filter.filter_complete_section: (start, finish) = episode_filter.filter_complete_section current_track.draw_section_highlight(track_graphics, self.track_colour, start, finish) current_track.draw_starting_line(track_graphics, self.track_colour) if self.sectors_on: current_track.draw_sector_dividers(track_graphics, self.track_colour) current_track.draw_sector_labels(track_graphics, self.track_colour) if self.waypoints_on: current_track.draw_waypoints(track_graphics, self.track_colour, self.waypoint_minor_size, self.waypoint_major_size) if self.waypoint_labels_on: current_track.draw_waypoint_labels(track_graphics, self.track_colour, 10) if do == "A": if background_analyser: background_analyser.redraw() analyzer.redraw() if do == "N" and self.annotations_on: current_track.draw_annotations(track_graphics)