[vtkusers] vtkRenderWindowInteractor and Frame SWT
Peter Eipert
eipert at web.de
Fri Apr 8 05:43:50 EDT 2011
Hi Romain
I had the same problem. If you create the interactor the second window
opens.
The solution is to create an own class extending vtkPanel and create the
interactor like this:
public class Panel3D extends myVtkPanel{
private vtkGenericRenderWindowInteractor iren = new
vtkGenericRenderWindowInteractor();
public myVtkPanel(){
super();
}
}
You could also use vtkCanvas instead of vtkPanel but the navigation is
delayed in the vtkCanvas what annoyed me.
Peter
> Good morning everyone!
> Actually, I put a vtkPanel panel inside a Frame SWT (I work in Java). I try to use vtkRenderWindowInteractor with the panel.GetRenderWindow() but the panel is not anymore inside the frame. Moreover, I can see my dataset (inside the second window) but I have no interaction with it.
> Is anybody is confront with this problem?
>
> Thanks,
> Romain LEGUAY
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list