[Insight-users] itk+vtk using JAVA

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Apr 22 10:06:32 EDT 2005


Hi Lars,

I think there is no way to connect vtk and itk in java.
In python, there is ConnectVTKITK (in insight applications). Perhap's can  
you try to extend ConnectVTKITK wrapper to use it with java. ConnectVTKITK  
is not really easy to use (lots of objects to create).
In C++, there is a nice connector (in insight applications too). Sadely,  
it is not wrapped. It's hard to find doc or help about wrappers, so it  
might be a hard task to wrap it...

Let us know if you find a good solution.

Gaetan



On Fri, 22 Apr 2005 15:00:31 +0200, Lars Matthäus <lars.matthaeus at web.de>  
wrote:

> Hi Andres,
>
> thanks for your reply! The documentation of ITK says that wrapping is
> possible using CSWIG. Indeed, I managed to compile ITK for Java and it
> produced - as you mentioned - several classes which code some of the
> possibilities for the templates. But I don't know the next step, i.e.
> how to get ITK and VTK running and doing something meaningful. So the
> question which remains is how to connect the VTK and ITK pipeline under
> Java.
> But thanks for your help again!
>
> Lars
>
> Andres Munarriz schrieb:
>> Hello Lars,
>>
>> I believe you're problem lies on the fact that there are no Java
>> wrappers for ITK. That is scince ITK is coded using C++ templates (ie.
>> generic code) you would have to wrap every ITK class you would like to
>> use defining or setting in cold the type of thee objects you will be
>> using with these.  Then again the ITK Documentation PDF expands a bit
>> more on this issue.  I hope this was of help.
>>
>> Andrés
>>
>> On 4/20/05, Lars Matthäus <lars.matthaeus at web.de> wrote:
>>
>>> Hi users,
>>>
>>> I try to use ITK together with VTK in JAVA, but so far without success.
>>> As far as I understand the whole wrapping process of ITK to JAVA is  
>>> more
>>> than complicated and the result is, well, not too beautiful. But I
>>> managed to run VTK with JAVA so I have hope ...
>>>
>>> *Is there anybody who managed to get ITK+VTK+JAVA to work properly? Is
>>> there any documentation around which could help? Or could somebody just
>>> send me a tiny snippet of code to give me a start?*
>>>
>>> Thanks
>>>
>>> Lars
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>
>>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 29 66
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)


More information about the Insight-users mailing list