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 }
0028 virtual ~c2d2plot_cp(){
0029 }
0030 public:
0031 c2d2plot_cp(const c2d2plot_cp& a_from)
0032 :plottable(a_from),points2D(a_from),c2d2plot(m_cp)
0033 ,m_cp(a_from.m_cp)
0034 {
0035 }
0036 c2d2plot_cp& operator=(const c2d2plot_cp& a_from){
0037 c2d2plot::operator=(a_from);
0038 m_cp = a_from.m_cp;
0039 return *this;
0040 }
0041 protected:
0042 histo::c2d m_cp;
0043 };
0044
0045 class c3d2plot_cp : public c3d2plot {
0046 public:
0047 TOOLS_SCLASS(tools::sg::c3d2plot_cp)
0048 public:
0049 virtual void* cast(const std::string& a_class) const {
0050 if(void* p = cmp_cast<c3d2plot_cp>(this,a_class)) {return p;}
0051 return c3d2plot::cast(a_class);
0052 }
0053 public:
0054 virtual plottable* copy() const {return new c3d2plot_cp(*this);}
0055 public:
0056 c3d2plot_cp(const histo::c3d& a_data)
0057 :c3d2plot(m_cp)
0058 ,m_cp(a_data)
0059 {
0060 }
0061 virtual ~c3d2plot_cp(){
0062 }
0063 public:
0064 c3d2plot_cp(const c3d2plot_cp& a_from)
0065 :plottable(a_from),points3D(a_from),c3d2plot(m_cp)
0066 ,m_cp(a_from.m_cp)
0067 {
0068 }
0069 c3d2plot_cp& operator=(const c3d2plot_cp& a_from){
0070 c3d2plot::operator=(a_from);
0071 m_cp = a_from.m_cp;
0072 return *this;
0073 }
0074 protected:
0075 histo::c3d m_cp;
0076 };
0077
0078 }}
0079
0080 #endif