[vtk-developers] vtkImageMathematics and TCL/Python

David Gobbi david.gobbi at gmail.com
Mon Apr 2 21:20:22 EDT 2012


They're not defined in VTK 6, only in VTK 5.10 and earlier.
What do you mean by "still"?

 - David


On Mon, Apr 2, 2012 at 6:20 PM, Andrew Maclean
<andrew.amaclean at gmail.com> wrote:
> 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 *in) { this->SetInput(0,in); }
> virtual void SetInput2(vtkDataObject *in) { this->SetInput(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
>
> ___________________________________________



More information about the vtk-developers mailing list