Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GPSModel.hh 99642 2016-09-29 19:49:30Z allison $
|
||||
//
|
||||
//
|
||||
// John Allison 26th April 2017.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model for a representation of the General Paricle Source.
|
||||
|
||||
#ifndef G4GPSMODEL_HH
|
||||
#define G4GPSMODEL_HH
|
||||
|
||||
#include "G4VModel.hh"
|
||||
|
||||
#include "G4String.hh"
|
||||
#include "G4Colour.hh"
|
||||
|
||||
class G4VGraphicsScene;
|
||||
|
||||
class G4GPSModel: public G4VModel {
|
||||
|
||||
public: // With description
|
||||
|
||||
G4GPSModel (const G4Colour& colour = G4Colour(1.,0.,0.,0.3));
|
||||
// Create with colour (default red and transparent).
|
||||
|
||||
virtual ~G4GPSModel ();
|
||||
|
||||
void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the graphics scene
|
||||
// handler (a object which inherits G4VSceneHandler, which inherits
|
||||
// G4VGraphicsScene).
|
||||
|
||||
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.
|
||||
|
||||
protected:
|
||||
|
||||
G4Colour fColour;
|
||||
|
||||
private:
|
||||
// Private copy constructor and assigment operator - copying and
|
||||
// assignment not allowed. Keeps CodeWizard happy.
|
||||
G4GPSModel (const G4GPSModel&);
|
||||
G4GPSModel& operator = (const G4GPSModel&);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4MagneticFieldModel.hh 93069 2015-10-02 09:54:27Z gcosmo $
|
||||
// $Id: G4MagneticFieldModel.hh 101958 2016-12-12 08:04:35Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 17th August 2013
|
||||
@@ -49,7 +49,8 @@ public: // With description
|
||||
|
||||
G4MagneticFieldModel
|
||||
(G4int nDataPointsPerHalfScene = 10,
|
||||
Representation representation = Representation::fullArrow);
|
||||
Representation representation = Representation::fullArrow,
|
||||
G4int arrow3DLineSegmentsPerCircle = 6);
|
||||
virtual ~G4MagneticFieldModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
@@ -68,6 +69,7 @@ private:
|
||||
|
||||
Representation fRepresentation;
|
||||
|
||||
G4int fArrow3DLineSegmentsPerCircle;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ModelingParameters.hh 99418 2016-09-21 09:18:42Z gcosmo $
|
||||
// $Id: G4ModelingParameters.hh 103627 2017-04-19 13:30:26Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "globals.hh"
|
||||
#include "G4VisExtent.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
#include "G4PhysicalVolumeModel.hh"
|
||||
|
||||
#include <vector>
|
||||
@@ -77,8 +78,14 @@ public: // With description
|
||||
|
||||
class PVNameCopyNo {
|
||||
public:
|
||||
PVNameCopyNo(G4String name, G4int copyNo):
|
||||
fName(name), fCopyNo(copyNo) {}
|
||||
// Normal constructor
|
||||
PVNameCopyNo(G4String name, G4int copyNo)
|
||||
: fName(name), fCopyNo(copyNo) {}
|
||||
// Constructor from G4PhysicalVolumeModel::G4PhysicalVolumeNodeID
|
||||
PVNameCopyNo
|
||||
(const G4PhysicalVolumeModel::G4PhysicalVolumeNodeID& nodeID)
|
||||
: fName(nodeID.GetPhysicalVolume()->GetName())
|
||||
, fCopyNo(nodeID.GetCopyNo()) {}
|
||||
const G4String& GetName() const {return fName;}
|
||||
G4int GetCopyNo() const {return fCopyNo;}
|
||||
G4bool operator!=(const PVNameCopyNo&) const;
|
||||
@@ -87,10 +94,31 @@ public: // With description
|
||||
G4String fName;
|
||||
G4int fCopyNo;
|
||||
};
|
||||
|
||||
typedef std::vector<PVNameCopyNo> PVNameCopyNoPath;
|
||||
typedef PVNameCopyNoPath::const_iterator PVNameCopyNoPathConstIterator;
|
||||
|
||||
class PVPointerCopyNo {
|
||||
public:
|
||||
// Normal constructor
|
||||
PVPointerCopyNo(G4VPhysicalVolume* pPV, G4int copyNo)
|
||||
: fpPV(pPV), fCopyNo(copyNo) {}
|
||||
// Constructor from G4PhysicalVolumeModel::G4PhysicalVolumeNodeID
|
||||
PVPointerCopyNo
|
||||
(const G4PhysicalVolumeModel::G4PhysicalVolumeNodeID& nodeID)
|
||||
: fpPV(nodeID.GetPhysicalVolume())
|
||||
, fCopyNo(nodeID.GetCopyNo()) {}
|
||||
const G4String& GetName() const;
|
||||
const G4VPhysicalVolume* GetPVPointer() const {return fpPV;}
|
||||
G4int GetCopyNo() const {return fCopyNo;}
|
||||
G4bool operator!=(const PVPointerCopyNo&) const;
|
||||
G4bool operator==(const PVPointerCopyNo& rhs) const {return !operator!=(rhs);}
|
||||
private:
|
||||
G4VPhysicalVolume* fpPV;
|
||||
G4int fCopyNo;
|
||||
};
|
||||
typedef std::vector<PVPointerCopyNo> PVPointerCopyNoPath;
|
||||
typedef PVPointerCopyNoPath::const_iterator PVPointerCopyNoPathConstIterator;
|
||||
|
||||
class VisAttributesModifier {
|
||||
public:
|
||||
VisAttributesModifier
|
||||
@@ -182,6 +210,9 @@ public: // With description
|
||||
friend std::ostream& operator <<
|
||||
(std::ostream& os, const PVNameCopyNoPath&);
|
||||
|
||||
friend std::ostream& operator <<
|
||||
(std::ostream& os, const PVPointerCopyNoPath&);
|
||||
|
||||
friend std::ostream& operator <<
|
||||
(std::ostream& os,
|
||||
const std::vector<VisAttributesModifier>&);
|
||||
@@ -212,6 +243,9 @@ std::ostream& operator <<
|
||||
std::ostream& operator <<
|
||||
(std::ostream& os, const G4ModelingParameters::PVNameCopyNoPath&);
|
||||
|
||||
std::ostream& operator <<
|
||||
(std::ostream& os, const G4ModelingParameters::PVPointerCopyNoPath&);
|
||||
|
||||
std::ostream& operator <<
|
||||
(std::ostream& os,
|
||||
const std::vector<G4ModelingParameters::VisAttributesModifier>&);
|
||||
|
||||
Reference in New Issue
Block a user