Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -275,8 +275,7 @@ G4String G4VisCommandReviewKeptEvents::GetCurrentValue (G4UIcommand*)
void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue)
{
static bool reviewing = false;
if (reviewing) {
if (fpVisManager->GetReviewingKeptEvents()) {
G4cout <<
"\"/vis/reviewKeptEvents\" not allowed within an already started review."
"\n No action taken."
@@ -333,9 +332,12 @@ void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue)
G4VVisManager* keepConcreteInstance = fpVisManager->GetConcreteInstance();
fpVisManager->Enable();
// Start on clean view
UImanager->ApplyCommand("/vis/viewer/rebuild");
// Event by event refreshing...
reviewing = true;
fpVisManager->SetReviewingKeptEvents(true);
G4bool currentRefreshAtEndOfEvent = pScene->GetRefreshAtEndOfEvent();
pScene->SetRefreshAtEndOfEvent(true);
if (macroFileName.empty()) {
@@ -400,7 +402,7 @@ void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue)
}
}
pScene->SetRefreshAtEndOfEvent(currentRefreshAtEndOfEvent);
reviewing = false;
fpVisManager->SetReviewingKeptEvents(false);
if (keepConcreteInstance) fpVisManager->Enable();
else fpVisManager->Disable();