Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventor.cc,v 1.5 1999/05/12 14:00:58 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventor.cc,v 1.5.8.1 1999/12/07 20:53:36 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifdef G4VIS_BUILD_OI_DRIVER
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventorSceneHandler.cc,v 1.3 1999/05/12 14:01:00 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventorSceneHandler.cc,v 1.5.4.1 1999/12/07 20:53:36 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// Jeff Kallenbach 01 Aug 1996
@@ -69,21 +69,9 @@
typedef SoDetectorTreeKit SoG4DetectorTreeKit;
G4Point3D translation;
inline static unsigned pSolidHashFun
(const G4OpenInventorSceneHandler::G4VSolidPointer& pSolid) {
return (unsigned)pSolid;
}
inline static unsigned pVPhysicalVolumeHashFun
(const G4OpenInventorSceneHandler::G4VPhysicalVolumePointer & volume) {
return (unsigned)(unsigned long)volume;
}
G4OpenInventorSceneHandler::G4OpenInventorSceneHandler (G4OpenInventor& system,
const G4String& name)
:G4VSceneHandler (system, fSceneIdCount++, name)
,fSolidDictionary (pSolidHashFun)
,SeparatorSet(pVPhysicalVolumeHashFun)
,root(NULL)
,staticRoot(NULL)
,transientRoot(NULL)
@@ -496,6 +484,7 @@ void G4OpenInventorSceneHandler::EndModeling () {
}
void G4OpenInventorSceneHandler::ClearStore () {
G4VSceneHandler::ClearStore();
staticRoot->removeAllChildren();
transientRoot->removeAllChildren();
}
@@ -633,7 +622,7 @@ void G4OpenInventorSceneHandler::PreAddThis
// Add the full separator to the dictionary; it is indexed by the
// address of the physical volume!
//
SeparatorSet[fpCurrentPV]=fullSeparator;
SeparatorMap[fpCurrentPV]=fullSeparator;
//
// Find out where to add this volume. This means locating its mother.
@@ -641,8 +630,8 @@ void G4OpenInventorSceneHandler::PreAddThis
//
G4VPhysicalVolume* MotherVolume = fpCurrentPV->GetMother();
while (MotherVolume) {
if (SeparatorSet.contains(MotherVolume)) {
SeparatorSet[MotherVolume]->addChild(g4DetectorTreeKit);
if (SeparatorMap.find(MotherVolume) != SeparatorMap.end()) {
SeparatorMap[MotherVolume]->addChild(g4DetectorTreeKit);
break;
}
else {
@@ -667,8 +656,8 @@ void G4OpenInventorSceneHandler::PreAddThis
currentSeparator = NULL;
G4VPhysicalVolume* MotherVolume = fpCurrentPV->GetMother();
while (MotherVolume) {
if (SeparatorSet.contains(MotherVolume)) {
currentSeparator=SeparatorSet[MotherVolume];
if (SeparatorMap.find(MotherVolume) != SeparatorMap.end()) {
currentSeparator=SeparatorMap[MotherVolume];
break;
}
else {
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventorTransform3D.cc,v 1.2 1999/01/09 16:25:16 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventorTransform3D.cc,v 1.2.8.1 1999/12/07 20:53:37 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// jck 17 Dec 1996
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventorViewer.cc,v 1.2 1999/05/12 14:01:02 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventorViewer.cc,v 1.2.8.1 1999/12/07 20:53:37 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
/*
* jck 05 Feb 1997 - Initial Implementation
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventorWin32.cc,v 1.3 1999/05/10 15:39:01 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventorWin32.cc,v 1.3.8.1 1999/12/07 20:53:38 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// OpenInventor graphics system factory.
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4OpenInventorX.cc,v 1.3 1999/05/10 15:39:02 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4OpenInventorX.cc,v 1.3.8.1 1999/12/07 20:53:38 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// Jeff Kallenbach 01 Aug 1996