43 fRefreshAtEndOfEvent(
true),
44 fRefreshAtEndOfRun(
true),
45 fMaxNumberOfKeptEvents(100)
52 std::vector<Model>::const_iterator i;
55 if (pModel -> GetGlobalDescription () ==
56 i->fpModel->GetGlobalDescription ())
break;
60 G4cout <<
"G4Scene::AddRunDurationModel: model \""
61 << pModel -> GetGlobalDescription ()
62 <<
"\"\n is already in the run-duration list of scene \""
72 if (pModel -> GetGlobalTag () ==
73 i->fpModel->GetGlobalTag ())
break;
78 <<
"G4Scene::AddRunDurationModel: The tag \""
80 <<
"\"\n duplicates one already in scene \""
83 "\".\n This may be intended but if not, you may inspect the scene with"
84 "\n \"/vis/scene/list\" and deactivate unwanted models with"
85 "\n \"/vis/scene/activateModel\". Or create a new scene."
102 <<
"\".\n Not included in extent calculation.";
104 (
"G4Scene::CalculateExtent",
116 if (model -> Validate()) {
117 const G4VisExtent& thisExtent = model -> GetTransformedExtent ();
120 PrintInvalidModel(model);
128 if (model -> Validate()) {
129 const G4VisExtent& thisExtent = model -> GetTransformedExtent ();
132 PrintInvalidModel(model);
140 if (model -> Validate()) {
141 const G4VisExtent& thisExtent = model -> GetTransformedExtent ();
144 PrintInvalidModel(model);
153 (
"G4Scene::CalculateExtent",
155 "Scene has no extent. Please activate or add something."
156 "\nThe camera needs to have something to point at!"
157 "\nAdd a volume. (You may need \"/run/initialize\".)"
158 "\nOr use \"/vis/scene/add/extent\"."
159 "\n\"/vis/scene/list\" to see list of models.");
169 -> GetNavigatorForTracking () -> GetWorldVolume ();
172 pWorld -> GetLogicalVolume () -> GetVisAttributes ();
173 if (!pVisAttribs || pVisAttribs -> IsVisible ()) {
176 "Your \"world\" has no vis attributes or is marked as visible."
177 "\n For a better view of the contents, mark the world as"
179 "\n myWorldLogicalVol ->"
180 " SetVisAttributes (G4VisAttributes::GetInvisible());"
189 "G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models."
190 "\n \"world\" has been added.";
201 for (i = 0; i < nModels; i++) {
202 if (pModel -> GetGlobalDescription () ==
207 G4cout <<
"G4Scene::AddEndOfEventModel: a model \""
208 << pModel -> GetGlobalDescription ()
209 <<
"\"\n is already in the end-of-event list of scene \""
221 for (i = 0; i < nModels; i++) {
222 if (pModel -> GetGlobalDescription () ==
227 G4cout <<
"G4Scene::AddEndOfRunModel: a model \""
228 << pModel -> GetGlobalDescription ()
229 <<
"\"\n is already in the end-of-run list of scene \""
245 os <<
"\n Run-duration model list:";
251 else os <<
"\n Inactive: ";
255 os <<
"\n End-of-event model list:";
261 else os <<
"\n Inactive: ";
265 os <<
"\n End-of-run model list:";
271 else os <<
"\n Inactive: ";
275 os <<
"\n Overall extent or bounding box: " << scene.
fExtent;
279 os <<
"\n End of event action set to \"";
282 os <<
"accumulate (maximum number of kept events: ";
284 else os <<
"unlimited";
288 os <<
"\n End of run action set to \"";
290 else os <<
"accumulate";