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

class ViewMenu ViewMenu.h DDEve/ViewMenu.h More...

#include <ViewMenu.h>

Inheritance diagram for dd4hep::ViewMenu:
dd4hep::PopupMenu

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...
 
ViewCreateView (const std::string &type, const std::string &title)
 Create a generic view of a given type with title. More...
 
ViewCreateView3D (const std::string &title)
 Specialization: Create a new 3D view. More...
 
ViewCreateRhoZProjection (const std::string &title)
 Specialization: Create a new R-Z view. More...
 
ViewCreateRhoPhiProjection (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

Displaym_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, CallbackCallbacks
 

Detailed Description

class ViewMenu ViewMenu.h DDEve/ViewMenu.h

Definition at line 36 of file ViewMenu.h.

Constructor & Destructor Documentation

◆ ViewMenu()

dd4hep::ViewMenu::ViewMenu ( Display eve,
const std::string &  title 
)

Standard constructor.

◆ ~ViewMenu()

ViewMenu::~ViewMenu ( )
virtual

Default destructor.

Definition at line 49 of file ViewMenu.cpp.

Member Function Documentation

◆ Build()

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

Add the menu to the menu bar.

Reimplemented from dd4hep::PopupMenu.

Definition at line 54 of file ViewMenu.cpp.

◆ BuildView()

void ViewMenu::BuildView ( View view) const

Import Geometry data and build the view.

Import Geometry data.

Definition at line 97 of file ViewMenu.cpp.

◆ ClassDefOverride()

dd4hep::ViewMenu::ClassDefOverride ( ViewMenu  ,
 
)

ROOT implementation macro.

◆ CreateRhoPhiProjection()

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.

◆ CreateRhoZProjection()

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.

◆ CreateView() [1/2]

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.

◆ CreateView() [2/2]

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.

◆ CreateView3D()

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.

Member Data Documentation

◆ m_display

Display* dd4hep::ViewMenu::m_display
protected

Reference to display manager.

Definition at line 41 of file ViewMenu.h.

◆ m_title

std::string dd4hep::ViewMenu::m_title
protected

Menu title.

Definition at line 43 of file ViewMenu.h.


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