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

Cory Quammen cquammen at cs.unc.edu
Fri Jun 14 13:42:34 EDT 2013


For what it's worth, I just experimented with adding the line

<Property name="Refresh" command="Modified" panel_widget="command_button"/>

to the CSV reader and XDMF reader in

ParaView/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml

The Refresh button appears among the other property widgets and it
indeed reloads the data set.

I would happily add this to all the readers and submit a patch to
gerrit if it would be received well by the core ParaView developers.

Thanks,
Cory

On Fri, Jun 14, 2013 at 11:57 AM, Sebastien Jourdain
<sebastien.jourdain at kitware.com> wrote:
> BTW that's the correct XML for you, just need to create a file with that in
> and load it as a plugin and you will have your "Refresh" button.
>
> <ParaViewPlugin>
> <ServerManagerConfiguration>
>   <ProxyGroup name="sources">
> <SourceProxy name="XDMFRrefresh" base_proxygroup="sources"
> base_proxyname="XdmfReader" class="vtkXdmfReader">
>       <Property name="Refresh" command="Modified"
> panel_widget="command_button"/>
>       <Hints>
>         <ReaderFactory extensions="xmf xdmf" file_description="Xdmf Reader
> (Refresh button)" />
>       </Hints>
>     </SourceProxy>
>   </ProxyGroup>
>   </ServerManagerConfiguration>
>   <ParaViewReaders>
>     <Reader name="ReaderWithButton" />
>   </ParaViewReaders>
> </ParaViewPlugin>
>
>
>
>
>
> On Fri, Jun 14, 2013 at 10:27 AM, Sebastien Jourdain
> <sebastien.jourdain at kitware.com> wrote:
>>
>> Another approach could be a python macro that invalidate the
>> "active/selected' proxy in the pipeline, but that one will require the usage
>> of ParaView in built-in mode.
>>
>> If interested I can try to write the corresponding python code...
>>
>> Seb
>>
>>
>> On Fri, Jun 14, 2013 at 10:24 AM, Sebastien Jourdain
>> <sebastien.jourdain at kitware.com> wrote:
>>>
>>> I forgot to state the obvious, the plugin is a XML one... No code
>>> involved...
>>>
>>> In fact, just having the XML that I wrote in a file extend the UI with a
>>> button to refresh the reader should be enough.
>>> Need to figure out why the reader factory did not catch up the hint.
>>>
>>> That should be the only thing that you would need.
>>>
>>> Seb
>>>
>>>
>>>
>>> On Fri, Jun 14, 2013 at 10:08 AM, Michael Jackson
>>> <mike.jackson at bluequartz.net> wrote:
>>>>
>>>> I was hoping that ParaView just had something built in. I would rather
>>>> not have to create a plugin and distribute that along side my own software
>>>> and to keep up on builds for all the various OS's and all of that. i tried
>>>> that for a while and I just could not keep up.
>>>>
>>>> So either I am the only person who has asked for this or there is some
>>>> over riding reason in the design of ParView why this type of functionality
>>>> is not in ParaView.
>>>>
>>>> Thanks
>>>> ___________________________________________________________
>>>> Mike Jackson                    Principal Software Engineer
>>>> BlueQuartz Software                            Dayton, Ohio
>>>> mike.jackson at bluequartz.net              www.bluequartz.net
>>>>
>>>> On Jun 14, 2013, at 3:40 PM, Felipe Bordeu <felipe.bordeu at ec-nantes.fr>
>>>> wrote:
>>>>
>>>> > hi  you can try the approach of Sébastien
>>>> >
>>>> > http://perso.uclouvain.be/sebastien.blaise/tools.html
>>>> >
>>>> > I haven't tested yet.
>>>> >
>>>> > You can save the code as a macro, so you will have a button.
>>>> >
>>>> > Felipe
>>>> >
>>>> > Le 14/06/2013 09:42, Michael Jackson a écrit :
>>>> >> 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
>>>> >
>>>> >
>>>> > --
>>>> > Felipe Bordeu Weldt
>>>> > Ingénieur de Recherche
>>>> > -------------------------------------
>>>> > Tél. : 33 (0)2 40 37 16 57
>>>> > Fax. : 33 (0)2 40 74 74 06
>>>> > Felipe.Bordeu at ec-nantes.fr
>>>> > Institut GeM - UMR CNRS 6183
>>>> > École Centrale Nantes
>>>> > 1 Rue de La Noë, 44321 Nantes, FRANCE
>>>> > -------------------------------------
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>
>
> _______________________________________________
> 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


More information about the ParaView mailing list