DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
DisplayConfiguration.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
16 
17 // C/C++ include files
18 #include <stdexcept>
19 
20 using namespace dd4hep;
21 
23 
26 : m_display(eve)
27 {
28 }
29 
31 DisplayConfiguration::~DisplayConfiguration() {
32 }
33 
36  : Config(), type(),
37  subdetectors(), show_sensitive(false), show_structure(false)
38 {
39 }
40 
43  : Config(c), type(c.type),
44  subdetectors(c.subdetectors), show_sensitive(c.show_sensitive), show_structure(c.show_structure)
45 {
46 }
47 
50 }
51 
54  if ( this == &c ) return *this;
55  this->Config::operator=(c);
56  show_sensitive = c.show_sensitive;
57  show_structure = c.show_structure;
58  subdetectors = c.subdetectors;
59  type = c.type;
60  return *this;
61 }
62 
65  ::memset(&data,0,sizeof(data));
66  data.defaults.load_geo = -1;
67  data.defaults.show_evt = 1;
68  data.defaults.alpha = 0.5;
69  type = NO_DATA;
70 }
71 
74  name = c.name;
75  type = c.type;
76  hits = c.hits;
77  use = c.use;
78  ::memcpy(&data,&c.data,sizeof(c.data));
79 }
80 
83 }
84 
87  if ( this == &c ) return *this;
88  name = c.name;
89  type = c.type;
90  hits = c.hits;
91  use = c.use;
92  ::memcpy(&data,&c.data,sizeof(c.data));
93  return *this;
94 }
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
DisplayConfiguration.h
dd4hep::DisplayConfiguration::DisplayConfiguration
DisplayConfiguration(Display *eve)
Initializing constructor.
dd4hep::DisplayConfiguration::Config::data
union dd4hep::DisplayConfiguration::Config::Values data
dd4hep::DisplayConfiguration::ViewConfig::subdetectors
Configurations subdetectors
Definition: DisplayConfiguration.h:122
dd4hep::DisplayConfiguration::ViewConfig::show_structure
bool show_structure
Definition: DisplayConfiguration.h:124
dd4hep::DisplayConfiguration::NO_DATA
@ NO_DATA
Definition: DisplayConfiguration.h:45
dd4hep::DisplayConfiguration::ViewConfig::show_sensitive
bool show_sensitive
Definition: DisplayConfiguration.h:123
dd4hep::DisplayConfiguration::ViewConfig::~ViewConfig
virtual ~ViewConfig()
Default destructor.
Definition: DisplayConfiguration.cpp:49
ClassImp
ClassImp(DisplayConfiguration) DisplayConfiguration
Initializing constructor.
Definition: DisplayConfiguration.cpp:22
dd4hep::DisplayConfiguration::ViewConfig::operator=
ViewConfig & operator=(const ViewConfig &c)
Assignment operator.
Definition: DisplayConfiguration.cpp:53
dd4hep::DisplayConfiguration::ViewConfig::ViewConfig
ViewConfig()
Default constructor.
Definition: DisplayConfiguration.cpp:35
dd4hep::DisplayConfiguration::Config
Container with full display configuration.
Definition: DisplayConfiguration.h:92
dd4hep::DisplayConfiguration::ViewConfig::type
std::string type
Definition: DisplayConfiguration.h:121
dd4hep::DisplayConfiguration::Config::name
std::string name
Definition: DisplayConfiguration.h:103
dd4hep::DisplayConfiguration::ViewConfig
View configuration.
Definition: DisplayConfiguration.h:119
dd4hep::DisplayConfiguration
Generic display configuration structure for DDEve.
Definition: DisplayConfiguration.h:40
dd4hep::DisplayConfiguration::Config::~Config
~Config()
Default destructor.
Definition: DisplayConfiguration.cpp:82
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::DisplayConfiguration::Config::hits
std::string hits
Definition: DisplayConfiguration.h:104
dd4hep::DisplayConfiguration::Config::operator=
Config & operator=(const Config &c)
Assignment operator.
Definition: DisplayConfiguration.cpp:86
dd4hep::DisplayConfiguration::Config::use
std::string use
Definition: DisplayConfiguration.h:105
dd4hep::DisplayConfiguration::Config::Config
Config()
Default constructor.
Definition: DisplayConfiguration.cpp:64
dd4hep::DisplayConfiguration::Config::type
int type
Definition: DisplayConfiguration.h:106