|
||||
File indexing completed on 2025-01-18 09:58:38
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4LogicalSurface 0027 // 0028 // Class description: 0029 // 0030 // An abstraction of a geometrical surface, it is an abstract 0031 // base class for different implementations of surfaces. 0032 // Its primary function is to hold pointers to objects that describe the 0033 // surface's physical properties. For example it holds a pointer to a 0034 // surface's optical properties, and because of this it is used in processes 0035 // like G4OpBoundaryProcess. 0036 // 0037 // Methods: 0038 // G4SurfaceProperty* GetSurfaceProperty() const 0039 // void SetSurfaceProperty(G4SurfaceProperty*) 0040 // 0041 // G4String GetName() const 0042 // void SetName(const G4String&) 0043 // 0044 // G4TransitionRadiationSurface* GetTransitionRadiationSurface() const 0045 // void SetTransitionRadiationSurface(G4TransitionRadiationSurface*) 0046 // 0047 // Data members: 0048 // G4String theName 0049 // G4SurfaceProperty* theSurfaceProperty 0050 // G4TransitionRadiationSurface* theTransRadSurface 0051 0052 // Created: 1997, June, 4th to 17th 0053 // Author: John Apostolakis, (with help of Peter Gumplinger) 0054 // ------------------------------------------------------------------------ 0055 #ifndef G4LOGICALSURFACE_HH 0056 #define G4LOGICALSURFACE_HH 1 0057 0058 #include "G4Types.hh" 0059 #include "G4String.hh" 0060 0061 class G4SurfaceProperty; 0062 class G4TransitionRadiationSurface; 0063 0064 class G4LogicalSurface 0065 { 0066 0067 public: 0068 0069 inline G4SurfaceProperty* GetSurfaceProperty() const; 0070 inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty); 0071 0072 inline const G4String& GetName() const; 0073 inline void SetName(const G4String& name); 0074 0075 inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const; 0076 inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* trs); 0077 0078 virtual ~G4LogicalSurface() = default; 0079 0080 G4LogicalSurface(const G4LogicalSurface&) = delete; 0081 G4LogicalSurface& operator=(const G4LogicalSurface&) = delete; 0082 0083 inline G4bool operator==(const G4LogicalSurface &right) const; 0084 inline G4bool operator!=(const G4LogicalSurface &right) const; 0085 0086 protected: 0087 0088 // There should be no instances of this class 0089 0090 G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop); 0091 // Is the name more meaningful for the properties or the logical surface ? 0092 0093 private: 0094 0095 G4String theName; // Surface name 0096 0097 G4SurfaceProperty* theSurfaceProperty = nullptr; 0098 G4TransitionRadiationSurface* theTransRadSurface = nullptr; 0099 }; 0100 0101 #include "G4LogicalSurface.icc" 0102 0103 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |