[vtkusers] question about implementing my own image pan

Jim Peterson jimcp at cox.net
Fri Oct 15 23:23:12 EDT 2010


Jonathan Morra wrote:
> Thanks for the help.  I changed my implementation of panning to be 
> from screen to world coordinates and it works perfectly.  I tried to 
> use the built in panning with shift+left click and it works terribly 
> for me, but my version works perfectly.
>
> Thanks again for the help
Glad I could help, but I think you may have overlooked fact that vtk has 
a range of built in interactor styles. with no style specified, the 
default interactor is the joystick model, that one performs actions 
based on the pointer location on the screen and can be hard to predict 
since it reacts to the displacement from the center of the screen and 
does not always go in the direction of the mouse movement. the trackball 
style interactor behaves much like the one you describe. with no mouse 
movement, there is no associated action on the screen, and the action is 
directly associated with the speed and distance of the pointer movement.
I agree the trackball interactor is much more intuitive and 
controllable. I would suggest you explore before you jump to programming.

have fun,
Jim



More information about the vtkusers mailing list