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

David Lawrie dlawrie at ara.co.uk
Fri Dec 2 08:22:23 EST 2016


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

**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161202/2b8ce125/attachment-0001.html>


More information about the Paraview-developers mailing list