G4VGraphicsSystem.hh File Reference

#include "globals.hh"
#include "G4VGraphicsSystem.icc"

Go to the source code of this file.

Data Structures

class  G4VGraphicsSystem

Functions

std::ostream & operator<< (std::ostream &os, const G4VGraphicsSystem &gs)


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4VGraphicsSystem gs 
)

Definition at line 68 of file G4VGraphicsSystem.cc.

00068                                                                       {
00069   G4VisManager* pVMan = G4VisManager::GetInstance ();
00070   const G4SceneHandlerList& scenes = pVMan -> GetAvailableSceneHandlers ();
00071   os << "Graphics System: " << gs.GetName ();
00072   if (gs.GetNickname () != "") {
00073     os << ", nickname: " << gs.GetNickname ();
00074   }
00075   if (gs.GetDescription () != "") {
00076     os << "\n  Description: " << gs.GetDescription ();
00077   }
00078   os << "\n  Functionality: " << G4int(gs.GetFunctionality());
00079   if (pVMan -> GetVerbosity() >= G4VisManager::parameters) {
00080     size_t nScenes = scenes.size ();
00081     if (nScenes) {
00082       G4int nScenesOfThisSystem = 0;
00083       for (size_t i = 0; i < nScenes; i++) {
00084         if (scenes [i] -> GetGraphicsSystem () == &gs) {
00085           nScenesOfThisSystem++;
00086         }
00087       }
00088       if (nScenesOfThisSystem) {
00089         os << "\n  Its scenes are: ";
00090         for (size_t i = 0; i < nScenes; i++) {
00091           if (scenes [i] -> GetGraphicsSystem () == &gs) {
00092             os << "\n  " << *(scenes [i]);
00093           }
00094         }
00095       }
00096       else {
00097         os << "\n  It has no scenes at present.";
00098       }
00099     }
00100     else {
00101       os << "\n  There are no scenes instantiated at present.";
00102     }
00103   }
00104   return os;
00105 }


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