G4LogicalSurface.hh

Go to the documentation of this file.
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 //
00030 // Class G4LogicalSurface
00032 //
00033 // Class description:
00034 //
00035 // An abstraction of a geometrical surface, it is an abstract 
00036 // base class for different implementations of surfaces.
00037 // Its primary function is to hold pointers to objects that describe the
00038 // surface's physical properties. For example it holds a pointer to a
00039 // surface's optical properties, and because of this it is used in processes
00040 // like G4OpBoundaryProcess. 
00041 //
00042 // Methods:
00043 //   G4SurfaceProperty*  GetSurfaceProperty() const
00044 //   void     SetSurfaceProperty(G4SurfaceProperty*)
00045 //
00046 //   G4String GetName() const
00047 //   void     SetName(const G4String&)
00048 //
00049 //   G4TransitionRadiationSurface*  GetTransitionRadiationSurface() const
00050 //   void SetTransitionRadiationSurface(G4TransitionRadiationSurface*)
00051 //
00052 // Data members:
00053 //   G4String                       theName
00054 //   G4SurfaceProperty*             theSurfaceProperty
00055 //   G4TransitionRadiationSurface*  theTransRadSurface
00056 
00057 // Created:     1997, June, 4th to 17th
00058 // Author:      John Apostolakis, (with help of Peter Gumplinger)
00059 // mail:        japost@mail.cern.ch
00060 //
00061 // ------------------------------------------------------------------------
00062 #ifndef G4LogicalSurface_h
00063 #define G4LogicalSurface_h 1
00064 
00066 // Includes
00068 
00069 #include "G4Types.hh"
00070 #include "G4String.hh"
00071 
00072 class G4SurfaceProperty;
00073 class G4TransitionRadiationSurface;
00074 
00076 // Class Definition
00078 
00079 class G4LogicalSurface
00080 {
00081 
00082  public:  // with description
00083 
00084    inline G4SurfaceProperty*  GetSurfaceProperty() const;
00085    inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
00086 
00087    inline const G4String& GetName() const;
00088    inline void SetName(const G4String& name);
00089 
00090    inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
00091    inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
00092 
00093  public:  // without description
00094 
00095    virtual ~G4LogicalSurface();
00096 
00097    inline G4int operator==(const G4LogicalSurface &right) const;
00098    inline G4int operator!=(const G4LogicalSurface &right) const;
00099 
00100  protected:
00101 
00102    // There should be no instances of this class
00103 
00104    G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop); 
00105      // Is the name more meaningful for the properties or the logical surface ?
00106 
00107  private:  // Copying restricted
00108 
00109    G4LogicalSurface(const G4LogicalSurface &right);
00110    inline const G4LogicalSurface& operator=(const G4LogicalSurface& right);
00111 
00112  private:
00113 
00114    G4String theName;              // Surface name
00115 
00116    G4SurfaceProperty*             theSurfaceProperty;
00117    G4TransitionRadiationSurface*  theTransRadSurface;
00118 };
00119 
00121 // Inline methods
00123 
00124 #include "G4LogicalSurface.icc"
00125 
00126 #endif /* G4LogicalSurface_h */

Generated on Mon May 27 17:48:49 2013 for Geant4 by  doxygen 1.4.7