DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
class ViewMenu ViewMenu.h DDEve/ViewMenu.h More...
#include <ViewMenu.h>
Public Member Functions | |
ViewMenu (Display *eve, const std::string &title) | |
Standard constructor. More... | |
virtual | ~ViewMenu () |
Default destructor. More... | |
virtual void | Build (TGMenuBar *menuBar, int hints=kLHintsNormal) override |
Add the menu to the menu bar. More... | |
void | BuildView (View *view) const |
Import Geometry data and build the view. More... | |
void | CreateView (TGMenuEntry *e, void *ud) |
Menu callback: Create a generic view using the user data. More... | |
View * | CreateView (const std::string &type, const std::string &title) |
Create a generic view of a given type with title. More... | |
View * | CreateView3D (const std::string &title) |
Specialization: Create a new 3D view. More... | |
View * | CreateRhoZProjection (const std::string &title) |
Specialization: Create a new R-Z view. More... | |
View * | CreateRhoPhiProjection (const std::string &title) |
Specialization: Create a new R-Phi view. More... | |
ClassDefOverride (ViewMenu, 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 | |
Display * | m_display |
Reference to display manager. More... | |
std::string | m_title |
Menu title. More... | |
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, Callback > | Callbacks |
class ViewMenu ViewMenu.h DDEve/ViewMenu.h
Definition at line 36 of file ViewMenu.h.
dd4hep::ViewMenu::ViewMenu | ( | Display * | eve, |
const std::string & | title | ||
) |
Standard constructor.
|
virtual |
Default destructor.
Definition at line 49 of file ViewMenu.cpp.
|
overridevirtual |
Add the menu to the menu bar.
Reimplemented from dd4hep::PopupMenu.
Definition at line 54 of file ViewMenu.cpp.
void ViewMenu::BuildView | ( | View * | view | ) | const |
Import Geometry data and build the view.
Import Geometry data.
Definition at line 97 of file ViewMenu.cpp.
View * ViewMenu::CreateRhoPhiProjection | ( | const std::string & | title | ) |
Specialization: Create a new R-Phi view.
Create a new R-Phi view.
Definition at line 92 of file ViewMenu.cpp.
View * ViewMenu::CreateRhoZProjection | ( | const std::string & | title | ) |
Specialization: Create a new R-Z view.
Create a new R-Z view.
Definition at line 87 of file ViewMenu.cpp.
View * ViewMenu::CreateView | ( | const std::string & | type, |
const std::string & | title | ||
) |
Create a generic view of a given type with title.
Definition at line 74 of file ViewMenu.cpp.
void ViewMenu::CreateView | ( | TGMenuEntry * | e, |
void * | ud | ||
) |
Menu callback: Create a generic view using the user data.
Create a new generic view.
Definition at line 69 of file ViewMenu.cpp.
View * ViewMenu::CreateView3D | ( | const std::string & | title | ) |
Specialization: Create a new 3D view.
Create a new 3D view.
Definition at line 82 of file ViewMenu.cpp.
|
protected |
Reference to display manager.
Definition at line 41 of file ViewMenu.h.
|
protected |
Menu title.
Definition at line 43 of file ViewMenu.h.