def draw_waypoints(self, track_graphics: TrackGraphics, colour: str, minor_size: int, major_size: int): assert major_size >= minor_size for (i, p) in enumerate(self._drawing_points): if i % 10 == 0: track_graphics.plot_dot(p.middle, major_size, colour) else: track_graphics.plot_dot(p.middle, minor_size, colour)
def OLD_draw_for_route_plotting(self, track_graphics: TrackGraphics, colour): track_graphics.plot_line(self.drawing_points[0].left, self.drawing_points[0].right, 3, colour) self.draw_track_edges(track_graphics, colour) for (i, p) in enumerate(self.drawing_points): if i % 10 == 0: size = 4 else: size = 2 track_graphics.plot_dot(p.middle, size, colour) if p.is_divider: track_graphics.plot_line(p.left, p.right, 3, colour) if p.is_center: # self._plot_label(track_graphics, p.middle, p.section, 30) pass # NOT WORKING VERY WELL AT CHOOSING GOOD POSITION
def draw_at_point_(self, track_graphics: TrackGraphics, point): track_graphics.plot_dot(point, 3, self.colour) track_graphics.plot_angle_line(point, self.bearing, self.length, 2, self.colour) track_graphics.plot_angle_line(point, self.bearing + self.angular_width / 2, self.length, 1, self.colour) track_graphics.plot_angle_line(point, self.bearing - self.angular_width / 2, self.length, 1, self.colour)
def draw_at_point_(self, track_graphics: TrackGraphics, point): track_graphics.plot_dot(point, 4, self.colour)
def draw(self, track_graphics: TrackGraphics, track_drawing_points, track_width): track_graphics.plot_dot((self.x, self.y), 4, self.colour)