[vtkusers] custom renderwindowinteractorstyle

David Doria daviddoria at gmail.com
Thu Sep 1 09:38:21 EDT 2011


On Thu, Sep 1, 2011 at 9:30 AM, Florian Bruckner <e0425375 at gmail.com> wrote:
> hi,
>
> how is it possible to write an custom RenderWindowInteractorStyle
> which does exactly the same as vtkInteractorStyleTrackballCamera, but
> which does not react on the zoom event. only panning and rotation
> should be allowed.
>
> thanks
> Florian

You have to create a subclass of the interactor style. Then in the
appropriate action (in this case something like OnMiddleButtonDown()
), do whatever you want (in this case nothing). Here is an example of
the structure:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents

David



More information about the vtkusers mailing list