[vtkusers] Swing Integration

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Jul 2 12:22:38 EDT 2015

Have you look at the examples application in Java that are inside the
vtk.jar? Are you on Mac or are you using another platform?


On Thu, Jul 2, 2015 at 1:44 AM, quadprob <gustav.lundin at saabgroup.com>

> Hi,
> I'm trying to integrate vtk into my swing application. However, the method
> shown in the  examples
> <http://www.vtk.org/Wiki/VTK/Examples/Java/SwingIntegration/JFrameRenderer
> >
> renders very slowly and also renders the faces as see through regardless of
> opacity settings. The effect is easier to observe when rendering a  cube
> <http://pastebin.com/iKCWVkwi>   instead of a sphere.
> I have been able to workaround this by  starting the renderWindowInteractor
> <http://pastebin.com/jXsph2xF>  . Starting the interactor makes it render
> much quicker and removes the see-through effect, however, it also causes a
> second window to be created. It's hidden behind the main window and closes
> when it closes but becomes visible if you move the main window.
> I'd like the positive effects of the interactor without having to suffer
> the
> second window. How would I accomplish this?
> Thanks
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Swing-Integration-tp5732661.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150702/6aac4a9c/attachment.html>

More information about the vtkusers mailing list