DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DisplayConfiguration.cpp
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 
15 // Framework include files
17 
18 // C/C++ include files
19 #include <stdexcept>
20 
21 using namespace DD4hep;
22 
24 
27 : m_display(eve)
28 {
29 }
30 
33 }
34 
37 }
38 
41  : Config(c), type(c.type),
42  subdetectors(c.subdetectors), show_sensitive(c.show_sensitive), show_structure(c.show_structure)
43 {
44 }
45 
48 }
49 
52  if ( this == &c ) return *this;
53  this->Config::operator=(c);
54  show_sensitive = c.show_sensitive;
55  show_structure = c.show_structure;
56  subdetectors = c.subdetectors;
57  type = c.type;
58  return *this;
59 }
60 
63  ::memset(&data,0,sizeof(data));
64  data.defaults.load_geo = -1;
65  data.defaults.show_evt = 1;
66  data.defaults.alpha = 0.5;
67 }
68 
71  name = c.name;
72  type = c.type;
73  hits = c.hits;
74  use = c.use;
75  ::memcpy(&data,&c.data,sizeof(c.data));
76 }
77 
80 }
81 
84  if ( this == &c ) return *this;
85  name = c.name;
86  type = c.type;
87  hits = c.hits;
88  use = c.use;
89  ::memcpy(&data,&c.data,sizeof(c.data));
90  return *this;
91 }
ViewConfig & operator=(const ViewConfig &c)
Assignment operator.
Config & operator=(const Config &c)
Assignment operator.
union DD4hep::DisplayConfiguration::Config::Values data
ClassImp(DisplayConfiguration) DisplayConfiguration
Initializing constructor.
DisplayConfiguration DisplayConfiguration.h DDEve/DisplayConfiguration.h.
virtual ~DisplayConfiguration()
Default destructor.
The main class of the DDEve display.
Definition: Display.h:57