I do not want to create another one topic, but I want to add some nodes interactively. The problem is that user can rotate objects while I add nodes the view became default. How to get the current angels which are changed by user or anyhow else.
I tried to:
TView *view = gPad->GetView();
if (!view) return;
if (!gGeoManager) return;
TVirtualGeoPainter *painter = gGeoManager->GetGeomPainter();
if (!painter) return;
Double_t longit = view->GetLongitude();
Double_t lat = view->GetLatitude();
Double_t psi = view->GetPsi();
Double_t dphi = 1.;
//do smth....
view->SetView(.....);
gPad->Modified();
gPad->Update();
but it doesn’t work.