8 #include <TGTextEntry.h> 10 #include <TEveManager.h> 11 #include <TEveBrowser.h> 21 TEveBrowser* browser = gEve->GetBrowser();
25 TGLayoutHints* layoutHints
26 =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,
30 browser->StartEmbedding(TRootBrowser::kLeft);
31 TGMainFrame* mainFrame =
new TGMainFrame(gClient->GetRoot(), 1000, 600);
32 mainFrame->SetWindowName(
"Event Control");
33 mainFrame->SetCleanup(kDeepCleanup);
35 TGVerticalFrame* hf =
new TGVerticalFrame(mainFrame);
36 TGTextButton* textButton;
39 textButton =
new TGTextButton(hf,
"Previous Event");
40 textButton->SetToolTipText(
"Go to previous event.");
41 textButton->SetTextJustify(36);
42 textButton->SetMargins(0,0,0,0);
43 textButton->SetWrapLength(-1);
44 hf->AddFrame(textButton, layoutHints);
47 textButton =
new TGTextButton(hf,
"Redraw Event");
48 textButton->SetToolTipText(
"Refresh the current view.");
49 textButton->SetTextJustify(36);
50 textButton->SetMargins(0,0,0,0);
51 textButton->SetWrapLength(-1);
52 hf->AddFrame(textButton, layoutHints);
55 textButton =
new TGTextButton(hf,
"Next Event");
56 textButton->SetToolTipText(
"Go to previous event.");
57 textButton->SetTextJustify(36);
58 textButton->SetMargins(0,0,0,0);
59 textButton->SetWrapLength(-1);
60 hf->AddFrame(textButton, layoutHints);
64 TGCheckButton *checkButton;
70 checkButton =
new TGCheckButton(hf,
"Show Trajectories");
71 checkButton->SetToolTipText(
72 "Show the GEANT4 trajectories and trajectory points.");
73 checkButton->SetTextJustify(36);
74 checkButton->SetMargins(0,0,0,0);
75 checkButton->SetWrapLength(-1);
76 hf->AddFrame(checkButton, layoutHints);
79 checkButton =
new TGCheckButton(hf,
"Show G4 Hits");
80 checkButton->SetToolTipText(
81 "Show the GEANT4 hits. This shows the energy deposition in the " 82 "defined sensitive detectors.");
83 checkButton->SetTextJustify(36);
84 checkButton->SetMargins(0,0,0,0);
85 checkButton->SetWrapLength(-1);
87 hf->AddFrame(checkButton, layoutHints);
90 checkButton =
new TGCheckButton(hf,
"Recalculate view");
91 checkButton->SetToolTipText(
92 "Recalculate center of rotation based.");
93 checkButton->SetTextJustify(36);
94 checkButton->SetMargins(0,0,0,0);
95 checkButton->SetWrapLength(-1);
97 hf->AddFrame(checkButton, layoutHints);
102 mainFrame->AddFrame(hf, layoutHints);
103 mainFrame->MapSubwindows();
105 mainFrame->MapWindow();
106 browser->StopEmbedding();
107 browser->SetTabTitle(
"Control", 0);
111 TEveBrowser* browser = gEve->GetBrowser();
114 browser->StartEmbedding(TRootBrowser::kLeft);
115 TGMainFrame* mainFrame =
new TGMainFrame(gClient->GetRoot(), 1000, 600);
116 mainFrame->SetWindowName(
"Fit Selection");
117 mainFrame->SetCleanup(kDeepCleanup);
119 TGVerticalFrame* hf =
new TGVerticalFrame(mainFrame);
124 TGLayoutHints* layoutList =
new TGLayoutHints(kLHintsLeft
131 TGLabel* txt =
new TGLabel(hf,
"Default Result");
132 TGLayoutHints* layoutHints =
new TGLayoutHints(kLHintsLeft
136 hf->AddFrame(txt,layoutHints);
144 "Enter a regular expression to select algorithm results\n" 145 "to be shown. The usual regexp syntax applys:\n" 146 " . -- Match any character\n" 147 " .* -- Match any sequence of characters\n" 149 "See grep for more details. A result is show if the\n" 150 "regexpn matchs any sub-string in the result name." );
155 TGLayoutHints* layoutFrame
156 =
new TGLayoutHints(kLHintsLeft
161 mainFrame->AddFrame(hf, layoutFrame);
162 mainFrame->MapSubwindows();
164 mainFrame->MapWindow();
165 browser->StopEmbedding();
166 browser->SetTabTitle(
"Recon", 0);
TGButton * fNextEventButton
TGButton * fShowTrajectoriesButton
TGTextEntry * fDefaultResult
A regular expression to select the default result(s) to be selected.
TGUIManager()
Actually construct all the GUI.
TGButton * fShowG4HitsButton
TGButton * fPrevEventButton
void MakeControlTab()
Make a tab in the browser for control buttons.
TGButton * fRecalculateViewButton
void MakeResultsTab()
Make a tab in the browser to select algorithms shown.
TGButton * fDrawEventButton