DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
DD4hep specific TEve context menu. More...
#include <DDEve/ContextMenu.h>
Public Member Functions | |
ContextMenu & | Clear () |
Clear all existing items. More... | |
ContextMenu & | AddSeparator () |
Add a separator. More... | |
template<typename Q , typename T > | |
ContextMenu & | Add (const std::string &title, Q *ptr, void(T::*pmf)(TObject *, void *ud), void *ud=0) |
Add a user item to the menu. More... | |
ClassDef (ContextMenu, 0) | |
Root implementation macro. More... | |
Static Public Member Functions | |
static ContextMenu & | instance (TClass *cl) |
Instantiator. More... | |
Private Types | |
typedef std::vector< ContextMenuHandler * > | Handlers |
Private Member Functions | |
ContextMenu (TClass *cl) | |
Initializing constructor. More... | |
virtual | ~ContextMenu () |
Default destructor. More... | |
ContextMenu & | Add (const std::string &title, Callback cb, void *ud) |
Add user callback. More... | |
Private Attributes | |
Handlers | m_calls |
Callback map. More... | |
TClass * | m_class |
List of menu entries. More... | |
|
private |
Definition at line 65 of file ContextMenu.h.
|
private |
Initializing constructor.
|
privatevirtual |
Default destructor.
Definition at line 62 of file ContextMenu.cpp.
|
private |
Add user callback.
Definition at line 91 of file ContextMenu.cpp.
|
inline |
Add a user item to the menu.
Definition at line 86 of file ContextMenu.h.
ContextMenu & ContextMenu::AddSeparator | ( | ) |
Add a separator.
Definition at line 83 of file ContextMenu.cpp.
dd4hep::ContextMenu::ClassDef | ( | ContextMenu | , |
0 | |||
) |
Root implementation macro.
ContextMenu & ContextMenu::Clear | ( | ) |
Clear all existing items.
Definition at line 75 of file ContextMenu.cpp.
|
static |
Instantiator.
Definition at line 66 of file ContextMenu.cpp.
|
private |
Callback map.
Definition at line 67 of file ContextMenu.h.
|
private |
List of menu entries.
Definition at line 69 of file ContextMenu.h.