// This code implementation is the intellectual property of // the GEANT4 collaboration. // // By copying, distributing or modifying the Program (or any work // based on the Program) you indicate your acceptance of this statement, // and all its terms. // // $Id: G4LogicalSkinSurface.hh,v 1.3 1999/12/15 14:50:22 gunter Exp $ // GEANT4 tag $Name: geant4-01-01 $ // //////////////////////////////////////////////////////////////////////// // G4LogicalSkinSurface Definition //////////////////////////////////////////////////////////////////////// // // File: G4LogicalSkinSurface.hh // Description: A Logical Surface class for the surface // surrounding a single logical volume. // Version: 1.0 // Created: 1997-06-16 // Author: John Apostolakis // mail: John.Apostolakis@cern.ch // Modified: 1997-06-16 John Apostolakis // // Id tag: //////////////////////////////////////////////////////////////////////// #ifndef G4LogicalSkinSurface_h #define G4LogicalSkinSurface_h 1 ///////////// // Includes ///////////// #include "G4LogicalSurface.hh" #include "G4LogicalVolume.hh" // G4RWTPtrOrderedVector #include "g4rw/tpordvec.h" ///////////////////// // Class Definition ///////////////////// class G4LogicalSkinSurface : public G4LogicalSurface { public: //////////////////////////////// // Constructors and Destructor //////////////////////////////// // Is the name meaningful for the logical skin surface ? G4LogicalSkinSurface(const G4String& name, G4LogicalVolume* vol, G4OpticalSurface* opticalSurface); ~G4LogicalSkinSurface(); //////////// // Methods //////////// public: // public methods static G4LogicalSkinSurface* GetSurface(const G4LogicalVolume* vol); G4LogicalVolume* GetLogicalVolume() const {return LogVolume;}; void SetLogicalVolume(G4LogicalVolume* vol) {LogVolume = vol;}; // Methods dealing with the table of surfaces. // static size_t GetNumberOfSkinSurfaces() { return theSurfaceTable.length(); }; static void DumpInfo(); // const #if THESE_ARE_NEEDED // static const G4RWTPtrOrderedVector* // GetSurfaceTable() // { return &theSurfaceTable; }; size_t GetIndex() const { return theIndexInTable; }; #endif ////////////// // Operators ////////////// public: G4int operator==(const G4LogicalSkinSurface &right) const; G4int operator!=(const G4LogicalSkinSurface &right) const; private: // Assignment and copying must be denied. G4LogicalSkinSurface(const G4LogicalSkinSurface &right); const G4LogicalSkinSurface & operator=(const G4LogicalSkinSurface &right); // ------------------ // Basic data members ( To define a 'logical' surface) // ------------------ private: G4LogicalVolume* LogVolume; // Logical Volume pointer on side 1 // The static Table of Surfaces static G4RWTPtrOrderedVector theSurfaceTable; // static G4LogicalSkinSurfaceTable theSurfaceTable; size_t theIndexInTable; // Index of surface in the surface table }; typedef G4RWTPtrOrderedVector G4LogicalSkinSurfaceTable; //////////////////// // Inline methods //////////////////// #endif /* G4LogicalSkinSurface_h */