[vtk-developers] vtkMutableTree?

Moreland, Kenneth kmorel at sandia.gov
Tue Mar 30 15:28:20 EDT 2010


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.

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.

-Ken


On 3/30/10 8:58 AM, "Nasztanovics Ferenc" <naszta at naszta.hu> wrote:

I think it would be nice. :)

Thanks,

Naszta
________________________________________
Feladó: vtk-developers-bounces at vtk.org [vtk-developers-bounces at vtk.org], meghatalmazó: David Doria [daviddoria+vtk at gmail.com]
Küldve: 2010. március 30. 23:50
Címzett: VTK Developers
Tárgy: [vtk-developers] vtkMutableTree?

Is there a reason you can't add to a vtkTree? I always have to convert
a vtkTree manually (copy every vertex and edge) to a
vtkMutableDirectedGraph, make my changes, then convert back with
CheckedShallowCopy. Could we create a vtkMutableTree?

Thanks,

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers





   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100330/fcad7984/attachment.html>


More information about the vtk-developers mailing list