[vtk-developers] vtkImageMathematics and TCL/Python

Andrew Maclean andrew.amaclean at gmail.com
Mon Apr 2 20:20:15 EDT 2012


Thanks for your quick response, David.

The SetInputConnection works perfectly for Python.

Oddly enough at around line 174 of the header file vtkImageMathematics.h they
are still defined:

virtual void SetInput1(vtkDataObject
<http://www.vtk.org/doc/release/5.8/html/a00473.html> *in) {
this->SetInput <http://www.vtk.org/doc/release/5.8/html/a00887.html#29e467d314fb2efafb134cc11a8796a5>(0,in);
}virtual void SetInput2(vtkDataObject
<http://www.vtk.org/doc/release/5.8/html/a00473.html> *in) {
this->SetInput <http://www.vtk.org/doc/release/5.8/html/a00887.html#29e467d314fb2efafb134cc11a8796a5>(1,in);
}


Regards
    Andrew




On Mon, Apr 2, 2012 at 10:32 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Andrew,
>
> The methods SetInputData1 and SetInputData2 don't exist
> in C++ either, as far as I can tell.
>
> In VTK 5.8 and 5.10: SetInput1(), SetInput2()
> In VTK master: SetInput1Data(), SetInput2Data()
>
> The SetInputConnection method works in all:
> SetInputConnection(0, other1->GetOutputPort())
> SetInputConnection(1, other2->GetOutputPort())
>
>  - David
>
>
> On Mon, Apr 2, 2012 at 5:03 AM, Andrew Maclean
> <andrew.amaclean at gmail.com> wrote:
> > Hi All,
> >
> > I am updating some old tcl scripts and, at the same time, generating
> python
> > code from them. I doing this, I have come across an issue relating
> > to vtkImageMathematics. I am getting errors relating to the
> > functions SetInputData1 and SetInputData2 not existing.
> >
> > In order to confirm this, I ran the TCL test
> > script: Imaging/Testing/Tcl/TestAllMathematics.tcl  and the test fails on
> > vtk 5.8. It fails because SetInputData1 does not exist. A similar issue
> > exists for Python.
> >
> > I am using a 64-bit build of VTK 5.8 with Visual Express 10 (Win64 VS10)
> and
> > the release/debug builds are error free builds with TCL and Python
> wrapping.
> >
> > It seems to me that the functions  SetInputData1 and SetInputData2 are
> not
> > being wrapped or I am missing something. What is also interesting is that
> > there is a test  TestAllMathematics-image  that seems to be passing Ok on
> > the dashboards. Is this the same as the tcl version?
> >
> >
> > Thanks
> >    Andrew
> >
> > --
> > ___________________________________________
> > Andrew J. P. Maclean
>



-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120403/62b55529/attachment.html>


More information about the vtk-developers mailing list