File indexing completed on 2025-01-18 09:14:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <DDEve/DisplayConfiguration.h>
0016
0017
0018 #include <stdexcept>
0019
0020 using namespace dd4hep;
0021
0022 ClassImp(DisplayConfiguration)
0023
0024
0025 DisplayConfiguration::DisplayConfiguration(Display* eve)
0026 : m_display(eve)
0027 {
0028 }
0029
0030
0031 DisplayConfiguration::~DisplayConfiguration() {
0032 }
0033
0034
0035 DisplayConfiguration::ViewConfig::ViewConfig()
0036 : Config(), type(),
0037 subdetectors(), show_sensitive(false), show_structure(false)
0038 {
0039 }
0040
0041
0042 DisplayConfiguration::ViewConfig::ViewConfig(const ViewConfig& c)
0043 : Config(c), type(c.type),
0044 subdetectors(c.subdetectors), show_sensitive(c.show_sensitive), show_structure(c.show_structure)
0045 {
0046 }
0047
0048
0049 DisplayConfiguration::ViewConfig::~ViewConfig() {
0050 }
0051
0052
0053 DisplayConfiguration::ViewConfig& DisplayConfiguration::ViewConfig::operator=(const ViewConfig& c) {
0054 if ( this == &c ) return *this;
0055 this->Config::operator=(c);
0056 show_sensitive = c.show_sensitive;
0057 show_structure = c.show_structure;
0058 subdetectors = c.subdetectors;
0059 type = c.type;
0060 return *this;
0061 }
0062
0063
0064 DisplayConfiguration::Config::Config() {
0065 ::memset(&data,0,sizeof(data));
0066 data.defaults.load_geo = -1;
0067 data.defaults.show_evt = 1;
0068 data.defaults.alpha = 0.5;
0069 type = NO_DATA;
0070 }
0071
0072
0073 DisplayConfiguration::Config::Config(const Config& c) {
0074 name = c.name;
0075 type = c.type;
0076 hits = c.hits;
0077 use = c.use;
0078 ::memcpy(&data,&c.data,sizeof(c.data));
0079 }
0080
0081
0082 DisplayConfiguration::Config::~Config() {
0083 }
0084
0085
0086 DisplayConfiguration::Config& DisplayConfiguration::Config::operator=(const Config& c) {
0087 if ( this == &c ) return *this;
0088 name = c.name;
0089 type = c.type;
0090 hits = c.hits;
0091 use = c.use;
0092 ::memcpy(&data,&c.data,sizeof(c.data));
0093 return *this;
0094 }