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: G4BREPSolidTorus.hh,v 1.10 2006/06/29 18:38:03 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | // ---------------------------------------------------------------------- |
---|
31 | // Class G4BREPSolidTorus |
---|
32 | // |
---|
33 | // Class description: |
---|
34 | // |
---|
35 | // Definition of a generic BREP torus: |
---|
36 | // |
---|
37 | // G4BREPSolidTorus(const G4String& name, |
---|
38 | // const G4ThreeVector& origin, |
---|
39 | // const G4ThreeVector& axis, |
---|
40 | // const G4ThreeVector& direction, |
---|
41 | // G4double MinRadius, |
---|
42 | // G4double MaxRadius) |
---|
43 | |
---|
44 | // Authors: J.Sulkimo, P.Urban. |
---|
45 | // Revisions by: L.Broglia, G.Cosmo. |
---|
46 | // ---------------------------------------------------------------------- |
---|
47 | #ifndef __G4BREPSolidTorus |
---|
48 | #define __G4BREPSolidTorus |
---|
49 | |
---|
50 | #include "G4BREPSolid.hh" |
---|
51 | |
---|
52 | class G4BREPSolidTorus : public G4BREPSolid |
---|
53 | { |
---|
54 | |
---|
55 | public: // with description |
---|
56 | |
---|
57 | G4BREPSolidTorus(const G4String& name, |
---|
58 | const G4ThreeVector& origin, |
---|
59 | const G4ThreeVector& axis, |
---|
60 | const G4ThreeVector& direction, |
---|
61 | G4double MinRadius, |
---|
62 | G4double MaxRadius); |
---|
63 | // Constructor defining the torus through its surfaces. |
---|
64 | |
---|
65 | ~G4BREPSolidTorus(); |
---|
66 | // Empty destructor. |
---|
67 | |
---|
68 | virtual std::ostream& StreamInfo(std::ostream& os) const; |
---|
69 | // Streams solid contents to output stream. |
---|
70 | |
---|
71 | public: // without description |
---|
72 | |
---|
73 | G4BREPSolidTorus(__void__&); |
---|
74 | // Fake default constructor for usage restricted to direct object |
---|
75 | // persistency for clients requiring preallocation of memory for |
---|
76 | // persistifiable objects. |
---|
77 | |
---|
78 | private: |
---|
79 | |
---|
80 | G4BREPSolidTorus(const G4BREPSolidTorus&); |
---|
81 | G4BREPSolidTorus& operator=(const G4BREPSolidTorus&); |
---|
82 | // Private copy constructor and assignment operator. |
---|
83 | |
---|
84 | struct G4BREPTorusParams |
---|
85 | { |
---|
86 | G4ThreeVector origin; |
---|
87 | G4ThreeVector axis; |
---|
88 | G4ThreeVector direction; |
---|
89 | G4double MinRadius; |
---|
90 | G4double MaxRadius; |
---|
91 | } constructorParams; |
---|
92 | |
---|
93 | }; |
---|
94 | |
---|
95 | #endif |
---|