#include <G4VisCommandsViewer.hh>
Definition at line 185 of file G4VisCommandsViewer.hh.
◆ G4VisCommandViewerList() [1/2]
G4VisCommandViewerList::G4VisCommandViewerList |
( |
| ) |
|
Definition at line 912 of file G4VisCommandsViewer.cc.
915 fpCommand -> SetGuidance (
"Lists viewers(s).");
917 (
"See \"/vis/verbose\" for definition of verbosity.");
921 parameter -> SetDefaultValue (
"all");
925 parameter -> SetDefaultValue (
"warnings");
◆ ~G4VisCommandViewerList()
G4VisCommandViewerList::~G4VisCommandViewerList |
( |
| ) |
|
|
virtual |
◆ G4VisCommandViewerList() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 937 of file G4VisCommandsViewer.cc.
939 std::istringstream is (newValue);
940 is >> name >> verbosityString;
948 currentViewerShortName = currentViewer -> GetShortName ();
951 currentViewerShortName =
"none";
956 G4int nHandlers = sceneHandlerList.size ();
958 G4bool foundCurrent =
false;
959 for (
int iHandler = 0; iHandler < nHandlers; iHandler++) {
961 const G4ViewerList& viewerList = sceneHandler -> GetViewerList ();
962 G4cout <<
"Scene handler \"" << sceneHandler -> GetName ();
963 const G4Scene* pScene = sceneHandler -> GetScene ();
965 G4cout <<
"\", scene \"" << pScene -> GetName () <<
"\":";
967 G4int nViewers = viewerList.size ();
969 G4cout <<
"\n No viewers for this scene handler." <<
G4endl;
972 for (
int iViewer = 0; iViewer < nViewers; iViewer++) {
973 const G4VViewer* thisViewer = viewerList [iViewer];
974 G4String thisName = thisViewer -> GetName ();
975 G4String thisShortName = thisViewer -> GetShortName ();
977 if (thisShortName != shortName)
continue;
981 if (thisShortName == currentViewerShortName) {
988 G4cout <<
" viewer \"" << thisName <<
"\"";
990 G4cout <<
"\n " << *thisViewer;
998 G4cout <<
"No valid current viewer - please create or select one." 1004 if (name !=
"all") {
1005 G4cout <<
" of name \"" << name <<
"\"";
static Verbosity GetVerbosityValue(const G4String &)
G4GLOB_DLL std::ostream G4cout
static G4VisManager * fpVisManager
◆ fpCommand
The documentation for this class was generated from the following files: