<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In my XML I have the following subproxy block<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">      <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">SubProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">        <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">Proxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">ContourProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">proxygroup</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">filters</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">proxyname</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">Contour</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">        <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">ExposedProperties</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">          <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">Property</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">SelectInputScalars</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">          <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">Property</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">ComputeNormals</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">         
</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">        </</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">ExposedProperties</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">      </</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">SubProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white">vtkSetObjectMacro</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">(ContourProxy,
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">vtkPVContourFilter</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">vtkPVContourFilter</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">* ContourProxy;</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone provide some guidance on what steps I am missing?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
</div>

<p>**********************************************************************</p><p>

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

</body>
</html>