[vtkusers] Exit vtkRenderWindowInteractor

David Cole david.cole at kitware.com
Fri Jan 30 07:26:54 EST 2009


Call interactor->ExitCallback() instead. That will exit immediately.

(This assumes that you have previously called interactor->Start() and that
VTK is providing the message loop for you...)

See VTK/Rendering/Testing/Cxx/TestInteractorTimers.cxx for an example.


HTH,
David


On Fri, Jan 30, 2009 at 5:11 AM, Larcher Aurélie <aurelie.larcher at imag.fr>wrote:

>  Hi all,
>
> How can I force the exit of the interactor vtkRenderWindowInteractor.
>
> I know that if I press the 'e' key or the 'q' key, the interactor closes.
>
> But I would like to use a Qt push button and not the keyboard.
>
> I try    interactor->SetKeyCode('e');
>
> But it doesn't work.
>
> Is anybody know how to do ?
>
> Thanks,
>
> Aurélie
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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 HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090130/63562cc4/attachment.htm>


More information about the vtkusers mailing list