[vtkusers] Tree Depth First Traversal Animation

David Doria daviddoria+vtk at gmail.com
Sat Apr 3 14:45:44 EDT 2010


I am trying to make a demo of a depth first traversal of a graph.

http://www.vtk.org/Wiki/VTK/Examples/Graph/DFSAnimation

The idea is to start with a tree of red vertices, and color the next vertex
in the traversal blue every 1 second. It almost works - the vertices change
color if you interact with the window (i.e. click the mouse). I thought the
couple of calls to Render() at the end of the timer callback would have
refreshed the window automatically? Also, the vertices all return to red
after the last vertex is reached?

Anyone have any clues about why either of these would be happening?
<http://www.vtk.org/Wiki/VTK/Examples/Graph/DFSAnimation>
Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100403/72617f68/attachment.htm>


More information about the vtkusers mailing list