[Insight-users] WrapITK, Java and Operators

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Feb 19 04:29:28 EST 2007


On Fri, 16 Feb 2007 23:30:30 +0100, Jaety Edwards <jaety at cs.berkeley.edu>  
wrote:

> Hello all,
> Another question about using WrapITK to work with ITK in Java.
> Specifically, I was trying to multiply two versors together, but I don't
> immediately see any way to do it. I'm just doing the multiplication by  
> hand
> at the moment which obviously works, but I'm curious about overloaded
> operators in general. In ITK, the versor class overloads the  
> multiplication
> operator *.  Overloaded operators don't seem to get mapped by WrapITK,  
> and
> looking at the various options in cmake for WrapITK, I don't see any
> optional flag to enable operator wrapping either. Just wondered if I'm
> missing something obvious or if for some reason overloaded operators are  
> not
> supported.
> Thanks,
> Jaety

Hi,

Your right, operators are not supported currently.
It should be easy to support them when we will use the native swig instead  
of cable swig, by renaming them to something like Multiply(), Add(), ... -  
there is still lot of work to do though.

Gaetan

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the Insight-users mailing list