[Paraview-developers] How to add multiple inputs to a plugin (writer)
Cory Quammen
cory.quammen at kitware.com
Fri Jul 10 11:35:37 EDT 2015
Hi FH,
Do you want to save the entire ParaView state so that you can reload it
later? If so, you can use File -> Save State.../Load State...
I suspect that is not what you want, though.
Cory
On Fri, Jul 10, 2015 at 9:55 AM, houssen <houssen at ipgp.fr> wrote:
> I have a plugin (writer which inherit from vtkWriter) with :
> - SetNumberOfInputPorts(1) in the constructor
> - vtkDataObject* data=GetInput() to get data to save (when I am called
> back on the save button click)
> This works OK.
>
> How to save "all what is in the pipeline browser" ? Say I opened 2 files :
> I have 2 sets of data to save in the pipeline browser. How to save the 2
> data set ?
> I tried :
> - SetNumberOfInputPorts(GetNumberOfInputPorts()) in the constructor
> - for (int p = 0; p < GetNumberOfInputPorts() ...) vtkDataObject*
> data=GetInput(p) to get data to save
> But this doesn't work : seems I always get one data to save (whatever what
> is hidden/shown or highlighted in the pipeline browser when I click on the
> save button)
>
> FH
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150710/6882b0f8/attachment.html>
More information about the Paraview-developers
mailing list