[vtkusers] vtkRenderWindowInteractor and Frame SWT

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Apr 8 08:01:44 EDT 2011


Hi Peter,

what do you mean by "the navigation is delayed in the vtkCanvas" ?

Thanks,

Seb

On Fri, Apr 8, 2011 at 6:41 AM, Peter Eipert <eipert at web.de> wrote:
> Hello again
>
> I have made a little mistake. Of course the first codeLine has to be:
>
> public class myVtkPanel extends vtkPanel{
>
> Sorry
> Peter
>>
>> 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
>>>
>>
>> _______________________________________________
>> 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
>



More information about the vtkusers mailing list