DisplayWindow.h
Go to the documentation of this file.
1 ///
2 /// \file DisplayWindow.h
3 /// \brief A window, dressed with menus and buttons, that displays
4 /// dector information
5 ///
6 /// \version $Id: DisplayWindow.h,v 1.4 2011-05-26 13:30:34 brebel Exp $
7 /// \author messier@indiana.edu
8 ///
9 #ifndef EVDB_DISPLAYWINDOW_H
10 #define EVDB_DISPLAYWINDOW_H
11 #include <vector>
12 #include <string>
13 #include "TQObject.h"
14 #include "RQ_OBJECT.h"
15 
16 
17 class TGMainFrame;
18 namespace art {
19  class Worker;
20 }
21 namespace evdb {
22  class MenuBar;
23  class ButtonBar;
24  class StatusBar;
25  class Canvas;
26  typedef Canvas* (*CanvasCreator_t)(TGMainFrame* mf);
27 }
28 
29 //......................................................................
30 
31 namespace evdb {
32  /// An event display window
33  class DisplayWindow {
34  RQ_OBJECT("evdb::DisplayWindow")
35 
36  public:
37  static void Register(const char* name,
38  const char* description,
39  unsigned int h,
40  unsigned int w,
41  CanvasCreator_t creator);
42  static const std::vector<std::string>& Names();
43  static int OpenWindow(int type=0);
44  static void SetRunEventAll(int run, int event);
45  static void SetServicesAll();
46  static void DrawAll(const char* opt=0);
47 
48  public:
49  DisplayWindow(int window=0);
50  virtual ~DisplayWindow();
51 
52  virtual void Draw(const char* opt="");
53  virtual void CloseWindow();
54  void Raise();
55  void SetRunEvent(int run, int event);
56  void SetServices();
57 
58  private:
59  TGMainFrame* fMain; ///< Main window
60  MenuBar* fMenuBar; ///< Top menu bar
61  ButtonBar* fButtonBar; ///< Top button bar
62  StatusBar* fStatusBar; ///< Status bar running along the bottom
63  Canvas* fDisplay; ///< Display of detector event information
64  };
65 }
66 #endif
67 ////////////////////////////////////////////////////////////////////////
static QCString name
Definition: declinfo.cpp:673
MenuBar * fMenuBar
Top menu bar.
Definition: DisplayWindow.h:60
An event display window.
Definition: DisplayWindow.h:33
A status bar on the bottom of the display.
Definition: StatusBar.h:15
opt
Definition: train.py:196
ButtonBar * fButtonBar
Top button bar.
Definition: DisplayWindow.h:61
Canvas *(* CanvasCreator_t)(TGMainFrame *mf)
Definition: DisplayWindow.h:26
Manage all things related to colors for the event display.
StatusBar * fStatusBar
Status bar running along the bottom.
Definition: DisplayWindow.h:62
Canvas * fDisplay
Display of detector event information.
Definition: DisplayWindow.h:63
void Draw(const char *plot, const char *title)
Definition: gXSecComp.cxx:580
The pull down menu bar.
Definition: MenuBar.h:25
TGMainFrame * fMain
Main window.
Definition: DisplayWindow.h:59
Event finding and building.
h
training ###############################
Definition: train_cnn.py:186
unsigned int run