source: trunk/source/geometry/management/include/G4LogicalSurface.hh @ 1254

Last change on this file since 1254 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 4.5 KB
Line 
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.11 2009/04/21 15:18:15 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-03 $
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
73class G4SurfaceProperty;
74class G4TransitionRadiationSurface;
75
76/////////////////////
77// Class Definition
78/////////////////////
79
80class G4LogicalSurface
81{
82
83 public:  // with description
84
85   G4SurfaceProperty*  GetSurfaceProperty() const;
86   void     SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
87
88   const G4String& GetName() const;
89   void     SetName(const G4String& name);
90
91   G4TransitionRadiationSurface*  GetTransitionRadiationSurface() const;
92   void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
93
94 public:  // without description
95
96   virtual ~G4LogicalSurface();
97
98   G4int operator==(const G4LogicalSurface &right) const;
99   G4int operator!=(const G4LogicalSurface &right) const;
100
101 protected:
102
103   // There should be no instances of this class
104
105   G4LogicalSurface(const G4String& name, G4SurfaceProperty* surfaceProperty); 
106     // Is the name more meaningful for the properties or the logical surface ?
107
108 private:
109
110   G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted
111   const G4LogicalSurface& operator=(const G4LogicalSurface& right);
112
113 private:
114
115   G4String theName;              // Surface name
116
117   G4SurfaceProperty*             theSurfaceProperty;
118   G4TransitionRadiationSurface*  theTransRadSurface;
119};
120
121////////////////////
122// Inline methods
123////////////////////
124
125#include "G4LogicalSurface.icc"
126
127#endif /* G4LogicalSurface_h */
Note: See TracBrowser for help on using the repository browser.