Skip to content

Commit 3aedf38

Browse files
author
Arne Böckmann
committed
mooar
1 parent fa8f9f1 commit 3aedf38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tutorials/tutorial_basic_envire_treeview.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ Note that the view will most likely be copied on return. If the tree is large
1717
you 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+
2023
By default, a tree view shows a snapshot of the graph. I.e. if the graph changes,
2124
the changes will not be visible in the view. The view or parts of it might
2225
become invalid when vertices or edges are removed from the graph.
2326
To 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.

0 commit comments

Comments
 (0)