[vtkusers] Change Key Binding of vtkInteractorStyleTrackballCamera class
David Doria
daviddoria at gmail.com
Thu Jan 13 07:37:16 EST 2011
On Thu, Jan 13, 2011 at 6:04 AM, Anand.rp <anand.rp at teamta.in> wrote:
>
> I want to change the mouse key bindings associated with
> vtkInteractorStyleTrackballCamera class. How can I change
> it.
>
> I want -------- Left button down - rotate
> right button down- pan
> both button down - zoom
>
>
> pls help
Try subclassing the style as is done here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents
but call the new button assignment with the old button event handler:
virtual void OnLeftButtonDown()
{
vtkInteractorStyleTrackballCamera::OnRightButtonDown();
}
David
More information about the vtkusers
mailing list