DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
DD4hepMenu.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDEVE_DD4HEPMENU_H
14 #define DDEVE_DD4HEPMENU_H
15 
16 // Framework include files
17 #include "DDEve/Display.h"
18 #include "DDEve/PopupMenu.h"
19 
20 // Forward declarations
21 class TGMenuBar;
22 class TGMenuEntry;
23 
25 namespace dd4hep {
26 
27  // Forward declarations
28  class View;
29  class EventControl;
30 
32  /*
33  * \author M.Frank
34  * \version 1.0
35  * \ingroup DD4HEP_EVE
36  */
37  class DD4hepMenu : public PopupMenu {
38  public:
39 
40  protected:
44  public:
48  virtual ~DD4hepMenu();
49 
51  virtual void Build(TGMenuBar* menuBar, int hints=kLHintsNormal) override;
53  void OnLoadXML(TGMenuEntry* entry, void* ptr);
55  void OnLoadRootGeometry(TGMenuEntry* entry, void* ptr);
57  void OnCreateEventIO(TGMenuEntry* entry, void* ptr);
59  void OnOpenEventData(TGMenuEntry* entry, void* ptr);
61  void OnNextEvent(TGMenuEntry* entry, void* ptr);
63  void OnPreviousEvent(TGMenuEntry* entry, void* ptr);
65  void OnExit(TGMenuEntry* entry, void* ptr);
66 
68  void OnGeometryLoaded();
71  };
72 
73 } /* End namespace dd4hep */
74 #endif // DDEVE_DD4HEPMENU_H
75 
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
dd4hep::DD4hepMenu::m_display
Display * m_display
Reference to display manager.
Definition: DD4hepMenu.h:42
dd4hep::DD4hepMenu::OnCreateEventIO
void OnCreateEventIO(TGMenuEntry *entry, void *ptr)
Callback to show the event I/O panel.
Definition: DD4hepMenu.cpp:101
dd4hep::DD4hepMenu::OnPreviousEvent
void OnPreviousEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the previous event.
Definition: DD4hepMenu.cpp:132
dd4hep::DD4hepMenu::Build
virtual void Build(TGMenuBar *menuBar, int hints=kLHintsNormal) override
Add the menu to the menu bar.
Definition: DD4hepMenu.cpp:56
dd4hep::DD4hepMenu::OnOpenEventData
void OnOpenEventData(TGMenuEntry *entry, void *ptr)
Callback when loading a new event data file.
Definition: DD4hepMenu.cpp:114
dd4hep::DD4hepMenu::OnExit
void OnExit(TGMenuEntry *entry, void *ptr)
Callback when exiting the display.
Definition: DD4hepMenu.cpp:137
dd4hep::DD4hepMenu::~DD4hepMenu
virtual ~DD4hepMenu()
Default destructor.
Definition: DD4hepMenu.cpp:50
dd4hep::DD4hepMenu::OnNextEvent
void OnNextEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the next event.
Definition: DD4hepMenu.cpp:127
dd4hep::DD4hepMenu::DD4hepMenu
DD4hepMenu(Display *eve)
Standard constructor.
dd4hep::DD4hepMenu::OnLoadRootGeometry
void OnLoadRootGeometry(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition: DD4hepMenu.cpp:93
Display.h
dd4hep::DD4hepMenu::OnLoadXML
void OnLoadXML(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition: DD4hepMenu.cpp:84
dd4hep::EventControl
Event input control for DDEve: Interface class for event I/O.
Definition: EventControl.h:37
PopupMenu.h
dd4hep::PopupMenu
class PopupMenu PopupMenu.h DDEve/PopupMenu.h
Definition: PopupMenu.h:36
dd4hep::DD4hepMenu::ClassDefOverride
ClassDefOverride(DD4hepMenu, 0)
ROOT implementation macro.
dd4hep::DD4hepMenu
dd4hep Menu for the ROOT browser
Definition: DD4hepMenu.h:37
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::DD4hepMenu::OnGeometryLoaded
void OnGeometryLoaded()
Callback when the geometry was loaded.
Definition: DD4hepMenu.cpp:74
dd4hep::DD4hepMenu::m_evtCtrl
EventControl * m_evtCtrl
Definition: DD4hepMenu.h:43