[vtk-developers] Wrappers and signed char

Ken Martin ken.martin at kitware.com
Fri Jul 22 09:40:43 EDT 2005


You can wrap VTK with SWIG using Cable (a C++ wrapper based on GCC and SWIG)
This is how we wrap ITK. Having said that I'm not sure if VTK would wrap to
your satisfaction without some additional customization. Stock SWIG isn't
going to cut it. 

Thanks
Ken

> -----Original Message-----
> From: vtk-developers-bounces+ken.martin=kitware.com at vtk.org [mailto:vtk-
> developers-bounces+ken.martin=kitware.com at vtk.org] On Behalf Of tom fogal
> Sent: Thursday, July 21, 2005 7:08 PM
> To: vtk-developers at vtk.org
> Subject: Re: [vtk-developers] Wrappers and signed char
> 
>  <42E006C8.3080306 at kitware.com>Brad King writes:
> >David Gobbi wrote:
> >> I saw that you added "signed char" support to the wrappers.  Adding new
> >> types to the wrappers is good, but if you're not careful, you'll run
> out
> >> of available types pretty fast!  You're already up to 0xD, so only 0xE
> >> and 0xF remain.
> >
> >When we run out of types we can just shift everything over one digit and
> >then we'll have 256 types.  Alternatively someone could implement a real
> >type system that is actually readable and avoids duplicating the
> >enumerations in Tcl/Java/Python/ClientServer/etc wrapper generators.
> 
> Not that I foresee anyone picking up this task anytime soon, but it
> would be really great if all this wrapping stuff switched over to using
> SWIG. It seems to be very popular and I'm not sure if there are even
> any other tools that could wrap the breadth of languages that VTK
> supports.
> 
> Just my $0.02,
> 
> -tom
> 
> <snip>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list