[vtkusers] Responding to custom events with vtkrenderInteractor
David Doria
daviddoria+vtk at gmail.com
Mon Mar 29 18:35:53 EDT 2010
On Mon, Mar 29, 2010 at 5:59 PM, Anja Ende <anja.ende at googlemail.com> wrote:
> Hello,
>
> I am currently using vtkRenderWindowInteractor and this provides me
> with most of the functionality that I need. However, I want to extend
> it by having it respond to certain other user events (key stokes).
> What is the best way to do this? Would I have to inherit from
> vtkRenderWindowInteractor and provide these methods or is there a way
> to simply "plug in" extra events, if one wants.
>
> many thanks for your help.
>
> Cheers,
> Anja
You'll want to subclass a vtkInteractorStyle. Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/Interaction/KeypressEvents
Thanks,
David
More information about the vtkusers
mailing list