DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members

DD4hep specific TEve context menu. More...

#include <DDEve/ContextMenu.h>

Public Member Functions

ContextMenuClear ()
 Clear all existing items. More...
 
ContextMenuAddSeparator ()
 Add a separator. More...
 
template<typename Q , typename T >
ContextMenuAdd (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 ContextMenuinstance (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...
 
ContextMenuAdd (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...
 

Detailed Description

DD4hep specific TEve context menu.

Author
M.Frank
Version
1.0

Definition at line 64 of file ContextMenu.h.

Member Typedef Documentation

◆ Handlers

typedef std::vector<ContextMenuHandler*> dd4hep::ContextMenu::Handlers
private

Definition at line 65 of file ContextMenu.h.

Constructor & Destructor Documentation

◆ ContextMenu()

dd4hep::ContextMenu::ContextMenu ( TClass *  cl)
private

Initializing constructor.

◆ ~ContextMenu()

ContextMenu::~ContextMenu ( )
privatevirtual

Default destructor.

Definition at line 62 of file ContextMenu.cpp.

Member Function Documentation

◆ Add() [1/2]

ContextMenu & ContextMenu::Add ( const std::string &  title,
Callback  cb,
void *  ud 
)
private

Add user callback.

Definition at line 91 of file ContextMenu.cpp.

◆ Add() [2/2]

template<typename Q , typename T >
ContextMenu& dd4hep::ContextMenu::Add ( const std::string &  title,
Q *  ptr,
void(T::*)(TObject *, void *ud)  pmf,
void *  ud = 0 
)
inline

Add a user item to the menu.

Definition at line 86 of file ContextMenu.h.

◆ AddSeparator()

ContextMenu & ContextMenu::AddSeparator ( )

Add a separator.

Definition at line 83 of file ContextMenu.cpp.

◆ ClassDef()

dd4hep::ContextMenu::ClassDef ( ContextMenu  ,
 
)

Root implementation macro.

◆ Clear()

ContextMenu & ContextMenu::Clear ( )

Clear all existing items.

Definition at line 75 of file ContextMenu.cpp.

◆ instance()

ContextMenu & ContextMenu::instance ( TClass *  cl)
static

Instantiator.

Definition at line 66 of file ContextMenu.cpp.

Member Data Documentation

◆ m_calls

Handlers dd4hep::ContextMenu::m_calls
private

Callback map.

Definition at line 67 of file ContextMenu.h.

◆ m_class

TClass* dd4hep::ContextMenu::m_class
private

List of menu entries.

Definition at line 69 of file ContextMenu.h.


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