66const char *filetypes[] = {
67 "ROOT files",
"*.root",
72const char *rcfiletypes[] = {
81 TGShapedToolTip(
const TGShapedToolTip&);
82 TGShapedToolTip&
operator=(
const TGShapedToolTip&);
85 Int_t fTextX, fTextY, fTextH;
92 virtual void DoRedraw() {}
95 TGShapedToolTip(
const char *picname,
Int_t cx=0,
Int_t cy=0,
Int_t cw=0,
97 const char *col=
"#ffffff");
98 virtual ~TGShapedToolTip();
100 virtual void CloseWindow();
104 const char *GetText()
const {
return fText.
Data(); }
106 void SetHisto(
TH1 *hist);
107 void SetText(
const char *
text);
109 void SetTextAttributes(
Int_t tx,
Int_t ty,
Int_t th,
const char *col=0);
116class HtmlObjTable :
public TObject {
135 virtual ~HtmlObjTable();
137 void SetLabel(
Int_t col,
const char *label) { fLabels[col] = label; }
139 TString Html()
const {
return fHtml; }
158 HtmlSummary(
const char *title);
159 virtual ~HtmlSummary();
161 HtmlObjTable *AddTable(
const char *
name,
Int_t nfields,
Int_t nvals,
163 HtmlObjTable *GetTable(
Int_t at)
const {
return (HtmlObjTable *)fObjTables->
At(at); }
167 TString Html()
const {
return fHtml; }
178 kHelpAbout, kGLPerspYOZ, kGLPerspXOZ, kGLPerspXOY, kGLXOY,
179 kGLXOZ, kGLZOY, kGLOrthoRotate, kGLOrthoDolly, kSceneUpdate,
180 kSceneUpdateAll, kSummaryUpdate
190 static HtmlSummary *fgHtmlSummary;
198 TGShapedToolTip *fShapedToolTip;
207 virtual ~SplitGLView();
210 void HandleMenu(
Int_t id);
214 void OnViewerActivated();
217 void ToggleOrthoRotate();
218 void ToggleOrthoDolly();
220 void LoadConfig(
const char *fname);
221 void SaveConfig(
const char *fname);
222 static void UpdateSummary();
238HtmlSummary *SplitGLView::fgHtmlSummary = 0;
239TGHtml *SplitGLView::fgHtml = 0;
242TGShapedToolTip::TGShapedToolTip(
const char *pname,
Int_t cx,
Int_t cy,
Int_t cw,
250 fTextX = tx; fTextY = ty; fTextH = th;
254 fTextCol =
"0x000000";
257 if ((cx > 0) && (cy > 0) && (cw > 0) && (ch > 0)) {
258 Int_t lhRight = fWidth-cx-cw;
259 Int_t lhBottom = fHeight-cy-ch;
262 lhRight, cy, lhBottom));
266 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
270TGShapedToolTip::~TGShapedToolTip()
281void TGShapedToolTip::CloseWindow()
289void TGShapedToolTip::Refresh()
293 const char *str = fText.
Data();
294 char *
string = strdup(str);
297 char *s = strtok((
char *)
string,
"\n");
300 while ((s = strtok(0,
"\n"))) {
304 img->
PaintImage(fId, 0, 0, 0, 0, 0, 0,
"opaque");
315 Int_t lhRight = fWidth-cx-cw;
316 Int_t lhBottom = fHeight-cy-ch;
319 lhRight, cy, lhBottom));
322 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
334 AddFrame(fEc, hints);
337 Resize(fBgnd->GetWidth(), fBgnd->GetHeight());
344void TGShapedToolTip::SetHisto(
TH1 *hist)
366void TGShapedToolTip::SetText(
const char *
text)
378void TGShapedToolTip::SetTextColor(
const char *col)
393 fTextX = tx; fTextY = ty; fTextH = th;
426 fName(
name), fNValues(nvals), fNFields(nfields), fExpand(exp)
430 fValues =
new TArrayF[fNFields];
431 for (
int i=0;i<fNFields;i++)
432 fValues[i].Set(nvals);
433 fLabels =
new TString[fNFields];
437HtmlObjTable::~HtmlObjTable()
446void HtmlObjTable::Build()
450 fHtml =
"<table width=100% border=1 cellspacing=0 cellpadding=0 bgcolor=f0f0f0> ",
453 if (fExpand && (fNFields > 0) && (fNValues > 0)) {
462void HtmlObjTable::BuildTitle()
466 fHtml +=
"<tr><td colspan=";
467 fHtml +=
Form(
"%d>", fNFields+1);
468 fHtml +=
"<table width=100% border=0 cellspacing=2 cellpadding=0 bgcolor=6e6ea0>";
469 fHtml +=
"<tr><td align=left>";
470 fHtml +=
"<font face=Verdana size=3 color=ffffff><b><i>";
472 fHtml +=
"</i></b></font></td>";
474 fHtml +=
"<td align=right> ";
475 fHtml +=
"<font face=Verdana size=3 color=ffffff><b><i>";
476 fHtml +=
Form(
"Size = %d", fNValues);
477 fHtml +=
"</i></b></font></td></tr>";
479 fHtml +=
"</td></tr>";
483void HtmlObjTable::BuildLabels()
488 fHtml +=
"<tr bgcolor=c0c0ff>";
489 fHtml +=
"<th> </th>";
490 for (i=0;i<fNFields;i++) {
499void HtmlObjTable::BuildTable()
503 for (
int i = 0; i < fNValues; i++) {
505 fHtml +=
"<tr bgcolor=e0e0ff>";
507 fHtml +=
"<tr bgcolor=ffffff>";
512 fHtml +=
"<td bgcolor=d0d0ff align=\"center\">";
513 fHtml +=
"<input type=\"checkbox\" name=\"";
515 fHtml +=
Form(
"[%d]\">",i);
518 for (
int j = 0; j < fNFields; j++) {
519 fHtml +=
"<td width=";
520 fHtml +=
Form(
"%d%%", 100/fNFields);
521 fHtml +=
" align=\"center\"";
523 fHtml +=
Form(
"%1.4f", fValues[j][i]);
531HtmlSummary::HtmlSummary(
const char *title) : fNTables(0), fTitle(title)
539HtmlSummary::~HtmlSummary()
547HtmlObjTable *HtmlSummary::AddTable(
const char *
name,
Int_t nfields,
Int_t nvals,
554 HtmlObjTable *table =
new HtmlObjTable(
name, nfields, nvals, exp);
559 fObjTables->
Add(table);
564void HtmlSummary::Clear(
Option_t *option)
568 if (option && option[0] ==
'D')
569 fObjTables->
Delete(option);
571 fObjTables->
Clear(option);
580 delete fObjTables; fObjTables = 0;
585void HtmlSummary::Build()
590 for (
int i=0;i<fNTables;i++) {
591 GetTable(i)->Build();
592 fHtml += GetTable(i)->Html();
598void HtmlSummary::MakeHeader()
602 fHeader =
"<html><head><title>";
604 fHeader +=
"</title></head><body>";
605 fHeader +=
"<center><h2><font color=#2222ee><i>";
607 fHeader +=
"</i></font></h2></center>";
612void HtmlSummary::MakeFooter()
616 fFooter =
"<br><p><br><center><strong><font size=2 color=#2222ee>";
617 fFooter +=
"Example of using Html widget to display tabular data";
619 fFooter +=
"(c) 2007-2010 Bertrand Bellenot";
620 fFooter +=
"</font></strong></center></body></html>";
626 TGMainFrame(p, w,
h), fActViewer(0), fShapedToolTip(0), fIsEmbedded(embed)
638 fMenuFile->AddEntry(
"&Open...",
kFileOpen);
639 fMenuFile->AddSeparator();
640 fMenuFile->AddEntry(
"&Update Summary", kSummaryUpdate);
641 fMenuFile->AddSeparator();
644 fMenuFile->AddSeparator();
645 fMenuFile->AddEntry(
"E&xit", kFileExit);
649 fMenuCamera->AddEntry(
"Perspective (Floor XOZ)", kGLPerspXOZ);
650 fMenuCamera->AddEntry(
"Perspective (Floor YOZ)", kGLPerspYOZ);
651 fMenuCamera->AddEntry(
"Perspective (Floor XOY)", kGLPerspXOY);
652 fMenuCamera->AddEntry(
"Orthographic (XOY)", kGLXOY);
653 fMenuCamera->AddEntry(
"Orthographic (XOZ)", kGLXOZ);
654 fMenuCamera->AddEntry(
"Orthographic (ZOY)", kGLZOY);
655 fMenuCamera->AddSeparator();
656 fMenuCamera->AddEntry(
"Ortho allow rotate", kGLOrthoRotate);
657 fMenuCamera->AddEntry(
"Ortho allow dolly", kGLOrthoDolly);
660 fMenuScene->AddEntry(
"&Update Current", kSceneUpdate);
661 fMenuScene->AddEntry(
"Update &All", kSceneUpdateAll);
681 fMenuFile->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
682 "HandleMenu(Int_t)");
683 fMenuCamera->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
684 "HandleMenu(Int_t)");
685 fMenuScene->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
686 "HandleMenu(Int_t)");
687 fMenuHelp->Connect(
"Activated(Int_t)",
"SplitGLView",
this,
688 "HandleMenu(Int_t)");
690 if (fIsEmbedded &&
gEve) {
696 Int_t parts[] = {45, 15, 10, 30};
698 fStatusBar->SetParts(parts, 4);
705 fPad->SetFillColor(
kBlack);
711 fSplitFrame->HSplit(434);
713 fSplitFrame->GetSecond()->VSplit(266);
714 fSplitFrame->GetSecond()->GetSecond()->VSplit(266);
724 but1->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
726 but2->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
732 fViewer0->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
733 "OnMouseOver(TGLPhysicalShape*)");
734 fViewer0->Connect(
"Activated()",
"SplitGLView",
this,
735 "OnViewerActivated()");
736 fViewer0->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
738 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
739 fViewer0->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
740 "OnClicked(TObject*)");
741 fViewer[0] =
new TEveViewer(
"SplitGLViewer[0]");
742 fViewer[0]->SetGLViewer(fViewer0, fViewer0->GetFrame());
743 fViewer[0]->IncDenyDestroy();
744 if (fIsEmbedded &&
gEve) {
764 but3->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
766 but4->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
773 fViewer1->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
774 "OnMouseOver(TGLPhysicalShape*)");
775 fViewer1->Connect(
"Activated()",
"SplitGLView",
this,
776 "OnViewerActivated()");
777 fViewer1->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
779 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
780 fViewer1->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
781 "OnClicked(TObject*)");
782 fViewer[1] =
new TEveViewer(
"SplitGLViewer[1]");
783 fViewer[1]->SetGLViewer(fViewer1, fViewer1->GetFrame());
784 fViewer[1]->IncDenyDestroy();
785 if (fIsEmbedded &&
gEve) {
788 fViewer[1]->AddScene(s);
808 but5->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*)");
810 but6->
Connect(
"Clicked(TGLViewerBase*)",
"SplitGLView",
this,
"UnDock(TGLViewerBase*)");
817 fViewer2->Connect(
"MouseOver(TGLPhysicalShape*)",
"SplitGLView",
this,
818 "OnMouseOver(TGLPhysicalShape*)");
819 fViewer2->Connect(
"Activated()",
"SplitGLView",
this,
820 "OnViewerActivated()");
821 fViewer2->Connect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
823 "OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
824 fViewer2->Connect(
"Clicked(TObject*)",
"SplitGLView",
this,
825 "OnClicked(TObject*)");
826 fViewer[2] =
new TEveViewer(
"SplitGLViewer[2]");
827 fViewer[2]->SetGLViewer(fViewer2, fViewer2->GetFrame());
828 fViewer[2]->IncDenyDestroy();
829 if (fIsEmbedded &&
gEve) {
832 fViewer[2]->AddScene(s);
848 button->
Connect(
"Clicked()",
"SplitGLView",
this,
"SwapToMainView(TGLViewerBase*=0)");
849 fgHtmlSummary =
new HtmlSummary(
"Alice Event Display Summary Table");
850 fgHtml =
new TGHtml(hfrm, 100, 100, -1);
855 if (fIsEmbedded &&
gEve) {
857 "SplitGLView",
this,
"ItemClicked(TGListTreeItem*, Int_t, Int_t, Int_t)");
860 fShapedToolTip =
new TGShapedToolTip(
"Default.png", 120, 22, 160, 110,
861 23, 115, 12,
"#ffff80");
862 Resize(GetDefaultSize());
865 LoadConfig(
".everc");
869SplitGLView::~SplitGLView()
874 fMenuFile->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
875 fMenuCamera->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
876 fMenuScene->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
877 fMenuHelp->Disconnect(
"Activated(Int_t)",
this,
"HandleMenu(Int_t)");
878 fViewer0->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
879 "OnMouseOver(TGLPhysicalShape*)");
880 fViewer0->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
881 fViewer0->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
882 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
883 fViewer1->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
884 "OnMouseOver(TGLPhysicalShape*)");
885 fViewer1->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
886 fViewer1->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
887 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
888 fViewer2->Disconnect(
"MouseOver(TGLPhysicalShape*)",
this,
889 "OnMouseOver(TGLPhysicalShape*)");
890 fViewer2->Disconnect(
"Activated()",
this,
"OnViewerActivated()");
891 fViewer2->Disconnect(
"MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)",
892 this,
"OnMouseIdle(TGLPhysicalShape*,UInt_t,UInt_t)");
898 delete fShapedToolTip;
917void SplitGLView::HandleMenu(
Int_t id)
922 static TString rcfile(
".everc");
1006 fActViewer->UpdateScene();
1010 case kSceneUpdateAll:
1011 fViewer0->UpdateScene();
1012 fViewer1->UpdateScene();
1013 fViewer2->UpdateScene();
1017 case kSummaryUpdate:
1031 sprintf(str,
"About ROOT %s...",
gROOT->GetVersion());
1046void SplitGLView::OnClicked(
TObject *obj)
1051 fStatusBar->SetText(
Form(
"User clicked on: \"%s\"", obj->
GetName()), 1);
1053 fStatusBar->SetText(
"", 1);
1066 static TH1F *h1f = 0;
1068 TF1 *sqroot =
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
1071 h1f =
new TH1F(
"h1f",
"",50,0,10);
1077 if (fShapedToolTip) {
1078 fShapedToolTip->UnmapWindow();
1086 gClient->GetDefaultRoot()->GetId(), posx, posy,
x,
y,
1089 if (fShapedToolTip) {
1090 fShapedToolTip->Show(
x+5,
y+5,
Form(
"%s\n \n%s",
1105 fStatusBar->SetText(
Form(
"Mouse Over: \"%s\"",
1108 fStatusBar->SetText(
"", 0);
1112void SplitGLView::OnViewerActivated()
1119 if (fActViewer && fActViewer->GetFrame())
1126 if (fActViewer == 0) {
1127 printf (
"dyncast failed ...\n");
1133 gClient->GetColorByName(
"green", green);
1136 if (fActViewer->GetFrame())
1137 fActViewer->GetFrame()->ChangeBackground(green);
1140 if (fActViewer->GetOrthoXOYCamera()->GetDollyToZoom() &&
1141 fActViewer->GetOrthoXOZCamera()->GetDollyToZoom() &&
1142 fActViewer->GetOrthoZOYCamera()->GetDollyToZoom())
1143 fMenuCamera->UnCheckEntry(kGLOrthoDolly);
1145 fMenuCamera->CheckEntry(kGLOrthoDolly);
1147 if (fActViewer->GetOrthoXOYCamera()->GetEnableRotate() &&
1148 fActViewer->GetOrthoXOYCamera()->GetEnableRotate() &&
1149 fActViewer->GetOrthoXOYCamera()->GetEnableRotate())
1150 fMenuCamera->CheckEntry(kGLOrthoRotate);
1152 fMenuCamera->UnCheckEntry(kGLOrthoRotate);
1156void SplitGLView::OpenFile(
const char *fname)
1164 Form(
"The file \"%s\" is not a root file!", fname),
1171 Form(
"The file \"%s\" does't contain a geometry", fname),
1177 fPad->GetListOfPrimitives()->Delete();
1181 fViewer0->PadPaint(fPad);
1182 fViewer1->PadPaint(fPad);
1183 fViewer2->PadPaint(fPad);
1187void SplitGLView::ToggleOrthoRotate()
1191 if (fMenuCamera->IsEntryChecked(kGLOrthoRotate))
1192 fMenuCamera->UnCheckEntry(kGLOrthoRotate);
1194 fMenuCamera->CheckEntry(kGLOrthoRotate);
1195 Bool_t state = fMenuCamera->IsEntryChecked(kGLOrthoRotate);
1197 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1198 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1199 fActViewer->GetOrthoXOYCamera()->SetEnableRotate(state);
1204void SplitGLView::ToggleOrthoDolly()
1208 if (fMenuCamera->IsEntryChecked(kGLOrthoDolly))
1209 fMenuCamera->UnCheckEntry(kGLOrthoDolly);
1211 fMenuCamera->CheckEntry(kGLOrthoDolly);
1212 Bool_t state = ! fMenuCamera->IsEntryChecked(kGLOrthoDolly);
1214 fActViewer->GetOrthoXOYCamera()->SetDollyToZoom(state);
1215 fActViewer->GetOrthoXOZCamera()->SetDollyToZoom(state);
1216 fActViewer->GetOrthoZOYCamera()->SetDollyToZoom(state);
1232 if (
v->InheritsFrom(
"TGLEmbeddedViewer")) {
1240void SplitGLView::LoadConfig(
const char *fname)
1251 Int_t bottom_height = env->
GetValue(
"Bottom.Tab.Height", 0);
1253 if (fIsEmbedded &&
gEve) {
1265 width = fSplitFrame->GetFirst()->GetWidth();
1266 fSplitFrame->GetFirst()->Resize(
width, mainheight);
1268 height = fSplitFrame->GetSecond()->GetFirst()->GetHeight();
1269 fSplitFrame->GetSecond()->GetFirst()->Resize(blwidth, height);
1271 height = fSplitFrame->GetSecond()->GetSecond()->GetFirst()->GetHeight();
1272 fSplitFrame->GetSecond()->GetSecond()->GetFirst()->Resize(bcwidth, height);
1274 height = fSplitFrame->GetSecond()->GetSecond()->GetSecond()->GetHeight();
1275 fSplitFrame->GetSecond()->GetSecond()->GetSecond()->Resize(brwidth, height);
1277 fSplitFrame->Layout();
1279 if (fIsEmbedded &&
gEve) {
1288void SplitGLView::SaveConfig(
const char *fname)
1291 Int_t bottom_height = 0;
1292 Int_t top_height = 0;
1296 if (fIsEmbedded &&
gEve) {
1312 if (fIsEmbedded &&
gEve) {
1314 env->
SetValue(
"Right.Tab.Height", top_height);
1316 env->
SetValue(
"Bottom.Tab.Height", bottom_height);
1337 if (!fSplitFrame->GetFirst()->GetFrame())
1342 while (parent && !parent->
InheritsFrom(
"TGSplitFrame")) {
1372void SplitGLView::UpdateSummary()
1380 HtmlObjTable *table;
1383 fgHtmlSummary->
Clear(
"D");
1386 if (el->IsA() == TEvePointSet::Class()) {
1394 table = fgHtmlSummary->AddTable(ename, 0, nel);
1396 else if (el->IsA() == TEveTrackList::Class()) {
1401 table = fgHtmlSummary->AddTable(ename.
Data(), 5,
1403 table->SetLabel(0,
"Momentum");
1404 table->SetLabel(1,
"P_t");
1405 table->SetLabel(2,
"Phi");
1406 table->SetLabel(3,
"Theta");
1407 table->SetLabel(4,
"Eta");
1409 for (j=
tracks->BeginChildren(); j!=
tracks->EndChildren(); ++j) {
1411 table->SetValue(0, k, p);
1413 table->SetValue(1, k,
pt);
1415 table->SetValue(2, k, phi);
1417 table->SetValue(3, k, theta);
1419 table->SetValue(4, k, eta);
1424 fgHtmlSummary->Build();
1426 fgHtml->ParseText((
char*)fgHtmlSummary->Html().Data());
1435 printf(
"This script is used via ACLiC by the macro \"alice_esd_split.C\"\n");
1436 printf(
"To see it in action, just run \".x alice_esd_split.C\"\n");
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
R__EXTERN const char gHelpAbout[]
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#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
R__EXTERN void * gTQSender
char * Form(const char *fmt,...)
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="") override
Remove all primitives from the canvas.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
void Update() override
Update canvas pad buffers.
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=nullptr)
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 void AddElement(TEveElement *el)
Add el to the list of children.
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...
virtual const char * GetElementName() const
Virtual function for retrieving name of the element.
virtual const char * GetElementTitle() const
Virtual function for retrieving title of the render-element.
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)
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
A frame with handles that allow it to be undocked (i.e.
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.
This class creates a file selection dialog.
char * fFilename
selected file name
const char ** fFileTypes
file types used to filter selectable files
char * fIniDir
on input: initial directory, on output: new directory
void SetFilename(const char *fname)
Set file name.
void SetIniDir(const char *inidir)
Set directory name.
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
A composite frame that layout their children in horizontal way.
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()
This class describes layout hints used by the layout classes.
virtual void * GetUserData() const =0
Defines top level windows that interact with the system Window Manager.
TGShapedFrame & operator=(const TGShapedFrame &)=delete
TGSplitFrame * GetFirst() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add a frame in the split frame using layout hints l.
TGSplitFrame * GetSecond() const
Provides a StatusBar widget.
ROOT GUI Window base class.
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.
TH1 is the base class of all histogram classes in ROOT.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
Fill histogram following distribution in function fname.
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.
void SetBorderMode(Short_t bordermode) override
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
This class creates a TGCanvas in which a TCanvas is created.
TCanvas * GetCanvas() const
A TRootHelpDialog is used to display help text (or any text in a dialog window).
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 & ReplaceAll(const TString &s1, const TString &s2)
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)
TFile * OpenFile(const TString &fin)