<div dir="ltr">Yes, look at File -> Export Scene.<div><br></div><div>You can export to WebGL, VRML, X3D, etc. One of these options should be a good example for you to follow. The XML for the WebGL exporter proxy is in </div><div><br></div><div>ParaView/ParaViewCore/ServerManager/SMApplication/Resources/utilities.xml<br></div><div><br></div><div>and the exporter proxy is described here:</div><div><br></div><div><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/classvtkSMRenderViewExporterProxy.html">http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/classvtkSMRenderViewExporterProxy.html</a><br></div><div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 11, 2015 at 10:50 AM, houssen <span dir="ltr"><<a href="mailto:houssen@ipgp.fr" target="_blank">houssen@ipgp.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Cory,<br>
<br>
My need is very basic (natural) : I'd like to save (with a plugin writer) "what I see in the ParaView 3D viewpoint".<br>
Ideally, I'd would like to save "only shown items" in the pipeline browser (not the hidden items - gray eye associated to each pipeline item).<br>
<br>
How to do this ? (use multiple input port ? get the pipeline and scan it piece by piece + write each piece only if it is in "show" mode) Is there an existing example of that ?<br>
<br>
Franck<span class=""><br>
<br>
Le 2015-07-10 17:35, Cory Quammen a écrit :<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi FH,<br>
<br>
Do you want to save the entire ParaView state so that you can reload<br>
it later? If so, you can use File -> Save State.../Load State...<br>
<br>
I suspect that is not what you want, though.<br>
<br>
Cory<br>
<br></span><span class="">
On Fri, Jul 10, 2015 at 9:55 AM, houssen <<a href="mailto:houssen@ipgp.fr" target="_blank">houssen@ipgp.fr</a> [5]> wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I have a plugin (writer which inherit from vtkWriter) with :<br>
- SetNumberOfInputPorts(1) in the constructor<br>
- vtkDataObject* data=GetInput() to get data to save (when I am<br>
called back on the save button click)<br>
This works OK.<br>
<br>
How to save "all what is in the pipeline browser" ? Say I opened 2<br>
files : I have 2 sets of data to save in the pipeline browser. How<br>
to save the 2 data set ?<br>
I tried :<br>
- SetNumberOfInputPorts(GetNumberOfInputPorts()) in the<br>
constructor<br>
- for (int p = 0; p < GetNumberOfInputPorts() ...) vtkDataObject*<br>
data=GetInput(p) to get data to save<br>
But this doesn't work : seems I always get one data to save<br>
(whatever what is hidden/shown or highlighted in the pipeline<br>
browser when I click on the save button)<br>
<br>
FH<br>
_______________________________________________<br></span>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a> [1]<span class=""><br>
<br>
Visit other Kitware open-source projects at<br>
</span><a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a> [2]<span class=""><br>
<br>
Search the list archives at:<br>
</span><a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a> [3]<span class=""><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</span><a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a> [4]<br>
</blockquote></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>