12 #ifndef UTILITYAPPS_SRC_MULTIVIEW_H
13 #define UTILITYAPPS_SRC_MULTIVIEW_H
15 #include <TEveManager.h>
16 #include <TEveViewer.h>
17 #include <TGLViewer.h>
19 #include <TEveScene.h>
21 #include <TEveProjectionManager.h>
22 #include <TEveProjectionAxes.h>
24 #include <TEveBrowser.h>
25 #include <TEveWindow.h>
71 "Scene holding projected geometry for the RPhi view.");
73 "Scene holding projected geometry for the RhoZ view.");
75 "Scene holding projected event-data for the RPhi view.");
77 "Scene holding projected event-data for the RhoZ view.");
83 fRPhiMgr =
new TEveProjectionManager(TEveProjection::kPT_RPhi);
84 gEve->AddToListTree(
fRPhiMgr, kFALSE);
86 TEveProjectionAxes* a =
new TEveProjectionAxes(
fRPhiMgr);
87 a->SetMainColor(kWhite);
89 a->SetTitleSize(0.05);
91 a->SetLabelSize(0.025);
96 fRhoZMgr =
new TEveProjectionManager(TEveProjection::kPT_RhoZ);
97 gEve->AddToListTree(
fRhoZMgr, kFALSE);
99 TEveProjectionAxes* a =
new TEveProjectionAxes(
fRhoZMgr);
100 a->SetMainColor(kWhite);
101 a->SetTitle(
"Rho-Z");
102 a->SetTitleSize(0.05);
103 a->SetTitleFont(102);
104 a->SetLabelSize(0.025);
105 a->SetLabelFont(102);
113 TEveWindowSlot *
slot = 0;
114 TEveWindowPack *pack = 0;
116 slot = TEveWindow::CreateWindowInTab(gEve->GetBrowser()->GetTabRight());
117 pack =
slot->MakePack();
118 pack->SetElementName(
"Multi View");
119 pack->SetHorizontal();
120 pack->SetShowTitleBar(kFALSE);
121 pack->NewSlot()->MakeCurrent();
122 f3DView = gEve->SpawnNewViewer(
"3D View",
"");
123 f3DView->AddScene(gEve->GetGlobalScene());
124 f3DView->AddScene(gEve->GetEventScene());
126 pack = pack->NewSlot()->MakePack();
127 pack->SetShowTitleBar(kFALSE);
128 pack->NewSlot()->MakeCurrent();
129 fRPhiView = gEve->SpawnNewViewer(
"RPhi View",
"");
130 fRPhiView->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
134 pack->NewSlot()->MakeCurrent();
135 fRhoZView = gEve->SpawnNewViewer(
"RhoZ View",
"");
136 fRhoZView->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
142 f3DView->GetGLViewer()->ColorSet().Background().SetColor(kWhite);
143 fRPhiView->GetGLViewer()->ColorSet().Background().SetColor(kWhite);
144 fRhoZView->GetGLViewer()->ColorSet().Background().SetColor(kWhite);
182 gEve->AddElement( el ) ;