Public Member Functions | |
def | __init__ |
def | restore_settings |
def | save_settings |
def | shutdown_plugin |
Public Attributes | |
dot_to_qt | |
dotcode_factory | |
Structures for generating the visualization factory builds generic dotcode items. | |
dotcode_generator | |
initialized | |
Boilerplate RQT gui code. | |
node_completionmodel | |
topic_completionmodel | |
Private Member Functions | |
def | _enable_controls |
def | _fit_in_view |
def | _generate_dotcode |
def | _generate_tool_tip |
def | _load_dot |
def | _redraw_graph_view |
def | _refresh_smach_graph |
def | _save_dot |
def | _save_image |
def | _save_svg |
def | _update_graph_view |
def | _update_smach_graph |
Private Attributes | |
_current_dotcode | |
_graph | |
Member Initialization. | |
_scene | |
Construct the GUI Get the QT .ui file and load it. | |
_widget | |
Static Private Attributes | |
tuple | _deferred_fit_in_view = Signal() |
Definition at line 64 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer.__init__ | ( | self, | |
context | |||
) |
Construct the GUI and initialize the graph.
Definition at line 68 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._enable_controls | ( | self, | |
enabled | |||
) | [private] |
Enable or disable controls for customizing the graph
Definition at line 319 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._fit_in_view | ( | self | ) | [private] |
Scale the scene so that it fits in the window.
Definition at line 330 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._generate_dotcode | ( | self | ) | [private] |
Generate graphviz dotcode describing the current SMACH structure and activity.
ns_filter = self._widget.filter_line_edit.text() topic_filter = self._widget.topic_filter_line_edit.text() graph_mode = self._widget.graph_type_combo_box.itemData(self._widget.graph_type_combo_box.currentIndex()) orientation = 'LR' if self._widget.namespace_cluster_check_box.isChecked(): namespace_cluster = 1 else: namespace_cluster = 0 accumulate_actions = self._widget.actionlib_check_box.isChecked() hide_dead_end_topics = self._widget.dead_sinks_check_box.isChecked() hide_single_connection_topics = self._widget.leaf_topics_check_box.isChecked() quiet = self._widget.quiet_check_box.isChecked() return self.dotcode_generator.generate_dotcode( smach_graph_inst=self._graph, ns_filter=ns_filter, topic_filter=topic_filter, graph_mode=graph_mode, hide_single_connection_topics=hide_single_connection_topics, hide_dead_end_topics=hide_dead_end_topics, cluster_namespaces_level=namespace_cluster, accumulate_actions=accumulate_actions, dotcode_factory=self.dotcode_factory, orientation=orientation, quiet=quiet)
Definition at line 215 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._generate_tool_tip | ( | self, | |
url | |||
) | [private] |
Definition at line 254 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._load_dot | ( | self, | |
file_name = None |
|||
) | [private] |
Read in dotcode and re-draw the graph to display it.
Definition at line 298 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._redraw_graph_view | ( | self | ) | [private] |
Actually draw the SMACH graph in QT based on the current dotcode.
Definition at line 274 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._refresh_smach_graph | ( | self | ) | [private] |
Generate dotcode for the SMACH graph and re-draw it.
Definition at line 209 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._save_dot | ( | self | ) | [private] |
Save the current dotcode.
Definition at line 334 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._save_image | ( | self | ) | [private] |
Save the current graph as a PNG.
Definition at line 362 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._save_svg | ( | self | ) | [private] |
Save the current graph as an SVG.
Definition at line 347 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._update_graph_view | ( | self, | |
dotcode | |||
) | [private] |
Set the graph to display specific dotcode, and re-draw it.
Definition at line 246 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer._update_smach_graph | ( | self | ) | [private] |
Update the information in the SMACH graph to reflect the state of one or more SMACH executives at runtime.
Definition at line 191 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer.restore_settings | ( | self, | |
plugin_settings, | |||
instance_settings | |||
) |
Restore the intrinsic configuration.
Definition at line 176 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer.save_settings | ( | self, | |
plugin_settings, | |||
instance_settings | |||
) |
Save the intrinsic configuration.
Definition at line 163 of file rqt_smach.py.
def rqt_smach.rqt_smach.SmachViewer.shutdown_plugin | ( | self | ) |
Clean up all persistant resources.
Definition at line 159 of file rqt_smach.py.
Definition at line 70 of file rqt_smach.py.
tuple rqt_smach::rqt_smach.SmachViewer::_deferred_fit_in_view = Signal() [static, private] |
Definition at line 66 of file rqt_smach.py.
rqt_smach::rqt_smach.SmachViewer::_graph [private] |
Member Initialization.
Definition at line 70 of file rqt_smach.py.
rqt_smach::rqt_smach.SmachViewer::_scene [private] |
Construct the GUI Get the QT .ui file and load it.
Populate the UI
Definition at line 75 of file rqt_smach.py.
Definition at line 70 of file rqt_smach.py.
Definition at line 72 of file rqt_smach.py.
Structures for generating the visualization factory builds generic dotcode items.
Definition at line 72 of file rqt_smach.py.
Definition at line 72 of file rqt_smach.py.
Boilerplate RQT gui code.
Definition at line 69 of file rqt_smach.py.
Definition at line 75 of file rqt_smach.py.
Definition at line 75 of file rqt_smach.py.