[Insight-users] Getting PyObject* through to wrapped C++ code

Charl P. Botha c . p . botha at ewi . tudelft . nl
22 Jul 2003 18:26:20 +0200


Hi Bill,

On Tue, 2003-07-22 at 18:10, Bill Hoffman wrote:
> You may want to look at Wrapping/CSwig/Common/SwigExtras.i.
> This is a traditional swig input file that is used in the 
> build of CSwig wrapped ITK.   You may be able to add your typemap
> code there, or do something similar.

Please see a later mail by me with the subject "[PATCH-SET #2]
itkPyCommand - a working observer mechanism for ITK Python" where all of
this has been resolved.

I hope that you can integrate itkPyCommand!

Embarrassingly enough, I didn't run into SwigExtras.i during my analysis
of the wrapping code and solved the problem differently.  Maybe my
PREVIOUS patch (the one adding the exception handling for
itk::ExceptionObject) can be moved here, which would be much cleaner. 
I'm interested to hear your opinion.

Thanks,
Charl

-- 
charl p. botha http://cpbotha . net/ http://visualisation . tudelft . nl/