42 fRefreshAtEndOfEvent(true),
43 fRefreshAtEndOfRun(true),
44 fMaxNumberOfKeptEvents(100)
50 std::vector<Model>::const_iterator i;
53 if (pModel -> GetGlobalDescription () ==
58 G4cout <<
"G4Scene::AddRunDurationModel: model \""
59 << pModel -> GetGlobalDescription ()
60 <<
"\"\n is already in the run-duration list of scene \""
79 if (model -> Validate()) {
82 if (thisRadius > 0.) {
84 thisCentre.transform (model -> GetTransformation ());
90 <<
"\".\n Not included in extent calculation.";
92 (
"G4Scene::CalculateExtent",
101 if (model -> Validate()) {
104 if (thisRadius > 0.) {
106 thisCentre.transform (model -> GetTransformation ());
112 <<
"\".\n Not included in extent calculation.";
114 (
"G4Scene::CalculateExtent",
123 if (model -> Validate()) {
126 if (thisRadius > 0.) {
128 thisCentre.transform (model -> GetTransformation ());
134 <<
"\".\n Not included in extent calculation.";
136 (
"G4Scene::CalculateExtent",
146 (
"G4Scene::CalculateExtent",
148 "Scene has no extent. Please activate or add something."
149 "\nThe camera needs to have something to point at!"
150 "\n\"/vis/scene/list\" to see list of models.");
160 -> GetNavigatorForTracking () -> GetWorldVolume ();
163 pWorld -> GetLogicalVolume () -> GetVisAttributes ();
164 if (!pVisAttribs || pVisAttribs -> IsVisible ()) {
167 "Your \"world\" has no vis attributes or is marked as visible."
168 "\n For a better view of the contents, mark the world as"
170 "\n myWorldLogicalVol ->"
171 " SetVisAttributes (G4VisAttributes::Invisible);"
180 "G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models."
181 "\n \"world\" has been added.";
192 for (i = 0; i < nModels; i++) {
193 if (pModel -> GetGlobalDescription () ==
198 G4cout <<
"G4Scene::AddEndOfEventModel: a model \""
199 << pModel -> GetGlobalDescription ()
200 <<
"\"\n is already in the end-of-event list of scene \""
212 for (i = 0; i < nModels; i++) {
213 if (pModel -> GetGlobalDescription () ==
218 G4cout <<
"G4Scene::AddEndOfRunModel: a model \""
219 << pModel -> GetGlobalDescription ()
220 <<
"\"\n is already in the end-of-run list of scene \""
236 os <<
"\n Run-duration model list:";
239 else os <<
"\n Inactive: ";
243 os <<
"\n End-of-event model list:";
246 else os <<
"\n Inactive: ";
250 os <<
"\n End-of-run model list:";
253 else os <<
"\n Inactive: ";
257 os <<
"\n Extent or bounding box: " << scene.
fExtent;
261 os <<
"\n End of event action set to \"";
264 os <<
"accumulate (maximum number of kept events: ";
266 else os <<
"unlimited";
270 os <<
"\n End of run action set to \"";
272 else os <<
"accumulate";
std::vector< Model > fEndOfRunModelList
G4Scene(const G4String &name="scene-with-unspecified-name")
std::ostringstream G4ExceptionDescription
G4bool operator!=(const G4Scene &) const
G4bool fRefreshAtEndOfRun
std::ostream & operator<<(std::ostream &os, const G4Scene &scene)
const G4Point3D & GetExtentCentre() const
HepGeom::Point3D< G4double > G4Point3D
std::vector< Model > fEndOfEventModelList
G4Point3D fStandardTargetPoint
G4double GetExtentRadius() const
G4GLOB_DLL std::ostream G4cout
const G4VisExtent & GetExtent() const
const G4String & GetGlobalDescription() const
G4bool AddRunDurationModel(G4VModel *, G4bool warn=false)
G4VisExtent GetBoundingSphereExtent()
G4bool AddEndOfRunModel(G4VModel *, G4bool warn=false)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
G4bool AddWorldIfEmpty(G4bool warn=false)
void AccrueBoundingSphere(const G4Point3D ¢re, G4double radius)
G4bool AddEndOfEventModel(G4VModel *, G4bool warn=false)
G4bool fRefreshAtEndOfEvent
G4int fMaxNumberOfKeptEvents
std::vector< Model > fRunDurationModelList