98 lines
3.5 KiB
C++
98 lines
3.5 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * 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.8 2002/07/23 08:50:34 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-05-00 $
|
|
//
|
|
// class G4LogicalSkinSurface
|
|
//
|
|
// Class description:
|
|
//
|
|
// A Logical Surface class for the surface surrounding a single logical
|
|
// volume.
|
|
|
|
// History:
|
|
// -------
|
|
// Created: 1997-06-16
|
|
// Author: John Apostolakis (John.Apostolakis@cern.ch)
|
|
//
|
|
// ********************************************************************
|
|
|
|
#ifndef G4LogicalSkinSurface_h
|
|
#define G4LogicalSkinSurface_h 1
|
|
|
|
#include "G4LogicalSurface.hh"
|
|
#include "G4LogicalVolume.hh"
|
|
|
|
#include "g4std/vector"
|
|
|
|
class G4LogicalSkinSurface : public G4LogicalSurface
|
|
{
|
|
|
|
public: // with description
|
|
|
|
G4LogicalSkinSurface( const G4String& name,
|
|
G4LogicalVolume* vol,
|
|
G4OpticalSurface* opticalSurface );
|
|
~G4LogicalSkinSurface();
|
|
// Constructor and destructor.
|
|
|
|
static G4LogicalSkinSurface* GetSurface(const G4LogicalVolume* vol);
|
|
inline const G4LogicalVolume* GetLogicalVolume() const;
|
|
inline void SetLogicalVolume(G4LogicalVolume* vol);
|
|
// Accessors.
|
|
|
|
static size_t GetNumberOfSkinSurfaces();
|
|
static void DumpInfo(); // const
|
|
// To handle with the table of surfaces.
|
|
|
|
G4int operator==(const G4LogicalSkinSurface &right) const;
|
|
G4int operator!=(const G4LogicalSkinSurface &right) const;
|
|
// Operators.
|
|
|
|
private:
|
|
|
|
G4LogicalSkinSurface(const G4LogicalSkinSurface &right);
|
|
const G4LogicalSkinSurface& operator=(const G4LogicalSkinSurface &right);
|
|
// Assignment and copying must be denied.
|
|
|
|
private:
|
|
|
|
G4LogicalVolume* LogVolume;
|
|
// Logical Volume pointer on side 1.
|
|
|
|
static G4std::vector<G4LogicalSkinSurface*> theSurfaceTable;
|
|
// The static Table of Surfaces.
|
|
|
|
};
|
|
|
|
typedef G4std::vector<G4LogicalSkinSurface*> G4LogicalSkinSurfaceTable;
|
|
|
|
// ********************************************************************
|
|
// Inline methods
|
|
// ********************************************************************
|
|
|
|
#include "G4LogicalSkinSurface.icc"
|
|
|
|
#endif /* G4LogicalSkinSurface_h */
|