DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Attributes | List of all members
dd4hep::DD4hepMenu Class Reference

dd4hep Menu for the ROOT browser More...

#include <DD4hepMenu.h>

Inheritance diagram for dd4hep::DD4hepMenu:
dd4hep::PopupMenu

Public Member Functions

 DD4hepMenu (Display *eve)
 Standard constructor. More...
 
virtual ~DD4hepMenu ()
 Default destructor. More...
 
virtual void Build (TGMenuBar *menuBar, int hints=kLHintsNormal) override
 Add the menu to the menu bar. More...
 
void OnLoadXML (TGMenuEntry *entry, void *ptr)
 Callback when loading the configuration. More...
 
void OnLoadRootGeometry (TGMenuEntry *entry, void *ptr)
 Callback when loading the configuration. More...
 
void OnCreateEventIO (TGMenuEntry *entry, void *ptr)
 Callback to show the event I/O panel. More...
 
void OnOpenEventData (TGMenuEntry *entry, void *ptr)
 Callback when loading a new event data file. More...
 
void OnNextEvent (TGMenuEntry *entry, void *ptr)
 Callback when loading the next event. More...
 
void OnPreviousEvent (TGMenuEntry *entry, void *ptr)
 Callback when loading the previous event. More...
 
void OnExit (TGMenuEntry *entry, void *ptr)
 Callback when exiting the display. More...
 
void OnGeometryLoaded ()
 Callback when the geometry was loaded. More...
 
 ClassDefOverride (DD4hepMenu, 0)
 ROOT implementation macro. More...
 
- Public Member Functions inherited from dd4hep::PopupMenu
 PopupMenu (const TGWindow *parent)
 Standard constructor. More...
 
virtual ~PopupMenu ()
 Default destructor. More...
 
void HandleMenu (int id)
 Handle menu items. More...
 
TGPopupMenu & menu ()
 Access to implementation. More...
 
virtual void AddSeparator (TGMenuEntry *before=0)
 Add a menu separator to the menu. More...
 
virtual void AddLabel (const char *label, const TGPicture *p=0, TGMenuEntry *before=0)
 Add a menu label to the menu. More...
 
virtual void AddPopup (const char *name, TGPopupMenu *popup, TGMenuEntry *before=0, const TGPicture *p=0)
 Add a (cascading) popup menu to a popup menu. More...
 
virtual int AddEntry (const char *name, Callback cb, void *ud=0, const TGPicture *p=0, TGMenuEntry *before=0)
 Add a new popup menu entry with a callback. More...
 
template<typename T >
int AddEntry (const char *name, T *ptr, void(T::*pmf)(TGMenuEntry *, void *), void *ud=0, const TGPicture *p=0, TGMenuEntry *before=0)
 Add a new popup menu entry with a callback. More...
 
void CheckEntry (int id)
 Check menu entry. More...
 
void UnCheckEntry (int id)
 Uncheck menu entry. More...
 
bool IsEntryChecked (int id)
 Get check-value. More...
 
TGPopupMenu * operator-> ()
 Public access to the popup menu using '->'. More...
 
 operator TGPopupMenu * ()
 Public access to the popup menu using '->'. More...
 
 ClassDef (PopupMenu, 0)
 

Protected Attributes

Displaym_display
 Reference to display manager. More...
 
EventControlm_evtCtrl
 
- Protected Attributes inherited from dd4hep::PopupMenu
Callbacks m_calls
 Callback map. More...
 
TGPopupMenu m_popup
 
int m_cmd
 

Additional Inherited Members

- Public Types inherited from dd4hep::PopupMenu
typedef std::map< int, CallbackCallbacks
 

Detailed Description

dd4hep Menu for the ROOT browser

Definition at line 37 of file DD4hepMenu.h.

Constructor & Destructor Documentation

◆ DD4hepMenu()

dd4hep::DD4hepMenu::DD4hepMenu ( Display eve)

Standard constructor.

◆ ~DD4hepMenu()

DD4hepMenu::~DD4hepMenu ( )
virtual

Default destructor.

Definition at line 50 of file DD4hepMenu.cpp.

Member Function Documentation

◆ Build()

void DD4hepMenu::Build ( TGMenuBar *  menuBar,
int  hints = kLHintsNormal 
)
overridevirtual

Add the menu to the menu bar.

Reimplemented from dd4hep::PopupMenu.

Definition at line 56 of file DD4hepMenu.cpp.

◆ ClassDefOverride()

dd4hep::DD4hepMenu::ClassDefOverride ( DD4hepMenu  ,
 
)

ROOT implementation macro.

◆ OnCreateEventIO()

void DD4hepMenu::OnCreateEventIO ( TGMenuEntry *  entry,
void *  ptr 
)

Callback to show the event I/O panel.

Definition at line 101 of file DD4hepMenu.cpp.

◆ OnExit()

void DD4hepMenu::OnExit ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when exiting the display.

Definition at line 137 of file DD4hepMenu.cpp.

◆ OnGeometryLoaded()

void DD4hepMenu::OnGeometryLoaded ( )

Callback when the geometry was loaded.

Definition at line 74 of file DD4hepMenu.cpp.

◆ OnLoadRootGeometry()

void DD4hepMenu::OnLoadRootGeometry ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when loading the configuration.

Definition at line 93 of file DD4hepMenu.cpp.

◆ OnLoadXML()

void DD4hepMenu::OnLoadXML ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when loading the configuration.

Definition at line 84 of file DD4hepMenu.cpp.

◆ OnNextEvent()

void DD4hepMenu::OnNextEvent ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when loading the next event.

Definition at line 127 of file DD4hepMenu.cpp.

◆ OnOpenEventData()

void DD4hepMenu::OnOpenEventData ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when loading a new event data file.

Definition at line 114 of file DD4hepMenu.cpp.

◆ OnPreviousEvent()

void DD4hepMenu::OnPreviousEvent ( TGMenuEntry *  entry,
void *  ptr 
)

Callback when loading the previous event.

Definition at line 132 of file DD4hepMenu.cpp.

Member Data Documentation

◆ m_display

Display* dd4hep::DD4hepMenu::m_display
protected

Reference to display manager.

Definition at line 42 of file DD4hepMenu.h.

◆ m_evtCtrl

EventControl* dd4hep::DD4hepMenu::m_evtCtrl
protected

Definition at line 43 of file DD4hepMenu.h.


The documentation for this class was generated from the following files: