#include <G4VisCommandsViewer.hh>
Definition at line 248 of file G4VisCommandsViewer.hh.
◆ G4VisCommandViewerSave() [1/2]
G4VisCommandViewerSave::G4VisCommandViewerSave |
( |
| ) |
|
Definition at line 1313 of file G4VisCommandsViewer.cc.
1317 (
"Write commands that define the current view to file.");
1319 (
"Read them back into the same or any viewer with \"/control/execute <filename>\".");
1320 fpCommand -> SetParameterName (
"file-name", omitable =
true);
1321 fpCommand -> SetDefaultValue (
"G4cout");
G4UIcmdWithAString * fpCommand
◆ ~G4VisCommandViewerSave()
G4VisCommandViewerSave::~G4VisCommandViewerSave |
( |
| ) |
|
|
virtual |
◆ G4VisCommandViewerSave() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 1348 of file G4VisCommandsViewer.cc.
1353 if (!currentViewer) {
1356 "ERROR: G4VisCommandsViewerSave::SetNewValue: no current viewer." 1363 if (!currentScene) {
1366 "ERROR: G4VisCommandsViewerSave::SetNewValue: no current scene." 1373 if (newValue !=
"G4cout") {
1375 std::ifstream ifs(newValue);
1379 "ERROR: G4VisCommandsViewerSave::SetNewValue: File \"" 1380 << newValue <<
"\" already exists." 1390 "ERROR: G4VisCommandsViewerSave::SetNewValue: Trouble opening file \"" 1391 << newValue <<
"\"." 1401 const std::vector<G4ModelingParameters::VisAttributesModifier>*
1404 std::vector<G4ModelingParameters::VisAttributesModifier>::const_iterator i;
1405 for (i = privateVAMs->begin(); i != privateVAMs->end(); ++i) {
1411 if (newValue ==
"G4cout") {
1412 WriteCommands(
G4cout,vp,stp);
1414 WriteCommands(ofs,vp,stp);
1419 G4cout <<
"Viewer \"" << currentViewer -> GetName ()
1420 <<
"\"" <<
" saved to ";
1421 if (newValue ==
"G4cout") {
1424 G4cout <<
"file \'" << newValue <<
"\"." <<
1425 "\n Read view parameters back into this or any viewer with" 1426 "\n \"/control/execute " << newValue <<
"\"";
G4VViewer * GetCurrentViewer() const
G4Scene * GetScene() const
G4VSceneHandler * GetSceneHandler() const
G4GLOB_DLL std::ostream G4cout
const G4Point3D & GetStandardTargetPoint() const
virtual const std::vector< G4ModelingParameters::VisAttributesModifier > * GetPrivateVisAttributesModifiers() const
void AddVisAttributesModifier(const G4ModelingParameters::VisAttributesModifier &)
static Verbosity GetVerbosity()
const G4ViewParameters & GetViewParameters() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
◆ fpCommand
The documentation for this class was generated from the following files: