<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=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Andy<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You got me looking in the right direction and I found this is
what I wanted<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-family:
"Courier New";color:maroon'>this</span></b><b><span style='font-family:"Courier New";
color:olive'>-&gt;</span></b><b><span style='font-family:"Courier New";
color:green'>TrivialProducer</span></b><b><span style='font-family:"Courier New"'>
<span style='color:olive'>=</span> <span style='color:green'>pxm</span><span
style='color:olive'>-&gt;</span><span style='color:green'>NewProxy</span><span
style='color:olive'>(</span><span style='color:blue'>&quot;sources&quot;</span><span
style='color:olive'>,</span> <span style='color:blue'>&quot;TrivialProducer&quot;</span><span
style='color:olive'>);</span></span></b><span style='font-family:"Courier New";
color:olive'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-family:
"Courier New";color:green'>vtkTrivialProducer</span></b><b><span
style='font-family:"Courier New";color:olive'>::</span></b><b><span
style='font-family:"Courier New";color:green'>SafeDownCast</span></b><b><span
style='font-family:"Courier New";color:olive'>(</span></b><b><span
style='font-family:"Courier New";color:maroon'>this</span></b><b><span
style='font-family:"Courier New";color:olive'>-&gt;</span></b><b><span
style='font-family:"Courier New";color:green'>TrivialProducer</span></b><b><span
style='font-family:"Courier New";color:olive'>-&gt;</span></b><b><span
style='font-family:"Courier New";color:green'>GetClientSideObject</span></b><b><span
style='font-family:"Courier New";color:olive'>())-&gt;</span></b><b><span
style='font-family:"Courier New";color:green'>SetOutput</span></b><b><span
style='font-family:"Courier New";color:olive'>(</span></b><b><span
style='font-family:"Courier New";color:green'>ds</span></b><b><span
style='font-family:"Courier New";color:olive'>);</span></b><span
style='font-family:"Courier New";color:olive'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>thanks<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>JB<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Andy Bauer [mailto:andy.bauer@kitware.com] <br>
<b>Sent:</b> 13 September 2010 02:22<br>
<b>To:</b> Biddiscombe, John A.<br>
<b>Cc:</b> paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Turn vtk Data Object into DataObjectProxy<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>I'm not sure if it will work
but maybe using vtkTrivialProducer might do it for you with SetOutput().<br>
<br>
Andy<o:p></o:p></p>

<div>

<p class=MsoNormal>On Sun, Sep 12, 2010 at 4:40 PM, Biddiscombe, John A. &lt;<a
href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<p>I'm experimenting with calling functions in the ServerManager directly from
a parallel application<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>On each node, I have a vtkDataset (piece of),<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>I need to set the dataset as input to a pipeline - for example<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-family:"Courier New"'>&nbsp; <span style='color:green'>vtkSMProxyManager</span><span
style='color:olive'>*</span> <span style='color:green'>pxm</span> <span
style='color:olive'>=</span> <span style='color:green'>vtkSMProxyManager</span><span
style='color:olive'>::</span><span style='color:green'>GetProxyManager</span><span
style='color:olive'>();</span></span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-family:"Courier New"'>&nbsp; <span style='color:green'>vtkSMProxy</span>
<span style='color:olive'>*</span><span style='color:green'>contour</span> <span
style='color:olive'>=</span> <span style='color:green'>pxm</span><span
style='color:olive'>-&gt;</span><span style='color:green'>NewProxy</span><span
style='color:olive'>(</span><span style='color:blue'>&quot;filters&quot;</span><span
style='color:olive'>,</span> <span style='color:blue'>&quot;Contour&quot;</span><span
style='color:olive'>);</span></span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-family:"Courier New"'>&nbsp; <span style='color:navy'>//</span></span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-family:"Courier New"'>&nbsp; <span style='color:green'>vtkSMInputProperty</span>
<span style='color:olive'>*</span><span style='color:green'>input</span> <span
style='color:olive'>=</span> <span style='color:green'>vtkSMInputProperty</span><span
style='color:olive'>::</span><span style='color:green'>SafeDownCast</span><span
style='color:olive'>(</span></span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; <span style='color:green'>contour</span><span
style='color:olive'>-&gt;</span><span style='color:green'>GetProperty</span><span
style='color:olive'>(</span><span style='color:blue'>&quot;Input&quot;</span><span
style='color:olive'>));</span></span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-family:"Courier New";color:olive'>&nbsp;</span><o:p></o:p></p>

<p>How can I manually set the vtkDataSet as the input to the contour filter
(through the inputproxy). I presume I need a data object proxy, which has its
pointer set directly. But I can&#8217;t seem to find that right combination of calls.<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Thanks<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>JB<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a
href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>