DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
ElementList.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/InstanceCount.h>
17 #include <DDEve/ElementList.h>
18 
19 // ROOT include files
20 
21 // C/C++ include files
22 #include <stdexcept>
23 
24 using namespace dd4hep;
25 
28 
31  InstanceCount::increment(this);
32 }
33 
35 ElementList::ElementList(const std::string& name, const std::string& title, bool doCol, bool doTrans)
36  : TEveElementList(name.c_str(), title.c_str(), doCol, doTrans) {
38 }
39 
42  : TEveElementList(l) {
44 }
45 
49 }
50 
53  return new ElementList(*this);
54 }
55 
58  static ElementListContextMenu menu(disp);
59  return menu;
60 }
61 
64  : EveUserContextMenu(mgr)
65 {
66  InstallGeometryContextMenu(ElementList::Class());
67 }
68 
71 }
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
dd4hep::ElementList::ElementList
ElementList()
Default constructor.
dd4hep::ElementList::CloneElement
virtual TEveElementList * CloneElement() const override
Clone object: Overload from TEveElementList.
Definition: ElementList.cpp:52
dd4hep::ElementList::~ElementList
virtual ~ElementList()
Default destructor.
Definition: ElementList.cpp:47
dd4hep::InstanceCount::increment
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
dd4hep::ElementList
Local implementation with overrides of the TEveElementList.
Definition: ElementList.h:35
ClassImp
ClassImp(ElementList) ClassImp(ElementListContextMenu) ElementList
Default constructor.
Definition: ElementList.cpp:26
TEveElementList
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
Definition: ROOTClasses.h:13
dd4hep::ElementListContextMenu::ElementListContextMenu
ElementListContextMenu(Display *m)
Initializing constructor.
Definition: ElementList.cpp:63
dd4hep::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
dd4hep::ElementListContextMenu::~ElementListContextMenu
virtual ~ElementListContextMenu()
Default destructor.
Definition: ElementList.cpp:70
dd4hep::EveUserContextMenu::InstallGeometryContextMenu
void InstallGeometryContextMenu(TClass *cl)
Install the geometry context menu.
Definition: EveUserContextMenu.cpp:105
dd4hep::ElementListContextMenu::install
static ElementListContextMenu & install(Display *m)
Instantiator.
Definition: ElementList.cpp:57
ElementList.h
EveUserContextMenu.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::EveUserContextMenu
class EveUserContextMenu EveUserContextMenu.h DDEve/EveUserContextMenu.h
Definition: EveUserContextMenu.h:34
InstanceCount.h
dd4hep::ElementListContextMenu
DDEve context menu class.
Definition: ElementList.h:57