File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,8 +17,14 @@ Note that the view will most likely be copied on return. If the tree is large
1717you might want to avoid that copy and pass an empty view as out-parameter instead:
1818<pre ><code data-snippetId =" graph_trees_get_2 " data-file =" https://raw.githubusercontent.com/envire/envire-tutorials/master/src/envire_graph_tutorials/trees.cpp " ></code ></pre >
1919
20+
21+ ## Updating Tree Views
22+
2023By default, a tree view shows a snapshot of the graph. I.e. if the graph changes,
2124the changes will not be visible in the view. The view or parts of it might
2225become invalid when vertices or edges are removed from the graph.
2326To avoid this, you can request a self-updating tree view:
2427<pre ><code data-snippetId =" graph_trees_get_3 " data-file =" https://raw.githubusercontent.com/envire/envire-tutorials/master/src/envire_graph_tutorials/trees.cpp " ></code ></pre >
28+
29+ The view has three signals `` crossEdgeAdded `` , `` edgeAdded `` and `` edgeRemoved ``
30+ that will be emitted whenever the tree view changes.
You can’t perform that action at this time.
0 commit comments