Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// 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: G4BoundingSphereScene.hh,v 1.4 1999/05/10 14:04:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4BoundingSphereScene.hh,v 1.5.6.1 1999/12/07 20:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 7th June 1997
|
||||
@@ -52,7 +52,6 @@ public:
|
||||
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.
|
||||
@@ -61,6 +60,19 @@ public:
|
||||
void AccrueBoundingSphere (const G4Point3D& centre,
|
||||
G4double radius);
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Functions not used by required by the abstract interface.
|
||||
|
||||
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
|
||||
virtual void EndPrimitives () {}
|
||||
virtual void AddPrimitive (const G4Polyline&) {}
|
||||
virtual void AddPrimitive (const G4Text&) {}
|
||||
virtual void AddPrimitive (const G4Circle&) {}
|
||||
virtual void AddPrimitive (const G4Square&) {}
|
||||
virtual void AddPrimitive (const G4Polymarker&) {}
|
||||
virtual void AddPrimitive (const G4Polyhedron&) {}
|
||||
virtual void AddPrimitive (const G4NURBS&) {}
|
||||
|
||||
private:
|
||||
void Accrue (const G4VSolid& solid);
|
||||
G4Point3D fCentre;
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
// 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: G4FlavoredParallelWorldModel.hh,v 1.3 1999/04/16 09:05:39 mora Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4FlavoredParallelWorldModel.hh,v 1.4.2.1 1999/12/07 20:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// P. Mora de Freitas et M.Verderi - 19 June 1998.
|
||||
// Model for flavored parallel world volumes.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model for flavored parallel world volumes. Inherits from
|
||||
// G4PhysicalVolumeModel; for more information see that class
|
||||
// description.
|
||||
|
||||
#ifndef G4FLAVOREDPARALLELWORLDMODEL_HH
|
||||
#define G4FLAVOREDPARALLELWORLDMODEL_HH
|
||||
@@ -20,7 +25,7 @@ class G4VFlavoredParallelWorld;
|
||||
|
||||
class G4FlavoredParallelWorldModel : public G4PhysicalVolumeModel {
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4FlavoredParallelWorldModel
|
||||
(G4VFlavoredParallelWorld* FPW,
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
// 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: G4HitsModel.hh,v 1.2 1999/01/11 00:48:43 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4HitsModel.hh,v 1.3.2.1 1999/12/07 20:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th August 1998.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model which knows how to draw GEANT4 hits.
|
||||
//
|
||||
// For access to base class information, e.g., modeling parameters,
|
||||
// use GetModelingParameters() inherited from G4VModel. See Class
|
||||
// Description of the base class G4VModel.
|
||||
|
||||
#ifndef G4HITSMODEL_HH
|
||||
#define G4HITSMODEL_HH
|
||||
@@ -19,7 +26,7 @@
|
||||
|
||||
class G4HitsModel: public G4VModel {
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4HitsModel ();
|
||||
|
||||
@@ -28,12 +35,12 @@ public:
|
||||
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 G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4HitsModel.icc,v 1.3 1999/05/10 14:04:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4HitsModel.icc,v 1.3.8.1 1999/12/07 20:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
|
||||
inline G4String G4HitsModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// 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: G4LogicalVolumeModel.hh,v 1.2.2.1 1999/12/07 20:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th July 1999.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model for logical volumes. It describes a logical volume and its
|
||||
// daughters to any depth - usually only the first by default.
|
||||
//
|
||||
// Inherits from G4PhysicalVolumeModel; for more information see that
|
||||
// class description.
|
||||
|
||||
#ifndef G4LOGICALVOLUMEMODEL_HH
|
||||
#define G4LOGICALVOLUMEMODEL_HH
|
||||
|
||||
#include "G4PhysicalVolumeModel.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Transform3D.hh"
|
||||
|
||||
class G4LogicalVolume;
|
||||
class G4ModelingParameters;
|
||||
|
||||
class G4LogicalVolumeModel: public G4PhysicalVolumeModel {
|
||||
|
||||
public: // With description
|
||||
|
||||
G4LogicalVolumeModel
|
||||
(G4LogicalVolume*,
|
||||
G4int soughtDepth = 1,
|
||||
const G4Transform3D& modelTransformation = G4Transform3D::Identity,
|
||||
const G4ModelingParameters* = 0);
|
||||
|
||||
virtual ~G4LogicalVolumeModel ();
|
||||
|
||||
void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
|
||||
G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
|
||||
protected:
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
// Data members...
|
||||
|
||||
G4LogicalVolume* fpLV;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,15 +1,18 @@
|
||||
// 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: G4ModelingParameters.hh,v 1.3 1999/05/25 09:14:23 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4ModelingParameters.hh,v 1.4.2.1 1999/12/07 20:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Parameters associated with the modeling of GEANT4 objects.
|
||||
|
||||
#ifndef G4MODELINGPARAMETERS_HH
|
||||
@@ -24,9 +27,9 @@ class G4VisAttributes;
|
||||
|
||||
class G4ModelingParameters {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4ModelingParameters&);
|
||||
public: // With description
|
||||
|
||||
public:
|
||||
friend ostream& operator << (ostream& os, const G4ModelingParameters&);
|
||||
|
||||
enum RepStyle {
|
||||
wireframe, // Use G4Wireframe.
|
||||
@@ -46,8 +49,7 @@ public:
|
||||
G4bool isDensityCulling,
|
||||
G4double visibleDensity,
|
||||
G4bool isCullingCovered,
|
||||
G4int noOfSides
|
||||
);
|
||||
G4int noOfSides);
|
||||
// noOfSides is suggested no. of sides per circle in case a
|
||||
// polygonal representation is produced.
|
||||
|
||||
@@ -61,8 +63,7 @@ public:
|
||||
G4int noOfSides,
|
||||
G4bool isViewGeom,
|
||||
G4bool isViewHits,
|
||||
G4bool isViewDigis
|
||||
);
|
||||
G4bool isViewDigis);
|
||||
// noOfSides is suggested no. of sides per circle in case a
|
||||
// polygonal representation is produced.
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4ModelingParameters.icc,v 1.2 1999/01/10 13:25:49 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4ModelingParameters.icc,v 1.2.8.1 1999/12/07 20:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4NullModel.hh,v 1.3 1999/05/10 14:04:23 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NullModel.hh,v 1.3.8.1 1999/12/07 20:54:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 4th April 1998.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
// 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 1.2 1999/01/11 00:48:45 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
// Model for physical volumes.
|
||||
|
||||
inline G4PhysicalVolumeModel::~G4PhysicalVolumeModel () {}
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4PhysicalVolumeSearchScene.hh,v 1.4 1999/05/10 14:04:25 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4PhysicalVolumeSearchScene.hh,v 1.5.6.1 1999/12/07 20:54:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 10th August 1998.
|
||||
@@ -55,6 +55,19 @@ public:
|
||||
G4VPhysicalVolume* GetFoundVolume () const;
|
||||
const G4Transform3D& GetFoundTransformation () const;
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Functions not used by required by the abstract interface.
|
||||
|
||||
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
|
||||
virtual void EndPrimitives () {}
|
||||
virtual void AddPrimitive (const G4Polyline&) {}
|
||||
virtual void AddPrimitive (const G4Text&) {}
|
||||
virtual void AddPrimitive (const G4Circle&) {}
|
||||
virtual void AddPrimitive (const G4Square&) {}
|
||||
virtual void AddPrimitive (const G4Polymarker&) {}
|
||||
virtual void AddPrimitive (const G4Polyhedron&) {}
|
||||
virtual void AddPrimitive (const G4NURBS&) {}
|
||||
|
||||
private:
|
||||
void FindVolume (const G4VSolid&);
|
||||
G4String fRequiredPhysicalVolumeName;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4PhysicalVolumeSearchScene.icc,v 1.2 1999/01/11 00:48:46 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4PhysicalVolumeSearchScene.icc,v 1.2.8.1 1999/12/07 20:54:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 10th August 1998.
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
// 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: G4TrajectoriesModel.hh,v 1.2 1999/01/11 00:48:47 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4TrajectoriesModel.hh,v 1.3.2.1 1999/12/07 20:54:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th August 1998.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model which knows how to draw GEANT4 trajectories.
|
||||
//
|
||||
// For access to base class information, e.g., modeling parameters,
|
||||
// use GetModelingParameters() inherited from G4VModel. See Class
|
||||
// Description of the base class G4VModel.
|
||||
|
||||
#ifndef G4TRAJECTORIESMODEL_HH
|
||||
#define G4TRAJECTORIESMODEL_HH
|
||||
@@ -19,7 +26,7 @@
|
||||
|
||||
class G4TrajectoriesModel: public G4VModel {
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4TrajectoriesModel ();
|
||||
|
||||
@@ -28,12 +35,12 @@ public:
|
||||
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 G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// 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: G4TrajectoriesModel.icc,v 1.3 1999/05/10 14:04:27 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4TrajectoriesModel.icc,v 1.3.8.1 1999/12/07 20:54:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
|
||||
inline G4String G4TrajectoriesModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
// 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: G4VModel.hh,v 1.2 1999/01/11 00:48:49 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VModel.hh,v 1.4.2.1 1999/12/07 20:54:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
// Base class for models.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// G4VModel is a base class for visualization models. A model is a
|
||||
// graphics-system-indepedent description of a Geant4 component.
|
||||
// The key fuctionality of a model is to know how to describe itself
|
||||
// to a scene handler. A scene is a collection of models.
|
||||
|
||||
#ifndef G4VMODEL_HH
|
||||
#define G4VMODEL_HH
|
||||
@@ -24,9 +30,9 @@ class G4ModelingParameters;
|
||||
|
||||
class G4VModel {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4VModel&);
|
||||
public: // With description
|
||||
|
||||
public:
|
||||
friend ostream& operator << (ostream& os, const G4VModel&);
|
||||
|
||||
G4VModel
|
||||
(const G4Transform3D& modelTransformation = G4Transform3D::Identity,
|
||||
@@ -34,36 +40,34 @@ public:
|
||||
|
||||
virtual ~G4VModel ();
|
||||
|
||||
// For RWTPtrOrderedVector...
|
||||
public: // Without description
|
||||
|
||||
G4bool operator == (const G4VModel&) const;
|
||||
// For G4RWTPtrOrderedVector...
|
||||
|
||||
public: // With description
|
||||
|
||||
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.
|
||||
const G4ModelingParameters* GetModelingParameters () const;
|
||||
|
||||
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).
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
// Access functions...
|
||||
|
||||
const G4ModelingParameters* GetModelingParameters () const;
|
||||
|
||||
const G4String& GetGlobalTag () const;
|
||||
// A tag which does not change and lasts the life of the model.
|
||||
const G4VisExtent& GetExtent () const;
|
||||
// Extent of visible objects in local coordinate system.
|
||||
// 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.
|
||||
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 G4Transform3D& GetTransformation () const;
|
||||
@@ -71,6 +75,9 @@ public:
|
||||
|
||||
void SetModelingParameters (const G4ModelingParameters*);
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
protected:
|
||||
|
||||
G4String fGlobalTag;
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
// 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: G4VModel.icc,v 1.2 1999/01/11 00:48:50 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VModel.icc,v 1.3.6.1 1999/12/07 20:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
// Base class for models.
|
||||
|
||||
inline G4VModel::~G4VModel () {}
|
||||
|
||||
inline G4bool G4VModel::operator == (const G4VModel& model) const{
|
||||
inline G4bool G4VModel::operator == (const G4VModel& model) const {
|
||||
return this == &model;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user