|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
24 #include <TEveBrowser.h>
25 #include <TEveManager.h>
26 #include <TEveElement.h>
27 #include <TEveWindow.h>
28 #include <TEveViewer.h>
29 #include <TGLViewer.h>
37 using pair_t = std::pair<std::string, std::string>;
43 :
PopupMenu(display->client().GetRoot()), m_display(display), m_title(title)
45 InstanceCount::increment(
this);
49 ViewMenu::~ViewMenu() {
61 for(Display::ViewConfigurations::const_iterator i=vc.begin(); i!=vc.end(); ++i) {
65 menubar->AddPopup(
m_title.c_str(),*view_menu,
new TGLayoutHints(hints, 0, 4, 0, 0));
75 pair_t args(
"DD4hep_DDEve_"+type,title);
76 View*
v = PluginService::Create<View*>(type.c_str(),
m_display,title.c_str());
83 return CreateView(
"DD4hep_DDEve_View3D",title.c_str());
88 return CreateView(
"DD4hep_DDEve_RhoZProjection",title.c_str());
93 return CreateView(
"DD4hep_DDEve_RhoPhiProjection",title.c_str());
99 TEveBrowser *browser = mgr.GetBrowser();
100 TGTab *right = browser->GetTabRight();
101 TEveWindowSlot *
slot = TEveWindow::CreateWindowInTab(right);
107 right->SetTab(right->GetNumberOfTabs()-1);
The main class of the DDEve display.
virtual View & Build(TEveWindow *slot)
Build the view view and map it to the given slot.
virtual void ConfigureGeometryFromInfo()
Configure a view with geo info. Used configuration if present.
const std::string & name() const
Access to the view name/title.
std::map< std::string, ViewConfig > ViewConfigurations
const ViewConfigurations & viewConfigurations() const
Access View configurations.
View TEveWindowSlot * slot
static void decrement(T *)
Decrement count according to type information.
virtual void ConfigureEventFromInfo()
Configure a view with event info. Used configuration if present.
Namespace for the AIDA detector description toolkit.
virtual void Initialize()
Initialize the view port.
class View View.h DDEve/View.h
virtual void RegisterEvents(View *view)
Register to the main event scene on new events.
TEveManager & manager() const
Access to the EVE manager.