Visuals

class discopygal_tools.solver_viewer.visuals.Visuals(gui, color_provider=None)

Bases: object

A class to manage the visualization of graph and path elements.

add_visual_edge(p: Point_2, q: Point_2, vertex_color: str, edge_color: str, edge_opacity: float, drawn_vertices: dict | None, drawn_edges: dict | None, line_width=None) None

Add a visual edge to the scene.

clear(graph: bool = False, paths: bool = False) None

Clear graph items, path items, or both.

clear_bounding_box() None

Clear the bounding box edges from the scene.

draw_bounding_box(solver) None

Draw the bounding box for the given solver.

draw_paths(paths, should_show_robot_graph) None

Draw the paths for the given path collection.

show_graph(solver_graph, should_show_robot_graph) None

Show the graph edges and vertices in the scene.