Make sure that 3D view rotates around origin.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jan 2010 10:06:28 +0000 (10:06 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jan 2010 10:06:28 +0000 (10:06 +0000)
EVE/macros/visscan_init.C

index fbd7875..8ddabbd 100644 (file)
@@ -233,6 +233,11 @@ void visscan_init(const TString& cdburi = "",
   gEve->EditElement(g_trkcnt);
 
   gEve->Redraw3D(kTRUE);
+
+  // Assure 3D view rotates around the origin.
+  gSystem->ProcessEvents();
+  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->CurrentCamera().SetCenterVec(0,0,0);
+  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->RequestDraw();
 }
 
 /******************************************************************************/