Files
geant4/source/geometry/management/include/G4LogicalSurface.hh
T
2016-06-09 10:49:58 +02:00

127 lines
4.3 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: G4LogicalSurface.hh,v 1.9 2003/12/01 14:41:28 gcosmo Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
//
////////////////////////////////////////////////////////////////////////
// Class G4LogicalSurface
////////////////////////////////////////////////////////////////////////
//
// Class description:
//
// An abstraction of a geometrical surface, it is an abstract
// base class for different implementations of surfaces.
// Its primary function is to hold pointers to objects that describe the
// surface's physical properties. For example it holds a pointer to a
// surface's optical properties, and because of this it is used in processes
// like G4OpBoundaryProcess.
//
// Methods:
// G4SurfaceProperty* GetSurfaceProperty() const
// void SetSurfaceProperty(G4SurfaceProperty*)
//
// G4String GetName() const
// void SetName(const G4String&)
//
// G4TransitionRadiationSurface* GetTransitionRadiationSurface() const
// void SetTransitionRadiationSurface(G4TransitionRadiationSurface*)
//
// Data members:
// G4String theName
// G4SurfaceProperty* theSurfaceProperty
// G4TransitionRadiationSurface* theTransRadSurface
// Created: 1997, June, 4th to 17th
// Author: John Apostolakis, (with help of Peter Gumplinger)
// mail: japost@mail.cern.ch
//
// ------------------------------------------------------------------------
#ifndef G4LogicalSurface_h
#define G4LogicalSurface_h 1
/////////////
// Includes
/////////////
#include "G4Types.hh"
#include "G4String.hh"
class G4SurfaceProperty;
class G4TransitionRadiationSurface;
/////////////////////
// Class Definition
/////////////////////
class G4LogicalSurface
{
public: // with description
G4SurfaceProperty* GetSurfaceProperty() const;
void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
G4String GetName() const;
void SetName(const G4String& name);
G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
void SetTransitionRadiationSurface(G4TransitionRadiationSurface* transRadSurf);
protected:
// There should be no instances of this class
G4LogicalSurface(const G4String& name,
G4SurfaceProperty* surfaceProperty);
// Is the name more meaningful for the properties or the logical
// surface ?
public:
virtual ~G4LogicalSurface();
public:
G4int operator==(const G4LogicalSurface &right) const;
G4int operator!=(const G4LogicalSurface &right) const;
private:
G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted
const G4LogicalSurface& operator=(const G4LogicalSurface& right);
private:
G4String theName; // Surface name
G4SurfaceProperty* theSurfaceProperty;
G4TransitionRadiationSurface* theTransRadSurface;
};
////////////////////
// Inline methods
////////////////////
#include "G4LogicalSurface.icc"
#endif /* G4LogicalSurface_h */