Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -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.hh,v 1.4 1999/05/10 15:38:53 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventor.hh,v 1.4.8.1 1999/12/07 20:53:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// Guy Barrand 26 Mar 1998.
|
||||
// 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: G4OpenInventorSceneHandler.hh,v 1.3 1999/05/12 14:00:44 barrand Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorSceneHandler.hh,v 1.6.4.1 1999/12/07 20:53:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// J Kallenbach 27th Aug 1996
|
||||
@@ -18,8 +18,7 @@
|
||||
|
||||
#ifdef G4VIS_BUILD_OI_DRIVER
|
||||
|
||||
#include <rw/tvhdict.h>
|
||||
#include <rw/tphdict.h>
|
||||
#include "g4std/map"
|
||||
|
||||
#include "G4VSceneHandler.hh"
|
||||
|
||||
@@ -32,9 +31,7 @@ class G4OpenInventorSceneHandler: public G4VSceneHandler {
|
||||
friend class G4OpenInventorViewer;
|
||||
|
||||
public:
|
||||
typedef unsigned long G4VSolidPointer;
|
||||
typedef const G4VPhysicalVolume* G4VPhysicalVolumePointer;
|
||||
typedef SoSeparator* SoSeparatorPointer;
|
||||
|
||||
G4OpenInventorSceneHandler (G4OpenInventor& system, const G4String& name = "");
|
||||
virtual ~G4OpenInventorSceneHandler ();
|
||||
void AddPrimitive (const G4Polyline& line);
|
||||
@@ -79,8 +76,8 @@ private:
|
||||
// Stop-gap solution of structure re-use.
|
||||
// A proper implementation would use geometry hierarchy.
|
||||
//
|
||||
RWTValHashDictionary<G4VSolidPointer, G4int> fSolidDictionary;
|
||||
RWTValHashDictionary<G4VPhysicalVolumePointer, SoSeparatorPointer> SeparatorSet;
|
||||
G4std::map <const G4VPhysicalVolume*, SoSeparator*,
|
||||
less <const G4VPhysicalVolume*> > SeparatorMap;
|
||||
SoSeparator *root;
|
||||
SoSeparator *staticRoot;
|
||||
SoSeparator *transientRoot;
|
||||
|
||||
@@ -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.icc,v 1.1 1999/01/09 16:25:11 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorSceneHandler.icc,v 1.1.8.1 1999/12/07 20:53:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// J Kallenbach 27th Aug 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: G4OpenInventorTransform3D.hh,v 1.2 1999/01/09 16:25:11 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorTransform3D.hh,v 1.2.8.1 1999/12/07 20:53:35 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.hh,v 1.4 1999/05/12 14:00:45 barrand Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorViewer.hh,v 1.5.2.1 1999/12/07 20:53:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Jeff Kallenbach 01 Aug 1996
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#ifdef G4VIS_BUILD_OI_DRIVER
|
||||
|
||||
#include <rw/tvordvec.h>
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
#include <Inventor/Xt/SoXt.h>
|
||||
|
||||
|
||||
@@ -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.hh,v 1.3 1999/05/10 15:38:57 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorWin32.hh,v 1.3.8.1 1999/12/07 20:53:35 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.hh,v 1.3 1999/05/10 15:38:58 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4OpenInventorX.hh,v 1.3.8.1 1999/12/07 20:53:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 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: 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
|
||||
|
||||
Reference in New Issue
Block a user