[Paraview] How to simply "Reload" a data file

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Jun 14 09:09:17 EDT 2013


There is a way if you are willing to create your own Plugin for the reader
that you are using.

The XML should look like that

<ServerManagerConfiguration>
<ProxyGroup name="sources">
<SourceProxy name="ReaderWithButton" base_proxygroup="sources"
base_proxyname="LegacyVTKFileReader">
      <Property name="Refresh" command="Modified"
panel_widget="command_button"/>
      <Hints>
        <ReaderFactory extensions="vtr" file_description="Refresh (Legacy
VTK files)" />
      </Hints>
    </SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>

Unfortunately the hints/ReaderFactory didn't properly worked which prevent
its usage from a simple XML file, but if you register it as a real plugin
with the XML-GUI one, you should be fine with the OpenFile dialog.

The remaining thing for you would be to figure out the proxyname of the
reader that you are willing to extend.

If you don't mind using python to create the reader, then you can do
something like that in the python shell.

> r = ReaderWithButton(FileNames='/.../ParaViewData/Data/cone.vtr')
> Show()
> Render()

Seb




On Fri, Jun 14, 2013 at 3:59 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:

> I would love to know how to do this if it is possible. For one of our
> workflows, a periodic checking if an input file has changed and
> reloading it at a specified time interval would be even better.
>
> Thanks,
> Cory
>
> On Fri, Jun 14, 2013 at 3:42 AM, Michael Jackson
> <mike.jackson at bluequartz.net> wrote:
> > Is there button where I can simply reload a data file that was read in
> > a pipeline?
> >
> > We have a workflow where we process data into a file and view it in
> > ParaView. it is becoming tedious to blow away the entire pipeline just
> > to reload the new data.
> >
> >  I know about state files but this still requires the user to go to
> > the File->Load State... " menu and then select a state file. I would
> > like to just select the data file in the Pipeline browser (XDMF File
> > reader for us), and just click some button that just reloads data from
> > the file.
> >
> > Or am I just missing something? I am using ParaView 3.98.1. I have to
> > admit I have not tried any of the 4.0.RC* downloads.
> >
> > Thanks
> > _________________________________________________________
> > Mike Jackson                  mike.jackson at bluequartz.net
> > BlueQuartz Software                    www.bluequartz.net
> > Principal Software Engineer                  Dayton, Ohio
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
>
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130614/e9e75c0b/attachment-0001.htm>


More information about the ParaView mailing list