Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -1,19 +1,25 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4PhysicalVolumeModel.hh,v 1.3 1999/05/10 14:04:24 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PhysicalVolumeModel.hh,v 1.6.2.1 1999/12/07 20:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// John Allison 31st December 1997.
// Model for physical volumes.
// It describes a physical volume and its daughters to any desired depth.
// Note: the "sought depth" is specified in the modeling parameters.
//
// Class Description:
//
// Model for physical volumes. It describes a physical volume and its
// daughters to any desired depth. Note: the "sought depth" is
// specified in the modeling parameters.
//
// For access to base class information, e.g., modeling parameters,
// use GetModelingParameters() inherited from G4VModel. See Class
// Description of the base class G4VModel.
#ifndef G4PHYSICALVOLUMEMODEL_HH
#define G4PHYSICALVOLUMEMODEL_HH
@@ -26,10 +32,11 @@ class G4VPhysicalVolume;
class G4LogicalVolume;
class G4VSolid;
class G4Material;
class G4VisAttributes;
class G4PhysicalVolumeModel: public G4VModel {
public:
public: // With description
enum {UNLIMITED = -1};
@@ -37,57 +44,62 @@ public:
(G4VPhysicalVolume*,
G4int soughtDepth = UNLIMITED,
const G4Transform3D& modelTransformation = G4Transform3D::Identity,
const G4ModelingParameters* = 0);
const G4ModelingParameters* = 0,
G4bool useFullExtent = false);
virtual ~G4PhysicalVolumeModel ();
void DescribeYourselfTo (G4VGraphicsScene&);
// The main task of a model is to describe itself to the scene. It
// can also provide special information through pointers to working
// space in the scene. These pointers must be set up (if required
// by the scene) in the scene's implementaion of EstablishSpecials
// The main task of a model is to describe itself to the scene
// handler (a object which inherits G4VSceneHandler, which inherits
// G4VGraphicsScene). It can also provide special information
// through pointers to working space in the scene handler. These
// pointers must be set up (if required by the scene handler) in the
// scene handler's implementaion of EstablishSpecials
// (G4PhysicalVolumeModel&) which is called from here. To do this,
// the scene should call DefinePointersToWorkingSpace - see below.
// DecommissionSpecials (G4PhysicalVolumeModel&) is also called from
// here. To see how this works, look at the implementation of this
// function and G4VScene::Establish/DecommissionSpecials.
G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
// the scene handler should call DefinePointersToWorkingSpace - see
// below. DecommissionSpecials (G4PhysicalVolumeModel&) is also
// called from here. To see how this works, look at the
// implementation of this function and
// G4VSceneHandler::Establish/DecommissionSpecials.
G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
//////////////////////////////////////////////////////////
// Access functions.
void DefinePointersToWorkingSpace (G4int* pCurrentDepth,
G4VPhysicalVolume** ppCurrentPV,
G4LogicalVolume** ppCurrentLV);
// For use (optional) by the scene handler if it needs to know about
// the current information maintained through these pointers.
/////////////////////////////////////////////////
// Access to other information: use GetModelingParameters()
// (inherited from G4VModel) and the access functions of
// G4ModelingParameters.
protected:
private:
void VisitGeometryAndGetVisReps (G4VPhysicalVolume* pVPV,
void VisitGeometryAndGetVisReps (G4VPhysicalVolume*,
G4int soughtDepth,
const G4Transform3D& theAT,
G4VGraphicsScene& scene);
void DescribeAndDescend (G4VPhysicalVolume* pVPV,
const G4Transform3D&,
G4VGraphicsScene&);
void DescribeAndDescend (G4VPhysicalVolume*,
G4int soughtDepth,
G4LogicalVolume* pLV,
G4VSolid* pSol,
const G4Material* pMaterial,
const G4Transform3D& theAT,
G4VGraphicsScene& scene);
G4bool IsThisCulled (const G4LogicalVolume* pLV,
const G4Material* pMaterial);
G4LogicalVolume*,
G4VSolid*,
const G4Material*,
const G4Transform3D&,
G4VGraphicsScene&);
void DescribeSolids (const G4Transform3D& theAT,
G4VSolid* pSol,
const G4VisAttributes* pVisAttribs,
G4VGraphicsScene& sceneHandler);
G4bool IsThisCulled (const G4LogicalVolume*,
const G4Material*);
G4bool IsDaughterCulled (const G4LogicalVolume* pMotherLV);
/////////////////////////////////////////////////////////
@@ -110,6 +122,4 @@ private:
};
#include "G4PhysicalVolumeModel.icc"
#endif