[vtkusers] Drawing vtkTree

Eric E. Monson emonson at cs.duke.edu
Fri Sep 9 09:17:14 EDT 2011


Hello Juan Carlos,

You can show your tree with a vtkGraphLayoutView, but use SetLayoutStrategyToPassThrough() so it won't try to do any layout on the graph. With that layout strategy it will just use the coordinates that are already stored in the tree/graph.

Good luck,
-Eric

· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
Eric E Monson
Duke Visualization Technology Group


On Sep 9, 2011, at 6:22 AM, Juan Carlos Prieto wrote:

> Hello Everyone, 
> 
> I was wondering if is possible to assign coordinates to the vtkTree. I have an algorithm that collects a number of points from an image and it stores them in the vtkTree, I'm using a MutableDirectedGraph and a vtkDoubleArray to store the coordinates of each point, then assigning the Array to the Graph and finally converting them to a vtkTree. 
> 
> It is possible to show this tree using the coordinates? from the examples, I can't find one that does this type of operation. 
> 
> any suggestions will be greatly appreciated. 
> 
> Have a nice day
> -- 
> Juan Carlos Prieto 
> Phd Student 
> CREATIS Tel:+33472438918 
> 7 Av Jean Capelle 
> 69621 Villeurbanne Cedex 
> France 
> Personal page
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110909/c09fcdc6/attachment.htm>


More information about the vtkusers mailing list