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: G4LogicalSurface.hh,v 1.10 2006/06/29 18:30:50 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | //////////////////////////////////////////////////////////////////////// |
---|
31 | // Class G4LogicalSurface |
---|
32 | //////////////////////////////////////////////////////////////////////// |
---|
33 | // |
---|
34 | // Class description: |
---|
35 | // |
---|
36 | // An abstraction of a geometrical surface, it is an abstract |
---|
37 | // base class for different implementations of surfaces. |
---|
38 | // Its primary function is to hold pointers to objects that describe the |
---|
39 | // surface's physical properties. For example it holds a pointer to a |
---|
40 | // surface's optical properties, and because of this it is used in processes |
---|
41 | // like G4OpBoundaryProcess. |
---|
42 | // |
---|
43 | // Methods: |
---|
44 | // G4SurfaceProperty* GetSurfaceProperty() const |
---|
45 | // void SetSurfaceProperty(G4SurfaceProperty*) |
---|
46 | // |
---|
47 | // G4String GetName() const |
---|
48 | // void SetName(const G4String&) |
---|
49 | // |
---|
50 | // G4TransitionRadiationSurface* GetTransitionRadiationSurface() const |
---|
51 | // void SetTransitionRadiationSurface(G4TransitionRadiationSurface*) |
---|
52 | // |
---|
53 | // Data members: |
---|
54 | // G4String theName |
---|
55 | // G4SurfaceProperty* theSurfaceProperty |
---|
56 | // G4TransitionRadiationSurface* theTransRadSurface |
---|
57 | |
---|
58 | // Created: 1997, June, 4th to 17th |
---|
59 | // Author: John Apostolakis, (with help of Peter Gumplinger) |
---|
60 | // mail: japost@mail.cern.ch |
---|
61 | // |
---|
62 | // ------------------------------------------------------------------------ |
---|
63 | #ifndef G4LogicalSurface_h |
---|
64 | #define G4LogicalSurface_h 1 |
---|
65 | |
---|
66 | ///////////// |
---|
67 | // Includes |
---|
68 | ///////////// |
---|
69 | |
---|
70 | #include "G4Types.hh" |
---|
71 | #include "G4String.hh" |
---|
72 | |
---|
73 | class G4SurfaceProperty; |
---|
74 | class G4TransitionRadiationSurface; |
---|
75 | |
---|
76 | ///////////////////// |
---|
77 | // Class Definition |
---|
78 | ///////////////////// |
---|
79 | |
---|
80 | class G4LogicalSurface |
---|
81 | { |
---|
82 | |
---|
83 | public: // with description |
---|
84 | |
---|
85 | G4SurfaceProperty* GetSurfaceProperty() const; |
---|
86 | void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty); |
---|
87 | |
---|
88 | G4String GetName() const; |
---|
89 | void SetName(const G4String& name); |
---|
90 | |
---|
91 | G4TransitionRadiationSurface* GetTransitionRadiationSurface() const; |
---|
92 | void SetTransitionRadiationSurface(G4TransitionRadiationSurface* transRadSurf); |
---|
93 | |
---|
94 | protected: |
---|
95 | |
---|
96 | // There should be no instances of this class |
---|
97 | |
---|
98 | G4LogicalSurface(const G4String& name, |
---|
99 | G4SurfaceProperty* surfaceProperty); |
---|
100 | // Is the name more meaningful for the properties or the logical |
---|
101 | // surface ? |
---|
102 | |
---|
103 | public: |
---|
104 | virtual ~G4LogicalSurface(); |
---|
105 | |
---|
106 | public: |
---|
107 | G4int operator==(const G4LogicalSurface &right) const; |
---|
108 | G4int operator!=(const G4LogicalSurface &right) const; |
---|
109 | |
---|
110 | private: |
---|
111 | |
---|
112 | G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted |
---|
113 | const G4LogicalSurface& operator=(const G4LogicalSurface& right); |
---|
114 | |
---|
115 | private: |
---|
116 | |
---|
117 | G4String theName; // Surface name |
---|
118 | |
---|
119 | G4SurfaceProperty* theSurfaceProperty; |
---|
120 | G4TransitionRadiationSurface* theTransRadSurface; |
---|
121 | }; |
---|
122 | |
---|
123 | //////////////////// |
---|
124 | // Inline methods |
---|
125 | //////////////////// |
---|
126 | |
---|
127 | #include "G4LogicalSurface.icc" |
---|
128 | |
---|
129 | #endif /* G4LogicalSurface_h */ |
---|