Hi!
I would like to realize panning of the TGeoManager geometry view (standard mode, not OpenGL) in an external application which uses ROOT as a library.
In the perspective mode, everything works fine using this approach:
fCanvas->GetView()->GetWindow(centerX, centerY, viewSizeX, viewSizeY);
...adjusting centerX and centerY...
fCanvas->GetView()->SetWindow(centerX, centerY, viewSizeX, viewSizeY);
However, when the view mode is changed to “parallel”, this approach stops working: the view is keeping the same center.
Is there a bug in the SetWindow() method or was it planned this way?
If the latter, is there another way to make panning?
Note that by default OpenGL viewer has midButton-move for panning, which is not implemented for the standard view.
Thank you!
ROOT Version: 6.14/04
Platform: Ubuntu 18.04