Inheritance diagram for visualizer.core.Node:Public Member Functions | |
| def | __init__ |
| def | add_link |
| def | get_position |
| def | has_mobility |
| def | on_enter_notify_event |
| def | on_leave_notify_event |
| def | remove_link |
| def | set_color |
| def | set_label |
| def | set_position |
| def | set_size |
| def | set_svg_icon |
| def | tooltip_query |
Public Attributes | |
| canvas_item | |
| links | |
| menu | |
| node_index | |
| svg_align_x | |
| svg_align_y | |
| svg_item | |
| visualizer | |
Properties | |
| highlighted = property(_get_highlighted, _set_highlighted) | |
| selected = property(_get_selected, _set_selected) | |
Private Member Functions | |
| def | _get_highlighted |
| def | _get_selected |
| def | _set_highlighted |
| def | _set_selected |
| def | _update_appearance |
| def | _update_position |
| def | _update_svg_position |
Private Attributes | |
| _color | |
| _has_mobility | |
| _highlighted | |
| _label | |
| _label_canvas_item | |
| _selected | |
| _size | |
Static Private Attributes | |
| dictionary | __gsignals__ |
|
private |
Update the node aspect to reflect the selected/highlighted state
Definition at line 237 of file core.py.
References visualizer.core.Node._color, visualizer.core.Node._has_mobility, visualizer.core.Node._label, visualizer.core.Node._label_canvas_item, visualizer.core.Node._selected, visualizer.core.Node._size, visualizer.core.Node._update_appearance(), visualizer.core.Node._update_position(), visualizer.core.Node._update_svg_position(), visualizer.core.Node.get_position(), grid.ScaleRenderer.get_position(), visualizer.core.Node.highlighted, visualizer.core.Node.links, visualizer.core.Node.node_index, visualizer.core.Node.set_position(), and visualizer.core.Node.svg_item.
Referenced by visualizer.core.Node._update_appearance(), and visualizer.core.Node.set_svg_icon().
| def visualizer.core.Node.set_svg_icon | ( | self, | |
| file_base_name, | |||
width = None, |
|||
height = None, |
|||
align_x = 0.5, |
|||
align_y = 0.5 |
|||
| ) |
Set a background SVG icon for the node. @param file_base_name: base file name, including .svg extension, of the svg file. Place the file in the folder src/contrib/visualizer/resource. @param width: scale to the specified width, in meters @param width: scale to the specified height, in meters @param align_x: horizontal alignment of the icon relative to the node position, from 0 (icon fully to the left of the node) to 1.0 (icon fully to the right of the node) @param align_y: vertical alignment of the icon relative to the node position, from 0 (icon fully to the top of the node) to 1.0 (icon fully to the bottom of the node)
Definition at line 103 of file core.py.
References visualizer.core.Node._highlighted, visualizer.core.Node._label, visualizer.core.Node._selected, visualizer.core.Node._size, visualizer.core.Node._update_appearance(), visualizer.core.Node._update_svg_position(), visualizer.core.Node.highlighted, visualizer.core.Node.node_index, visualizer.core.Node.svg_align_x, visualizer.core.Node.svg_align_y, and visualizer.core.Node.svg_item.
|
staticprivate |