Warning, /include/Geant4/tools/sg/cloud2plot_cp is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_sg_cloud2plot_cp
0005 #define tools_sg_cloud2plot_cp
0006
0007 #include "cloud2plot"
0008
0009 namespace tools {
0010 namespace sg {
0011
0012 class c2d2plot_cp : public c2d2plot {
0013 public:
0014 TOOLS_SCLASS(tools::sg::c2d2plot_cp)
0015 public:
0016 virtual void* cast(const std::string& a_class) const {
0017 if(void* p = cmp_cast<c2d2plot_cp>(this,a_class)) {return p;}
0018 return c2d2plot::cast(a_class);
0019 }
0020 public:
0021 virtual plottable* copy() const {return new c2d2plot_cp(*this);}
0022 public:
0023 c2d2plot_cp(const histo::c2d& a_data)
0024 :c2d2plot(m_cp)
0025 ,m_cp(a_data)
0026 {
0027 #ifdef TOOLS_MEM
0028 mem::increment(s_class().c_str());
0029 #endif
0030 }
0031 virtual ~c2d2plot_cp(){
0032 #ifdef TOOLS_MEM
0033 mem::decrement(s_class().c_str());
0034 #endif
0035 }
0036 public:
0037 c2d2plot_cp(const c2d2plot_cp& a_from)
0038 :plottable(a_from),points2D(a_from),c2d2plot(m_cp)
0039 ,m_cp(a_from.m_cp)
0040 {
0041 #ifdef TOOLS_MEM
0042 mem::increment(s_class().c_str());
0043 #endif
0044 }
0045 c2d2plot_cp& operator=(const c2d2plot_cp& a_from){
0046 c2d2plot::operator=(a_from);
0047 m_cp = a_from.m_cp;
0048 return *this;
0049 }
0050 protected:
0051 histo::c2d m_cp;
0052 };
0053
0054 class c3d2plot_cp : public c3d2plot {
0055 public:
0056 TOOLS_SCLASS(tools::sg::c3d2plot_cp)
0057 public:
0058 virtual void* cast(const std::string& a_class) const {
0059 if(void* p = cmp_cast<c3d2plot_cp>(this,a_class)) {return p;}
0060 return c3d2plot::cast(a_class);
0061 }
0062 public:
0063 virtual plottable* copy() const {return new c3d2plot_cp(*this);}
0064 public:
0065 c3d2plot_cp(const histo::c3d& a_data)
0066 :c3d2plot(m_cp)
0067 ,m_cp(a_data)
0068 {
0069 #ifdef TOOLS_MEM
0070 mem::increment(s_class().c_str());
0071 #endif
0072 }
0073 virtual ~c3d2plot_cp(){
0074 #ifdef TOOLS_MEM
0075 mem::decrement(s_class().c_str());
0076 #endif
0077 }
0078 public:
0079 c3d2plot_cp(const c3d2plot_cp& a_from)
0080 :plottable(a_from),points3D(a_from),c3d2plot(m_cp)
0081 ,m_cp(a_from.m_cp)
0082 {
0083 #ifdef TOOLS_MEM
0084 mem::increment(s_class().c_str());
0085 #endif
0086 }
0087 c3d2plot_cp& operator=(const c3d2plot_cp& a_from){
0088 c3d2plot::operator=(a_from);
0089 m_cp = a_from.m_cp;
0090 return *this;
0091 }
0092 protected:
0093 histo::c3d m_cp;
0094 };
0095
0096 }}
0097
0098 #endif