Nicolas,<div><br></div><div>There is no straightforward way to accomplish this in vtkGraphLayoutView. What you could possibly do is create a color lookup tables for the vertices and edges that is transparent at 0 and the normal color at 1, set those on a vtkViewTheme, and apply that theme to the graph. Then you'd need to add a 0/1 array to the vertices and edges where the root vertex/edges are 0 and everything else is 1, and color by this array. Pretty hackish, but would probably work.</div>
<div><br></div><div>Jeff<br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 12:22 PM, Nicolas Rannou <span dir="ltr"><<a href="mailto:nicolas.lists@gmail.com">nicolas.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all, <div><br></div><div>I have a vtkMutableDirectedGraph and I would like to hide the root vertex and the first edges, while visualizing it through a vtkGraphLayoutView.</div><div> ______</div><div> root |</div>
<div> / | \ __ | HIDE</div><div> d1 d2 d3 </div><div> .... .... ...</div><div><br></div><div>It is possible to do so in the vtkQtTreeView (SetShowRootNode(false)) and I was wondering if such a feature was available?</div>
<div>Which would be the best practice to achieve this goal?</div><div><br></div><div>Thanks,</div><div>Nicolas</div>
<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>
<br></blockquote></div><br></div>