I'm not sure if it will work but maybe using vtkTrivialProducer might do it for you with SetOutput().<br><br>Andy<br><br><div class="gmail_quote">On Sun, Sep 12, 2010 at 4:40 PM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p>I'm experimenting with calling functions in the ServerManager
directly from a parallel application</p>
<p> </p>
<p>On each node, I have a vtkDataset (piece of),</p>
<p> </p>
<p>I need to set the dataset as input to a pipeline - for example</p>
<p> </p>
<p class="MsoNormal" style=""><b><span style="font-size: 12pt; font-family: "Courier New";"> <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><span style="font-size: 12pt; font-family: "Courier New"; color: olive;"></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 12pt; font-family: "Courier New";"> <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;">-></span><span style="color: green;">NewProxy</span><span style="color: olive;">(</span><span style="color: blue;">"filters"</span><span style="color: olive;">,</span> <span style="color: blue;">"Contour"</span><span style="color: olive;">);</span></span></b><span style="font-size: 12pt; font-family: "Courier New"; color: olive;"></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 12pt; font-family: "Courier New";"> <span style="color: navy;">//</span></span></b><span style="font-size: 12pt; font-family: "Courier New"; color: navy;"></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 12pt; font-family: "Courier New";"> <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><span style="font-size: 12pt; font-family: "Courier New"; color: olive;"></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 12pt; font-family: "Courier New";"> <span style="color: green;">contour</span><span style="color: olive;">-></span><span style="color: green;">GetProperty</span><span style="color: olive;">(</span><span style="color: blue;">"Input"</span><span style="color: olive;">));</span></span></b></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt; font-family: "Courier New"; color: olive;"> </span></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’t seem to find that right
combination of calls.</p>
<p> </p>
<p>Thanks</p>
<p> </p>
<p>JB</p>
</div>
</div>
<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><br>
<br></blockquote></div><br>