<div dir="ltr">Hi,<div><br></div><div style>We are currently working in bringing that VTK renderer + representation into ParaView. Although, that work won't be available inside ParaView soon as more effort need to be done toward a proper integration.</div>
<div style>Although, if you are willing to go further on that matter, I can share that piece of code that allow rendering within the python context of ParaView.</div><div style><br></div><div style>Seb</div><div style><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 12:09 PM, WangWentao <span dir="ltr"><<a href="mailto:wwthunan@gmail.com" target="_blank">wwthunan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hi, all.<br>
<br>
I hope to render vtkGraph in ParaView, which is available in VTK. The related classes are vtkGraphLayoutView, vtkRenderedGraphRepresentation. There is also a source class: vtkRandomGraphSource.<br>
<br>
My plan is to realize a customized view for vtkGraph. As an experiment, there are at least 3 things to to:<br>
1. a source for vtkGraph, which is the easiest part. Just load a xml file wrapping vtkRandomGraphSource.<br>
2. a view. May be a subclass of vtkPVRenderView, with its RenderView replaced by vtkGraphLayoutView. I have tried that, and the view shows in MainWindow, but I don't know if it really works.<br>
3. a representation. vtkGraphLayoutView uses vtkRenderedGraphRepresentation by default. But I don't know how to use this representation class in ParaView, only find that every representation class in Paraview is derived from vtkPVDataRepresentation.<br>
<br>
I am trying to write a custumized grapg view according to my plan. Before everything is done, I have to figure out how view and representaion work in Paraview.<br>
<br>
My questions are:<br>
1. Does my plan works? Is there any aspect I have ignored?<br>
2. How to use a vtk representation class in Paraview?<br>
3. What is the best way to visualize graph in Paraview?<br>
<br>
Any advices will be appreciated!<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>