/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/G4Svc/G4Svc-00-01-52/src/G4SvcVisManager.cpp

Go to the documentation of this file.
00001 //------------------------------------------------------------------
00002 //
00003 // ClassName:   G4SvcVisManager
00004 //  
00005 // Description: Visalization manager
00006 //
00007 // Author:      Charles Leggett
00008 // 
00009 
00010 #ifdef G4VIS_USE
00011 
00012 #include "G4Svc/G4SvcVisManager.h"
00013 
00014 // Supported drivers...
00015 
00016 #ifdef G4VIS_USE_DAWN
00017 #include "G4FukuiRenderer.hh"
00018 #endif
00019 
00020 #ifdef G4VIS_USE_DAWNFILE
00021 #include "G4DAWNFILE.hh"
00022 #endif
00023 
00024 #ifdef G4VIS_USE_OPACS
00025 #include "G4Wo.hh"
00026 #include "G4Xo.hh"
00027 #endif
00028 
00029 #ifdef G4VIS_USE_OPENGLX
00030 #include "G4OpenGLImmediateX.hh"
00031 #include "G4OpenGLStoredX.hh"
00032 #endif
00033 
00034 #ifdef G4VIS_USE_OPENGLWIN32
00035 #include "G4OpenGLImmediateWin32.hh"
00036 #include "G4OpenGLStoredWin32.hh"
00037 #endif
00038 
00039 #ifdef G4VIS_USE_OPENGLXM
00040 #include "G4OpenGLImmediateXm.hh"
00041 #include "G4OpenGLStoredXm.hh"
00042 #endif
00043 
00044 #ifdef G4VIS_USE_OIX
00045 #include "G4OpenInventorX.hh"
00046 #endif
00047 
00048 #ifdef G4VIS_USE_OIWIN32
00049 #include "G4OpenInventorWin32.hh"
00050 #endif
00051 
00052 #ifdef G4VIS_USE_VRML
00053 #include "G4VRML1.hh"
00054 #include "G4VRML2.hh"
00055 #endif
00056 
00057 #ifdef G4VIS_USE_VRMLFILE
00058 #include "G4VRML1File.hh"
00059 #include "G4VRML2File.hh"
00060 #endif
00061 
00062 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
00063 
00064 
00065 G4SvcVisManager::G4SvcVisManager () {}
00066 
00067 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
00068 
00069 void G4SvcVisManager::RegisterGraphicsSystems () {
00070 
00071 #ifdef G4VIS_USE_DAWN
00072   RegisterGraphicsSystem (new G4FukuiRenderer());
00073 #endif
00074 
00075 #ifdef G4VIS_USE_DAWNFILE
00076   RegisterGraphicsSystem (new G4DAWNFILE);
00077 #endif
00078 
00079 #ifdef G4VIS_USE_OPACS
00080   RegisterGraphicsSystem (new G4Wo);
00081   RegisterGraphicsSystem (new G4Xo);
00082 #endif
00083 
00084 #ifdef G4VIS_USE_OPENGLX
00085   RegisterGraphicsSystem (new G4OpenGLImmediateX);
00086   RegisterGraphicsSystem (new G4OpenGLStoredX);
00087 #endif
00088 
00089 #ifdef G4VIS_USE_OPENGLWIN32
00090   RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
00091   RegisterGraphicsSystem (new G4OpenGLStoredWin32);
00092 #endif
00093 
00094 #ifdef G4VIS_USE_OPENGLXM
00095   RegisterGraphicsSystem (new G4OpenGLImmediateXm);
00096   RegisterGraphicsSystem (new G4OpenGLStoredXm);
00097 #endif
00098 
00099 #ifdef G4VIS_USE_OIX
00100   RegisterGraphicsSystem (new G4OpenInventorX);
00101 #endif
00102 
00103 #ifdef G4VIS_USE_OIWIN32
00104   RegisterGraphicsSystem (new G4OpenInventorWin32);
00105 #endif
00106 
00107 #ifdef G4VIS_USE_VRML
00108   RegisterGraphicsSystem (new G4VRML1);
00109   RegisterGraphicsSystem (new G4VRML2);
00110 #endif
00111 
00112 #ifdef G4VIS_USE_VRMLFILE
00113   RegisterGraphicsSystem (new G4VRML1File);
00114   RegisterGraphicsSystem (new G4VRML2File);
00115 #endif
00116 
00117   if (fVerbose > 0) {
00118     G4cout <<
00119       "\nYou have successfully chosen to use the following graphics systems."
00120          << G4endl;
00121     PrintAvailableGraphicsSystems ();
00122   }
00123 }
00124 
00125 #endif

Generated on Tue Nov 29 23:14:34 2016 for BOSS_7.0.2 by  doxygen 1.4.7