Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Polyhedron.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id$
28 
29 #include "G4Polyhedron.hh"
30 
32  fNumberOfRotationStepsAtTimeOfCreation (fNumberOfRotationSteps)
33 {}
34 
36 
38  : HepPolyhedron(from)
39 {
40  fNumberOfRotationStepsAtTimeOfCreation =
42 }
43 
45  G4Polyhedron (HepPolyhedronBox (dx, dy, dz)) {}
46 
48 
50  G4double Rmn2, G4double Rmx2, G4double Dz):
51  G4Polyhedron (HepPolyhedronCone (Rmn1, Rmx1, Rmn2, Rmx2, Dz)) {}
52 
54 
56  G4double Rmn2, G4double Rmx2, G4double Dz,
57  G4double Phi1, G4double Dphi):
58  G4Polyhedron (HepPolyhedronCons (Rmn1, Rmx1, Rmn2, Rmx2, Dz, Phi1, Dphi)) {}
59 
61 
63  G4double Alpha, G4double Theta,
64  G4double Phi):
65  G4Polyhedron (HepPolyhedronPara (Dx, Dy, Dz, Alpha, Theta, Phi)) {}
66 
68 
70  const G4double *z,
71  const G4double *rmin,
72  const G4double *rmax):
73  G4Polyhedron (HepPolyhedronPcon (phi, dphi, nz, z, rmin, rmax)) {}
74 
76 
78  G4int nz,
79  const G4double *z,
80  const G4double *rmin,
81  const G4double *rmax):
82  G4Polyhedron (HepPolyhedronPgon (phi, dphi, npdv, nz, z, rmin, rmax)) {}
83 
85 
87  G4double phi, G4double dphi,
88  G4double the, G4double dthe):
89  G4Polyhedron (HepPolyhedronSphere (rmin, rmax, phi, dphi, the, dthe)) {}
90 
92 
94  G4double rtor,
95  G4double phi, G4double dphi):
96  G4Polyhedron (HepPolyhedronTorus (rmin, rmax, rtor, phi, dphi)) {}
97 
99 
101  G4double Dy1,
102  G4double Dx1, G4double Dx2, G4double Alp1,
103  G4double Dy2,
104  G4double Dx3, G4double Dx4, G4double Alp2):
105  G4Polyhedron (HepPolyhedronTrap (Dz, Theta, Phi, Dy1, Dx1, Dx2, Alp1,
106  Dy2, Dx3, Dx4, Alp2)) {}
107 
109 
111  G4double Dy, G4double Dz):
112  G4Polyhedron (HepPolyhedronTrd1 (Dx1, Dx2, Dy, Dz)) {}
113 
115 
117  G4double Dy1, G4double Dy2, G4double Dz):
118  G4Polyhedron (HepPolyhedronTrd2 (Dx1, Dx2, Dy1, Dy2, Dz)) {}
119 
121 
123  G4Polyhedron (HepPolyhedronTube (Rmin, Rmax, Dz)) {}
124 
126 
128  G4double Phi1, G4double Dphi):
129  G4Polyhedron (HepPolyhedronTubs (Rmin, Rmax, Dz, Phi1, Dphi)) {}
130 
132 
134  G4double dz, G4double sPhi,
135  G4double dPhi):
136  G4Polyhedron (HepPolyhedronParaboloid(r1, r2, dz, sPhi, dPhi)) {}
137 
139 
141  G4double tan2, G4double halfZ):
142  G4Polyhedron (HepPolyhedronHype(r1, r2, tan1, tan2, halfZ)) {}
143 
145 
147  G4double cz,
148  G4double zCut1, G4double zCut2):
149  G4Polyhedron (HepPolyhedronEllipsoid (ax, by, cz, zCut1, zCut2)) {}
150 
152 
154  G4double ay,
155  G4double h,
156  G4double zCut1):
157  G4Polyhedron (HepPolyhedronEllipticalCone (ax, ay, h, zCut1)) {}
158 
160 
161 std::ostream& operator<<(std::ostream& os, const G4Polyhedron& polyhedron)
162 {
163  os << "G4Polyhedron: "
164  << (const G4Visible&)polyhedron << '\n'
165  << (const HepPolyhedron&)polyhedron;
166  return os;
167 }