Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommandsCompound.cc,v 1.28 2005/03/03 16:13:08 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4VisCommandsCompound.cc,v 1.30 2005/11/13 15:34:41 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
|
||||
// Compound /vis/ commands - John Allison 15th May 2000
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
////////////// /vis/drawTree ///////////////////////////////////////
|
||||
|
||||
G4VisCommandDrawTree::G4VisCommandDrawTree() {
|
||||
@@ -57,7 +59,7 @@ G4VisCommandDrawTree::~G4VisCommandDrawTree() {
|
||||
void G4VisCommandDrawTree::SetNewValue(G4UIcommand*, G4String newValue) {
|
||||
|
||||
G4String pvname, system;
|
||||
std::istrstream is(newValue);
|
||||
std::istringstream is(newValue);
|
||||
is >> pvname >> system;
|
||||
|
||||
G4UImanager* UImanager = G4UImanager::GetUIpointer();
|
||||
@@ -133,7 +135,7 @@ void G4VisCommandDrawView::SetNewValue(G4UIcommand*, G4String newValue) {
|
||||
G4String zoomFactor;
|
||||
G4String dolly;
|
||||
G4String dollyUnit;
|
||||
std::istrstream is(newValue);
|
||||
std::istringstream is(newValue);
|
||||
is >> thetaDeg >> phiDeg >> panRight >> panUp >> panUnit
|
||||
>> zoomFactor >> dolly >> dollyUnit;
|
||||
|
||||
@@ -227,9 +229,11 @@ G4VisCommandOpen::G4VisCommandOpen() {
|
||||
candidates = candidates.strip();
|
||||
parameter->SetParameterCandidates(candidates);
|
||||
fpCommand->SetParameter(parameter);
|
||||
parameter = new G4UIparameter("window-size-hint", 'i', omitable = true);
|
||||
parameter->SetGuidance("pixels");
|
||||
parameter->SetDefaultValue(600);
|
||||
parameter = new G4UIparameter("window-size-hint", 's', omitable = true);
|
||||
parameter->SetGuidance
|
||||
("integer (pixels) for square window placed by window manager or"
|
||||
" X-Windows-type geometry string, e.g. 600x600-100+100");
|
||||
parameter->SetDefaultValue("600");
|
||||
fpCommand->SetParameter(parameter);
|
||||
}
|
||||
|
||||
@@ -239,7 +243,7 @@ G4VisCommandOpen::~G4VisCommandOpen() {
|
||||
|
||||
void G4VisCommandOpen::SetNewValue (G4UIcommand*, G4String newValue) {
|
||||
G4String systemName, windowSizeHint;
|
||||
std::istrstream is(newValue);
|
||||
std::istringstream is(newValue);
|
||||
is >> systemName >> windowSizeHint;
|
||||
G4UImanager* UImanager = G4UImanager::GetUIpointer();
|
||||
G4int keepVerbose = UImanager->GetVerboseLevel();
|
||||
|
||||
Reference in New Issue
Block a user