Hi,<br><br>The answer is here : <a href="http://comments.gmane.org/gmane.comp.lib.vtk.user/30503">http://comments.gmane.org/gmane.comp.lib.vtk.user/30503</a>.<br><br>In your case, I think the second method described in the link is the best. So the main steps are the following:<br>
<br>For each graph :<br>- Built your "vtkGraphLayout" (not "vtkGraphLayoutViewer" !!)<br>- Convert "vtkGraphLayout" into a "vtkPolyData" with "vtkGraphPolyData"<br>- Map your PolyData with "vtkPolyDataMapper"<br>
- Create your Actor with "vtkActor"<br><br><br>(In Fact, VtkGraphLayoutViewer does all these steps => it is faster, easier,... but not necessary better than your own "work".<br>Maybe it is possible to display two graphs side by side with a "vtkGraphLayoutView", but i have not the answer.)<br>
<br>After, it's simple. You create 2 renders as in this example: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/SideBySideViewports" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/SideBySideViewports. </a>Then, you just add one graph per render. To Finish make a renderWindow, (and a renderWindowInteractor to interact with the scene if you want).<br>
<br>I didn't try myself, but i think it works.<br><br>Best Regards,<br><br><div class="gmail_quote">2010/8/17 David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Is it possible to display two graphs side by side with a<br>
vtkGraphLayoutView? Exactly like this:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/SideBySideViewports" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/SideBySideViewports</a><br>
<br>
but with graphs.<br>
<br>
I have created two graphs here:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Graphs/SideBySideGraphs" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Graphs/SideBySideGraphs</a> . If<br>
anyone could demonstrate how to display them side by side that would<br>
be great!<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Bertrand de Boisdeffre<br>Etudiant 2A SICOM Phelma Grenoble-INP<br><br>