527 {
528 G4String
name, verbosityString;
529 std::istringstream is (newValue);
530 is >>
name >> verbosityString;
533 const G4Scene* currentScene =
fpVisManager -> GetCurrentScene ();
534 G4String currentName;
535 if (currentScene) currentName = currentScene->
GetName();
536
537 G4SceneList& sceneList =
fpVisManager -> SetSceneList ();
538 std::size_t iScene, nScenes = sceneList.size ();
540 for (iScene = 0; iScene < nScenes; ++iScene) {
541 G4Scene* pScene = sceneList [iScene];
542 const G4String& iName = pScene -> GetName ();
543 if (name != "all") {
544 if (name != iName) continue;
545 }
546 found = true;
547 if (iName == currentName) {
549 }
550 else {
552 }
553 G4cout <<
" scene \"" << iName <<
"\"";
555 std::size_t i;
556 G4cout <<
"\n Run-duration models:";
557 std::size_t nRunModels = pScene -> GetRunDurationModelList ().size ();
558 if (nRunModels == 0) {
560 }
561 for (i = 0; i < nRunModels; ++i) {
562 if (pScene -> GetRunDurationModelList()[i].fActive)
564 else G4cout <<
"\n Inactive: ";
565 G4VModel* pModel = pScene -> GetRunDurationModelList()[i].fpModel;
566 G4cout << pModel -> GetGlobalDescription ();
567 }
568 G4cout <<
"\n End-of-event models:";
569 std::size_t nEOEModels = pScene -> GetEndOfEventModelList ().size ();
570 if (nEOEModels == 0) {
572 }
573 for (i = 0; i < nEOEModels; ++i) {
574 if (pScene -> GetEndOfEventModelList()[i].fActive)
576 else G4cout <<
"\n Inactive: ";
577 G4VModel* pModel = pScene -> GetEndOfEventModelList()[i].fpModel;
578 G4cout << pModel -> GetGlobalDescription ();
579 }
580 G4cout <<
"\n End-of-run models:";
581 std::size_t nEORModels = pScene -> GetEndOfRunModelList ().size ();
582 if (nEORModels == 0) {
584 }
585 for (i = 0; i < nEORModels; ++i) {
586 if (pScene -> GetEndOfRunModelList()[i].fActive)
588 else G4cout <<
"\n Inactive: ";
589 G4VModel* pModel = pScene -> GetEndOfRunModelList()[i].fpModel;
590 G4cout << pModel -> GetGlobalDescription ();
591 }
592 }
594 G4cout <<
"\n " << *sceneList [iScene];
595 }
597 }
598 if (!found) {
599 G4warn <<
"No scenes found";
600 if (name != "all") {
602 }
604 }
605}
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
static G4VisManager * fpVisManager
const char * name(G4int ptype)