Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 08:19:58

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DD4hep/InstanceCount.h>
0016 #include <DDEve/EveUserContextMenu.h>
0017 #include <DDEve/ElementList.h>
0018 
0019 // ROOT include files
0020 
0021 // C/C++ include files
0022 #include <stdexcept>
0023 
0024 using namespace dd4hep;
0025 
0026 ClassImp(ElementList)
0027 ClassImp(ElementListContextMenu)
0028 
0029 /// Default constructor
0030 ElementList::ElementList()  : TEveElementList()  {
0031   InstanceCount::increment(this);
0032 }
0033 
0034 /// Initializing constructor
0035 ElementList::ElementList(const std::string& name, const std::string& title, bool doCol, bool doTrans)
0036   : TEveElementList(name.c_str(), title.c_str(), doCol, doTrans)  {
0037   InstanceCount::increment(this);
0038 }
0039 
0040 /// Copy constructor
0041 ElementList::ElementList(const ElementList& l)
0042   : TEveElementList(l)  {
0043   InstanceCount::increment(this);
0044 }
0045 
0046 /// Default destructor
0047 ElementList::~ElementList()  {
0048   InstanceCount::decrement(this);
0049 }
0050 
0051 /// Clone object
0052 TEveElementList* ElementList::CloneElement() const  {
0053   return new ElementList(*this);
0054 }
0055 
0056 /// Instantiator
0057 ElementListContextMenu& ElementListContextMenu::install(Display* disp)   {
0058   static ElementListContextMenu menu(disp);
0059   return menu;
0060 }
0061 
0062 /// Initializing constructor
0063 ElementListContextMenu::ElementListContextMenu(Display* mgr)
0064   : EveUserContextMenu(mgr)
0065 {
0066   InstallGeometryContextMenu(ElementList::Class());
0067 }
0068 
0069 /// Default destructor
0070 ElementListContextMenu::~ElementListContextMenu()  {
0071 }