DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepMenu.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 #ifndef DD4HEP_DDEVE_DD4HEPMENU_H
15 #define DD4HEP_DDEVE_DD4HEPMENU_H
16 
17 // Framework include files
18 #include "DDEve/Display.h"
19 #include "DDEve/PopupMenu.h"
20 
21 // Forward declarations
22 class TGMenuBar;
23 class TGMenuEntry;
24 
26 namespace DD4hep {
27 
28  // Forward declarations
29  class View;
30  class EventControl;
31 
33  /*
34  * \author M.Frank
35  * \version 1.0
36  * \ingroup DD4HEP_EVE
37  */
38  class DD4hepMenu : public PopupMenu {
39  public:
40 
41  protected:
45  public:
47  DD4hepMenu(Display* eve);
49  virtual ~DD4hepMenu();
50 
52  virtual void Build(TGMenuBar* bar, int hints=kLHintsNormal);
54  void OnLoadXML(TGMenuEntry* entry, void* ptr);
56  void OnLoadRootGeometry(TGMenuEntry* entry, void* ptr);
58  void OnCreateEventIO(TGMenuEntry* entry, void* ptr);
60  void OnOpenEventData(TGMenuEntry* entry, void* ptr);
62  void OnNextEvent(TGMenuEntry* entry, void* ptr);
64  void OnPreviousEvent(TGMenuEntry* entry, void* ptr);
66  void OnExit(TGMenuEntry* entry, void* ptr);
67 
69  void OnGeometryLoaded();
72  };
73 
74 } /* End namespace DD4hep */
75 
76 
77 #endif /* DD4HEP_DDEVE_DD4HEPMENU_H */
78 
virtual ~DD4hepMenu()
Default destructor.
Definition: DD4hepMenu.cpp:52
void OnExit(TGMenuEntry *entry, void *ptr)
Callback when exiting the display.
Definition: DD4hepMenu.cpp:139
ClassDef(DD4hepMenu, 0)
ROOT implementation macro.
void OnPreviousEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the previous event.
Definition: DD4hepMenu.cpp:134
DD4hep Menu for the ROOT browser.
Definition: DD4hepMenu.h:38
DD4hepMenu(Display *eve)
Standard constructor.
virtual void Build(TGMenuBar *bar, int hints=kLHintsNormal)
Add the menu to the menu bar.
Definition: DD4hepMenu.cpp:58
void OnCreateEventIO(TGMenuEntry *entry, void *ptr)
Callback to show the event I/O panel.
Definition: DD4hepMenu.cpp:103
void OnOpenEventData(TGMenuEntry *entry, void *ptr)
Callback when loading a new event data file.
Definition: DD4hepMenu.cpp:116
EventControl * m_evtCtrl
Definition: DD4hepMenu.h:44
class PopupMenu PopupMenu.h DDEve/PopupMenu.h
Definition: PopupMenu.h:37
void OnLoadXML(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition: DD4hepMenu.cpp:86
static const double bar
Definition: DD4hepUnits.h:180
void OnGeometryLoaded()
Callback when the geometry was loaded.
Definition: DD4hepMenu.cpp:76
void OnLoadRootGeometry(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition: DD4hepMenu.cpp:95
The main class of the DDEve display.
Definition: Display.h:57
Display * m_display
Reference to display manager.
Definition: DD4hepMenu.h:43
void OnNextEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the next event.
Definition: DD4hepMenu.cpp:129