[Paraview-developers] InputArrayDomain not working as expected from proxylist

David Lawrie dlawrie at ara.co.uk
Tue Dec 6 06:05:22 EST 2016


Hi Cory,

That did indeed help. Replicating the domains in other input definition now results in the lists being filtered as expected.

Many thanks.

-----Original Message-----
From: Cory Quammen [mailto:cory.quammen at kitware.com] 
Sent: 05 December 2016 22:23
To: David Lawrie
Cc: paraview-developers at paraview.org
Subject: Re: [Paraview-developers] InputArrayDomain not working as expected from proxylist

David,

I don't believe you can refer to an InputArrayDomain defined in one proxy definition from another.

Try copying the InputArrayDomains for ScalarArrays and VectorArrays to the XML definition for the InputProperty in your MyFilter proxy.

HTH,
Cory

On Fri, Dec 2, 2016 at 8:22 AM, David Lawrie <dlawrie at ara.co.uk> wrote:
> Hi,
>
>
>
> I am having a problem using the input_domain_name xml attribute.  I 
> set up two InputArrayDomains which filter based on 1 and 3 components 
> for the
>
> incoming arrays as the filters will work with one scalar and one 
> vector quantity. If I do not have one or the other then the filter is 
> greyed out as I
>
> would expect.
>
>
>
> However, when I run the filter and it populates the selection boxes 
> for the arrays I can select any existing array. I would have expected 
> to have
>
> had a reduced choice (e.g. only the arrays with 3 components) when I 
> specify the appropriate input_domain_name in the ArrayListDomain xml entry.
>
>
>
> Is this filtering supposed to happen and not working, or does it not 
> work that way?
>
>
>
> My current xml setup is:
>
>
>
> <ServerManagerConfiguration>
>
>   <ProxyGroup name="my_functions">
>
>     <Proxy class="vtkMyFilter" name="MyFilter">
>
>       <InputProperty is_internal="1" name="Input" />
>
>       <StringVectorProperty name="VectorArray"
> command="SetInputArrayToProcess" number_of_elements="5" 
> element_types="0 0 0
> 0 2">
>
>         <ArrayListDomain name="array_list" attribute_type="Vector"
> input_domain_name="VectorArrays">
>
>           <RequiredProperties><Property name="Input" function="Input"
> /></RequiredProperties>
>
>         </ArrayListDomain>
>
>         <FieldDataDomain name="field_list">
>
>           <RequiredProperties><Property name="Input" function="Input"
> /></RequiredProperties>
>
>         </FieldDataDomain>
>
>       </StringVectorProperty>
>
>       <Hints>
>
>         <ProxyList>
>
>           <Link name="Input" with_property="Input" />
>
>         </ProxyList>
>
>       </Hints>
>
>     </Proxy>
>
>   </ProxyGroup>
>
>   <ProxyGroup name="filters">
>
>     <SourceProxy name="MainFilter" class="vtkMyMainFilter">
>
>       <InputProperty name="Input" command="SetInputConnection">
>
>         <ProxyGroupDomain name="Groups">
>
>           <Group name="sources"/>
>
>           <Group name="filters"/>
>
>         </ProxyGroupDomain>
>
>         <DataTypeDomain name="input_type">
>
>           <DataType value="vtkDataSet" />
>
>         </DataTypeDomain>
>
>         <InputArrayDomain attribute_type="point" name="ScalarArrays"
> number_of_components="1" />
>
>         <InputArrayDomain attribute_type="point" name="VectorArrays"
> number_of_components="3" />
>
>       </InputProperty>
>
>       <ProxyProperty name="FunctionType" command="SetFunctionType">
>
>         <ProxyListDomain name="proxy_list">
>
>           <Proxy group="my_functions" name="MyFilter" />
>
>         </ProxyListDomain>
>
>       </ProxyProperty>
>
>     </SourceProxy>
>
>   </ProxyGroup>
>
> </ServerManagerConfiguration>
>
> **********************************************************************
>
> Please consider the environment. Only print this email if absolutely 
> necessary.
>
> This email contains information that is private and confidential and 
> is intended only for the addressee.
> If you are not the intended recipient please delete it and notify us 
> immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by 
> someone other than the recipient, for system management and security 
> reasons.
> Aircraft Research Association Ltd.  Registered in England, 
> Registration No
> 503668 Registered Office:
> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>
> **********************************************************************
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>



--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.

**********************************************************************
Please consider the environment. Only print this email if absolutely necessary.

This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************


More information about the Paraview-developers mailing list