15 #include "TRootEmbeddedCanvas.h" 31 static std::vector<ListWindow*>
gsWindows(64);
38 static std::vector<std::string>
gsName;
54 const char* description,
59 gsName.push_back(std::string(name));
60 gsDescription.push_back(std::string(description));
61 gsHeight.push_back(h);
63 gsObjListCanvasCreator.push_back(creator);
76 if (type>0)
id = type;
77 if (
id>=gsName.size())
return 0;
94 if (gROOT->IsBatch()) assert(0);
96 const TGWindow* tgw = gClient->GetRoot();
102 unsigned int w = gsWidth[id];
103 unsigned int h = gsHeight[id];
104 fMain =
new TGMainFrame(tgw, w-1, h-1);
113 fMain->SetWindowName(gsName[
id].c_str());
116 fMain->MapSubwindows();
150 for (
unsigned int i=0; i<
gsWindows.size(); ++i) {
MenuBar * fMenuBar
Top menu bar.
virtual void Draw(const char *opt=0)=0
ButtonBar * fButtonBar
Top button bar.
static std::vector< DisplayWindow * > gsWindows(64)
A status bar on the bottom of the display.
ObjListCanvas *(* ObjListCanvasCreator_t)(TGMainFrame *mf)
virtual void CloseWindow()
static std::vector< unsigned int > gsWidth
void Connect()
Make signal/slot connections.
Manage all things related to colors for the event display.
virtual void Draw(const char *opt="")
Base class for define a detector display.
static const std::vector< std::string > & Names()
static void Register(const char *name, const char *description, unsigned int h, unsigned int w, ObjListCanvasCreator_t creator)
A window containing a list of objects.
static std::vector< std::string > gsName
static std::vector< ObjListCanvasCreator_t > gsObjListCanvasCreator
TGMainFrame * fMain
Main window.
A status bar on the bottom of the display.
static std::vector< std::string > gsDescription
Base class for displaying lists of objects (eg, MC truth, reco, etc.)
static int OpenWindow(int type=0)
StatusBar * fStatusBar
Status bar running along the bottom.
static std::vector< unsigned int > gsHeight
ObjListCanvas * fDisplay
Display of detector event information.