[vtkusers] VTK and SWT

Kristian Sons kristian.sons at actor3d.com
Thu Feb 17 07:34:29 EST 2011


Ooops, here the java file.

Am 17.02.2011 12:16, schrieb Kristian Sons:
> Hi Stephen,
>
> I attached the Java part, how we made VTK work with SWT. We created the
> GL context in SWT and passed the handle to VTK. RenderCreate is a native
> function we added to VTK. I will have look to find the code for that. We
> also had the same for GTK-SWT. I will search my archive ;)
>
> It work pretty well. The only drawback we had was that we couldn't
> activate AA for the Canvas with SWT:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=136514
>
> Best,
> Kristian
>
> Am 16.02.2011 15:12, schrieb Kristian Sons:
>> Hi Stephen,
>>
>> I used VTK with SWT in multiple RCP-based projects. It's some time ago,
>> I will check, if I still have some code.
>>
>> Best,
>> Kristian
>>
>> Am 15.02.2011 22:31, schrieb Mueller, Stephen Ng:
>>> Hi,
>>> I am trying to integrate an existing VTK application written in C++ into
>>> an eclipse/RCP application using SWT. I was wondering if anyone has had
>>> any success doing this, and if they have any example code they can
>>> provide. I have tried to develop an SWT widget in native code.
>>> I make a call to vtkRenderWindowInteractor->setWidget(), passing to it
>>> the widget handle from SWT. However, when I try to render the window,
>>> the application crashes and complains about some error with
>>> XtRealizeWidget(). Anyway, any tips anyone can provide would be much
>>> appreciated.
>>> Thanks,
>>> Stephen
>>>
>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VTKCanvas.java
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110217/cd451770/attachment.asc>


More information about the vtkusers mailing list