Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -20,6 +20,11 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4OpenGL.hh,v 1.3 2005/04/17 16:08:43 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G.Barrand.
#ifndef G4OpenGL_h
#define G4OpenGL_h
@@ -0,0 +1,58 @@
//
// ********************************************************************
// * 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: G4OpenGLFontBaseStore.hh,v 1.2 2005/05/27 10:56:06 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// J.Allison Apr 2005.
// Class Description:
// Facilitates sharing of font bases between scene handler and viewers.
#ifndef G4OPENGLFONTBASESTORE_HH
#define G4OPENGLFONTBASESTORE_HH
#include "globals.hh"
#include <map>
#include <vector>
class G4VViewer;
class G4OpenGLFontBaseStore {
public:
static void AddFontBase(G4VViewer*, G4int fontBase,
G4double size, const G4String& fontName);
static G4int GetFontBase(G4VViewer*, G4double size);
private:
struct FontInfo {
FontInfo():
fFontName(""), fSize(0), fFontBase(-1) {}
FontInfo(const G4String& fontName, G4double size, G4int fontBase):
fFontName(fontName), fSize(size), fFontBase(fontBase) {}
G4String fFontName;
G4double fSize; // In terms of G4VMarker Screen Size.
G4int fFontBase;
};
static std::map<G4VViewer*,std::vector<FontInfo> > fFontBaseMap;
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.6 2001/08/09 20:16:56 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.7 2005/06/02 17:43:46 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -52,11 +52,9 @@ public:
void BeginModeling ();
void EndModeling ();
void ClearTransientStore ();
static G4int GetSceneCount ();
private:
static G4int fSceneIdCount; // static counter for OpenGLImmediate scenes.
static G4int fSceneCount; // No. of extanct scene handlers.
};
#endif
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateViewer.hh,v 1.7 2002/10/16 10:44:13 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateWin32.hh,v 1.6 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// OpenGLImmediateWin32 graphics system factory.
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.7 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Class G4OpenGLImmediateWin32Viewer : a class derived from
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateX.hh,v 1.6 2001/07/11 10:08:48 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateXViewer.hh,v 1.7 2001/07/14 21:47:42 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateXm.hh,v 1.6 2001/07/11 10:08:49 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.7 2001/07/14 21:47:43 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenGLSceneHandler.hh,v 1.17 2004/07/09 15:44:20 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLSceneHandler.hh,v 1.18 2005/01/27 20:04:52 johna Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -61,19 +61,19 @@ public:
G4VSceneHandler::AddPrimitive (scale);
}
void AddThis (const G4Box&);
void AddThis (const G4Cons&);
void AddThis (const G4Tubs&);
void AddThis (const G4Trd&);
void AddThis (const G4Trap&);
void AddThis (const G4Sphere&);
void AddThis (const G4Para&);
void AddThis (const G4Torus&);
void AddThis (const G4Polycone&);
void AddThis (const G4Polyhedra&);
void AddThis (const G4VSolid&);
void AddThis (const G4VTrajectory&);
void AddThis (const G4VHit&);
void AddSolid (const G4Box&);
void AddSolid (const G4Cons&);
void AddSolid (const G4Tubs&);
void AddSolid (const G4Trd&);
void AddSolid (const G4Trap&);
void AddSolid (const G4Sphere&);
void AddSolid (const G4Para&);
void AddSolid (const G4Torus&);
void AddSolid (const G4Polycone&);
void AddSolid (const G4Polyhedra&);
void AddSolid (const G4VSolid&);
void AddCompound (const G4VTrajectory&);
void AddCompound (const G4VHit&);
protected:
G4OpenGLSceneHandler (G4VGraphicsSystem& system,
@@ -21,52 +21,52 @@
// ********************************************************************
//
//
// $Id: G4OpenGLSceneHandler.icc,v 1.5 2001/08/09 20:16:06 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLSceneHandler.icc,v 1.6 2005/01/27 20:04:55 johna Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 20th January 1998
inline void G4OpenGLSceneHandler::AddThis (const G4Box& box) {
G4VSceneHandler::AddThis (box);
inline void G4OpenGLSceneHandler::AddSolid (const G4Box& box) {
G4VSceneHandler::AddSolid (box);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Cons& cons) {
G4VSceneHandler::AddThis (cons);
inline void G4OpenGLSceneHandler::AddSolid (const G4Cons& cons) {
G4VSceneHandler::AddSolid (cons);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Tubs& tubs) {
G4VSceneHandler::AddThis (tubs);
inline void G4OpenGLSceneHandler::AddSolid (const G4Tubs& tubs) {
G4VSceneHandler::AddSolid (tubs);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Trd& trd) {
G4VSceneHandler::AddThis (trd);
inline void G4OpenGLSceneHandler::AddSolid (const G4Trd& trd) {
G4VSceneHandler::AddSolid (trd);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Trap& trap) {
G4VSceneHandler::AddThis (trap);
inline void G4OpenGLSceneHandler::AddSolid (const G4Trap& trap) {
G4VSceneHandler::AddSolid (trap);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Sphere& sphere) {
G4VSceneHandler::AddThis (sphere);
inline void G4OpenGLSceneHandler::AddSolid (const G4Sphere& sphere) {
G4VSceneHandler::AddSolid (sphere);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Para& para) {
G4VSceneHandler::AddThis (para);
inline void G4OpenGLSceneHandler::AddSolid (const G4Para& para) {
G4VSceneHandler::AddSolid (para);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Torus& torus) {
G4VSceneHandler::AddThis (torus);
inline void G4OpenGLSceneHandler::AddSolid (const G4Torus& torus) {
G4VSceneHandler::AddSolid (torus);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Polycone& polycone) {
G4VSceneHandler::AddThis (polycone);
inline void G4OpenGLSceneHandler::AddSolid (const G4Polycone& polycone) {
G4VSceneHandler::AddSolid (polycone);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
inline void G4OpenGLSceneHandler::AddSolid (const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
inline void G4OpenGLSceneHandler::AddThis (const G4VSolid& vsolid) {
G4VSceneHandler::AddThis (vsolid);
inline void G4OpenGLSceneHandler::AddSolid (const G4VSolid& vsolid) {
G4VSceneHandler::AddSolid (vsolid);
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.15 2004/11/18 15:19:23 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.16 2005/06/02 17:43:46 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -53,7 +53,6 @@ public:
void EndPrimitives ();
void BeginModeling ();
void EndModeling ();
static G4int GetSceneCount ();
private:
friend class G4OpenGLStoredViewer;
// ..allows access to P/TODLs.
@@ -61,7 +60,6 @@ private:
void ClearTransientStore ();
void RequestPrimitives (const G4VSolid& solid);
static G4int fSceneIdCount; // static counter for OpenGLStored scenes.
static G4int fSceneCount; // No. of extanct scene handlers.
G4int fDisplayListId; // Workspace.
G4bool fMemoryForDisplayLists; // avoid memory overflow
@@ -79,10 +77,6 @@ private:
std::map <const G4VSolid*, G4int, std::less <const G4VSolid*> > fSolidMap;
};
inline G4int G4OpenGLStoredSceneHandler::GetSceneCount () {
return fSceneCount;
}
#endif
#endif
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredViewer.hh,v 1.8 2001/08/14 18:03:15 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredWin32.hh,v 1.6 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// OpenGLStoredWin32 graphics system factory.
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredWin32Viewer.hh,v 1.5 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Class G4OpenGLStoredWin32Viewer : a class derived from
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredX.hh,v 1.6 2001/07/11 10:08:50 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredXViewer.hh,v 1.5 2001/07/14 21:47:46 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredXm.hh,v 1.5 2001/07/11 10:08:50 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLStoredXmViewer.hh,v 1.5 2001/07/14 21:47:47 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLTransform3D.hh,v 1.6 2004/04/07 15:17:12 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 24th October 1996
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenGLViewer.hh,v 1.9 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLViewer.hh,v 1.10 2005/04/22 12:02:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -54,6 +54,7 @@ protected:
void HLRSecondPass ();
void HLRThirdPass ();
void InitializeGLView ();
virtual void CreateFontLists () {}
G4bool white_background, //the OpenGL clear colour
doublebuffer, //are we using a double buffered visual?
transparency_enabled, //is alpha blending enabled?
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLWin32Viewer.hh,v 1.11 2003/06/25 09:01:08 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// G4OpenGLWin32Viewer : Class to provide WindowsNT specific
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenGLXViewer.hh,v 1.20 2004/07/09 15:44:21 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenGLXViewer.hh,v 1.21 2005/04/22 12:02:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -60,6 +60,7 @@ protected:
void GetXConnection ();
void CreateGLXContext (XVisualInfo* vi);
virtual void CreateMainWindow ();
virtual void CreateFontLists ();
static int snglBuf_RGBA[12];
static int dblBuf_RGBA[13];
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmBox.hh,v 1.6 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Box container class
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmFourArrowButtons.hh,v 1.5 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Four arrow buttons class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmFramedBox.hh,v 1.6 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Framed box container class
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmPushButton.hh,v 1.6 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Push button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmRadioButton.hh,v 1.6 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Radio button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmResources.hh,v 1.4 2001/07/11 10:08:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Default resources file for GEANT4 OpenGL Motif windows.
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmSeparator.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Separator class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmSliderBar.hh,v 1.6 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Slider bar class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmTextField.hh,v 1.6 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Text field class. Inherits from G4OpenGLXmVWidgetComponent
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Top level shell class
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Base class for all Motif component widgets
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Base class for all Motif container widgets
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Virtual base class for all Motif widgets.
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.5 2001/07/11 10:08:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//Base class for all Motif window widgets (shells)
@@ -22,7 +22,7 @@
//
//
// $Id: G4OpenGLXmViewer.hh,v 1.7 2004/07/23 15:23:50 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Andrew Walkden 10th February 1997