[Paraview-developers] Question about SubProxy

David Lawrie dlawrie at ara.co.uk
Tue May 16 06:40:45 EDT 2017


Hi All,

I am trying to create a simple filter that uses the SubProxy approach as  a learning exercise as I believe it will be useful in  a more complex filter I will need to create later.

Currently I am trying to create a filter which has a Contour sub-filter, exposes a couple of the properties then runs the contour filter using the user set values.

In my XML I have the following subproxy block

      <SubProxy>
        <Proxy name="ContourProxy" proxygroup="filters" proxyname="Contour" />
        <ExposedProperties>
          <Property name="SelectInputScalars" />
          <Property name="ComputeNormals" />

        </ExposedProperties>
      </SubProxy>

In my filter header I have included the following lines to provide storage for the sub-proxy and my constructor sets it to NULL at creation.

vtkSetObjectMacro(ContourProxy, vtkPVContourFilter);
vtkPVContourFilter* ContourProxy;

So far so good, the gui does have the elements which are exposed, however the drop down box is empty and as far as I can tell the ContourProxy variable remains NULL. Presumably I have to create the vtkPVContourFilter object somewhere, however I am unsure as to how/where.

Can anyone provide some guidance on what steps I am missing?

Thanks.

**********************************************************************
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/20170516/0209d673/attachment-0001.html>


More information about the Paraview-developers mailing list