Import Geant4 9.3.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HepRep.hh,v 1.17 2006/06/29 21:17:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4HepRep.hh,v 1.18 2009/11/23 05:42:28 perl Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
|
||||
/**
|
||||
@@ -36,8 +36,6 @@
|
||||
//G4
|
||||
#include "G4VGraphicsSystem.hh"
|
||||
|
||||
class G4HepRepMessenger;
|
||||
|
||||
class G4HepRep: public G4VGraphicsSystem {
|
||||
public:
|
||||
G4HepRep ();
|
||||
@@ -51,7 +49,6 @@ class G4HepRep: public G4VGraphicsSystem {
|
||||
private:
|
||||
G4VSceneHandler* sceneHandler;
|
||||
G4VViewer* viewer;
|
||||
G4HepRepMessenger* messenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4HepRepFileSceneHandler.hh,v 1.30 2008/01/04 22:11:31 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4HepRepFileSceneHandler.hh,v 1.31 2009/10/21 15:08:35 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
//
|
||||
// Joseph Perl 27th January 2002
|
||||
@@ -81,6 +81,9 @@ public:
|
||||
void InitTrajectory();
|
||||
void AddCompound (const G4VHit&);
|
||||
void InitHit();
|
||||
void AddCompound (const G4THitsMap<G4double>& hits) {
|
||||
G4VSceneHandler::AddCompound(hits);
|
||||
}
|
||||
// void PreAddSolid(const G4Transform3D& objectTransformation,
|
||||
// const G4VisAttributes&);
|
||||
// void PostAddSolid();
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HepRepMessenger.hh,v 1.7 2006/06/29 21:17:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4HepRepMessenger.hh,v 1.8 2009/11/23 05:42:28 perl Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
//
|
||||
#ifndef G4HepRepMessenger_HH
|
||||
@@ -39,12 +39,19 @@
|
||||
class G4HepRepMessenger : public G4UImessenger {
|
||||
|
||||
public:
|
||||
G4HepRepMessenger();
|
||||
static G4HepRepMessenger* GetInstance(); // Singleton constructor.
|
||||
virtual ~G4HepRepMessenger();
|
||||
|
||||
virtual G4String GetCurrentValue(G4UIcommand * command);
|
||||
virtual void SetNewValue(G4UIcommand * command, G4String newValue);
|
||||
|
||||
// Used by HepRepFile
|
||||
virtual G4String getFileDir();
|
||||
virtual G4String getFileName();
|
||||
virtual G4bool getOverwrite();
|
||||
virtual G4bool getCullInvisibles();
|
||||
|
||||
// Used by HepRepXML
|
||||
virtual G4String getEventNumberSuffix();
|
||||
virtual G4bool appendGeometry();
|
||||
virtual G4bool addPointAttributes();
|
||||
@@ -52,8 +59,23 @@ class G4HepRepMessenger : public G4UImessenger {
|
||||
virtual G4bool writeInvisibles();
|
||||
|
||||
private:
|
||||
G4HepRepMessenger(); // Private constructor.
|
||||
static G4HepRepMessenger* fpInstance;
|
||||
|
||||
G4UIdirectory* heprepDirectory;
|
||||
|
||||
G4String fileDir;
|
||||
G4UIcmdWithAString* setFileDirCommand;
|
||||
|
||||
G4String fileName;
|
||||
G4UIcmdWithAString* setFileNameCommand;
|
||||
|
||||
G4bool overwrite;
|
||||
G4UIcmdWithABool* setOverwriteCommand;
|
||||
|
||||
G4bool cullInvisibles;
|
||||
G4UIcmdWithABool* setCullInvisiblesCommand;
|
||||
|
||||
G4String suffix;
|
||||
G4UIcmdWithAString* setEventNumberSuffixCommand;
|
||||
|
||||
@@ -65,7 +87,7 @@ class G4HepRepMessenger : public G4UImessenger {
|
||||
|
||||
G4bool solids;
|
||||
G4UIcmdWithABool* useSolidsCommand;
|
||||
|
||||
|
||||
G4bool invisibles;
|
||||
G4UIcmdWithABool* writeInvisiblesCommand;
|
||||
};
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HepRepSceneHandler.hh,v 1.42 2006/11/06 09:22:26 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4HepRepSceneHandler.hh,v 1.44 2009/11/23 05:42:28 perl Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
|
||||
/**
|
||||
@@ -62,12 +62,10 @@
|
||||
#include "G4LogicalVolume.hh"
|
||||
#include "G4PhysicalVolumeModel.hh"
|
||||
|
||||
#include "G4HepRepMessenger.hh"
|
||||
|
||||
class G4HepRepSceneHandler: public G4VSceneHandler {
|
||||
|
||||
public:
|
||||
G4HepRepSceneHandler (G4VGraphicsSystem& system, G4HepRepMessenger& messenger, const G4String& name = "");
|
||||
G4HepRepSceneHandler (G4VGraphicsSystem& system, const G4String& name = "");
|
||||
virtual ~G4HepRepSceneHandler ();
|
||||
|
||||
void AddSolid (const G4Box& box);
|
||||
@@ -84,6 +82,9 @@ class G4HepRepSceneHandler: public G4VSceneHandler {
|
||||
|
||||
void AddCompound (const G4VTrajectory&);
|
||||
void AddCompound (const G4VHit& hit);
|
||||
void AddCompound (const G4THitsMap<G4double>& hits) {
|
||||
G4VSceneHandler::AddCompound(hits);
|
||||
}
|
||||
|
||||
void PreAddSolid (const G4Transform3D& objectTransformation, const G4VisAttributes& visAttribs);
|
||||
void PostAddSolid ();
|
||||
@@ -183,7 +184,6 @@ class G4HepRepSceneHandler: public G4VSceneHandler {
|
||||
G4String getParentTypeName(int currentDepth);
|
||||
|
||||
// initialized Member Variables
|
||||
G4HepRepMessenger& messenger;
|
||||
G4String geometryLayer, eventLayer, calHitLayer;
|
||||
G4String trajectoryLayer, hitLayer;
|
||||
G4String rootVolumeName;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HepRepViewer.hh,v 1.18 2006/06/29 21:17:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4HepRepViewer.hh,v 1.19 2009/11/23 05:42:28 perl Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
|
||||
/**
|
||||
@@ -40,11 +40,9 @@
|
||||
// Geant4
|
||||
#include "G4VViewer.hh"
|
||||
|
||||
#include "G4HepRepMessenger.hh"
|
||||
|
||||
class G4HepRepViewer: public G4VViewer {
|
||||
public:
|
||||
G4HepRepViewer (G4VSceneHandler& scene, G4HepRepMessenger& messenger, const G4String& name = "");
|
||||
G4HepRepViewer (G4VSceneHandler& scene, const G4String& name = "");
|
||||
virtual ~G4HepRepViewer ();
|
||||
void SetView ();
|
||||
void ClearView ();
|
||||
@@ -56,7 +54,6 @@ class G4HepRepViewer: public G4VViewer {
|
||||
|
||||
private:
|
||||
bool geometryIncluded;
|
||||
G4HepRepMessenger& messenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
|
||||
#ifndef CHEPREP_NO_ZLIB
|
||||
#include <zlib.h>
|
||||
@@ -12,7 +13,7 @@
|
||||
|
||||
/**
|
||||
* @author Mark Donszelmann
|
||||
* @version $Id: DeflateOutputStreamBuffer.h,v 1.5 2005/06/02 21:28:45 duns Exp $
|
||||
* @version $Id: DeflateOutputStreamBuffer.h,v 1.6 2009/05/08 09:26:58 gcosmo Exp $
|
||||
*/
|
||||
namespace cheprep {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user