[vtkusers] How to disable rotation

Xianjin Yang Yang at AGIUSA.COM
Thu Jul 1 16:44:52 EDT 2004


Yi-Yu, This is all you need:

        vtkInteractorStyleImage *isi = vtkInteractorStyleImage::New();
        // vtkRenderWindowInteractor *iren
        iren->SetInteractorStyle(isi);

Yang

-----Original Message-----
From: Yi-Yu Chou [mailto:chouyiyu at hotmail.com] 
Sent: Thursday, July 01, 2004 3:30 PM
To: vtkusers at vtk.org
Subject: [vtkusers] How to disable rotation


Dear vtk users,

Is it possible to disable rotation but keep pan and zoom alive ? I know
there is a simple way to do it, but not perfect. You can use :
pane.bind("<ButtonPress-1>", lambda e: e)

This method works well. But after using pan or zoom, the interactor of 
rotation is "activated".
How to fix this problem ? Or there is a better way to do it. 
Thanks in advance !!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040701/1c17df35/attachment.htm>


More information about the vtkusers mailing list