-
Utkarsh Ayachit authored
vtkInteractorStyleRubberBandZoom is highly unreliable (paraview/paraview#17511). Added new options to make it a little easier to use and more consistent. 1. Added option to lock aspect ratio of the box to that of the viewport. Thus user get a better understanding of what would actually be zoomed to. 2. Added option to center the box at the start position rather than having the start position be one of the corners of the box. This makes it easier to focus on point of interest. 3. Added option to use "zoom" instead of "dolly" for perspective camera. This avoid cases where the camera travels into the dataset when zooming into small regions. 4. When not dollying, instead changing camera view angle to zoom in perspective mode, we reorient the camera to point to the center of the target box rather than panning which ends up giving more reliable results in real world scenarios. 5. The code has been cleaned up to use vtkVector, vtkRect to make it more readable. The default behavior is left unchanged.
bef6d0f5