Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsScene.cc,v 1.42 2005/06/07 17:00:59 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4VisCommandsScene.cc,v 1.44 2005/11/22 17:14:44 allison Exp $
// GEANT4 tag $Name: geant4-08-00 $
// /vis/scene commands - John Allison 9th August 1998
@@ -36,7 +36,7 @@
#include "G4UIcommand.hh"
#include "G4UIcmdWithAString.hh"
#include "G4ios.hh"
#include <strstream>
#include <sstream>
G4VVisCommandScene::G4VVisCommandScene () {}
@@ -66,10 +66,9 @@ G4VisCommandSceneCreate::~G4VisCommandSceneCreate () {
}
G4String G4VisCommandSceneCreate::NextName () {
char nextName [20];
std::ostrstream ost (nextName, 20);
ost << "scene-" << fId << std::ends;
return nextName;
std::ostringstream oss;
oss << "scene-" << fId;
return oss.str();
}
G4String G4VisCommandSceneCreate::GetCurrentValue (G4UIcommand*) {
@@ -143,7 +142,7 @@ void G4VisCommandSceneEndOfEventAction::SetNewValue (G4UIcommand*,
G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity();
G4String action;
std::istrstream is (newValue);
std::istringstream is (newValue);
is >> action;
G4Scene* pScene = fpVisManager->GetCurrentScene();
@@ -219,7 +218,7 @@ void G4VisCommandSceneEndOfRunAction::SetNewValue (G4UIcommand*,
G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity();
G4String action;
std::istrstream is (newValue);
std::istringstream is (newValue);
is >> action;
G4Scene* pScene = fpVisManager->GetCurrentScene();
@@ -289,7 +288,7 @@ G4String G4VisCommandSceneList::GetCurrentValue (G4UIcommand*) {
void G4VisCommandSceneList::SetNewValue (G4UIcommand*, G4String newValue) {
G4String name, verbosityString;
std::istrstream is (newValue);
std::istringstream is (newValue);
is >> name >> verbosityString;
G4VisManager::Verbosity verbosity =
fpVisManager->GetVerbosityValue(verbosityString);
@@ -363,8 +362,8 @@ G4VisCommandSceneNotifyHandlers::G4VisCommandSceneNotifyHandlers () {
"\n The default action \"refresh\" does not issue \"update\" (see"
"\n /vis/viewer/update)."
"\nIf \"flush\" is specified, it issues an \"update\" as well as"
"\n \"refresh\" - useful for refreshing and initiating post-processing"
"\n for graphics systems which need post-processing.");
"\n \"refresh\" - \"update\" and initiates post-processing"
"\n for graphics systems which need it.");
fpCommand -> SetGuidance
("The default for <scene-name> is the current scene name.");
fpCommand -> SetGuidance
@@ -395,7 +394,7 @@ void G4VisCommandSceneNotifyHandlers::SetNewValue (G4UIcommand*,
G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity();
G4String sceneName, refresh_flush;
std::istrstream is (newValue);
std::istringstream is (newValue);
is >> sceneName >> refresh_flush;
G4bool flush(false);
if (refresh_flush(0) == 'f') flush = true;