64const char *filetypes[] = {
65 "ROOT files",
"*.root",
70const char *rcfiletypes[] = {
79 TGShapedToolTip(
const TGShapedToolTip&);
80 TGShapedToolTip&
operator=(
const TGShapedToolTip&);
83 Int_t fTextX, fTextY, fTextH;
90 virtual void DoRedraw() {}
93 TGShapedToolTip(
const char *picname,
Int_t cx=0,
Int_t cy=0,
Int_t cw=0,
95 const char *col=
"#ffffff");
96 virtual ~TGShapedToolTip();
98 virtual void CloseWindow();
102 const char *GetText()
const {
return fText.
Data(); }
104 void SetHisto(
TH1 *hist);
105 void SetText(
const char *
text);
107 void SetTextAttributes(
Int_t tx,
Int_t ty,
Int_t th,
const char *col=0);
114class HtmlObjTable :
public TObject {
133 virtual ~HtmlObjTable();
135 void SetLabel(
Int_t col,
const char *label) { fLabels[col] = label; }
137 TString Html()
const {
return fHtml; }
156 HtmlSummary(
const char *title);
157 virtual ~HtmlSummary();
159 HtmlObjTable *AddTable(
const char *
name,
Int_t nfields,
Int_t nvals,
161 HtmlObjTable *GetTable(
Int_t at)
const {
return (HtmlObjTable *)fObjTables->
At(at); }
165 TString Html()
const {
return fHtml; }
176 kHelpAbout, kGLPerspYOZ, kGLPerspXOZ, kGLPerspXOY, kGLXOY,
177 kGLXOZ, kGLZOY, kGLOrthoRotate, kGLOrthoDolly, kSceneUpdate,
178 kSceneUpdateAll, kSummaryUpdate
188 static HtmlSummary *fgHtmlSummary;
196 TGShapedToolTip *fShapedToolTip;
205 virtual ~SplitGLView();
208 void HandleMenu(
Int_t id);
212 void OnViewerActivated();
215 void ToggleOrthoRotate();
216 void ToggleOrthoDolly();
218 void LoadConfig(
const char *fname);
219 void SaveConfig(
const char *fname);
220 static void UpdateSummary();
236HtmlSummary *SplitGLView::fgHtmlSummary = 0;
237TGHtml *SplitGLView::fgHtml = 0;
240TGShapedToolTip::TGShapedToolTip(
const char *pname,
Int_t cx,
Int_t cy,
Int_t cw,
248 fTextX = tx; fTextY = ty; fTextH = th;
252 fTextCol =
"0x000000";
255 if ((cx > 0) && (cy > 0) && (cw > 0) && (ch > 0)) {
256 Int_t lhRight = fWidth-cx-cw;
257 Int_t lhBottom = fHeight-cy-ch;
260 lhRight, cy, lhBottom));
264 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
268TGShapedToolTip::~TGShapedToolTip()
279void TGShapedToolTip::CloseWindow()
287void TGShapedToolTip::Refresh()
291 const char *str = fText.
Data();
292 char *
string = strdup(str);
293 Int_t nlines = 0, size = fTextH;
295 char *
s = strtok((
char *)
string,
"\n");
297 img->
DrawText(fTextX, fTextY+(nlines*size),
s, size, fTextCol, ar);
298 while ((
s = strtok(0,
"\n"))) {
300 img->
DrawText(fTextX, fTextY+(nlines*size),
s, size, fTextCol, ar);
302 img->
PaintImage(fId, 0, 0, 0, 0, 0, 0,
"opaque");
313 Int_t lhRight = fWidth-cx-cw;
314 Int_t lhBottom = fHeight-cy-ch;
317 lhRight, cy, lhBottom));
320 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
332 AddFrame(fEc, hints);
335 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
342void TGShapedToolTip::SetHisto(
TH1 *hist)
364void TGShapedToolTip::SetText(
const char *
text)
391 fTextX = tx; fTextY = ty; fTextH = th;
424 fName(
name), fNValues(nvals), fNFields(nfields), fExpand(
exp)
428 fValues =
new TArrayF[fNFields];
429 for (
int i=0;i<fNFields;i++)
430 fValues[i].Set(nvals);
431 fLabels =
new TString[fNFields];
435HtmlObjTable::~HtmlObjTable()
444void HtmlObjTable::Build()
448 fHtml =
"<table width=100% border=1 cellspacing=0 cellpadding=0 bgcolor=f0f0f0> ",
451 if (fExpand && (fNFields > 0) && (fNValues > 0)) {
460void HtmlObjTable::BuildTitle()
464 fHtml +=
"<tr><td colspan=";
465 fHtml +=
Form(
"%d>", fNFields+1);
466 fHtml +=
"<table width=100% border=0 cellspacing=2 cellpadding=0 bgcolor=6e6ea0>";
467 fHtml +=
"<tr><td align=left>";
468 fHtml +=
"<font face=Verdana size=3 color=ffffff><b><i>";
470 fHtml +=
"</i></b></font></td>";
472 fHtml +=
"<td align=right> ";
473 fHtml +=
"<font face=Verdana size=3 color=ffffff><b><i>";
474 fHtml +=
Form(
"Size = %d", fNValues);
475 fHtml +=
"</i></b></font></td></tr>";
477 fHtml +=
"</td></tr>";
481void HtmlObjTable::BuildLabels()
486 fHtml +=
"<tr bgcolor=c0c0ff>";
487 fHtml +=
"<th> </th>";
488 for (i=0;i<fNFields;i++) {
497void HtmlObjTable::BuildTable()
501 for (
int i = 0; i < fNValues; i++) {
503 fHtml +=
"<tr bgcolor=e0e0ff>";
505 fHtml +=
"<tr bgcolor=ffffff>";
508 name.ReplaceAll(
" ",
"_");
510 fHtml +=
"<td bgcolor=d0d0ff align=\"center\">";
511 fHtml +=
"<input type=\"checkbox\" name=\"";
513 fHtml +=
Form(
"[%d]\">",i);
516 for (
int j = 0; j < fNFields; j++) {
517 fHtml +=
"<td width=";
518 fHtml +=
Form(
"%d%%", 100/fNFields);
519 fHtml +=
" align=\"center\"";
521 fHtml +=
Form(
"%1.4f", fValues[j][i]);
529HtmlSummary::HtmlSummary(
const char *title) : fNTables(0), fTitle(title)
537HtmlSummary::~HtmlSummary()
545HtmlObjTable *HtmlSummary::AddTable(
const char *
name,
Int_t nfields,
Int_t nvals,
552 HtmlObjTable *table =
new HtmlObjTable(
name, nfields, nvals,
exp);
557 fObjTables->
Add(table);
562void HtmlSummary::Clear(
Option_t *option)
566 if (option && option[0] ==
'D')
567 fObjTables->
Delete(option);
569 fObjTables->
Clear(option);
578 delete fObjTables; fObjTables = 0;
583void HtmlSummary::Build()
588 for (
int i=0;i<fNTables;i++) {
589 GetTable(i)->Build();
590 fHtml += GetTable(i)->Html();
596void HtmlSummary::MakeHeader()
600 fHeader =
"<html><head><title>";
602 fHeader +=
"</title></head><body>";
603 fHeader +=
"<center><h2><font color=#2222ee><i>";
605 fHeader +=
"</i></font></h2></center>";
610void HtmlSummary::MakeFooter()
614 fFooter =
"<br><p><br><center><strong><font size=2 color=#2222ee>";
615 fFooter +=
"Example of using Html widget to display tabular data";
617 fFooter +=
"(c) 2007-2010 Bertrand Bellenot";
618 fFooter +=
"</font></strong></center></body></html>";
624 TGMainFrame(p, w,
h), fActViewer(0), fShapedToolTip(0), fIsEmbedded(embed)
636 fMenuFile->AddEntry(
"&Open...",
kFileOpen);
637 fMenuFile->AddSeparator();
638 fMenuFile->AddEntry(
"&Update Summary", kSummaryUpdate);
639 fMenuFile->AddSeparator();
642 fMenuFile->AddSeparator();
643 fMenuFile->AddEntry(
"E&xit", kFileExit);
647 fMenuCamera->AddEntry(
"Perspective (Floor XOZ)", kGLPerspXOZ);
648 fMenuCamera->AddEntry(
"Perspective (Floor YOZ)", kGLPerspYOZ);
649 fMenuCamera->AddEntry(
"Perspective (Floor XOY)", kGLPerspXOY);
650 fMenuCamera->AddEntry(
"Orthographic (XOY)", kGLXOY);
651 fMenuCamera->AddEntry(
"Orthographic (XOZ)", kGLXOZ);
652 fMenuCamera->AddEntry(
"Orthographic (ZOY)", kGLZOY);
653 fMenuCamera->AddSeparator();
654 fMenuCamera->AddEntry(
"Ortho allow rotate", kGLOrthoRotate);
655 fMenuCamera->AddEntry(
"Ortho allow dolly", kGLOrthoDolly);
658 fMenuScene->AddEntry(
"&Update Current", kSceneUpdate);
659 fMenuScene->AddEntry(
"Update &All", kSceneUpdateAll);
679 fMenuFile->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
680 "HandleMenu(Int_t)");
681 fMenuCamera->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
682 "HandleMenu(Int_t)");
683 fMenuScene->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
684 "HandleMenu(Int_t)");
685 fMenuHelp->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
686 "HandleMenu(Int_t)");
688 if (fIsEmbedded &&
gEve) {
694 Int_t parts[] = {45, 15, 10, 30};
696 fStatusBar->SetParts(parts, 4);
703 fPad->SetFillColor(
kBlack);
709 fSplitFrame->HSplit(434);
711 fSplitFrame->GetSecond()->VSplit(266);
712 fSplitFrame->GetSecond()->GetSecond()->VSplit(266);
722 but1->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
724 but2->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
730 fViewer0->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
731 "OnMouseOver(TGLPhysicalShape*)");
732 fViewer0->Connect(
"Activated()",
"SplitGLView",
this,
733 "OnViewerActivated()");
734 fViewer0->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
736 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
737 fViewer0->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
738 "OnClicked(TObject*)");
739 fViewer[0] =
new TEveViewer(
"SplitGLViewer[0]");
740 fViewer[0]->SetGLViewer(fViewer0, fViewer0->GetFrame());
741 fViewer[0]->IncDenyDestroy();
742 if (fIsEmbedded &&
gEve) {
749 s->AddElement(fRhoZMgr);
762 but3->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
764 but4->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
771 fViewer1->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
772 "OnMouseOver(TGLPhysicalShape*)");
773 fViewer1->Connect(
"Activated()",
"SplitGLView",
this,
774 "OnViewerActivated()");
775 fViewer1->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
777 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
778 fViewer1->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
779 "OnClicked(TObject*)");
780 fViewer[1] =
new TEveViewer(
"SplitGLViewer[1]");
781 fViewer[1]->SetGLViewer(fViewer1, fViewer1->GetFrame());
782 fViewer[1]->IncDenyDestroy();
783 if (fIsEmbedded &&
gEve) {
786 fViewer[1]->AddScene(
s);
793 s->AddElement(fRPhiMgr);
806 but5->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
808 but6->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
815 fViewer2->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
816 "OnMouseOver(TGLPhysicalShape*)");
817 fViewer2->Connect(
"Activated()",
"SplitGLView",
this,
818 "OnViewerActivated()");
819 fViewer2->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
821 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
822 fViewer2->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
823 "OnClicked(TObject*)");
824 fViewer[2] =
new TEveViewer(
"SplitGLViewer[2]");
825 fViewer[2]->SetGLViewer(fViewer2, fViewer2->GetFrame());
826 fViewer[2]->IncDenyDestroy();
827 if (fIsEmbedded &&
gEve) {
830 fViewer[2]->AddScene(
s);
846 button->
Connect(
"Clicked()",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*=0)");
847 fgHtmlSummary =
new HtmlSummary(
"Alice Event Display Summary Table");
848 fgHtml =
new TGHtml(hfrm, 100, 100, -1);
853 if (fIsEmbedded &&
gEve) {
855 "SplitGLView",
this,
"ItemClicked(TGListTreeItem*, Int_t, Int_t, Int_t)");
858 fShapedToolTip =
new TGShapedToolTip(
"Default.png", 120, 22, 160, 110,
859 23, 115, 12,
"#ffff80");
860 Resize(GetDefaultSize());
863 LoadConfig(
".everc");
867SplitGLView::~SplitGLView()
872 fMenuFile->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
873 fMenuCamera->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
874 fMenuScene->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
875 fMenuHelp->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
876 fViewer0->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
877 "OnMouseOver(TGLPhysicalShape*)");
878 fViewer0->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
879 fViewer0->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
880 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
881 fViewer1->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
882 "OnMouseOver(TGLPhysicalShape*)");
883 fViewer1->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
884 fViewer1->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
885 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
886 fViewer2->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
887 "OnMouseOver(TGLPhysicalShape*)");
888 fViewer2->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
889 fViewer2->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
890 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
896 delete fShapedToolTip;
915void SplitGLView::HandleMenu(
Int_t id)
920 static TString rcfile(
".everc");
1004 fActViewer->UpdateScene();
1008 case kSceneUpdateAll:
1009 fViewer0->UpdateScene();
1010 fViewer1->UpdateScene();
1011 fViewer2->UpdateScene();
1015 case kSummaryUpdate:
1029 sprintf(str,
"About ROOT %s...",
gROOT->GetVersion());
1044void SplitGLView::OnClicked(
TObject *obj)
1049 fStatusBar->SetText(
Form(
"User clicked on: \"%s\"", obj->
GetName()), 1);
1051 fStatusBar->SetText(
"", 1);
1064 static TH1F *h1f = 0;
1066 TF1 *sqroot =
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
1069 h1f =
new TH1F(
"h1f",
"",50,0,10);
1075 if (fShapedToolTip) {
1076 fShapedToolTip->UnmapWindow();
1084 gClient->GetDefaultRoot()->GetId(), posx, posy,
x,
y,
1087 if (fShapedToolTip) {
1088 fShapedToolTip->Show(
x+5,
y+5,
Form(
"%s\n \n%s",
1103 fStatusBar->SetText(
Form(
"Mouse Over: \"%s\"",
1106 fStatusBar->SetText(
"", 0);
1110void SplitGLView::OnViewerActivated()
1117 if (fActViewer && fActViewer->GetFrame())
1118 fActViewer->GetFrame()->ChangeBackground(GetDefaultFrameBackground());
1124 if (fActViewer == 0) {
1125 printf (
"dyncast failed ...\n");
1131 gClient->GetColorByName(
"green", green);
1134 if (fActViewer->GetFrame())
1135 fActViewer->GetFrame()->ChangeBackground(green);
1138 if (fActViewer->GetOrthoXOYCamera()->GetDollyToZoom() &&
1139 fActViewer->GetOrthoXOZCamera()->GetDollyToZoom() &&
1140 fActViewer->GetOrthoZOYCamera()->GetDollyToZoom())
1141 fMenuCamera->UnCheckEntry(kGLOrthoDolly);
1143 fMenuCamera->CheckEntry(kGLOrthoDolly);
1145 if (fActViewer->GetOrthoXOYCamera()->GetEnableRotate() &&
1146 fActViewer->GetOrthoXOYCamera()->GetEnableRotate() &&
1147 fActViewer->GetOrthoXOYCamera()->GetEnableRotate())
1148 fMenuCamera->CheckEntry(kGLOrthoRotate);
1150 fMenuCamera->UnCheckEntry(kGLOrthoRotate);
1162 Form(
"The file \"%s\" is not a root file!", fname),
1169 Form(
"The file \"%s\" does't contain a geometry", fname),
1175 fPad->GetListOfPrimitives()->Delete();
1179 fViewer0->PadPaint(fPad);
1180 fViewer1->PadPaint(fPad);
1181 fViewer2->PadPaint(fPad);
1185void SplitGLView::ToggleOrthoRotate()
1189 if (fMenuCamera->IsEntryChecked(kGLOrthoRotate))
1190 fMenuCamera->UnCheckEntry(kGLOrthoRotate);
1192 fMenuCamera->CheckEntry(kGLOrthoRotate);
1193 Bool_t state = fMenuCamera->IsEntryChecked(kGLOrthoRotate);
1195 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1196 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1197 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1202void SplitGLView::ToggleOrthoDolly()
1206 if (fMenuCamera->IsEntryChecked(kGLOrthoDolly))
1207 fMenuCamera->UnCheckEntry(kGLOrthoDolly);
1209 fMenuCamera->CheckEntry(kGLOrthoDolly);
1210 Bool_t state = ! fMenuCamera->IsEntryChecked(kGLOrthoDolly);
1212 fActViewer->GetOrthoXOYCamera()->SetDollyToZoom(state);
1213 fActViewer->GetOrthoXOZCamera()->SetDollyToZoom(state);
1214 fActViewer->GetOrthoZOYCamera()->SetDollyToZoom(state);
1230 if (
v->InheritsFrom(
"TGLEmbeddedViewer")) {
1238void SplitGLView::LoadConfig(
const char *fname)
1249 Int_t bottom_height = env->
GetValue(
"Bottom.Tab.Height", 0);
1251 if (fIsEmbedded &&
gEve) {
1263 width = fSplitFrame->GetFirst()->GetWidth();
1264 fSplitFrame->GetFirst()->Resize(
width, mainheight);
1266 height = fSplitFrame->GetSecond()->GetFirst()->GetHeight();
1267 fSplitFrame->GetSecond()->GetFirst()->Resize(blwidth, height);
1269 height = fSplitFrame->GetSecond()->GetSecond()->GetFirst()->GetHeight();
1270 fSplitFrame->GetSecond()->GetSecond()->GetFirst()->Resize(bcwidth, height);
1272 height = fSplitFrame->GetSecond()->GetSecond()->GetSecond()->GetHeight();
1273 fSplitFrame->GetSecond()->GetSecond()->GetSecond()->Resize(brwidth, height);
1275 fSplitFrame->Layout();
1277 if (fIsEmbedded &&
gEve) {
1286void SplitGLView::SaveConfig(
const char *fname)
1289 Int_t bottom_height = 0;
1290 Int_t top_height = 0;
1294 if (fIsEmbedded &&
gEve) {
1310 if (fIsEmbedded &&
gEve) {
1312 env->
SetValue(
"Right.Tab.Height", top_height);
1314 env->
SetValue(
"Bottom.Tab.Height", bottom_height);
1335 if (!fSplitFrame->GetFirst()->GetFrame())
1340 while (parent && !parent->
InheritsFrom(
"TGSplitFrame")) {
1370void SplitGLView::UpdateSummary()
1378 HtmlObjTable *table;
1381 fgHtmlSummary->
Clear(
"D");
1392 table = fgHtmlSummary->AddTable(ename, 0, nel);
1399 table = fgHtmlSummary->AddTable(ename.
Data(), 5,
1401 table->SetLabel(0,
"Momentum");
1402 table->SetLabel(1,
"P_t");
1403 table->SetLabel(2,
"Phi");
1404 table->SetLabel(3,
"Theta");
1405 table->SetLabel(4,
"Eta");
1407 for (j=
tracks->BeginChildren(); j!=
tracks->EndChildren(); ++j) {
1409 table->SetValue(0, k, p);
1411 table->SetValue(1, k,
pt);
1413 table->SetValue(2, k, phi);
1415 table->SetValue(3, k, theta);
1417 table->SetValue(4, k, eta);
1422 fgHtmlSummary->Build();
1424 fgHtml->ParseText((
char*)fgHtmlSummary->Html().Data());
1433 printf(
"This script is used via ACLiC by the macro \"alice_esd_split.C\"\n");
1434 printf(
"To see it in action, just run \".x alice_esd_split.C\"\n");
R__EXTERN const char gHelpAbout[]
#define ClassDef(name, id)
R__EXTERN TApplication * gApplication
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TEveManager * gEve
R__EXTERN TGeoManager * gGeoManager
float type_of_call hi(const int &, const int &)
R__EXTERN void * gTQSender
char * Form(const char *fmt,...)
char * StrDup(const char *str)
Duplicate the string str.
R__EXTERN TSystem * gSystem
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
Array of floats (32 bits per element).
void SetAt(Double_t v, Int_t i)
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
void Clear(Option_t *option="")
Remove all primitives from the canvas.
virtual void Update()
Update canvas pad buffers.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
The TEnv class reads config files, by default named .rootrc.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
virtual void SaveLevel(EEnvLevel level)
Write the resource file for a certain level.
void EveMenu(Int_t id)
Handle events from Eve menu.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual TObject * GetObject(const TEveException &eh) const
Get a TObject associated with this render-element.
Base class for event management and navigation.
Exception class thrown by TEve classes and macros.
TGListTree * GetListTree() const
Get default list-tree widget.
TEveViewerList * GetViewers() const
TEveSelection * GetSelection() const
TEveScene * GetGlobalScene() const
TEveBrowser * GetBrowser() const
TGListTreeItem * AddToListTree(TEveElement *re, Bool_t open, TGListTree *lt=0)
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
TEveSelection * GetHighlight() const
TEveScene * GetEventScene() const
TEveEventManager * GetCurrentEvent() const
This was intended as a TPad wrapper to allow smart updates of groups of pads.
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
Axes for non-linear projections.
Manager class for steering of projections and managing projected objects.
Eve representation of TGLScene.
Int_t GetPickToSelect() const
A list of tracks supporting change of common attributes and selection based on track parameters.
Visual representation of a track.
virtual void AddElement(TEveElement *el)
Call base-class implementation.
Eve representation of TGLViewer.
virtual void SetParameters(const Double_t *params)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void AddFrame(TGFrame *f, TGLayoutHints *hints)
Add frame to dockable frame container. Frame and hints are NOT adopted.
void SetFixedSize(Bool_t fixed)
void EnableHide(Bool_t onoff)
Enable hiding.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Minimal GL-viewer that can be embedded in a standard ROOT frames.
TGCompositeFrame * GetFrame() const
TObject * GetExternal() const
Concrete physical shape - a GL drawable.
const TGLLogicalShape * GetLogical() const
Base class for GL viewers.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
TGLWidget * GetGLWidget()
virtual void * GetUserData() const =0
TGShapedFrame & operator=(const TGShapedFrame &)
TGSplitFrame * GetFirst() const
TGSplitFrame * GetSecond() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add a frame in the split frame using layout hints l.
virtual void SetName(const char *name)
const TGWindow * GetParent() const
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
void DefaultColors()
Set default volume colors according to A of material.
TGeoVolume * GetTopVolume() const
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Reset(Option_t *option="")
Reset.
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
An abstract interface to image processing library.
virtual void DrawText(Int_t=0, Int_t=0, const char *="", Int_t=12, const char *=0, const char *="fixed", EText3DType=TImage::kPlain, const char *=0, Float_t=0)
virtual void PaintImage(Drawable_t, Int_t, Int_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0, Option_t *="")
virtual TObject * Clone(const char *) const
Make a clone of an object using the Streamer facility.
virtual void Clear(Option_t *option="")
Set name and title to empty strings ("").
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Clear(Option_t *option="")
Remove all objects from the collection.
TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
void AddFirst(TObject *obj)
Insert object at beginning of collection.
void Delete(Option_t *option="")
Remove all objects from the collection AND delete all heap based objects.
virtual void SetBorderMode(Short_t bordermode)
virtual void Clear(Option_t *option="")
Clear all lines in this pavetext.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
TGTab * GetTabBottom() const
TGStatusBar * GetStatusBar() const
TGTab * GetTabRight() const
TCanvas * GetCanvas() const
virtual void Add(TObject *obj)
void ToLower()
Change string to lower-case.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
const char * Data() const
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual int Rename(const char *from, const char *to)
Rename a file.
TH1 * GetHisto(TFile *inFile, const std::string name)
static constexpr double s
static constexpr double ps
TFile * OpenFile(const TString &fin)