76 for (
size_t i = 0; i < fRunDurationModelList.size(); i++) {
77 if (fRunDurationModelList[i].fActive) {
79 if (model -> Validate()) {
82 if (thisRadius > 0.) {
84 thisCentre.transform (model -> GetTransformation ());
90 <<
"\".\n Not included in extent calculation.";
92 (
"G4Scene::CalculateExtent",
98 for (
size_t i = 0; i < fEndOfEventModelList.size(); i++) {
99 if (fEndOfEventModelList[i].fActive) {
100 G4VModel* model = fEndOfEventModelList[i].fpModel;
101 if (model -> Validate()) {
104 if (thisRadius > 0.) {
106 thisCentre.transform (model -> GetTransformation ());
112 <<
"\".\n Not included in extent calculation.";
114 (
"G4Scene::CalculateExtent",
120 for (
size_t i = 0; i < fEndOfRunModelList.size(); i++) {
121 if (fEndOfRunModelList[i].fActive) {
122 G4VModel* model = fEndOfRunModelList[i].fpModel;
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 "\nAdd a volume. (You may need \"/run/initialize\".)"
151 "\nOr use \"/vis/scene/add/extent\"."
152 "\n\"/vis/scene/list\" to see list of models.");
std::ostringstream G4ExceptionDescription
const G4Point3D & GetExtentCentre() const
G4double GetExtentRadius() const
const G4VisExtent & GetExtent() const
const G4String & GetGlobalDescription() const
G4VisExtent GetBoundingSphereExtent()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void AccrueBoundingSphere(const G4Point3D ¢re, G4double radius)
const XML_Char XML_Content * model