I am using a Qvtkwidget to display images in an application. Image interactions are enabled via render window interactor. vtkinteractorstyle image is used. Clicking and dragging on the image results in window and level change. However the scale of this change is drastic. Is there any way to reduce the range of this change? Or rather change the response of click and drag to say, panning the image.
Pressing down shift button + click and drag OR
Mouse wheel down and drag, results in panning the image.
Could it be manipulated so that simple click and drag pans the image.
One way to do it is to extend/customize one of the vtkInteractorStyle* classes like this one here: gammaray/v3dmouseinteractor.h at master · PauloCarvalhoRJ/gammaray · GitHub. This one is a modified vtkInteractorStyleTrackballCamera to enable probing of mesh values via mouse picking with a probe marker. The probe marker is a small red sphere that must be resized according to the zoom applied so its angular size stays the same. To use a custom interactor style, do like this: