Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITree.cc,v 1.5.2.1 2001/06/28 19:15:56 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ASCIITree.cc,v 1.7 2001/08/05 19:02:12 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -61,7 +61,7 @@ G4VViewer* G4ASCIITree::CreateViewer (G4VSceneHandler& scene,
|
||||
new G4ASCIITreeViewer ((G4ASCIITreeSceneHandler&) scene, name);
|
||||
if (pView) {
|
||||
if (pView -> GetViewId () < 0) {
|
||||
G4cerr << "G4ASCIITree::CreateViewer: error flagged by negative"
|
||||
G4cout << "G4ASCIITree::CreateViewer: ERROR flagged by negative"
|
||||
" view id in G4ASCIITreeViewer creation."
|
||||
"\n Destroying view and returning null pointer."
|
||||
<< G4endl;
|
||||
@@ -70,7 +70,7 @@ G4VViewer* G4ASCIITree::CreateViewer (G4VSceneHandler& scene,
|
||||
}
|
||||
}
|
||||
else {
|
||||
G4cerr << "G4ASCIITree::CreateViewer: null pointer on"
|
||||
G4cout << "G4ASCIITree::CreateViewer: ERROR: null pointer on"
|
||||
" new G4ASCIITreeViewer." << G4endl;
|
||||
}
|
||||
return pView;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITreeMessenger.cc,v 1.4.2.1 2001/06/28 19:15:56 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ASCIITreeMessenger.cc,v 1.5 2001/07/11 10:09:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITreeSceneHandler.cc,v 1.8.2.1 2001/06/28 19:15:56 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ASCIITreeSceneHandler.cc,v 1.11 2001/08/24 20:41:31 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -70,18 +70,17 @@ void G4ASCIITreeSceneHandler::EndModeling () {
|
||||
G4VTreeSceneHandler::EndModeling (); // To re-use "culling off" code.
|
||||
}
|
||||
|
||||
void G4ASCIITreeSceneHandler::Dump (const G4VSolid& solid) {
|
||||
void G4ASCIITreeSceneHandler::RequestPrimitives(const G4VSolid& solid) {
|
||||
|
||||
const G4ASCIITree* pSystem = (G4ASCIITree*)GetGraphicsSystem();
|
||||
const G4int verbosity = pSystem->GetVerbosity();
|
||||
const G4int detail = verbosity % 10;
|
||||
|
||||
if (verbosity < 10 && fReplicaSet.find(fpCurrentPV) != fReplicaSet.end()) {
|
||||
// Ignore if an already treated replica. (Assumes that the model
|
||||
// which has invoked this function is a G4PhysicalVolumeModel - we
|
||||
// check this by testing fpCurrentPV.)
|
||||
if (fpCurrentPV) {
|
||||
((G4PhysicalVolumeModel*)fpModel)->CurtailDescent();
|
||||
// Ignore if an already treated replica.
|
||||
G4PhysicalVolumeModel* pPVM = fpModel->GetG4PhysicalVolumeModel();
|
||||
if (pPVM) {
|
||||
pPVM->CurtailDescent();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITreeViewer.cc,v 1.3.2.1 2001/06/28 19:15:56 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ASCIITreeViewer.cc,v 1.4 2001/07/11 10:09:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
#include "G4ASCIITreeViewer.hh"
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ G4VViewer* G4GAGTree::CreateViewer (G4VSceneHandler& scene,
|
||||
new G4GAGTreeViewer ((G4GAGTreeSceneHandler&) scene, name);
|
||||
if (pView) {
|
||||
if (pView -> GetViewId () < 0) {
|
||||
G4cerr << "G4GAGTree::CreateViewer: error flagged by negative"
|
||||
G4cout << "G4GAGTree::CreateViewer: ERROR flagged by negative"
|
||||
" view id in G4GAGTreeViewer creation."
|
||||
"\n Destroying view and returning null pointer."
|
||||
<< G4endl;
|
||||
@@ -63,7 +63,7 @@ G4VViewer* G4GAGTree::CreateViewer (G4VSceneHandler& scene,
|
||||
}
|
||||
}
|
||||
else {
|
||||
G4cerr << "G4GAGTree::CreateViewer: null pointer on"
|
||||
G4cout << "G4GAGTree::CreateViewer: ERROR: null pointer on"
|
||||
" new G4GAGTreeViewer." << G4endl;
|
||||
}
|
||||
return pView;
|
||||
|
||||
@@ -131,7 +131,7 @@ void G4GAGTreeSceneHandler::EndModeling ()
|
||||
G4VTreeSceneHandler::EndModeling ();
|
||||
}
|
||||
|
||||
void G4GAGTreeSceneHandler::Dump (const G4VSolid& solid)
|
||||
void G4GAGTreeSceneHandler::RequestPrimitives (const G4VSolid& solid)
|
||||
{
|
||||
//////////////////////////////
|
||||
G4String cur_abs_pv_name ;
|
||||
@@ -144,11 +144,10 @@ void G4GAGTreeSceneHandler::Dump (const G4VSolid& solid)
|
||||
const G4int detail = verbosity % 10;
|
||||
|
||||
if (verbosity < 10 && fReplicaSet.find(fpCurrentPV) != fReplicaSet.end()) {
|
||||
// Ignore if an already treated replica. (Assumes that the model
|
||||
// which has invoked this function is a G4PhysicalVolumeModel - we
|
||||
// check this by testing fpCurrentPV.)
|
||||
if (fpCurrentPV) {
|
||||
((G4PhysicalVolumeModel*)fpModel)->CurtailDescent();
|
||||
// Ignore if an already treated replica.
|
||||
G4PhysicalVolumeModel* pPVM = fpModel->GetG4PhysicalVolumeModel();
|
||||
if (pPVM) {
|
||||
pPVM->CurtailDescent();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VTree.cc,v 1.3.2.1 2001/06/28 19:15:57 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VTree.cc,v 1.4 2001/07/11 10:09:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VTreeSceneHandler.cc,v 1.4.2.1 2001/06/28 19:15:57 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VTreeSceneHandler.cc,v 1.6 2001/07/25 21:02:28 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -71,15 +71,14 @@ void G4VTreeSceneHandler::BeginModeling() {
|
||||
if (fpOriginalMP) {
|
||||
fpNonCullingMP = new G4ModelingParameters(*fpOriginalMP);
|
||||
fpNonCullingMP->SetCulling(false);
|
||||
((G4VModel*)fpModel)->SetModelingParameters(fpNonCullingMP);
|
||||
// Note the deliberate casting away of const.
|
||||
fpModel->SetModelingParameters(fpNonCullingMP);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void G4VTreeSceneHandler::EndModeling() {
|
||||
if (fpModel && fpOriginalMP) {
|
||||
((G4VModel*)fpModel)->SetModelingParameters(fpOriginalMP);
|
||||
fpModel->SetModelingParameters(fpOriginalMP);
|
||||
delete fpNonCullingMP;
|
||||
}
|
||||
G4VSceneHandler::EndModeling(); // Required: see G4VSceneHandler.hh.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VTreeViewer.cc,v 1.3.2.1 2001/06/28 19:15:57 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VTreeViewer.cc,v 1.4 2001/07/11 10:09:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
#include "G4VTreeViewer.hh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user