[vtkusers] Drawing vtkTree

Juan Carlos Prieto prieto at creatis.insa-lyon.fr
Fri Sep 9 10:27:52 EDT 2011


Hello Eric,

Thank you for the suggestion.

I used vtkPoints instead of vtkDoubleArray to insert the points of the 
graph and I found out about vtkGraphToPolyData, this allowed to convert 
the lines and the vertices into polydata and then into actors. Very 
useful because I want to compare this with the dataset.

Sincerely,

Le 09/09/2011 15:17, Eric E. Monson a écrit :
> 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 <http://www.creatis.insa-lyon.fr/> Tel:+33472438918
>> 7 Av Jean Capelle
>> 69621 Villeurbanne Cedex
>> France
>> Personal page <http://www.creatis.insa-lyon.fr/%7Eprieto>
>> _______________________________________________
>> Powered by www.kitware.com <http://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
>

-- 
Juan Carlos Prieto
Phd Student
CREATIS <http://www.creatis.insa-lyon.fr> Tel:+33472438918
7 Av Jean Capelle
69621 Villeurbanne Cedex
France
Personal page <http://www.creatis.insa-lyon.fr/%7Eprieto>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110909/81e56055/attachment.htm>


More information about the vtkusers mailing list