File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed 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
17
17
you might want to avoid that copy and pass an empty view as out-parameter instead:
18
18
<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 >
19
19
20
+
21
+ ## Updating Tree Views
22
+
20
23
By default, a tree view shows a snapshot of the graph. I.e. if the graph changes,
21
24
the changes will not be visible in the view. The view or parts of it might
22
25
become invalid when vertices or edges are removed from the graph.
23
26
To avoid this, you can request a self-updating tree view:
24
27
<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