source: trunk/source/geometry/volumes/include/G4LogicalBorderSurface.hh@ 1064

Last change on this file since 1064 was 1058, checked in by garnier, 17 years ago

file release beta

File size: 4.3 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: G4LogicalBorderSurface.hh,v 1.17 2008/08/19 15:31:52 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// class G4LogicalBorderSurface
31//
32// Class description:
33//
34// A Logical Surface class for surfaces defined by the boundary
35// of two physical volumes.
36
37// History:
38// -------
39// Created: 1997-06-17
40// Author: John Apostolakis (John.Apostolakis@cern.ch)
41//
42// --------------------------------------------------------------------
43#ifndef G4LogicalBorderSurface_h
44#define G4LogicalBorderSurface_h 1
45
46#include <vector>
47
48#include "G4LogicalSurface.hh"
49#include "G4VPhysicalVolume.hh"
50
51class G4VPhysicalVolume;
52class G4LogicalBorderSurface;
53
54typedef std::vector<G4LogicalBorderSurface*> G4LogicalBorderSurfaceTable;
55
56class G4LogicalBorderSurface : public G4LogicalSurface
57{
58
59 public: // with description
60
61 G4LogicalBorderSurface( const G4String& name,
62 G4VPhysicalVolume* vol1,
63 G4VPhysicalVolume* vol2,
64 G4SurfaceProperty* surfaceProperty );
65 ~G4LogicalBorderSurface();
66 // Constructor and destructor
67
68 static G4LogicalBorderSurface* GetSurface( const G4VPhysicalVolume* vol1,
69 const G4VPhysicalVolume* vol2 );
70 inline void SetPhysicalVolumes( G4VPhysicalVolume* vol1,
71 G4VPhysicalVolume* vol2 );
72 inline const G4VPhysicalVolume* GetVolume1() const;
73 inline const G4VPhysicalVolume* GetVolume2() const;
74 // Generic accessors.
75
76 inline void SetVolume1( G4VPhysicalVolume* vol1 );
77 inline void SetVolume2( G4VPhysicalVolume* vol2 );
78 // To use with care!
79
80 static void CleanSurfaceTable();
81 static const G4LogicalBorderSurfaceTable* GetSurfaceTable();
82 static size_t GetNumberOfBorderSurfaces();
83 static void DumpInfo();
84 // To handle the table of surfaces.
85
86 G4int operator==( const G4LogicalBorderSurface &right ) const;
87 G4int operator!=( const G4LogicalBorderSurface &right ) const;
88 // Operators.
89
90 private:
91
92 G4LogicalBorderSurface(const G4LogicalBorderSurface &right);
93 const G4LogicalBorderSurface& operator=(const G4LogicalBorderSurface &right);
94
95 private:
96
97 G4VPhysicalVolume* Volume1; // Physical Volume pointer on side 1
98 G4VPhysicalVolume* Volume2; // Physical Volume pointer on side 2
99
100 static G4LogicalBorderSurfaceTable theBorderSurfaceTable;
101 // The static Table of BorderSurfaces.
102};
103
104// ********************************************************************
105// Inline methods
106// ********************************************************************
107
108#include "G4LogicalBorderSurface.icc"
109
110#endif /* G4LogicalBorderSurface_h */
111
Note: See TracBrowser for help on using the repository browser.