#include <G4VisCommandsViewer.hh>
Definition at line 224 of file G4VisCommandsViewer.hh.
◆ G4VisCommandViewerRefresh() [1/2]
G4VisCommandViewerRefresh::G4VisCommandViewerRefresh |
( |
| ) |
|
Definition at line 1174 of file G4VisCommandsViewer.cc.
1175 G4bool omitable, currentAsDefault;
1178 (
"Refreshes viewer.");
1180 (
"By default, acts on current viewer. \"/vis/viewer/list\"" 1181 "\nto see possible viewers. Viewer becomes current.");
1182 fpCommand -> SetParameterName (
"viewer-name",
1184 currentAsDefault =
true);
G4UIcmdWithAString * fpCommand
◆ ~G4VisCommandViewerRefresh()
G4VisCommandViewerRefresh::~G4VisCommandViewerRefresh |
( |
| ) |
|
|
virtual |
◆ G4VisCommandViewerRefresh() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 1196 of file G4VisCommandsViewer.cc.
1205 G4cerr <<
"ERROR: Viewer \"" << refreshName <<
"\"" <<
1206 " not found - \"/vis/viewer/list\"\n to see possibilities." 1213 if (!sceneHandler) {
1215 G4cerr <<
"ERROR: Viewer \"" << refreshName <<
"\"" <<
1216 " has no scene handler - report serious bug." 1225 G4cout <<
"NOTE: SceneHandler \"" << sceneHandler->
GetName()
1226 <<
"\", to which viewer \"" << refreshName <<
"\"" <<
1227 "\n is attached, has no scene - \"/vis/scene/create\" and" 1228 " \"/vis/sceneHandler/attach\"" 1229 "\n (or use compound command \"/vis/drawVolume\")." 1235 G4bool successful = scene -> AddWorldIfEmpty (warn);
1239 "WARNING: Scene is empty. Perhaps no geometry exists." 1240 "\n Try /run/initialize." 1251 G4cout <<
"Refreshing viewer \"" << viewer -> GetName () <<
"\"..." 1254 viewer -> SetView ();
1255 viewer -> ClearView ();
1256 viewer -> DrawView ();
1258 G4cout <<
"Viewer \"" << viewer -> GetName () <<
"\"" <<
" refreshed." 1259 "\n (You might also need \"/vis/viewer/update\".)" <<
G4endl;
G4Scene * GetScene() const
void UpdateVisManagerScene(const G4String &sceneName="")
const G4String & GetName() const
const std::vector< Model > & GetRunDurationModelList() const
G4VSceneHandler * GetSceneHandler() const
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
◆ fpCommand
The documentation for this class was generated from the following files: