<div dir="ltr">Here it is... <div style>But remember, this is just a quick integration that need more works to properly go into ParaView.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 1:22 AM, 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"><div bgcolor="#FFFFFF"><div class="im"><div><br><div>Hi, Seb</div><div><br></div><div>It's very kind of you to share the code, which will make me understand Paraview much better.</div>
<div><br></div><div>There is little information about cusomizing Paraview, so a workable example will be very useful.</div><div><br></div><div>Thanks again.</div><br></div><div><br>在 2013-5-18,3:12,Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>> 写道:<br>
<br></div><div></div></div><div><div class="h5"><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>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>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><br></div><div>Seb</div><div><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>
</div></blockquote></div></div></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 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>
<br></blockquote></div><br></div>