[Paraview-developers] Reader plugin with multiple outputs

Michael Schlottke m.schlottke at aia.rwth-aachen.de
Mon Jun 3 08:48:47 EDT 2013


Hi Phil,

Thanks a lot, this actually solves problem/question no. 1. Do you know why you need the 'id="port0"' attributes? If I omit them, it seems to work just as well.

Michael

On Jun 3, 2013, at 14:33 , Phil Amburn wrote:

> I think I can help with one of your questions, try renaming your outputs in the XML for the plugin as in the example below
>  
>  
> <ServerManagerConfiguration>
>   <!-- Begin dew point surface vtk filter  -->
>   <ProxyGroup name="filters">
>     <SourceProxy name="DewPointSurface" class="vtkDewPointSurface"
>                label="Dew Point Surface">
>       <InputProperty
>         name="Input"
>         command="SetInputConnection">
>         label="WT Isobaric visualization"
>         <ProxyGroupDomain name="groups">
>           <Group name="sources"/>
>           <Group name="filters"/>
>         </ProxyGroupDomain>
>         <DataTypeDomain name="input_type">
>           <DataType value="vtkStructuredGrid"/>
>         </DataTypeDomain>
>       </InputProperty>
>  
>       <IntVectorProperty
>         name="ComputeNormals"
>         command="SetComputeNormals"
>         number_of_elements="1"
>         default_values="1"
>         animateable="0" >
>         <BooleanDomain name="bool" />
>       </IntVectorProperty>
>  
>       <DoubleVectorProperty
>         name="DewPointOfDewPointSurface"
>         command="SetDewPointOfDewPointSurface"
>         number_of_elements="1"
>         default_values="287">
>       </DoubleVectorProperty>
>  
>       <DoubleVectorProperty
>         name="PressureOfIsobaricSurface"
>         command="SetPressureOfIsobaricSurface"
>         number_of_elements="1"
>         default_values="900">
>       </DoubleVectorProperty>
>  
>       <DoubleVectorProperty
>         name="ScaleFactorOfWindVectors"
>         command="SetScaleFactorOfWindVectors"
>         number_of_elements="1"
>         default_values="0.10">
>       </DoubleVectorProperty>
>  
>       <IntVectorProperty
>         name="MaximumNumberOfWindVectors"
>         command="SetMaximumNumberOfWindVectors"
>         number_of_elements="1"
>         default_values="1500">
>       </IntVectorProperty>
>      
>       <OutputPort name="Dew Point Surface" index="0" id="port0" />
>       <OutputPort name="Isobaric Surface" index="1" id="port1"/>
>       <OutputPort name="Horizontal winds" index="2" id="port2"/>
>  
>     </SourceProxy>
>   </ProxyGroup>
>   <!-- End dew point surface vtk filter  -->
> </ServerManagerConfiguration>
>  
> Phil
>  
>  
> From: paraview-developers-bounces at paraview.org [mailto:paraview-developers-bounces at paraview.org] On Behalf OfMichael Schlottke
> Sent: Sunday, June 02, 2013 10:36 AM
> To: ParaView Developers
> Subject: [Paraview-developers] Reader plugin with multiple outputs
>  
> Hi,
>  
> I used the VTK example (http://www.vtk.org/Wiki/VTK/Examples/Developers/vtkAlgorithm_Source_Multiple_Output_Ports) as a guideline to create a reader plugin with multiple output ports (basically, I am creating to unstructured grids - one with the actual visualization cells, and one with some higher-level computational elements). This works well so far, however, I have a couple of questions:
>  
> 1) At the moment the outputs are named output-0, output-1, output-2 etc. Is there a way to rename them?
> 2) Usually I need 2 Outputs of this plugin, but sometimes I only need one (and sometimes three). Is there a way to set the number of output ports dynamically, i.e. controlled by the settings on the properties panel?
> 3) After reading, all outputs are visible, and the first one (Output-0) is selected. Can I make it the default that a) only one of them is visible, and that b) the last and not the first one is selected?
>  
> Regards,
>  
> Michael
>  
> 
> --
> Michael Schlottke
>  
> SimLab Highly Scalable Fluids & Solids Engineering
> Jülich Aachen Research Alliance (JARA-HPC)
> RWTH Aachen University
> Wüllnerstraße 5a
> 52062 Aachen
> Germany
>  
> Phone: +49 (241) 80 95188
> Fax: +49 (241) 80 92257
> Mail: m.schlottke at aia.rwth-aachen.de
> Web: http://www.jara.org/jara-hpc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130603/8a2d2003/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2308 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130603/8a2d2003/attachment-0001.bin>


More information about the Paraview-developers mailing list