43 fRefreshAtEndOfEvent(true),
44 fRefreshAtEndOfRun(true),
45 fMaxNumberOfKeptEvents(100)
55 <<
"\".\n Not included in extent calculation.";
57 (
"G4Scene::CalculateExtent",
69 if (model -> Validate()) {
83 if (model -> Validate()) {
97 if (model -> Validate()) {
112 (
"G4Scene::CalculateExtent",
114 "Scene has no extent. Please activate or add something."
115 "\nThe camera needs to have something to point at!"
116 "\nAdd a volume. (You may need \"/run/initialize\".)"
117 "\nOr use \"/vis/scene/add/extent\"."
118 "\n\"/vis/scene/list\" to see list of models.");
128 -> GetNavigatorForTracking () -> GetWorldVolume ();
131 pWorld -> GetLogicalVolume () -> GetVisAttributes ();
132 if (!pVisAttribs || pVisAttribs -> IsVisible ()) {
135 "Your \"world\" has no vis attributes or is marked as visible."
136 "\n For a better view of the contents, mark the world as"
138 "\n myWorldLogicalVol ->"
139 " SetVisAttributes (G4VisAttributes::GetInvisible());"
148 "G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models."
149 "\n \"world\" has been added.";
160 std::vector<Model>::const_iterator i;
163 if (pModel -> GetGlobalDescription () ==
168 G4cout <<
"G4Scene::AddRunDurationModel: model \""
169 << pModel -> GetGlobalDescription ()
170 <<
"\"\n is already in the run-duration list of scene \""
184 for (i = 0; i < nModels; i++) {
185 if (pModel -> GetGlobalDescription () ==
190 G4cout <<
"G4Scene::AddEndOfEventModel: a model \""
191 << pModel -> GetGlobalDescription ()
192 <<
"\"\n is already in the end-of-event list of scene \""
204 for (i = 0; i < nModels; i++) {
205 if (pModel -> GetGlobalDescription () ==
210 G4cout <<
"G4Scene::AddEndOfRunModel: a model \""
211 << pModel -> GetGlobalDescription ()
212 <<
"\"\n is already in the end-of-run list of scene \""
228 os <<
"\n Run-duration model list:";
234 else os <<
"\n Inactive: ";
238 os <<
"\n End-of-event model list:";
244 else os <<
"\n Inactive: ";
248 os <<
"\n End-of-run model list:";
254 else os <<
"\n Inactive: ";
258 os <<
"\n Overall extent or bounding box: " << scene.
fExtent;
262 os <<
"\n End of event action set to \"";
265 os <<
"accumulate (maximum number of kept events: ";
267 else os <<
"unlimited";
271 os <<
"\n End of run action set to \"";
273 else os <<
"accumulate";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
void AccrueBoundingExtent(const G4VisExtent &)
const G4VisExtent & GetBoundingExtent() const
std::vector< Model > fEndOfEventModelList
G4bool AddRunDurationModel(G4VModel *, G4bool warn=false)
G4bool AddWorldIfEmpty(G4bool warn=false)
std::vector< Model > fEndOfRunModelList
G4int fMaxNumberOfKeptEvents
std::vector< Model > fRunDurationModelList
G4bool fRefreshAtEndOfRun
const G4VisExtent & GetExtent() const
G4bool operator!=(const G4Scene &) const
G4bool AddEndOfRunModel(G4VModel *, G4bool warn=false)
G4Scene(const G4String &name="scene-with-unspecified-name")
G4Point3D fStandardTargetPoint
G4bool fRefreshAtEndOfEvent
G4bool AddEndOfEventModel(G4VModel *, G4bool warn=false)
static G4TransportationManager * GetTransportationManager()
const G4String & GetGlobalDescription() const
static const G4VisExtent & GetNullExtent()
G4double GetExtentRadius() const
const G4Point3D & GetExtentCentre() const
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
const char * name(G4int ptype)
void PrintInvalidModel(const G4VModel *model)