00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // class G4LogicalSkinSurface 00030 // 00031 // Class description: 00032 // 00033 // A Logical Surface class for the surface surrounding a single logical 00034 // volume. 00035 00036 // History: 00037 // ------- 00038 // Created: 1997-06-16 00039 // Author: John Apostolakis (John.Apostolakis@cern.ch) 00040 // 00041 // ---------------------------------------------------------------------- 00042 #ifndef G4LogicalSkinSurface_h 00043 #define G4LogicalSkinSurface_h 1 00044 00045 #include <vector> 00046 00047 #include "G4LogicalSurface.hh" 00048 00049 class G4LogicalVolume; 00050 class G4LogicalSkinSurface; 00051 00052 typedef std::vector<G4LogicalSkinSurface*> G4LogicalSkinSurfaceTable; 00053 00054 class G4LogicalSkinSurface : public G4LogicalSurface 00055 { 00056 00057 public: // with description 00058 00059 G4LogicalSkinSurface( const G4String& name, 00060 G4LogicalVolume* vol, 00061 G4SurfaceProperty* surfaceProperty ); 00062 ~G4LogicalSkinSurface(); 00063 // Constructor and destructor. 00064 00065 static G4LogicalSkinSurface* GetSurface(const G4LogicalVolume* vol); 00066 inline const G4LogicalVolume* GetLogicalVolume() const; 00067 inline void SetLogicalVolume(G4LogicalVolume* vol); 00068 // Accessors. 00069 00070 static void CleanSurfaceTable(); 00071 static const G4LogicalSkinSurfaceTable* GetSurfaceTable(); 00072 static size_t GetNumberOfSkinSurfaces(); 00073 static void DumpInfo(); // const 00074 // To handle with the table of surfaces. 00075 00076 G4int operator==(const G4LogicalSkinSurface &right) const; 00077 G4int operator!=(const G4LogicalSkinSurface &right) const; 00078 // Operators. 00079 00080 private: 00081 00082 G4LogicalSkinSurface(const G4LogicalSkinSurface &right); 00083 const G4LogicalSkinSurface& operator=(const G4LogicalSkinSurface &right); 00084 // Assignment and copying must be denied. 00085 00086 private: 00087 00088 G4LogicalVolume* LogVolume; 00089 // Logical Volume pointer on side 1. 00090 00091 static G4LogicalSkinSurfaceTable theSkinSurfaceTable; 00092 // The static Table of SkinSurfaces. 00093 00094 }; 00095 00096 // ******************************************************************** 00097 // Inline methods 00098 // ******************************************************************** 00099 00100 #include "G4LogicalSkinSurface.icc" 00101 00102 #endif /* G4LogicalSkinSurface_h */ 00103