src/BDSVisManager.cc

00001 // This code implementation is the intellectual property of
00002 // the GEANT4 collaboration.
00003 //
00004 // By copying, distributing or modifying the Program (or any work
00005 // based on the Program) you indicate your acceptance of this statement,
00006 // and all its terms.
00007 //
00008 // $Id: BDSVisManager.cc,v 1.3 2007/10/05 11:40:26 malton Exp $
00009 // GEANT4 tag $Name:  $
00010 //
00011 // 
00012 // John Allison 24th January 1998.
00013 
00014 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00015 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00016 
00017 #ifdef G4VIS_USE
00018 
00019 #include "BDSVisManager.hh"
00020 #include "G4HepRepFile.hh"
00021 
00022 // Supported drivers...
00023 
00024 #ifdef G4VIS_USE_DAWN
00025 #include "G4FukuiRenderer.hh"
00026 #endif
00027 
00028 #ifdef G4VIS_USE_DAWNFILE
00029 #include "G4DAWNFILE.hh"
00030 #endif
00031 
00032 #ifdef G4VIS_USE_OPACS
00033 #include "G4Wo.hh"
00034 #include "G4Xo.hh"
00035 #endif
00036 
00037 #ifdef G4VIS_USE_OPENGLX
00038 #include "G4OpenGLImmediateX.hh"
00039 #include "G4OpenGLStoredX.hh"
00040 #endif
00041 
00042 #ifdef G4VIS_USE_OPENGLWIN32
00043 #include "G4OpenGLImmediateWin32.hh"
00044 #include "G4OpenGLStoredWin32.hh"
00045 #endif
00046 
00047 #ifdef G4VIS_USE_OPENGLQT
00048 #include "G4OpenGLImmediateQt.hh"
00049 #include "G4OpenGLStoredQt.hh"
00050 #endif
00051 
00052 #ifdef G4VIS_USE_OPENGLXM
00053 #include "G4OpenGLImmediateXm.hh"
00054 #include "G4OpenGLStoredXm.hh"
00055 #endif
00056 
00057 #ifdef G4VIS_USE_OIX
00058 #include "G4OpenInventorX.hh"
00059 #endif
00060 
00061 #ifdef G4VIS_USE_OIWIN32
00062 #include "G4OpenInventorWin32.hh"
00063 #endif
00064 
00065 #ifdef G4VIS_USE_VRML
00066 #include "G4VRML1.hh"
00067 #include "G4VRML2.hh"
00068 #endif
00069 
00070 #ifdef G4VIS_USE_VRMLFILE
00071 #include "G4VRML1File.hh"
00072 #include "G4VRML2File.hh"
00073 #endif
00074 
00075 #ifdef G4VIS_USE_RAYTRACER
00076 #include "G4RayTracer.hh"
00077 #endif
00078 
00079 #ifdef G4VIS_USE_RAYTRACERX
00080 #include "G4RayTracerX.hh"
00081 #endif
00082 
00083 
00084 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00085 
00086 BDSVisManager::BDSVisManager () {}
00087 
00088 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00089 
00090 void BDSVisManager::RegisterGraphicsSystems () {
00091 
00092   RegisterGraphicsSystem (new G4HepRepFile);
00093 
00094 
00095 #ifdef G4VIS_USE_DAWN
00096   RegisterGraphicsSystem (new G4FukuiRenderer);
00097 #endif
00098 
00099 #ifdef G4VIS_USE_DAWNFILE
00100   RegisterGraphicsSystem (new G4DAWNFILE);
00101 #endif
00102 
00103 #ifdef G4VIS_USE_OPACS
00104   RegisterGraphicsSystem (new G4Wo);
00105   RegisterGraphicsSystem (new G4Xo);
00106 #endif
00107 
00108  
00109 #ifdef G4VIS_USE_OPENGLX
00110   RegisterGraphicsSystem (new G4OpenGLImmediateX);
00111   RegisterGraphicsSystem (new G4OpenGLStoredX);
00112 #endif
00113  
00114 
00115 #ifdef G4VIS_USE_OPENGLWIN32
00116   RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
00117   RegisterGraphicsSystem (new G4OpenGLStoredWin32);
00118 #endif
00119 
00120 #ifdef G4VIS_USE_OPENGLQT
00121   RegisterGraphicsSystem (new G4OpenGLImmediateQt);
00122   RegisterGraphicsSystem (new G4OpenGLStoredQt);
00123 #endif
00124 
00125 #ifdef G4VIS_USE_OPENGLXM
00126   RegisterGraphicsSystem (new G4OpenGLImmediateXm);
00127   RegisterGraphicsSystem (new G4OpenGLStoredXm);
00128 #endif
00129 
00130 #ifdef G4VIS_USE_OIX
00131   RegisterGraphicsSystem (new G4OpenInventorX);
00132 #endif
00133 
00134 #ifdef G4VIS_USE_OIWIN32
00135   RegisterGraphicsSystem (new G4OpenInventorWin32);
00136 #endif
00137 
00138 #ifdef G4VIS_USE_VRML
00139   RegisterGraphicsSystem (new G4VRML1);
00140   RegisterGraphicsSystem (new G4VRML2);
00141 #endif
00142 
00143 #ifdef G4VIS_USE_VRMLFILE
00144   RegisterGraphicsSystem (new G4VRML1File);
00145   RegisterGraphicsSystem (new G4VRML2File);
00146 #endif
00147 
00148 #ifdef G4VIS_USE_RAYTRACER
00149   RegisterGraphicsSystem (new G4RayTracer);
00150 #endif
00151 
00152 #ifdef G4VIS_USE_RAYTRACERX
00153   RegisterGraphicsSystem (new G4RayTracerX);
00154 #endif
00155 
00156 
00157 // Duplicate printout
00158 //  if (fVerbose > 0) {
00159 //    G4cout <<
00160 //      "\nYou have successfully chosen to use the following graphics systems."
00161 //       << G4endl;
00162 //    PrintAvailableGraphicsSystems ();
00163 //  }
00164 }
00165 
00166 #endif
00167 
00168 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00169 
00170 void
00171 BDSVisManager::RegisterModelFactories() {}
00172 
00173 BDSVisManager::~BDSVisManager(){}

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7