
Public Member Functions | |
| def | set_styles (self, selected_paths, depth, max_depth, items, subgraph_shapes, containers) |
Public Member Functions inherited from smach_viewer.smach_viewer_base.ContainerNode | |
| def | __init__ (self, server_name, msg) |
| def | get_dotcode (self, selected_paths, closed_paths, depth, max_depth, containers, show_all, label_wrapper, attrs={}) |
| def | update_status (self, msg) |
| def | update_structure (self, msg) |
Definition at line 103 of file smach_viewer.py.
| def smach_viewer.WxContainerNode.set_styles | ( | self, | |
| selected_paths, | |||
| depth, | |||
| max_depth, | |||
| items, | |||
| subgraph_shapes, | |||
| containers | |||
| ) |
Update the styles for a list of containers without regenerating the dotcode. This function is called recursively to update an entire tree. @param selected_paths: A list of paths to nodes that are currently selected. @param depth: The depth to start traversing the tree @param max_depth: The depth to traverse into the tree @param items: A dict of all the graph items, keyed by url @param subgraph_shapes: A dictionary of shapes from the rendering engine @param containers: A dict of all the containers
if depth == 0:
container_shapes = subgraph_shapes['cluster_'+self._path]
container_color = (0,0,0,0)
container_fillcolor = (0,0,0,0)
for shape in container_shapes:
shape.pen.color = container_color
shape.pen.fillcolor = container_fillcolor
Definition at line 104 of file smach_viewer.py.