G4Scene.cc File Reference

#include "G4Scene.hh"
#include "G4Vector3D.hh"
#include "G4BoundingSphereScene.hh"
#include "G4VisAttributes.hh"
#include "G4PhysicalVolumeModel.hh"
#include "G4TransportationManager.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4Scene &scene)


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4Scene scene 
)

Definition at line 230 of file G4Scene.cc.

References G4Scene::fEndOfEventModelList, G4Scene::fEndOfRunModelList, G4Scene::fExtent, G4Scene::fMaxNumberOfKeptEvents, G4Scene::fRefreshAtEndOfEvent, G4Scene::fRefreshAtEndOfRun, G4Scene::fRunDurationModelList, and G4Scene::fStandardTargetPoint.

00230                                                                {
00231 
00232   size_t i;
00233 
00234   os << "Scene data:";
00235 
00236   os << "\n  Run-duration model list:";
00237   for (i = 0; i < scene.fRunDurationModelList.size (); i++) {
00238     if (scene.fRunDurationModelList[i].fActive) os << "\n  Active:   ";
00239     else os << "\n  Inactive: ";
00240     os << *(scene.fRunDurationModelList[i].fpModel);
00241   }
00242 
00243   os << "\n  End-of-event model list:";
00244   for (i = 0; i < scene.fEndOfEventModelList.size (); i++) {
00245     if (scene.fEndOfEventModelList[i].fActive) os << "\n  Active:   ";
00246     else os << "\n  Inactive: ";
00247     os << *(scene.fEndOfEventModelList[i].fpModel);
00248   }
00249 
00250   os << "\n  End-of-run model list:";
00251   for (i = 0; i < scene.fEndOfRunModelList.size (); i++) {
00252     if (scene.fEndOfRunModelList[i].fActive) os << "\n  Active:   ";
00253     else os << "\n  Inactive: ";
00254     os << *(scene.fEndOfRunModelList[i].fpModel);
00255   }
00256 
00257   os << "\n  Extent or bounding box: " << scene.fExtent;
00258 
00259   os << "\n  Standard target point:  " << scene.fStandardTargetPoint;
00260 
00261   os << "\n  End of event action set to \"";
00262   if (scene.fRefreshAtEndOfEvent) os << "refresh\"";
00263   else {
00264     os << "accumulate (maximum number of kept events: ";
00265     if (scene.fMaxNumberOfKeptEvents >= 0) os << scene.fMaxNumberOfKeptEvents;
00266     else os << "unlimited";
00267     os << ")";
00268   }
00269 
00270   os << "\n  End of run action set to \"";
00271   if (scene.fRefreshAtEndOfRun) os << "refresh";
00272   else os << "accumulate";
00273   os << "\"";
00274 
00275   return os;
00276 }


Generated on Mon May 27 17:51:07 2013 for Geant4 by  doxygen 1.4.7