Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -5,15 +5,15 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GoScene.hh,v 2.1 1998/11/06 13:42:01 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4GoSceneHandler.hh,v 1.3 1999/05/25 12:04:43 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Guy Barrand 04 November 1996
// Wo scene - creates Wo Display lists.
// Wo scene handler - creates Wo Display lists.
#ifndef G4GOSCENE_HH
#define G4GOSCENE_HH
#ifndef G4GOSCENEHANDLER_HH
#define G4GOSCENEHANDLER_HH
#if defined(G4VIS_BUILD_OPACS_DRIVER) || defined(G4VIS_USE_OPACS)
@@ -23,14 +23,14 @@
//G4
#include "globals.hh"
#include "G4VGraphicsSystem.hh"
#include "G4VScene.hh"
#include "G4VSceneHandler.hh"
class G4GoScene: public G4VScene {
class G4GoSceneHandler: public G4VSceneHandler {
public:
G4GoScene (G4VGraphicsSystem& system,
G4GoSceneHandler (G4VGraphicsSystem& system,
const G4String& name = "");
~G4GoScene ();
virtual ~G4GoSceneHandler ();
void AddPrimitive (const G4Polyline&);
void AddPrimitive (const G4Text&);
void AddPrimitive (const G4Circle&);
@@ -59,9 +59,12 @@ public:
private:
void ClearStore ();
void ClearTransientStore();
void RequestPrimitives (const G4VSolid& solid);
G4VGraphicsSystem& fSystem; // Graphics system for this scene.
ONode fRootGoNode; // Root ONode for this scene.
ONode fRootGoNode; // Root ONode for this scene.
ONode fStaticRootGoNode; // For detector.
ONode fTransientRootGoNode; // For event.
static G4int fSceneIdCount; // static counter for Wo scenes.
static G4int fSceneCount; // No. of extanct scenes.
static ONode fGoNode; // Current ONode.
@@ -70,7 +73,7 @@ private:
char* nodeName;
};
inline G4int G4GoScene::GetSceneCount () {
inline G4int G4GoSceneHandler::GetSceneCount () {
return fSceneCount;
}
+5 -5
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Wo.hh,v 2.1 1998/11/06 13:42:01 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4Wo.hh,v 1.4 1999/05/10 15:38:48 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Guy Barrand 04 November 1996
@@ -25,9 +25,9 @@ class G4VInteractorManager;
class G4Wo: public G4VGraphicsSystem {
public:
G4Wo ();
~G4Wo ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
virtual ~G4Wo ();
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
static G4VInteractorManager* GetInteractorManager ();
};
@@ -5,31 +5,31 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4WoView.hh,v 2.1 1998/11/06 13:42:02 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4WoViewer.hh,v 1.3 1999/05/10 15:38:49 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Guy Barrand 04 November 1996
// Wo view - opens window, hard copy, etc.
// Wo viewer - opens window, hard copy, etc.
#ifndef G4WOVIEW_HH
#define G4WOVIEW_HH
#ifndef G4WOVIEWER_HH
#define G4WOVIEWER_HH
#if defined(G4VIS_BUILD_OPACS_DRIVER) || defined(G4VIS_USE_OPACS)
#include <X11/Intrinsic.h>
#include <OCamera.h>
#include "G4VView.hh"
#include "G4VViewer.hh"
#include "globals.hh"
class G4GoScene;
class G4GoSceneHandler;
// Base class for various WoView classes.
class G4WoView: public G4VView {
class G4WoViewer: public G4VViewer {
public:
G4WoView (G4GoScene& scene, const G4String& name = "");
~G4WoView ();
G4WoViewer (G4GoSceneHandler& scene, const G4String& name = "");
virtual ~G4WoViewer ();
void DrawView ();
void ShowView ();
OCamera GetCamera ();
@@ -38,7 +38,7 @@ private:
void FinishView ();
void SetView ();
private:
G4GoScene& fScene; // Graphics Scene for this view.
G4GoSceneHandler& fSceneHandler; // Graphics Scene for this view.
OCamera fGoCamera;
Widget fXoCamera;
Widget fShell;
+5 -5
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Xo.hh,v 2.1 1998/11/06 13:42:04 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4Xo.hh,v 1.4 1999/05/10 15:38:50 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Guy Barrand 04 November 1996
@@ -25,9 +25,9 @@ class G4VInteractorManager;
class G4Xo: public G4VGraphicsSystem {
public:
G4Xo ();
~G4Xo ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
virtual ~G4Xo ();
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
static G4VInteractorManager* GetInteractorManager ();
};
@@ -5,32 +5,32 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4XoView.hh,v 2.1 1998/11/06 13:42:05 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4XoViewer.hh,v 1.3 1999/05/10 15:38:51 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Guy Barrand 04 November 1996
// Wo view - opens window, hard copy, etc.
// Wo viewer - opens window, hard copy, etc.
#ifndef G4XOVIEW_HH
#define G4XOVIEW_HH
#ifndef G4XOVIEWER_HH
#define G4XOVIEWER_HH
#if defined(G4VIS_BUILD_OPACS_DRIVER) || defined(G4VIS_USE_OPACS)
#include <X11/Intrinsic.h>
#include <OCamera.h>
#include "G4VView.hh"
#include "G4VViewer.hh"
#include "globals.hh"
class G4Xo;
class G4GoScene;
class G4GoSceneHandler;
// Base class for various WoView classes.
class G4XoView: public G4VView {
class G4XoViewer: public G4VViewer {
public:
G4XoView (G4GoScene& scene, const G4String& name = "");
~G4XoView ();
G4XoViewer (G4GoSceneHandler& scene, const G4String& name = "");
virtual ~G4XoViewer ();
void DrawView ();
void ShowView ();
OCamera GetCamera ();
@@ -39,7 +39,7 @@ private:
void FinishView ();
void SetView ();
private:
G4GoScene& fScene; // Graphics Scene for this view.
G4GoSceneHandler& fSceneHandler; // Graphics Scene for this view.
OCamera fGoCamera;
Widget fXoCamera;
Widget fShell;