Thanks for your quick response, David.<div><br>The SetInputConnection works perfectly for Python.</div><div><br></div><div>Oddly enough at around line 174 of the header file <span style="background-color:rgb(255,255,255);font-family:Geneva,Arial,Helvetica,sans-serif;text-align:center">vtkImageMathematics.h </span>they are still defined:</div>
<div><pre class="fragment" style="font-family:monospace,fixed;font-size:13px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-left-color:rgb(204,204,204);background-color:rgb(245,245,245);margin-top:4px;margin-bottom:4px;margin-left:2px;margin-right:8px;padding-left:6px;padding-right:6px;padding-top:4px;padding-bottom:4px">
<span class="keyword" style="color:rgb(0,128,0)">virtual</span> <span class="keywordtype" style="color:rgb(96,64,32)">void</span> SetInput1(<a class="code" href="http://www.vtk.org/doc/release/5.8/html/a00473.html" title="general representation of visualization data" style="color:rgb(0,0,255);text-decoration:none;background-color:rgb(242,242,255)">vtkDataObject</a> *in) { this-><a class="code" href="http://www.vtk.org/doc/release/5.8/html/a00887.html#29e467d314fb2efafb134cc11a8796a5" style="color:rgb(0,0,255);text-decoration:none">SetInput</a>(0,in); }
<span class="keyword" style="color:rgb(0,128,0)">virtual</span> <span class="keywordtype" style="color:rgb(96,64,32)">void</span> SetInput2(<a class="code" href="http://www.vtk.org/doc/release/5.8/html/a00473.html" title="general representation of visualization data" style="color:rgb(0,0,255);text-decoration:none">vtkDataObject</a> *in) { this-><a class="code" href="http://www.vtk.org/doc/release/5.8/html/a00887.html#29e467d314fb2efafb134cc11a8796a5" style="color:rgb(0,0,255);text-decoration:none">SetInput</a>(1,in); }</pre>
</div><div><br></div><div>Regards</div><div> Andrew</div><div> </div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 10:32 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrew,<br>
<br>
The methods SetInputData1 and SetInputData2 don't exist<br>
in C++ either, as far as I can tell.<br>
<br>
In VTK 5.8 and 5.10: SetInput1(), SetInput2()<br>
In VTK master: SetInput1Data(), SetInput2Data()<br>
<br>
The SetInputConnection method works in all:<br>
SetInputConnection(0, other1->GetOutputPort())<br>
SetInputConnection(1, other2->GetOutputPort())<br>
<span class="HOEnZb"><font color="#888888"><br>
- David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Apr 2, 2012 at 5:03 AM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I am updating some old tcl scripts and, at the same time, generating python<br>
> code from them. I doing this, I have come across an issue relating<br>
> to vtkImageMathematics. I am getting errors relating to the<br>
> functions SetInputData1 and SetInputData2 not existing.<br>
><br>
> In order to confirm this, I ran the TCL test<br>
> script: Imaging/Testing/Tcl/TestAllMathematics.tcl and the test fails on<br>
> vtk 5.8. It fails because SetInputData1 does not exist. A similar issue<br>
> exists for Python.<br>
><br>
> I am using a 64-bit build of VTK 5.8 with Visual Express 10 (Win64 VS10) and<br>
> the release/debug builds are error free builds with TCL and Python wrapping.<br>
><br>
> It seems to me that the functions SetInputData1 and SetInputData2 are not<br>
> being wrapped or I am missing something. What is also interesting is that<br>
> there is a test TestAllMathematics-image that seems to be passing Ok on<br>
> the dashboards. Is this the same as the tcl version?<br>
><br>
><br>
> Thanks<br>
> Andrew<br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>
</div>