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
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.11 2004/04/27 09:01:40 gcosmo Exp $
$Id: History,v 1.12 2005/05/27 13:35:52 allison Exp $
-------------------------------------------------------------------
=========================================================
@@ -20,6 +20,9 @@ committal in the CVS repository !
History file for visualization/VRML sub-category
------------------------------------------------
27th May 2005 John Allison (VRML-V07-00-00)
- Fixed bug introduced in ClearTransientStore.
19th April 2004 Gabriele Cosmo (VRML-V06-01-00)
- Fixed typo in printout in G4VRML1FileSceneHandler.cc and
G4VRML2FileSceneHandler.cc.
@@ -22,7 +22,7 @@
//
//
// $Id: g4mini.java,v 1.3 2001/07/11 10:09:09 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
import java.io.*;
import java.net.*;
@@ -22,7 +22,7 @@
//
//
// $Id: g4vrmlview.java,v 1.3 2001/07/11 10:09:09 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
import java.io.*;
import java.net.*;
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: FRClient.h,v 1.5 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// FRClient.h
// FukuiRenderer Client
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRClient.hh,v 1.7 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4FRClient.hh
// Yasuhide Sawada and Satoshi Tanaka
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML1.hh,v 1.9 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1.hh
// Yasuhide Sawada and Satoshi Tanaka
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML1File.hh,v 1.9 2001/09/18 07:53:08 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1File.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1FileSceneHandler.hh,v 1.13 2003/06/16 17:13:54 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1FileSceneHandler.hh,v 1.15 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1FileSceneHandler.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -47,26 +47,26 @@ class G4VRML1FileSceneHandler: public G4VSceneHandler {
public:
G4VRML1FileSceneHandler(G4VRML1File& system, const G4String& name = "");
virtual ~G4VRML1FileSceneHandler();
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& polycone ) {
G4VSceneHandler::AddThis (polycone);
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& polycone ) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis(const G4VSolid&);
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid(const G4VSolid&);
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void BeginPrimitives(const G4Transform3D& objectTransformation);
@@ -91,8 +91,6 @@ public:
void VRMLBeginModeling();
void VRMLEndModeling();
static G4int GetSceneCount() { return fSceneCount; }
void connectPort();
void closePort();
@@ -126,7 +124,6 @@ private:
G4int fMaxFileNum ;
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
};
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML1FileViewer.hh,v 1.7 2001/09/18 07:53:08 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1FileViewer.hh
// Satoshi Tanaka and Yasuhide Sawada
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1SceneHandler.hh,v 1.11 2002/12/11 15:57:55 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1SceneHandler.hh,v 1.13 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1SceneHandler.hh
// Yasuhide Sawada & Satoshi Tanaka
@@ -53,26 +53,26 @@ class G4VRML1SceneHandler: public G4VSceneHandler {
public:
G4VRML1SceneHandler(G4VRML1& system, const G4String& name = "");
virtual ~G4VRML1SceneHandler();
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& polycone ) {
G4VSceneHandler::AddThis (polycone);
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& polycone ) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis(const G4VSolid&);
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid(const G4VSolid&);
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void BeginPrimitives(const G4Transform3D& objectTransformation);
@@ -97,8 +97,6 @@ public:
void VRMLBeginModeling();
void VRMLEndModeling();
static G4int GetSceneCount() { return fSceneCount; }
void connectPort(int max_trial = MAX_CONNECTION_TRIAL );
void closePort();
@@ -123,7 +121,6 @@ private:
G4FRClient fDest ;
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
};
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML1Viewer.hh,v 1.7 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1Viewer.hh
// Satoshi Tanaka & Yasuhide Sawada
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML2.hh,v 1.9 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2.hh
// Satoshi Tanaka and Yasuhide Sawada
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML2File.hh,v 1.10 2002/06/23 03:31:42 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2File.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2FileSceneHandler.hh,v 1.12 2003/06/16 17:13:55 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML2FileSceneHandler.hh,v 1.14 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2FileSceneHandler.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -47,26 +47,26 @@ class G4VRML2FileSceneHandler: public G4VSceneHandler {
public:
G4VRML2FileSceneHandler(G4VRML2File& system, const G4String& name = "");
virtual ~G4VRML2FileSceneHandler();
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& polycone ) {
G4VSceneHandler::AddThis (polycone);
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& polycone ) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis(const G4VSolid&);
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid(const G4VSolid&);
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void BeginPrimitives(const G4Transform3D& objectTransformation);
@@ -88,8 +88,6 @@ public:
void BeginModeling();
void EndModeling();
static G4int GetSceneCount() { return fSceneCount; }
void VRMLBeginModeling();
void VRMLEndModeling();
@@ -133,7 +131,6 @@ private:
G4double fPVTransparency ;
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
public:
std::ofstream fDest ;
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML2FileViewer.hh,v 1.9 2003/06/16 17:13:56 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2FileViewer.hh
// Satoshi Tanaka and Yasuhide Sawada
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2SceneHandler.hh,v 1.10 2002/12/11 15:57:56 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML2SceneHandler.hh,v 1.12 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2SceneHandler.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -51,26 +51,26 @@ class G4VRML2SceneHandler: public G4VSceneHandler {
public:
G4VRML2SceneHandler(G4VRML2& system, const G4String& name = "");
virtual ~G4VRML2SceneHandler();
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& polycone ) {
G4VSceneHandler::AddThis (polycone);
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& polycone ) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis(const G4VSolid&);
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid(const G4VSolid&);
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void BeginPrimitives(const G4Transform3D& objectTransformation);
@@ -92,8 +92,6 @@ public:
void BeginModeling();
void EndModeling();
static G4int GetSceneCount() { return fSceneCount; }
void VRMLBeginModeling();
void VRMLEndModeling();
@@ -129,7 +127,6 @@ private:
G4double fPVTransparency ;
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
public:
G4FRClient fDest ;
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML2Viewer.hh,v 1.7 2002/06/23 03:31:43 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2Viewer.hh
// Satoshi Tanaka & Yasuhide Sawada
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRMLNetConfig.hh,v 1.6 2002/06/23 03:31:43 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRMLNetConfig.hh
// Satoshi Tanaka
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: FRClient.cc,v 1.6 2002/06/23 03:31:50 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// FRClient.cc
// FukuiRenderer Client
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRClient.cc,v 1.7 2002/06/23 03:31:50 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4FRClient.cc
// Yasuhide Sawada & Satoshi Tanaka
+2 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1.cc,v 1.8 2002/06/23 03:31:50 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1.cc,v 1.9 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1.cc
// Yasuhide Sawada & Satoshi Tanaka
@@ -75,9 +75,6 @@ G4VSceneHandler* G4VRML1::CreateSceneHandler(const G4String& name)
p = new G4VRML1SceneHandler(*this, name);
G4cout << G4VRML1SceneHandler::GetSceneCount()
<< " " << fName << " scene handlers extanct." << G4endl;
return p;
}
+2 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1File.cc,v 1.8 2001/09/18 07:53:15 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1File.cc,v 1.9 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1File.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -55,9 +55,6 @@ G4VSceneHandler* G4VRML1File::CreateSceneHandler(const G4String& name)
p = new G4VRML1FileSceneHandler(*this, name);
G4cout << G4VRML1FileSceneHandler::GetSceneCount()
<< " " << fName << " scene handlers extanct." << G4endl;
return p;
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1FileSceneHandler.cc,v 1.9 2004/04/19 09:08:37 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1FileSceneHandler.cc,v 1.10 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1FileSceneHandler.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -74,7 +74,6 @@ G4VRML1FileSceneHandler::G4VRML1FileSceneHandler(G4VRML1File& system, const G4St
fDest() ,
fFlagDestOpen( false )
{
fSceneCount++;
fCurrentDEF = "";
strcpy(fVRMLFileName, "");
@@ -103,7 +102,6 @@ G4VRML1FileSceneHandler::~G4VRML1FileSceneHandler()
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4VRML1FileSceneHandler" << G4endl;
#endif
fSceneCount--;
}
@@ -203,4 +201,3 @@ void G4VRML1FileSceneHandler::closePort()
}
G4int G4VRML1FileSceneHandler::fSceneIdCount = 0;
G4int G4VRML1FileSceneHandler::fSceneCount = 0;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1FileViewer.cc,v 1.7 2001/09/18 07:53:15 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1FileViewer.cc,v 1.8 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRMLView.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -36,9 +36,12 @@
#include "G4VRML1File.hh"
#include "G4ios.hh"
G4VRML1FileViewer::G4VRML1FileViewer(G4VRML1FileSceneHandler& scene,
G4VRML1FileViewer::G4VRML1FileViewer(G4VRML1FileSceneHandler& sceneHandler,
const G4String& name) :
G4VViewer(scene, scene.IncrementViewCount(), name), fSceneHandler(scene)
G4VViewer(sceneHandler,
sceneHandler.IncrementViewCount(),
name),
fSceneHandler(sceneHandler)
{}
G4VRML1FileViewer::~G4VRML1FileViewer()
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1SceneHandler.cc,v 1.8 2003/06/16 17:13:58 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1SceneHandler.cc,v 1.9 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1SceneHandler.cc
// Yasuhide Sawada and Satoshi Tanaka
@@ -70,7 +70,6 @@ G4VRML1SceneHandler::G4VRML1SceneHandler(G4VRML1& system, const G4String& name)
fSystem(system),
fDest()
{
fSceneCount++;
fCurrentDEF = "";
}
@@ -80,7 +79,6 @@ G4VRML1SceneHandler::~G4VRML1SceneHandler()
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4VRML1SceneHandler" << G4endl;
#endif
fSceneCount--;
}
@@ -129,7 +127,6 @@ void G4VRML1SceneHandler::closePort()
G4int G4VRML1SceneHandler::fSceneIdCount = 0;
G4int G4VRML1SceneHandler::fSceneCount = 0;
#endif
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML1SceneHandlerFunc.icc,v 1.12 2003/05/30 13:01:24 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML1SceneHandlerFunc.icc,v 1.15 2005/05/27 13:35:52 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML1SceneHandlerFunc.icc
// Satoshi Tanaka & Yasuhide Sawada
@@ -37,56 +37,56 @@
// End of MACRO
void G4VRML1SCENEHANDLER::AddThis(const G4Trd& trd)
void G4VRML1SCENEHANDLER::AddSolid(const G4Trd& trd)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis trd" << "\n" ;
G4cerr << "***** AddSolid trd" << "\n" ;
#endif
VRMLBeginModeling () ;
ADDTHIS_WITH_NAME(trd)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Trap& trap)
void G4VRML1SCENEHANDLER::AddSolid(const G4Trap& trap)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis trap" << "\n" ;
G4cerr << "***** AddSolid trap" << "\n" ;
#endif
VRMLBeginModeling () ;
ADDTHIS_WITH_NAME(trap)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Para& para)
void G4VRML1SCENEHANDLER::AddSolid(const G4Para& para)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis para" << "\n" ;
G4cerr << "***** AddSolid para" << "\n" ;
#endif
VRMLBeginModeling () ;
ADDTHIS_WITH_NAME(para)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Torus& torus )
void G4VRML1SCENEHANDLER::AddSolid(const G4Torus& torus )
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis torus" << "\n" ;
G4cerr << "***** AddSolid torus" << "\n" ;
#endif
VRMLBeginModeling () ;
ADDTHIS_WITH_NAME(torus)
}
void G4VRML1SCENEHANDLER::AddThis(const G4VSolid& vsolid)
void G4VRML1SCENEHANDLER::AddSolid(const G4VSolid& vsolid)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis vsolid" << "\n" ;
G4cerr << "***** AddSolid vsolid" << "\n" ;
#endif
VRMLBeginModeling () ;
ADDTHIS_WITH_NAME(vsolid)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Tubs& tubs)
void G4VRML1SCENEHANDLER::AddSolid(const G4Tubs& tubs)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis tubs" << "\n" ;
G4cerr << "***** AddSolid tubs" << "\n" ;
#endif
VRMLBeginModeling () ;
@@ -120,10 +120,10 @@ void G4VRML1SCENEHANDLER::AddThis(const G4Tubs& tubs)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Cons& cons)
void G4VRML1SCENEHANDLER::AddSolid(const G4Cons& cons)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis cons" << "\n" ;
G4cerr << "***** AddSolid cons" << "\n" ;
#endif
VRMLBeginModeling () ;
@@ -159,10 +159,10 @@ void G4VRML1SCENEHANDLER::AddThis(const G4Cons& cons)
fCurrentDEF = "";
}
void G4VRML1SCENEHANDLER::AddThis(const G4Box& box)
void G4VRML1SCENEHANDLER::AddSolid(const G4Box& box)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis box" << "\n" ;
G4cerr << "***** AddSolid box" << "\n" ;
#endif
VRMLBeginModeling () ;
@@ -187,10 +187,10 @@ void G4VRML1SCENEHANDLER::AddThis(const G4Box& box)
}
void G4VRML1SCENEHANDLER::AddThis(const G4Sphere& sphere)
void G4VRML1SCENEHANDLER::AddSolid(const G4Sphere& sphere)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis sphere" << "\n" ;
G4cerr << "***** AddSolid sphere" << "\n" ;
#endif
VRMLBeginModeling () ;
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRML1Viewer.cc,v 1.7 2002/06/23 03:31:50 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRMLView.cc
// Yasuhide Sawada & Satoshi Tanaka
+2 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2.cc,v 1.8 2002/06/23 03:31:50 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML2.cc,v 1.9 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -75,9 +75,6 @@ G4VSceneHandler* G4VRML2::CreateSceneHandler(const G4String& name)
p = new G4VRML2SceneHandler(*this, name);
G4cout << G4VRML2SceneHandler::GetSceneCount()
<< " " << fName << " scene handlers extanct." << G4endl;
return p;
}
+2 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2File.cc,v 1.8 2001/09/18 07:53:16 stanaka Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VRML2File.cc,v 1.9 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2File.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -55,9 +55,6 @@ G4VSceneHandler* G4VRML2File::CreateSceneHandler(const G4String& name)
p = new G4VRML2FileSceneHandler(*this, name);
G4cout << G4VRML2FileSceneHandler::GetSceneCount()
<< " " << fName << " scene handlers extanct." << G4endl;
return p;
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2FileSceneHandler.cc,v 1.11 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// $Id: G4VRML2FileSceneHandler.cc,v 1.12 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2FileSceneHandler.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -74,8 +74,6 @@ G4VRML2FileSceneHandler::G4VRML2FileSceneHandler(G4VRML2File& system, const G4St
fPVPickable ( false ),
fDest()
{
fSceneCount++;
// output file name
strcpy(fVRMLFileName, "");
@@ -119,7 +117,6 @@ G4VRML2FileSceneHandler::~G4VRML2FileSceneHandler()
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4VRML2FileSceneHandler" << G4endl;
#endif
fSceneCount--;
}
@@ -218,4 +215,3 @@ void G4VRML2FileSceneHandler::closePort()
}
G4int G4VRML2FileSceneHandler::fSceneIdCount = 0;
G4int G4VRML2FileSceneHandler::fSceneCount = 0;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2FileViewer.cc,v 1.9 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// $Id: G4VRML2FileViewer.cc,v 1.10 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2FileViewer.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -38,11 +38,13 @@
#include "G4VRML2File.hh"
#include "G4ios.hh"
G4VRML2FileViewer::G4VRML2FileViewer(G4VRML2FileSceneHandler& scene,
G4VRML2FileViewer::G4VRML2FileViewer(G4VRML2FileSceneHandler& sceneHandler,
const G4String& name) :
G4VViewer(scene, scene.IncrementViewCount(), name),
fSceneHandler(scene),
fDest(scene.fDest)
G4VViewer(sceneHandler,
sceneHandler.IncrementViewCount(),
name),
fSceneHandler(sceneHandler),
fDest(sceneHandler.fDest)
{
fViewHalfAngle = 0.5 * 0.785398 ; // 0.5 * 45*deg
fsin_VHA = std::sin ( fViewHalfAngle ) ;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2SceneHandler.cc,v 1.10 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// $Id: G4VRML2SceneHandler.cc,v 1.11 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2SceneHandler.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -70,8 +70,6 @@ G4VRML2SceneHandler::G4VRML2SceneHandler(G4VRML2& system, const G4String& name)
fPVPickable ( false ),
fDest()
{
fSceneCount++;
// PV name pickability
if( getenv( "G4VRML_PV_PICKABLE" ) != NULL ) {
@@ -93,7 +91,6 @@ G4VRML2SceneHandler::~G4VRML2SceneHandler()
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4VRML2SceneHandler" << G4endl;
#endif
fSceneCount--;
}
@@ -142,7 +139,6 @@ void G4VRML2SceneHandler::closePort()
G4int G4VRML2SceneHandler::fSceneIdCount = 0;
G4int G4VRML2SceneHandler::fSceneCount = 0;
#endif
#endif //WIN32
@@ -21,97 +21,97 @@
// ********************************************************************
//
//
// $Id: G4VRML2SceneHandlerFunc.icc,v 1.15 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// $Id: G4VRML2SceneHandlerFunc.icc,v 1.18 2005/05/27 13:35:52 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2SceneHandlerFunc.icc
// Satoshi Tanaka & Yasuhide Sawada
//#define DEBUG_SCENE_FUNC
void G4VRML2SCENEHANDLER::AddThis(const G4Trd& trd)
void G4VRML2SCENEHANDLER::AddSolid(const G4Trd& trd)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis trd" << "\n" ;
G4cerr << "***** AddSolid trd" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(trd);
G4VSceneHandler::AddSolid(trd);
}
void G4VRML2SCENEHANDLER::AddThis(const G4Trap& trap)
void G4VRML2SCENEHANDLER::AddSolid(const G4Trap& trap)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis trap" << "\n" ;
G4cerr << "***** AddSolid trap" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(trap);
G4VSceneHandler::AddSolid(trap);
}
void G4VRML2SCENEHANDLER::AddThis(const G4Para& para)
void G4VRML2SCENEHANDLER::AddSolid(const G4Para& para)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis para" << "\n" ;
G4cerr << "***** AddSolid para" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(para);
G4VSceneHandler::AddSolid(para);
}
void G4VRML2SCENEHANDLER::AddThis(const G4Torus& torus )
void G4VRML2SCENEHANDLER::AddSolid(const G4Torus& torus )
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis torus" << "\n" ;
G4cerr << "***** AddSolid torus" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(torus);
G4VSceneHandler::AddSolid(torus);
}
void G4VRML2SCENEHANDLER::AddThis(const G4VSolid& vsolid)
void G4VRML2SCENEHANDLER::AddSolid(const G4VSolid& vsolid)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis vsolid" << "\n" ;
G4cerr << "***** AddSolid vsolid" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(vsolid);
G4VSceneHandler::AddSolid(vsolid);
}
void G4VRML2SCENEHANDLER::AddThis(const G4Tubs& tubs)
void G4VRML2SCENEHANDLER::AddSolid(const G4Tubs& tubs)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis tubs" << "\n" ;
G4cerr << "***** AddSolid tubs" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(tubs) ;
G4VSceneHandler::AddSolid(tubs) ;
}
void G4VRML2SCENEHANDLER::AddThis(const G4Cons& cons)
void G4VRML2SCENEHANDLER::AddSolid(const G4Cons& cons)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis cons" << "\n" ;
G4cerr << "***** AddSolid cons" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(cons) ;
G4VSceneHandler::AddSolid(cons) ;
}
void G4VRML2SCENEHANDLER::AddThis(const G4Box& box)
void G4VRML2SCENEHANDLER::AddSolid(const G4Box& box)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis box" << "\n" ;
G4cerr << "***** AddSolid box" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(box) ;
G4VSceneHandler::AddSolid(box) ;
}
void G4VRML2SCENEHANDLER::AddThis(const G4Sphere& sphere)
void G4VRML2SCENEHANDLER::AddSolid(const G4Sphere& sphere)
{
#if defined DEBUG_SCENE_FUNC
G4cerr << "***** AddThis sphere" << "\n" ;
G4cerr << "***** AddSolid sphere" << "\n" ;
#endif
VRMLBeginModeling () ;
G4VSceneHandler::AddThis(sphere) ;
G4VSceneHandler::AddSolid(sphere) ;
}
void G4VRML2SCENEHANDLER::AddPrimitive(const G4Polyline& polyline)
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VRML2Viewer.cc,v 1.10 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// $Id: G4VRML2Viewer.cc,v 1.11 2005/06/02 17:43:47 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// G4VRML2Viewer.cc
// Satoshi Tanaka & Yasuhide Sawada
@@ -44,10 +44,12 @@
#include "G4VRML2.hh"
#include "G4ios.hh"
G4VRML2Viewer::G4VRML2Viewer(G4VRML2SceneHandler& scene, const G4String& name) :
G4VViewer(scene, scene.IncrementViewCount(), name),
fSceneHandler(scene),
fDest(scene.fDest)
G4VRML2Viewer::G4VRML2Viewer(G4VRML2SceneHandler& sceneHandler, const G4String& name) :
G4VViewer(sceneHandler,
sceneHandler.IncrementViewCount(),
name),
fSceneHandler(sceneHandler),
fDest(sceneHandler.fDest)
{
fViewHalfAngle = 0.5 * 0.785398 ; // 0.5 * 45*deg
fsin_VHA = std::sin ( fViewHalfAngle ) ;