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[ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /graphics_reps/src/G4Polyhedron.cc (Version 11.3.0) and /graphics_reps/src/G4Polyhedron.cc (Version 5.1.p1)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                    <<   3 // * DISCLAIMER                                                       *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th <<   5 // * The following disclaimer summarizes all the specific disclaimers *
  6 // * the Geant4 Collaboration.  It is provided <<   6 // * of contributors to this software. The specific disclaimers,which *
  7 // * conditions of the Geant4 Software License <<   7 // * govern, are listed with their locations in:                      *
  8 // * LICENSE and available at  http://cern.ch/ <<   8 // *   http://cern.ch/geant4/license                                  *
  9 // * include a list of copyright holders.      << 
 10 // *                                                9 // *                                                                  *
 11 // * Neither the authors of this software syst     10 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     11 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     12 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     13 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  <<  14 // * use.                                                             *
 16 // * for the full disclaimer and the limitatio << 
 17 // *                                               15 // *                                                                  *
 18 // * This  code  implementation is the result  <<  16 // * This  code  implementation is the  intellectual property  of the *
 19 // * technical work of the GEANT4 collaboratio <<  17 // * GEANT4 collaboration.                                            *
 20 // * By using,  copying,  modifying or  distri <<  18 // * By copying,  distributing  or modifying the Program (or any work *
 21 // * any work based  on the software)  you  ag <<  19 // * based  on  the Program)  you indicate  your  acceptance of  this *
 22 // * use  in  resulting  scientific  publicati <<  20 // * statement, and all its terms.                                    *
 23 // * acceptance of all terms of the Geant4 Sof << 
 24 // *******************************************     21 // ********************************************************************
 25 //                                                 22 //
 26 //                                                 23 //
                                                   >>  24 // $Id: G4Polyhedron.cc,v 1.12 2003/04/03 15:31:07 gcosmo Exp $
                                                   >>  25 // GEANT4 tag $Name: geant4-05-01-patch-01 $
 27                                                    26 
 28 #include "G4Polyhedron.hh"                         27 #include "G4Polyhedron.hh"
 29                                                    28 
 30 G4Polyhedron::G4Polyhedron ()                  <<  29 G4Polyhedron::G4Polyhedron () {}
 31 = default;                                     << 
 32                                                    30 
 33 G4Polyhedron::G4Polyhedron (G4int Nvert, G4int <<  31 G4Polyhedron::~G4Polyhedron () {}
 34   HepPolyhedron (Nvert, Nface)                 << 
 35 {}                                             << 
 36                                                    32 
 37 G4Polyhedron::~G4Polyhedron () = default;      <<  33 G4Polyhedron::G4Polyhedron (const G4Polyhedron& from)
 38                                                <<  34   : HepPolyhedron(from), G4VVisPrim(from)
 39 G4Polyhedron::G4Polyhedron (const HepPolyhedro << 
 40   : HepPolyhedron(from)                        << 
 41 {                                                  35 {
 42   fNumberOfRotationStepsAtTimeOfCreation =     <<  36   *this = from;
 43     from.fNumberOfRotationSteps;               <<  37 }
                                                   >>  38 
                                                   >>  39 G4Polyhedron::G4Polyhedron (const HepPolyhedron& from) {
                                                   >>  40   *this = from;
                                                   >>  41 }
                                                   >>  42 
                                                   >>  43 G4Polyhedron& G4Polyhedron::operator = (const G4Polyhedron& from) {
                                                   >>  44   if (&from == this) return *this;
                                                   >>  45   HepPolyhedron::operator = (from);
                                                   >>  46   G4VVisPrim::operator = (from);
                                                   >>  47   return *this;
 44 }                                                  48 }
 45                                                    49 
 46 G4PolyhedronBox::G4PolyhedronBox (G4double dx,     50 G4PolyhedronBox::G4PolyhedronBox (G4double dx, G4double dy, G4double dz):
 47   G4Polyhedron (HepPolyhedronBox (dx, dy, dz))     51   G4Polyhedron (HepPolyhedronBox (dx, dy, dz)) {}
 48                                                    52 
 49 G4PolyhedronBox::~G4PolyhedronBox () = default <<  53 G4PolyhedronBox::~G4PolyhedronBox () {}
 50                                                    54 
 51 G4PolyhedronCone::G4PolyhedronCone (G4double R <<  55 G4PolyhedronCone::G4PolyhedronCone (G4double Rmn1, G4double Rmx1, 
 52                                     G4double R <<  56             G4double Rmn2, G4double Rmx2, G4double Dz):
 53   G4Polyhedron (HepPolyhedronCone (Rmn1, Rmx1,     57   G4Polyhedron (HepPolyhedronCone (Rmn1, Rmx1, Rmn2, Rmx2, Dz)) {}
 54                                                    58 
 55 G4PolyhedronCone::~G4PolyhedronCone () = defau <<  59 G4PolyhedronCone::~G4PolyhedronCone () {}
 56                                                    60 
 57 G4PolyhedronCons::G4PolyhedronCons (G4double R <<  61 G4PolyhedronCons::G4PolyhedronCons (G4double Rmn1, G4double Rmx1, 
 58                                     G4double R <<  62             G4double Rmn2, G4double Rmx2, G4double Dz,
 59                                     G4double P <<  63             G4double Phi1, G4double Dphi):
 60   G4Polyhedron (HepPolyhedronCons (Rmn1, Rmx1,     64   G4Polyhedron (HepPolyhedronCons (Rmn1, Rmx1, Rmn2, Rmx2, Dz, Phi1, Dphi)) {}
 61                                                    65 
 62 G4PolyhedronCons::~G4PolyhedronCons () = defau <<  66 G4PolyhedronCons::~G4PolyhedronCons () {}
 63                                                    67 
 64 G4PolyhedronPara::G4PolyhedronPara (G4double D     68 G4PolyhedronPara::G4PolyhedronPara (G4double Dx, G4double Dy, G4double Dz,
 65                                     G4double A <<  69             G4double Alpha, G4double Theta,
 66                                     G4double P <<  70             G4double Phi):
 67   G4Polyhedron (HepPolyhedronPara (Dx, Dy, Dz,     71   G4Polyhedron (HepPolyhedronPara (Dx, Dy, Dz, Alpha, Theta, Phi)) {}
 68                                                    72 
 69 G4PolyhedronPara::~G4PolyhedronPara () = defau <<  73 G4PolyhedronPara::~G4PolyhedronPara () {}
 70                                                    74 
 71 G4PolyhedronPcon::G4PolyhedronPcon (G4double p     75 G4PolyhedronPcon::G4PolyhedronPcon (G4double phi, G4double dphi, G4int nz,
 72                                     const G4do <<  76             const G4double *z,
 73                                     const G4do <<  77             const G4double *rmin,
 74                                     const G4do <<  78             const G4double *rmax):
 75   G4Polyhedron (HepPolyhedronPcon (phi, dphi,      79   G4Polyhedron (HepPolyhedronPcon (phi, dphi, nz, z, rmin, rmax)) {}
 76                                                    80 
 77 G4PolyhedronPcon::G4PolyhedronPcon (G4double p <<  81 G4PolyhedronPcon::~G4PolyhedronPcon () {}
 78                                     const std: << 
 79   G4Polyhedron (HepPolyhedronPcon(phi, dphi, r << 
 80                                                << 
 81 G4PolyhedronPcon::~G4PolyhedronPcon () = defau << 
 82                                                    82 
 83 G4PolyhedronPgon::G4PolyhedronPgon (G4double p     83 G4PolyhedronPgon::G4PolyhedronPgon (G4double phi, G4double dphi, G4int npdv,
 84                                     G4int nz,  <<  84             G4int nz,
 85                                     const G4do <<  85             const G4double *z,
 86                                     const G4do <<  86             const G4double *rmin,
 87                                     const G4do <<  87             const G4double *rmax):
 88   G4Polyhedron (HepPolyhedronPgon (phi, dphi,      88   G4Polyhedron (HepPolyhedronPgon (phi, dphi, npdv, nz, z, rmin, rmax)) {}
 89                                                    89 
 90 G4PolyhedronPgon::G4PolyhedronPgon (G4double p <<  90 G4PolyhedronPgon::~G4PolyhedronPgon () {}
 91                                     const std: << 
 92   G4Polyhedron (HepPolyhedronPgon(phi, dphi, n << 
 93                                                << 
 94 G4PolyhedronPgon::~G4PolyhedronPgon () = defau << 
 95                                                    91 
 96 G4PolyhedronSphere::G4PolyhedronSphere (G4doub     92 G4PolyhedronSphere::G4PolyhedronSphere (G4double rmin, G4double rmax,
 97                                         G4doub <<  93           G4double phi, G4double dphi,
 98                                         G4doub <<  94           G4double the, G4double dthe):
 99   G4Polyhedron (HepPolyhedronSphere (rmin, rma     95   G4Polyhedron (HepPolyhedronSphere (rmin, rmax, phi, dphi, the, dthe)) {}
100                                                    96 
101 G4PolyhedronSphere::~G4PolyhedronSphere () = d <<  97 G4PolyhedronSphere::~G4PolyhedronSphere () {}
102                                                << 
103 G4PolyhedronTet::G4PolyhedronTet (const G4doub << 
104                                   const G4doub << 
105                                   const G4doub << 
106                                   const G4doub << 
107   G4Polyhedron (HepPolyhedronTet (p0, p1, p2,  << 
108                                                << 
109 G4PolyhedronTet::~G4PolyhedronTet () = default << 
110                                                    98 
111 G4PolyhedronTorus::G4PolyhedronTorus (G4double     99 G4PolyhedronTorus::G4PolyhedronTorus (G4double rmin, G4double rmax,
112                                       G4double << 100               G4double rtor,
113                                       G4double << 101               G4double phi, G4double dphi):
114   G4Polyhedron (HepPolyhedronTorus (rmin, rmax    102   G4Polyhedron (HepPolyhedronTorus (rmin, rmax, rtor, phi, dphi)) {}
115                                                   103 
116 G4PolyhedronTorus::~G4PolyhedronTorus () = def << 104 G4PolyhedronTorus::~G4PolyhedronTorus () {}
117                                                   105 
118 G4PolyhedronTrap::G4PolyhedronTrap (G4double D    106 G4PolyhedronTrap::G4PolyhedronTrap (G4double Dz, G4double Theta, G4double Phi,
119                                     G4double D << 107             G4double Dy1,
120                                     G4double D << 108             G4double Dx1, G4double Dx2, G4double Alp1,
121                                     G4double D << 109             G4double Dy2,
122                                     G4double D << 110             G4double Dx3, G4double Dx4, G4double Alp2):
123   G4Polyhedron (HepPolyhedronTrap (Dz, Theta,     111   G4Polyhedron (HepPolyhedronTrap (Dz, Theta, Phi, Dy1, Dx1, Dx2, Alp1,
124                                    Dy2, Dx3, D << 112            Dy2, Dx3, Dx4, Alp2)) {}
125                                                   113 
126 G4PolyhedronTrap::~G4PolyhedronTrap () = defau << 114 G4PolyhedronTrap::~G4PolyhedronTrap () {}
127                                                   115 
128 G4PolyhedronTrd1::G4PolyhedronTrd1 (G4double D    116 G4PolyhedronTrd1::G4PolyhedronTrd1 (G4double Dx1, G4double Dx2,
129                                     G4double D << 117             G4double Dy, G4double Dz):
130   G4Polyhedron (HepPolyhedronTrd1 (Dx1, Dx2, D    118   G4Polyhedron (HepPolyhedronTrd1 (Dx1, Dx2, Dy, Dz)) {}
131                                                   119 
132 G4PolyhedronTrd1::~G4PolyhedronTrd1 () = defau << 120 G4PolyhedronTrd1::~G4PolyhedronTrd1 () {}
133                                                   121 
134 G4PolyhedronTrd2::G4PolyhedronTrd2 (G4double D    122 G4PolyhedronTrd2::G4PolyhedronTrd2 (G4double Dx1, G4double Dx2,
135                                     G4double D << 123             G4double Dy1, G4double Dy2, G4double Dz):
136   G4Polyhedron (HepPolyhedronTrd2 (Dx1, Dx2, D    124   G4Polyhedron (HepPolyhedronTrd2 (Dx1, Dx2, Dy1, Dy2, Dz)) {}
137                                                   125 
138 G4PolyhedronTrd2::~G4PolyhedronTrd2 () = defau << 126 G4PolyhedronTrd2::~G4PolyhedronTrd2 () {}
139                                                   127 
140 G4PolyhedronTube::G4PolyhedronTube (G4double R    128 G4PolyhedronTube::G4PolyhedronTube (G4double Rmin, G4double Rmax, G4double Dz):
141   G4Polyhedron (HepPolyhedronTube (Rmin, Rmax,    129   G4Polyhedron (HepPolyhedronTube (Rmin, Rmax, Dz)) {}
142                                                   130 
143 G4PolyhedronTube::~G4PolyhedronTube () = defau << 131 G4PolyhedronTube::~G4PolyhedronTube () {}
144                                                   132 
145 G4PolyhedronTubs::G4PolyhedronTubs (G4double R << 133 G4PolyhedronTubs::G4PolyhedronTubs (G4double Rmin, G4double Rmax, G4double Dz, 
146                                     G4double P << 134             G4double Phi1, G4double Dphi):
147   G4Polyhedron (HepPolyhedronTubs (Rmin, Rmax,    135   G4Polyhedron (HepPolyhedronTubs (Rmin, Rmax, Dz, Phi1, Dphi)) {}
148                                                   136 
149 G4PolyhedronTubs::~G4PolyhedronTubs () = defau << 137 G4PolyhedronTubs::~G4PolyhedronTubs () {}
150                                                << 
151 G4PolyhedronParaboloid::G4PolyhedronParaboloid << 
152                                                << 
153                                                << 
154   G4Polyhedron (HepPolyhedronParaboloid(r1, r2 << 
155                                                << 
156 G4PolyhedronParaboloid::~G4PolyhedronParaboloi << 
157                                                << 
158 G4PolyhedronHype::G4PolyhedronHype (G4double r << 
159                                     G4double t << 
160   G4Polyhedron (HepPolyhedronHype(r1, r2, tan1 << 
161                                                << 
162 G4PolyhedronHype::~G4PolyhedronHype () = defau << 
163                                                << 
164 G4PolyhedronEllipsoid::G4PolyhedronEllipsoid ( << 
165                                                << 
166                                                << 
167   G4Polyhedron (HepPolyhedronEllipsoid (ax, by << 
168                                                << 
169 G4PolyhedronEllipsoid::~G4PolyhedronEllipsoid  << 
170                                                << 
171 G4PolyhedronEllipticalCone::G4PolyhedronEllipt << 
172                                                << 
173                                                << 
174                                                << 
175   G4Polyhedron (HepPolyhedronEllipticalCone (a << 
176                                                << 
177 G4PolyhedronEllipticalCone::~G4PolyhedronEllip << 
178                                                << 
179 G4PolyhedronHyperbolicMirror::G4PolyhedronHype << 
180                                                << 
181                                                << 
182   G4Polyhedron (HepPolyhedronHyperbolicMirror( << 
183                                                << 
184 G4PolyhedronHyperbolicMirror::~G4PolyhedronHyp << 
185                                                << 
186 G4PolyhedronTetMesh::                          << 
187 G4PolyhedronTetMesh(const std::vector<G4ThreeV << 
188   G4Polyhedron (HepPolyhedronTetMesh(tetrahedr << 
189                                                << 
190 G4PolyhedronTetMesh::~G4PolyhedronTetMesh () = << 
191                                                << 
192 G4PolyhedronBoxMesh::                          << 
193 G4PolyhedronBoxMesh(G4double sizeX, G4double s << 
194                     const std::vector<G4ThreeV << 
195   G4Polyhedron (HepPolyhedronBoxMesh(sizeX, si << 
196                                                << 
197 G4PolyhedronBoxMesh::~G4PolyhedronBoxMesh () = << 
198                                                << 
199 std::ostream& operator<<(std::ostream& os, con << 
200 {                                              << 
201   os << "G4Polyhedron: "                       << 
202      << (const G4Visible&)polyhedron << '\n'   << 
203      << (const HepPolyhedron&)polyhedron;      << 
204   return os;                                   << 
205 }                                              << 
206                                                   138