[Paraview] Writer plugin?

Andy Bauer andy.bauer at kitware.com
Wed Jan 28 11:49:00 EST 2015


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.

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150128/a7cf18a0/attachment.html>


More information about the ParaView mailing list