[Insight-developers] adding swig command to itk python wrapper

William A. Hoffman billlist at nycap.rr.com
Mon Apr 4 12:40:54 EDT 2005


You may have to remove all the 
wrap_*Tcl.cxx from Wrapping/CSwig/*
There may be a missing depend on the itk.swg file, but
that would be the place to make the change.

-Bill


At 10:20 AM 4/4/2005, Gaetan Lehmann wrote:

>Hi,
>
>I try to add a swig command to make itk more usable in python, but I can't  
>find where to add it.
>Currently, I only tried to add :
>
>        %rename(__getitem__) itkIndex2::operator[];
>
>to make index accessible with standard python list interface.
>I tried to add this in itk.swg (where python typemaps are defined), but it  
>seems that doing some changes in this file don't make make rebuild any  
>file, so I'm not sure that this file is used somewhere.
>Can somebody tell me where I can add swig commands ?
>
>Regards,
>
>Gaetan
>
>-- 
>Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
>Tel: +33 1 34 65 22 34
>Biologie du Développement et de la Reproduction
>INRA de Jouy-en-Josas (France)
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list