Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,67 @@
// This code implementation is the intellectual property of
// the RD44 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: G4BoundingSphereScene.hh,v 2.2 1998/08/22 16:34:57 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 7th June 1997
// An artificial scene to reuse G4VScene code to calculate a bounding sphere.
#ifndef G4BOUNDINGSPHERESCENE_HH
#define G4BOUNDINGSPHERESCENE_HH
#include "G4VGraphicsScene.hh"
#include "G4VisExtent.hh"
#include "G4Box.hh"
#include "G4Cons.hh"
#include "G4Tubs.hh"
#include "G4Trd.hh"
#include "G4Trap.hh"
#include "G4Sphere.hh"
#include "G4Para.hh"
#include "G4Torus.hh"
class G4BoundingSphereScene: public G4VGraphicsScene {
public:
G4BoundingSphereScene ();
~G4BoundingSphereScene ();
virtual void AddThis (const G4Box& s) {Accrue (s);}
virtual void AddThis (const G4Cons& s) {Accrue (s);}
virtual void AddThis (const G4Tubs& s) {Accrue (s);}
virtual void AddThis (const G4Trd& s) {Accrue (s);}
virtual void AddThis (const G4Trap& s) {Accrue (s);}
virtual void AddThis (const G4Sphere& s) {Accrue (s);}
virtual void AddThis (const G4Para& s) {Accrue (s);}
virtual void AddThis (const G4Torus& s) {Accrue (s);}
virtual void AddThis (const G4VSolid& s) {Accrue (s);}
void PreAddThis (const G4Transform3D& objectTransformation,
const G4VisAttributes&) {
fpObjectTransformation = &objectTransformation;
}
void PostAddThis () {}
G4VisExtent GetBoundingSphereExtent ();
////////////////////////////////////////////////////////////////
// The following 2 functions can be used by any code which wishes to
// accrue a bounding sphere. Just instantiate a
// G4BoundingSphereScene and use AccrueBoundingSphere.
void ResetBoundingSphere ();
void AccrueBoundingSphere (const G4Point3D& centre,
G4double radius);
private:
void Accrue (const G4VSolid& solid);
G4Point3D fCentre;
G4double fRadius;
const G4Transform3D* fpObjectTransformation;
};
#endif
@@ -0,0 +1,39 @@
// This code implementation is the intellectual property of
// the RD44 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: G4FlavoredParallelWorldModel.hh,v 2.3 1998/08/22 16:34:58 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
// P. Mora de Freitas et M.Verderi - 19 June 1998.
// Model for flavored parallel world volumes.
#ifndef G4FLAVOREDPARALLELWORLDMODEL_HH
#define G4FLAVOREDPARALLELWORLDMODEL_HH
#include "G4PhysicalVolumeModel.hh"
class G4FlavoredParallelWorld;
class G4FlavoredParallelWorldModel : public G4PhysicalVolumeModel {
public:
G4FlavoredParallelWorldModel
(G4FlavoredParallelWorld* FPW,
G4int soughtDepth = G4PhysicalVolumeModel::UNLIMITED,
const G4Transform3D& modelTransformation = G4Transform3D::Identity,
const G4ModelingParameters* mp = 0);
~G4FlavoredParallelWorldModel ();
private:
G4FlavoredParallelWorld* theFlavoredParallelWorld;
};
#endif
@@ -0,0 +1,44 @@
// This code implementation is the intellectual property of
// the RD44 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: G4HitsModel.hh,v 1.2 1998/08/31 15:41:59 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 26th August 1998.
// Model which knows how to draw GEANT4 hits.
#ifndef G4HITSMODEL_HH
#define G4HITSMODEL_HH
#include "G4VModel.hh"
class G4HitsModel: public G4VModel {
public:
G4HitsModel ();
virtual ~G4HitsModel ();
virtual void DescribeYourselfTo (G4VGraphicsScene&);
// The main task of a model is to describe itself to the scene.
virtual G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
virtual G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
virtual G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
};
#include "G4HitsModel.icc"
#endif
@@ -0,0 +1,23 @@
// This code implementation is the intellectual property of
// the RD44 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: G4HitsModel.icc,v 2.1 1998/08/31 15:42:00 allison Exp $
// GEANT4 tag $Name: geant4-00 $
inline G4HitsModel::~G4HitsModel () {}
inline G4String G4HitsModel::GetCurrentTag () const {
return fGlobalTag;
}
inline G4String G4HitsModel::GetCurrentDescription () const {
return fGlobalDescription;
}
inline G4bool G4HitsModel::Validate () {
return true;
}
@@ -0,0 +1,98 @@
// This code implementation is the intellectual property of
// the RD44 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: G4ModelingParameters.hh,v 2.2 1998/11/25 16:24:28 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 31st December 1997.
// Parameters associated with the modeling of GEANT4 objects.
#ifndef G4MODELINGPARAMETERS_HH
#define G4MODELINGPARAMETERS_HH
#include "globals.hh"
#include "G4VisExtent.hh"
class G4LogicalVolume;
class G4VPhysicalVolume;
class G4VisAttributes;
class G4ModelingParameters {
friend ostream& operator << (ostream& os, const G4ModelingParameters&);
friend G4bool operator != (const G4ModelingParameters&,
const G4ModelingParameters&);
public:
enum RepStyle {
wireframe, // Use G4Wireframe.
polyhedron, // Use G4Polyhedron.
nurbs, // Use G4NURBS.
hierarchy // Draw as geometry hierarchy (DTREE in GEANT3 language!).
};
// RepStyle is used to determine which graphics_reps classes to use,
// if required.
G4ModelingParameters ();
G4ModelingParameters (const G4VisAttributes* pDefaultVisAttributes,
RepStyle repStyle,
G4bool isCulling,
G4bool isCullingInvisible,
G4bool isDensityCulling,
G4double visibleDensity,
G4bool isCullingCovered,
G4int noOfSides);
// noOfSides is suggested no. of sides per circle in case a
// polygonal representation is produced.
~G4ModelingParameters ();
// Note: uses default assignment operator and copy constructor.
// Get and Is functions...
const G4VisAttributes* GetDefaultVisAttributes () const;
RepStyle GetRepStyle () const;
G4bool IsCulling () const;
G4bool IsCullingInvisible () const;
G4bool IsDensityCulling () const;
G4double GetVisibleDensity () const;
G4bool IsCullingCovered () const;
G4int GetNoOfSides () const;
// Set functions...
void SetDefaultVisAttributes (const G4VisAttributes* pDefaultVisAttributes);
void SetRepStyle (RepStyle);
void SetCulling (G4bool);
void SetCullingInvisible (G4bool);
void SetDensityCulling (G4bool);
void SetVisibleDensity (G4double);
void SetCullingCovered (G4bool);
void SetNoOfSides (G4int);
// Other functions...
void PrintDifferences (const G4ModelingParameters& that) const;
private:
// Data members...
const G4VisAttributes* fpDefaultVisAttributes;
RepStyle fRepStyle; // Representation style.
G4bool fCulling; // Culling requested.
G4bool fCullInvisible; // Cull (don't Draw) invisible objects.
G4bool fDensityCulling; // Density culling requested. If so...
G4double fVisibleDensity; // ...density lower than this not drawn.
G4bool fCullCovered; // Cull daughters covered by opaque mothers.
G4int fNoOfSides; // ...if polygon approximates circle.
};
#include "G4ModelingParameters.icc"
#endif
@@ -0,0 +1,73 @@
// This code implementation is the intellectual property of
// the RD44 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: G4ModelingParameters.icc,v 2.1 1998/11/25 16:24:30 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 31st December 1997.
// Parameters associated with the modeling of GEANT4 objects.
inline const G4VisAttributes*
G4ModelingParameters::GetDefaultVisAttributes () const {
return fpDefaultVisAttributes;
}
inline G4ModelingParameters::RepStyle
G4ModelingParameters::GetRepStyle () const {
return fRepStyle;
}
inline G4bool G4ModelingParameters::IsCulling () const {
return fCulling;
}
inline G4bool G4ModelingParameters::IsCullingInvisible () const {
return fCullInvisible;
}
inline G4bool G4ModelingParameters::IsDensityCulling () const {
return fDensityCulling;
}
inline G4double G4ModelingParameters::GetVisibleDensity () const {
return fVisibleDensity;
}
inline G4bool G4ModelingParameters::IsCullingCovered () const {
return fCullCovered;
}
inline G4int G4ModelingParameters::GetNoOfSides () const {
return fNoOfSides;
}
inline void G4ModelingParameters::SetDefaultVisAttributes
(const G4VisAttributes* pDefaultVisAttributes) {
fpDefaultVisAttributes = pDefaultVisAttributes;
}
inline void
G4ModelingParameters::SetRepStyle (G4ModelingParameters::RepStyle style) {
fRepStyle = style;
}
inline void G4ModelingParameters::SetCulling (G4bool value) {
fCulling = value;
}
inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
fCullInvisible = value;
}
inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
fDensityCulling = value;
}
inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
fCullCovered = value;
}
@@ -0,0 +1,42 @@
// This code implementation is the intellectual property of
// the RD44 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: G4NullModel.hh,v 2.1 1998/08/31 15:42:01 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 4th April 1998.
// Null model - simply a holder for modeling parameter.
// DO NOT INVOKE DescribeYourself.
#ifndef G4NULLMODEL_HH
#define G4NULLMODEL_HH
#include "G4VModel.hh"
class G4NullModel: public G4VModel {
public:
G4NullModel (const G4ModelingParameters* = 0);
~G4NullModel ();
virtual void DescribeYourselfTo (G4VGraphicsScene&);
// An exception is thrown if this is called!!!!!!!!!!!!!!!!!!!!
virtual G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
/////////////////////////////////////////////////
// Access to other information: use GetModelingParameters()
// (inherited from G4VModel) and the access functions of
// G4ModelingParameters.
};
#endif
@@ -0,0 +1,115 @@
// This code implementation is the intellectual property of
// the RD44 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 2.3 1998/08/31 15:42:02 allison Exp $
// GEANT4 tag $Name: geant4-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.
#ifndef G4PHYSICALVOLUMEMODEL_HH
#define G4PHYSICALVOLUMEMODEL_HH
#include "G4VModel.hh"
#include "G4Transform3D.hh"
class G4VPhysicalVolume;
class G4LogicalVolume;
class G4VSolid;
class G4Material;
class G4PhysicalVolumeModel: public G4VModel {
public:
enum {UNLIMITED = -1};
G4PhysicalVolumeModel
(G4VPhysicalVolume*,
G4int soughtDepth = UNLIMITED,
const G4Transform3D& modelTransformation = G4Transform3D::Identity,
const G4ModelingParameters* = 0);
~G4PhysicalVolumeModel ();
virtual 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
// (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.
virtual G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
virtual G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
virtual G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
//////////////////////////////////////////////////////////
// Access functions.
void DefinePointersToWorkingSpace (G4int* pCurrentDepth,
G4VPhysicalVolume** ppCurrentPV,
G4LogicalVolume** ppCurrentLV);
/////////////////////////////////////////////////
// Access to other information: use GetModelingParameters()
// (inherited from G4VModel) and the access functions of
// G4ModelingParameters.
private:
void VisitGeometryAndGetVisReps (G4VPhysicalVolume* pVPV,
G4int soughtDepth,
const G4Transform3D& theAT,
G4VGraphicsScene& scene);
void DescribeAndDescend (G4VPhysicalVolume* pVPV,
G4int soughtDepth,
G4LogicalVolume* pLV,
G4VSolid* pSol,
const G4Material* pMaterial,
const G4Transform3D& theAT,
G4VGraphicsScene& scene);
G4bool IsThisCulled (const G4LogicalVolume* pLV,
const G4Material* pMaterial);
G4bool IsDaughterCulled (const G4LogicalVolume* pMotherLV);
/////////////////////////////////////////////////////////
// Data members...
G4VPhysicalVolume* fpTopPV; // The physical volume.
G4String fTopPVName; // ...of the physical volume.
G4int fTopPVCopyNo; // ...of the physical volume.
G4int fSoughtDepth; // Sought depth of geom. hierarchy search.
G4int fCurrentDepth; // Current depth of geom. hierarchy.
G4VPhysicalVolume* fpCurrentPV; // Current physical volume.
G4LogicalVolume* fpCurrentLV; // Current logical volume.
////////////////////////////////////////////////////////////
// Pointers to working space in scene, if required.
G4int* fpCurrentDepth; // Current depth of geom. hierarchy.
G4VPhysicalVolume** fppCurrentPV; // Current physical volume.
G4LogicalVolume** fppCurrentLV; // Current logical volume.
};
#include "G4PhysicalVolumeModel.icc"
#endif
@@ -0,0 +1,15 @@
// This code implementation is the intellectual property of
// the RD44 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.icc,v 2.0 1998/07/02 16:50:29 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 31st December 1997.
// Model for physical volumes.
inline G4PhysicalVolumeModel::~G4PhysicalVolumeModel () {}
@@ -0,0 +1,71 @@
// This code implementation is the intellectual property of
// the RD44 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: G4PhysicalVolumeSearchScene.hh,v 2.2 1998/08/22 16:34:59 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 10th August 1998.
// An artificial scene to find physical volumes.
#ifndef G4PHYSICALVOLUMESEARCHSCENE_HH
#define G4PHYSICALVOLUMESEARCHSCENE_HH
#include "G4VGraphicsScene.hh"
#include "G4VisExtent.hh"
#include "G4Box.hh"
#include "G4Cons.hh"
#include "G4Tubs.hh"
#include "G4Trd.hh"
#include "G4Trap.hh"
#include "G4Sphere.hh"
#include "G4Para.hh"
#include "G4Torus.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
class G4PhysicalVolumeSearchScene: public G4VGraphicsScene {
public:
G4PhysicalVolumeSearchScene
(const G4String& requiredPhysicalVolumeName, G4int requiredCopyNo);
~G4PhysicalVolumeSearchScene ();
void AddThis (const G4Box& s) {FindVolume (s);}
void AddThis (const G4Cons & s) {FindVolume (s);}
void AddThis (const G4Tubs& s) {FindVolume (s);}
void AddThis (const G4Trd& s) {FindVolume (s);}
void AddThis (const G4Trap& s) {FindVolume (s);}
void AddThis (const G4Sphere& s) {FindVolume (s);}
void AddThis (const G4Para& s) {FindVolume (s);}
void AddThis (const G4Torus& s) {FindVolume (s);}
void AddThis (const G4VSolid& s) {FindVolume (s);}
void PreAddThis (const G4Transform3D& objectTransformation,
const G4VisAttributes&);
void PostAddThis ();
void EstablishSpecials (G4PhysicalVolumeModel&);
G4int GetFoundDepth () const;
G4VPhysicalVolume* GetFoundVolume () const;
const G4Transform3D& GetFoundTransformation () const;
private:
void FindVolume (const G4VSolid&);
G4String fRequiredPhysicalVolumeName;
G4int fRequiredCopyNo;
G4int fCurrentDepth; // Current depth of geom. hierarchy.
G4VPhysicalVolume* fpCurrentPV; // Current physical volume.
G4LogicalVolume* fpCurrentLV; // Current logical volume.
const G4Transform3D* fpCurrentObjectTransformation;
G4int fFoundDepth; // Found depth.
G4VPhysicalVolume* fpFoundPV; // Found physical volume.
G4LogicalVolume* fpFoundLV; // Found logical volume.
G4Transform3D fFoundObjectTransformation; // Found transformation.
G4bool fMultipleOccurrence;
};
#include "G4PhysicalVolumeSearchScene.icc"
#endif
@@ -0,0 +1,35 @@
// This code implementation is the intellectual property of
// the RD44 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: G4PhysicalVolumeSearchScene.icc,v 2.1 1998/08/22 16:35:00 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 10th August 1998.
// An artificial scene to find physical volumes.
inline void G4PhysicalVolumeSearchScene::PreAddThis
(const G4Transform3D& objectTransformation,
const G4VisAttributes&) {
fpCurrentObjectTransformation = &objectTransformation;
}
inline void G4PhysicalVolumeSearchScene::PostAddThis () {}
inline G4int G4PhysicalVolumeSearchScene::GetFoundDepth () const {
return fFoundDepth;
}
inline G4VPhysicalVolume*
G4PhysicalVolumeSearchScene::GetFoundVolume () const {
return fpFoundPV;
}
inline const G4Transform3D&
G4PhysicalVolumeSearchScene::GetFoundTransformation () const {
return fFoundObjectTransformation;
}
@@ -0,0 +1,44 @@
// This code implementation is the intellectual property of
// the RD44 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: G4TrajectoriesModel.hh,v 1.2 1998/08/31 15:42:03 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 26th August 1998.
// Model which knows how to draw GEANT4 trajectories.
#ifndef G4TRAJECTORIESMODEL_HH
#define G4TRAJECTORIESMODEL_HH
#include "G4VModel.hh"
class G4TrajectoriesModel: public G4VModel {
public:
G4TrajectoriesModel ();
virtual ~G4TrajectoriesModel ();
virtual void DescribeYourselfTo (G4VGraphicsScene&);
// The main task of a model is to describe itself to the scene.
virtual G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
virtual G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
virtual G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
};
#include "G4TrajectoriesModel.icc"
#endif
@@ -0,0 +1,24 @@
// This code implementation is the intellectual property of
// the RD44 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: G4TrajectoriesModel.icc,v 2.1 1998/08/31 15:42:04 allison Exp $
// GEANT4 tag $Name: geant4-00 $
inline G4TrajectoriesModel::~G4TrajectoriesModel () {}
inline G4String G4TrajectoriesModel::GetCurrentTag () const {
return fGlobalTag;
}
inline G4String G4TrajectoriesModel::GetCurrentDescription () const {
return fGlobalDescription;
}
inline G4bool G4TrajectoriesModel::Validate () {
return true;
}
@@ -0,0 +1,86 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VModel.hh,v 2.3 1998/08/31 15:42:05 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 31st December 1997.
// Base class for models.
#ifndef G4VMODEL_HH
#define G4VMODEL_HH
#include "globals.hh"
#include "G4VisExtent.hh"
#include "G4Transform3D.hh"
class G4VGraphicsScene;
class G4ModelingParameters;
class G4VModel {
friend ostream& operator << (ostream& os, const G4VModel&);
public:
G4VModel
(const G4Transform3D& modelTransformation = G4Transform3D::Identity,
const G4ModelingParameters* = 0);
virtual ~G4VModel ();
// For RWTPtrOrderedVector...
G4bool operator == (const G4VModel&) const;
virtual void DescribeYourselfTo (G4VGraphicsScene&) = 0;
// The main task of a model is to describe itself to the scene.
virtual G4String GetCurrentTag () const;
// A tag which depends on the current state of the model.
virtual G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
virtual G4bool Validate ();
// Validate, but allow internal changes (hence non-const function).
//////////////////////////////////////////////////////////
// Access functions...
const G4ModelingParameters* GetModelingParameters () const;
const G4String& GetGlobalTag () const;
// A tag which does not change and lasts the life of the model.
// Define protected data member in derived class constructor.
const G4String& GetGlobalDescription () const;
// A description which does not change and lasts the life of the model.
// Define protected data member in derived class constructor.
const G4VisExtent& GetExtent () const;
// Extent of visible objects in local coordinate system.
// Define protected data member in derived class constructor.
const G4Transform3D& GetTransformation () const;
// Model transformation, i.e., position and orientation of model in world.
void SetModelingParameters (const G4ModelingParameters*);
protected:
G4String fGlobalTag;
G4String fGlobalDescription;
const G4ModelingParameters* fpMP;
G4VisExtent fExtent;
G4Transform3D fTransform;
};
#include "G4VModel.icc"
#endif
@@ -0,0 +1,55 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VModel.icc,v 2.3 1998/08/31 15:42:06 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// John Allison 31st December 1997.
// Base class for models.
inline G4VModel::~G4VModel () {}
inline G4bool G4VModel::operator == (const G4VModel& model) const{
return this == &model;
}
inline const G4ModelingParameters* G4VModel::GetModelingParameters () const {
return fpMP;
}
inline const G4String& G4VModel::GetGlobalTag () const {
return fGlobalTag;
}
inline const G4String& G4VModel::GetGlobalDescription () const {
return fGlobalDescription;
}
inline G4String G4VModel::GetCurrentTag () const {
return "Default Current Tag";
}
inline G4String G4VModel::GetCurrentDescription () const {
return "Default Current Description";
}
inline G4bool G4VModel::Validate () {
return false;
}
inline const G4VisExtent& G4VModel::GetExtent () const {
return fExtent;
}
inline const G4Transform3D& G4VModel::GetTransformation () const {
return fTransform;
}
inline void G4VModel::SetModelingParameters (const G4ModelingParameters* pMP) {
fpMP = pMP;
}