<HTML>
<HEAD>
<TITLE>Re: [vtk-developers] vtkMutableTree?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am perhaps not the best person to speak to this, but I can assure you that the graph storage objects were not created without a great deal of deliberation and revision.  At one point in an early version of Titan we did have a mutable tree.  That turned out to be very difficult to work with because unless you happened to be building the tree in a very specific way, you would end up with intermediate structures that technically were not trees, which the class did not allow.  That meant that most filters that created a tree would have to build their own auxiliary structures and then copy the final version into the VTK tree structure.  This is why to create a tree you now have to first build it in a mutable graph and then copy it into a tree structure, at which time the tree will be validated.<BR>
<BR>
I think the real problem is that you have to manually copy the vtkTree.  Does it not work to call DeepCopy on vtkMutableDirectedGraph with the vtkTree?  If not, then that is probably a bug that you should submit a bug report for.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/30/10 8:58 AM, "Nasztanovics Ferenc" <<a href="naszta@naszta.hu">naszta@naszta.hu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I think it would be nice. :)<BR>
<BR>
Thanks,<BR>
<BR>
Naszta<BR>
________________________________________<BR>
Feladó: <a href="vtk-developers-bounces@vtk.org">vtk-developers-bounces@vtk.org</a> [<a href="vtk-developers-bounces@vtk.org">vtk-developers-bounces@vtk.org</a>], meghatalmaz&#243;: David Doria [<a href="daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a>]<BR>
Küldve: 2010. március 30. 23:50<BR>
Címzett: VTK Developers<BR>
Tárgy: [vtk-developers] vtkMutableTree?<BR>
<BR>
Is there a reason you can't add to a vtkTree? I always have to convert<BR>
a vtkTree manually (copy every vertex and edge) to a<BR>
vtkMutableDirectedGraph, make my changes, then convert back with<BR>
CheckedShallowCopy. Could we create a vtkMutableTree?<BR>
<BR>
Thanks,<BR>
<BR>
David<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
   ****      Kenneth Moreland<BR>
    ***      Sandia National Laboratories<BR>
***********  <BR>
*** *** ***  email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
**  ***  **  phone: (505) 844-8919<BR>
    ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>