15 #include "TRootEmbeddedCanvas.h" 18 #include "nutools/EventDisplayBase/evdb.h" 19 #include "nutools/EventDisplayBase/ListWindow.h" 20 #include "nutools/EventDisplayBase/MenuBar.h" 21 #include "nutools/EventDisplayBase/ButtonBar.h" 22 #include "nutools/EventDisplayBase/Canvas.h" 23 #include "nutools/EventDisplayBase/StatusBar.h" 24 #include "nutools/EventDisplayBase/ObjListCanvas.h" 31 static std::vector<ListWindow*>
gsWindows(64);
38 static std::vector<std::string>
gsName;
54 const char* 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="")
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)
static std::vector< std::string > gsName
static std::vector< ObjListCanvasCreator_t > gsObjListCanvasCreator
TGMainFrame * fMain
Main window.
static std::vector< std::string > gsDescription
static int OpenWindow(int type=0)
StatusBar * fStatusBar
Status bar running along the bottom.
static std::vector< unsigned int > gsHeight
h
training ###############################
ObjListCanvas * fDisplay
Display of detector event information.