965 {
966
968
969 G4VSceneHandler* pCurrentSceneHandler =
971 if (!pCurrentSceneHandler) {
973 G4warn <<
"WARNING: No current scene handler."
975 }
976 return;
977 }
978 G4VViewer* pCurrentViewer =
fpVisManager -> GetCurrentViewer();
979 if (!pCurrentViewer) {
981 G4warn <<
"WARNING: No current viewer."
983 }
984 return;
985 }
986 G4Scene* pCurrentScene =
fpVisManager -> GetCurrentScene();
987 if (!pCurrentScene) {
989 G4warn <<
"WARNING: No current scene."
991 }
992 return;
993 }
994
995 G4cout <<
"\n Run-duration models:";
996 std::size_t nRunModels = pCurrentScene -> GetRunDurationModelList ().size ();
997 if (nRunModels == 0) {
999 }
1000 for (std::size_t i = 0; i < nRunModels; ++i) {
1001 if (pCurrentScene -> GetRunDurationModelList()[i].fActive)
1003 else G4cout <<
"\n Inactive: ";
1004 G4VModel* pModel = pCurrentScene -> GetRunDurationModelList()[i].fpModel;
1005 const G4VisExtent& transformedExtent = pModel -> GetExtent();
1006 G4cout << pModel -> GetGlobalDescription ()
1007 << "\n" << transformedExtent;
1009 }
1010 G4cout <<
"\n End-of-event models:";
1011 std::size_t nEOEModels = pCurrentScene -> GetEndOfEventModelList ().size ();
1012 if (nEOEModels == 0) {
1014 }
1015 for (std::size_t i = 0; i < nEOEModels; ++i) {
1016 if (pCurrentScene -> GetEndOfEventModelList()[i].fActive)
1018 else G4cout <<
"\n Inactive: ";
1019 G4VModel* pModel = pCurrentScene -> GetEndOfEventModelList()[i].fpModel;
1020 const G4VisExtent& transformedExtent = pModel -> GetExtent();
1021 G4cout << pModel -> GetGlobalDescription ()
1022 << "\n" << transformedExtent;
1024 }
1025 G4cout <<
"\n End-of-run models:";
1026 std::size_t nEORModels = pCurrentScene -> GetEndOfRunModelList ().size ();
1027 if (nEORModels == 0) {
1029 }
1030 for (std::size_t i = 0; i < nEORModels; ++i) {
1031 if (pCurrentScene -> GetEndOfRunModelList()[i].fActive)
1033 else G4cout <<
"\n Inactive: ";
1034 G4VModel* pModel = pCurrentScene -> GetEndOfRunModelList()[i].fpModel;
1035 const G4VisExtent& transformedExtent = pModel -> GetExtent();
1036 G4cout << pModel -> GetGlobalDescription ()
1037 << "\n" << transformedExtent;
1039 }
1040 G4cout <<
"\n Overall extent:\n";
1043}
G4GLOB_DLL std::ostream G4cout
const G4VisExtent & GetExtent() const
static G4VisManager * fpVisManager
void DrawExtent(const G4VisExtent &)