Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommands.cc,v 1.1.2.1 2001/06/28 19:16:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VisCommands.cc,v 1.6 2001/09/10 10:54:30 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
// /vis/ top level commands - John Allison 5th February 2001
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "G4VisManager.hh"
|
||||
#include "G4UIcmdWithABool.hh"
|
||||
#include "G4UIcmdWithAnInteger.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
|
||||
////////////// /vis/enable ///////////////////////////////////////
|
||||
@@ -64,6 +64,7 @@ void G4VisCommandEnable::SetNewValue (G4UIcommand* command,
|
||||
if (enable) fpVisManager->Enable(); // Printing is in vis manager.
|
||||
else fpVisManager->Disable(); // Printing is in vis manager.
|
||||
} else fpVisManager->Disable(); // Printing is in vis manager.
|
||||
// Note: Printing is in vis manager.
|
||||
}
|
||||
|
||||
////////////// /vis/verbose ///////////////////////////////////////
|
||||
@@ -71,11 +72,11 @@ void G4VisCommandEnable::SetNewValue (G4UIcommand* command,
|
||||
G4VisCommandVerbose::G4VisCommandVerbose () {
|
||||
G4bool omitable;
|
||||
|
||||
fpCommand = new G4UIcmdWithAnInteger("/vis/verbose", this);
|
||||
fpCommand = new G4UIcmdWithAString("/vis/verbose", this);
|
||||
fpCommand -> SetGuidance("/vis/verbose [<verbosity>]");
|
||||
fpCommand -> SetGuidance("0 = minimum, 10 = maximum verbosity.");
|
||||
fpCommand -> SetGuidance(G4VisManager::VerbosityGuidanceString);
|
||||
fpCommand -> SetParameterName("verbosity", omitable=true);
|
||||
fpCommand -> SetDefaultValue(0);
|
||||
fpCommand -> SetDefaultValue("warnings");
|
||||
}
|
||||
|
||||
G4VisCommandVerbose::~G4VisCommandVerbose () {
|
||||
@@ -88,7 +89,10 @@ G4String G4VisCommandVerbose::GetCurrentValue (G4UIcommand* command) {
|
||||
|
||||
void G4VisCommandVerbose::SetNewValue (G4UIcommand* command,
|
||||
G4String newValue) {
|
||||
G4int verbosity (GetNewIntValue(newValue));
|
||||
G4VisManager::Verbosity verbosity =
|
||||
fpVisManager->GetVerbosityValue(newValue);
|
||||
fpVisManager->SetVerboseLevel(verbosity);
|
||||
G4cout << "Visualization verbosity changed to " << verbosity << G4endl;
|
||||
// Always prints whatever the verbosity...
|
||||
G4cout << "Visualization verbosity changed to "
|
||||
<< G4VisManager::VerbosityString(verbosity) << G4endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user