Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsViewerSet.cc,v 1.17 2001/11/12 18:22:12 johna Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4VisCommandsViewerSet.cc,v 1.19 2002/05/01 09:55:28 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
// /vis/viewer/set commands - John Allison 16th May 2000
@@ -46,7 +46,8 @@ G4VisCommandsViewerSet::G4VisCommandsViewerSet ():
fpCommandAll = new G4UIcmdWithAString ("/vis/viewer/set/all",this);
fpCommandAll->SetGuidance
("/vis/viewer/set/all <from-viewer-name>"
"\nCopies view parameters from from-viewer to current viewer.");
"\nCopies view parameters (except the autoRefresh status) from"
"\n from-viewer to current viewer.");
fpCommandAll->SetParameterName ("from-viewer-name",omitable = false);
viewerNameCommands.push_back (fpCommandAll);
@@ -54,6 +55,8 @@ G4VisCommandsViewerSet::G4VisCommandsViewerSet ():
("/vis/viewer/set/autoRefresh",this);
fpCommandAutoRefresh->SetGuidance
("/vis/viewer/set/autoRefresh [true|false]");
fpCommandAutoRefresh->SetGuidance
("DEPRECATED COMMAND. Will be removed from next major release.");
fpCommandAutoRefresh->SetGuidance
("View is automatically refreshed after a change of view parameters.");
fpCommandAutoRefresh->SetParameterName("auto-refresh",omitable = true);
@@ -363,7 +366,11 @@ void G4VisCommandsViewerSet::SetNewValue
}
return;
}
// Copy view parameters except for autoRefresh...
G4bool currentAutoRefresh =
currentViewer->GetViewParameters().IsAutoRefresh();
vp = fromViewer->GetViewParameters();
vp.SetAutoRefresh(currentAutoRefresh);
if (verbosity >= G4VisManager::confirmations) {
G4cout << "View parameters of viewer \"" << currentViewer->GetName()
<< "\"\n set to those of viewer \"" << fromViewer->GetName()
@@ -375,6 +382,12 @@ void G4VisCommandsViewerSet::SetNewValue
else if (command == fpCommandAutoRefresh) {
G4bool autoRefresh = GetNewBoolValue(newValue);
vp.SetAutoRefresh(autoRefresh);
if (verbosity >= G4VisManager::warnings) {
G4cout <<
"/vis/viewer/set/autoRefresh is a DEPRECATED COMMAND."
"\n It will be removed from next major release."
<< G4endl;
}
if (verbosity >= G4VisManager::confirmations) {
G4cout << "Views will ";
if (!vp.IsAutoRefresh()) G4cout << "not ";