Hi all, I’m an undergrad researcher working on a project in Eve7. This is my first time using ROOT/Eve7 on a project, and everything’s been working smoothly so far, except I’m running into a problem with setting/changing the camera orientation. Is there a way to rotate the camera or make it so that the z axis points upwards rather than to the right? I tried to replicate the solution I saw in another thread about changing the camera axes in Eve, but it seems like it doesn’t work in Eve7. Any guidance is appreciated.
Thanks so much,
Theo
ROOT Version: 6.36.000 Platform: macOS Sequoia 15.5 Compiler: Not Provided
TView *view = gPad->GetView();
cout<<view->GetLongitude()<<" "<<view->GetLatitude()<<" "<<view->GetPsi()<<endl; // see current values; longitude = phi, latitude = theta
view->RotateView(-30, 60);
If you want to rotate in psi as well (see printout from the above), you can do what is done by ROOT in the page I linked above: get the view and then manually do SetView (instead of RotateView) with psi different from zero, and also adjust the Pad as shown there too.
For the moment, there are only two camera types that can be set in REveViewer: kCameraPerspXOZ, kCameraOrthoXOY [1].
To my understanding, you need a CameraPerspXOY type. I will add this type with the other missing camera types (kCameraPerspYOZ, kCameraPerspYOZ, kCameraOrthoXOZ, kCameraOrthoZOY,kCameraOrthoXnOY, kCameraOrthoXnOZ, kCameraOrthoZnOY, kCameraOrthoZnOX)