[Paraview] Writer plugin?

Burlen Loring bloring at lbl.gov
Wed Jan 28 18:03:39 EST 2015


The WriterProxy may have a special "file_name_method" attribute that 
needs to be set. I'm not sure if that's required, optional, or long 
since obsolete since I haven't used our plugin in quite a while.

  13   <WriterProxy name="vtkSQBOVWriter"
  14     class="vtkSQBOVWriter"
  15     file_name_method="SetFileName"
  16     supports_parallel="1">

On 1/28/2015 8:54 AM, David Thompson wrote:
> Hi Andy,
>
>> I think you may be missing the FileName property. I thought that PV looked for that attribute to know that it should be classified as a writer. Also, you'll want to hide that property.
> Adding the FileName property and hints did not work.
>
> 	Thanks,
> 	David
>
>> So:
>>        <StringVectorProperty name="FileName"
>>                              command="SetFileName"
>>                              number_of_elements="1"
>>                              label="File Name">
>>          <Documentation>
>>            The file name.
>>          </Documentation>
>>        </StringVectorProperty>
>>
>>
>> and:
>>        <Hints>
>>          <Property name="Input" show="0"/>
>>          <Property name="FileName" show="0"/>
>>          <WriterFactory extensions="json" file_description="JSON tabular data" />
>>        </Hints>
>>
>>
>>
>>
>> On Wed, Jan 28, 2015 at 11:34 AM, David Thompson <david.thompson at kitware.com> wrote:
>> Hi all,
>>
>> I have a ParaView plugin that contains a new writer which I would like to expose. However, while the plugin does properly expose a new view and representation, the writer does not appear to get added (when I try to save a vtkTable such as a statistics filter output, it doesn't appear as an option).
>>
>> 1. Is there any documentation for adding writers in plugins? This page has a comment or two but doesn't appear complete:
>>
>>      http://www.paraview.org/Wiki/ParaView/Plugin_HowTo
>>
>> 2. If you're willing to look over the XML, I've attached it below. See any mistakes?
>>
>>          Thanks,
>>          David
>>
>> <ServerManagerConfiguration>
>>    <!-- Other proxy groups for views and representations here -->
>>
>>    <ProxyGroup name="writers">
>>      <WriterProxy
>>        class="vtkPJSONTableWriter"
>>        name="PJSONTableWriter">
>>        <Documentation>
>>          Write tabular data to a JSON file.
>>        </Documentation>
>>        <InputProperty
>>          command="SetInputConnection"
>>          name="Input">
>>          <DataTypeDomain
>>            composite_data_supported="0"
>>            name="input_type">
>>            <DataType value="vtkTable"/>
>>          </DataTypeDomain>
>>          <Documentation>The input filter/source whose output dataset is to
>>          written to the file.</Documentation>
>>        </InputProperty>
>>        <Hints>
>>          <WriterFactory extensions="json" file_description="JSON tabular data" />
>>        </Hints>
>>      </WriterProxy>
>>
>>    </ProxyGroup>
>> </ServerManagerConfiguration>
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview



More information about the ParaView mailing list