Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4GraphicsSystemList.hh,v 1.8 2003/06/16 17:14:02 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 2nd April 1996
@@ -22,7 +22,7 @@
//
//
// $Id: G4Scene.hh,v 1.14 2003/11/27 11:48:03 johna Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// Scene John Allison 19th July 1996.
@@ -22,7 +22,7 @@
//
//
// $Id: G4Scene.icc,v 1.11 2003/11/27 11:48:06 johna Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// Scene data John Allison 19th July 1996.
@@ -22,7 +22,7 @@
//
//
// $Id: G4SceneHandlerList.hh,v 1.7 2003/06/16 17:14:05 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison May 1996
@@ -22,7 +22,7 @@
//
//
// $Id: G4SceneList.hh,v 1.9 2003/06/16 17:14:06 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 9th August 1998
@@ -22,7 +22,7 @@
//
//
// $Id: G4VGraphicsSystem.hh,v 1.10 2003/06/16 17:14:07 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 27th March 1996
@@ -22,7 +22,7 @@
//
//
// $Id: G4VGraphicsSystem.icc,v 1.6 2001/07/11 10:09:14 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 27th March 1996
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VSceneHandler.hh,v 1.20 2003/06/16 17:14:08 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4VSceneHandler.hh,v 1.22 2004/08/03 15:55:33 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 19th July 1996.
@@ -192,17 +192,15 @@ public: // With description
const G4Colour& GetTextColor (const G4Text&);
// The above return colour of G4Text object, or default text colour.
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4Visible&);
// Returns drawing style of G4Visible object, i.e., the global
// default value unless ovewrridden by forced attributes. And the
// attributes themselves can be specified or the global default is
// used - see next function. So use this function is you have a
// G4Visible, or the next if all you have is a G4VisAttributes
// pointer.
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes*);
// Returns global default drawing style unless forced attributes are set.
// So always use this to get the applicable drawing style.
// Returns drawing style from current view parameters, unless the user
// has forced through the vis attributes, thereby over-riding the
// current view parameter.
G4bool GetAuxEdgeVisible (const G4VisAttributes*);
// Returns auxiliary edge visiblility from current view parameters,
// unless the user has forced through the vis attributes, thereby
// over-riding the current view parameter.
G4double GetMarkerSize (const G4VMarker&, MarkerSizeType&);
// Returns applicable marker size (diameter) and type (in second
@@ -22,7 +22,7 @@
//
//
// $Id: G4VSceneHandler.icc,v 1.12 2001/08/09 20:13:40 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 19th July 1996.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VViewer.hh,v 1.13 2003/06/16 17:14:09 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4VViewer.hh,v 1.14 2004/07/01 10:16:14 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 27th March 1996
@@ -110,11 +110,11 @@ public: // With description
// Flags all views the need to re-visit the GEANT4 kernel to refresh
// the scene.
protected:
void ProcessView ();
// Used by DrawView (). Invokes SetView (). The basic logic is here.
protected:
//////////////////////////////////////////////////////////////
// Data members
G4VSceneHandler& fSceneHandler; // Abstract scene for this view.
@@ -22,7 +22,7 @@
//
//
// $Id: G4VViewer.icc,v 1.9 2001/07/14 21:48:22 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 30th December 1996
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VVisCommand.hh,v 1.15 2003/06/16 17:14:10 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4VVisCommand.hh,v 1.16 2004/08/03 15:57:44 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// Base class for visualization commands - John Allison 9th August 1998
// It is really a messenger - we have one command per messenger.
@@ -44,20 +44,20 @@ public:
G4VVisCommand ();
virtual ~G4VVisCommand ();
static void SetVisManager (G4VisManager*);
static G4double ValueOf(G4String unitName);
static G4String ConvertToString(G4bool blValue);
static G4String ConvertToString(G4double x, G4double y,
const char * unitName);
static G4String ConvertToString(const G4ThreeVector& vec);
static G4bool GetNewBoolValue(const G4String& paramString);
static G4int GetNewIntValue(const G4String& paramString);
static G4ThreeVector GetNew3VectorValue(const G4String& paramString);
static void GetNewDoublePairValue(const G4String& paramString,
G4double& xval,
G4double& yval);
void UpdateVisManagerScene (const G4String& sceneName = "");
protected:
// Conversion routines augmenting those in G4UIcommand.
static G4String ConvertToString(G4double x, G4double y,
const char * unitName);
static void ConvertToDoublePair(const G4String& paramString,
G4double& xval,
G4double& yval);
// Other utilities.
void UpdateVisManagerScene (const G4String& sceneName = "");
// Data members.
static G4VisManager* fpVisManager;
static std::vector<G4UIcommand*> sceneNameCommands;
typedef std::vector<G4UIcommand*>::iterator sceneNameCommandsIterator;
@@ -22,7 +22,7 @@
//
//
// $Id: G4VVisCommand.icc,v 1.4 2001/07/11 10:09:14 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// Base class for visualization commands - John Allison 9th August 1998
// It is really a messenger - we have one command per messenger.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ViewParameters.hh,v 1.14 2003/06/16 17:14:11 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4ViewParameters.hh,v 1.15 2004/07/23 15:24:08 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 19th July 1996
@@ -112,6 +112,7 @@ public: // With description
// Get and Is functions.
DrawingStyle GetDrawingStyle () const;
G4bool IsAuxEdgeVisible () const;
RepStyle GetRepStyle () const;
G4bool IsCulling () const;
G4bool IsCullingInvisible () const;
@@ -161,6 +162,7 @@ public: // With description
// Set, Add, Multiply, Increment, Unset and Clear functions.
void SetDrawingStyle (G4ViewParameters::DrawingStyle style);
void SetAuxEdgeVisible (G4bool);
void SetRepStyle (G4ViewParameters::RepStyle style);
void SetCulling (G4bool);
void SetCullingInvisible (G4bool);
@@ -209,6 +211,7 @@ public: // With description
private:
DrawingStyle fDrawingStyle; // Drawing style.
G4bool fAuxEdgeVisible; // Auxiliary edge visibility.
RepStyle fRepStyle; // Representation style.
G4bool fCulling; // Culling requested.
G4bool fCullInvisible; // Cull (don't Draw) invisible objects.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ViewParameters.icc,v 1.5 2001/07/11 10:09:15 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4ViewParameters.icc,v 1.6 2004/07/23 15:24:12 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 20th October 1996
@@ -33,6 +33,10 @@ G4ViewParameters::GetDrawingStyle () const {
return fDrawingStyle;
}
inline G4bool G4ViewParameters::IsAuxEdgeVisible () const {
return fAuxEdgeVisible;
}
inline G4ViewParameters::RepStyle G4ViewParameters::GetRepStyle () const {
return fRepStyle;
}
@@ -168,6 +172,10 @@ G4ViewParameters::SetDrawingStyle (G4ViewParameters::DrawingStyle style) {
fDrawingStyle = style;
}
inline void G4ViewParameters::SetAuxEdgeVisible (G4bool vis) {
fAuxEdgeVisible = vis;
}
inline void
G4ViewParameters::SetRepStyle (G4ViewParameters::RepStyle style) {
fRepStyle = style;
@@ -22,7 +22,7 @@
//
//
// $Id: G4ViewerList.hh,v 1.7 2003/06/16 17:14:12 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison May 1996
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisCommands.hh,v 1.3 2001/08/05 02:29:02 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/ top level commands - John Allison 5th February 2001
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisCommandsCompound.hh,v 1.7 2001/07/11 10:09:15 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// Compound /vis/ commands - John Allison 15th May 2000
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisCommandsScene.hh,v 1.14 2003/11/27 11:48:09 johna Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisCommandsSceneAdd.hh,v 1.10 2002/11/11 18:31:28 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisCommandsSceneHandler.hh,v 1.6 2001/07/11 10:09:16 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/sceneHandler commands - John Allison 10th October 1998
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsViewer.hh,v 1.15 2001/11/06 12:55:28 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4VisCommandsViewer.hh,v 1.16 2004/07/14 15:38:49 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/viewer commands - John Allison 25th October 1998
@@ -103,20 +103,6 @@ private:
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerLights: public G4VVisCommandViewer {
public:
G4VisCommandViewerLights ();
virtual ~G4VisCommandViewerLights ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerLights (const G4VisCommandViewerLights&);
G4VisCommandViewerLights& operator = (const G4VisCommandViewerLights&);
G4UIcommand* fpCommandLightsThetaPhi;
G4UIcommand* fpCommandLightsVector;
G4ThreeVector fLightsVector;
};
class G4VisCommandViewerList: public G4VVisCommandViewer {
public:
G4VisCommandViewerList ();
@@ -202,21 +188,6 @@ private:
G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&);
G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&);
G4UIcmdWithAString* fpCommand;
G4UIcmdWithAString* fpCommand1;
};
class G4VisCommandViewerViewpoint: public G4VVisCommandViewer {
public:
G4VisCommandViewerViewpoint ();
virtual ~G4VisCommandViewerViewpoint ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerViewpoint (const G4VisCommandViewerViewpoint&);
G4VisCommandViewerViewpoint& operator = (const G4VisCommandViewerViewpoint&);
G4UIcommand* fpCommandViewpointThetaPhi;
G4UIcommand* fpCommandViewpointVector;
G4ThreeVector fViewpointVector;
};
class G4VisCommandViewerZoom: public G4VVisCommandViewer {
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsViewerSet.hh,v 1.12 2003/06/16 17:14:13 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4VisCommandsViewerSet.hh,v 1.13 2004/07/23 15:24:15 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// /vis/viewer/set commands - John Allison 16th May 2000
@@ -50,6 +50,7 @@ private:
G4VisCommandsViewerSet& operator = (const G4VisCommandsViewerSet&);
G4UIcmdWithAString* fpCommandAll;
G4UIcmdWithABool* fpCommandAutoRefresh;
G4UIcmdWithABool* fpCommandAuxEdge;
G4UIcommand* fpCommandCulling;
G4UIcmdWithABool* fpCommandEdge;
G4UIcmdWithADouble* fpCommandGlobalMarkerScale;
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisFeaturesOfDAWNFILE.hh,v 1.4 2001/07/11 10:09:16 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#ifndef G4VISFEATURESOFDAWNFILE_HH
#define G4VISFEATURESOFDAWNFILE_HH
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisFeaturesOfFukuiRenderer.hh,v 1.4 2001/07/11 10:09:16 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisFeaturesOfOpenGL.hh,v 1.4 2001/07/11 10:09:16 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisFeaturesOfOpenInventor.hh,v 1.4 2001/07/11 10:09:16 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VisManager.hh,v 1.32 2004/02/09 10:01:04 gcosmo Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: G4VisManager.hh,v 1.33 2004/07/14 15:38:52 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
@@ -275,8 +275,6 @@ public: // With description
Verbosity GetVerbosity () const;
void GetWindowSizeHint (G4int& xHint, G4int& yHint) const;
// Note: GetWindowSizeHint information is returned via the G4int& arguments.
void SetCurrentGraphicsSystemAndCreateViewer
(G4VGraphicsSystem* pSystem);
void SetCurrentGraphicsSystem (G4VGraphicsSystem* pSystem);
void SetCurrentScene (G4Scene*);
void SetCurrentSceneHandler (G4VSceneHandler* pScene);
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisManager.icc,v 1.8 2001/08/05 02:29:05 johna Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
@@ -22,7 +22,7 @@
//
//
// $Id: G4VisStateDependent.hh,v 1.4 2001/07/11 10:09:17 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
// A "state dependent" service class for G4VisManager.
// John Allison 29th November 1999
@@ -1,44 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * 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: G4VisToOldVisCommands.hh,v 1.6 2001/07/11 10:09:17 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
//
//
// Implements some /vis/ commands as /vis~/ temporarily.
// John Allison 9th December 1998.
#ifndef G4VISTOOLDVISCOMMANDS_HH
#define G4VISTOOLDVISCOMMANDS_HH
#include "G4UImessenger.hh"
#include "globals.hh"
class G4VisToOldVisCommands: public G4UImessenger {
public:
G4VisToOldVisCommands ();
~G4VisToOldVisCommands ();
void SetNewValue (G4UIcommand* command, G4String newValues);
};
#endif
@@ -22,7 +22,7 @@
//
//
// $Id: MyVisManager.cc,v 1.19 2003/11/06 15:24:52 johna Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 24th January 1998.
@@ -22,7 +22,7 @@
//
//
// $Id: MyVisManager.hh,v 1.5 2001/07/11 10:09:17 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 24th January 1998.