[1199] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: F02VisManager.cc,v 1.2 2006/06/29 18:28:53 gunter Exp $ |
---|
[1347] | 28 | // GEANT4 tag $Name: geant4-09-04-ref-00 $ |
---|
[1199] | 29 | // |
---|
| 30 | // |
---|
| 31 | // John Allison 24th January 1998. |
---|
| 32 | |
---|
| 33 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 34 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 35 | |
---|
| 36 | #ifdef G4VIS_USE |
---|
| 37 | |
---|
| 38 | #include "F02VisManager.hh" |
---|
| 39 | |
---|
| 40 | // Supported drivers... |
---|
| 41 | |
---|
| 42 | #ifdef G4VIS_USE_DAWN |
---|
| 43 | #include "G4FukuiRenderer.hh" |
---|
| 44 | #endif |
---|
| 45 | |
---|
| 46 | #ifdef G4VIS_USE_DAWNFILE |
---|
| 47 | #include "G4DAWNFILE.hh" |
---|
| 48 | #endif |
---|
| 49 | |
---|
| 50 | #ifdef G4VIS_USE_OPACS |
---|
| 51 | #include "G4Wo.hh" |
---|
| 52 | #include "G4Xo.hh" |
---|
| 53 | #endif |
---|
| 54 | |
---|
| 55 | #ifdef G4VIS_USE_OPENGLX |
---|
| 56 | #include "G4OpenGLImmediateX.hh" |
---|
| 57 | #include "G4OpenGLStoredX.hh" |
---|
| 58 | #endif |
---|
| 59 | |
---|
| 60 | #ifdef G4VIS_USE_OPENGLWIN32 |
---|
| 61 | #include "G4OpenGLImmediateWin32.hh" |
---|
| 62 | #include "G4OpenGLStoredWin32.hh" |
---|
| 63 | #endif |
---|
| 64 | |
---|
| 65 | #ifdef G4VIS_USE_OPENGLXM |
---|
| 66 | #include "G4OpenGLImmediateXm.hh" |
---|
| 67 | #include "G4OpenGLStoredXm.hh" |
---|
| 68 | #endif |
---|
| 69 | |
---|
| 70 | #ifdef G4VIS_USE_OIX |
---|
| 71 | #include "G4OpenInventorX.hh" |
---|
| 72 | #endif |
---|
| 73 | |
---|
| 74 | #ifdef G4VIS_USE_OIWIN32 |
---|
| 75 | #include "G4OpenInventorWin32.hh" |
---|
| 76 | #endif |
---|
| 77 | |
---|
| 78 | #ifdef G4VIS_USE_RAYX |
---|
| 79 | #include "G4RayX.hh" |
---|
| 80 | #endif |
---|
| 81 | |
---|
| 82 | #ifdef G4VIS_USE_VRML |
---|
| 83 | #include "G4VRML1.hh" |
---|
| 84 | // #include "G4VRML2.hh" |
---|
| 85 | #endif |
---|
| 86 | |
---|
| 87 | #ifdef G4VIS_USE_VRMLFILE |
---|
| 88 | #include "G4VRML1File.hh" |
---|
| 89 | //#include "G4VRML2File.hh" |
---|
| 90 | #endif |
---|
| 91 | |
---|
| 92 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 93 | |
---|
| 94 | F02VisManager::F02VisManager () {} |
---|
| 95 | |
---|
| 96 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 97 | |
---|
| 98 | void F02VisManager::RegisterGraphicsSystems () { |
---|
| 99 | |
---|
| 100 | #ifdef G4VIS_USE_DAWN |
---|
| 101 | RegisterGraphicsSystem (new G4FukuiRenderer); |
---|
| 102 | #endif |
---|
| 103 | |
---|
| 104 | #ifdef G4VIS_USE_DAWNFILE |
---|
| 105 | RegisterGraphicsSystem (new G4DAWNFILE); |
---|
| 106 | #endif |
---|
| 107 | |
---|
| 108 | #ifdef G4VIS_USE_OPACS |
---|
| 109 | RegisterGraphicsSystem (new G4Wo); |
---|
| 110 | RegisterGraphicsSystem (new G4Xo); |
---|
| 111 | #endif |
---|
| 112 | |
---|
| 113 | #ifdef G4VIS_USE_OPENGLX |
---|
| 114 | RegisterGraphicsSystem (new G4OpenGLImmediateX); |
---|
| 115 | RegisterGraphicsSystem (new G4OpenGLStoredX); |
---|
| 116 | #endif |
---|
| 117 | |
---|
| 118 | #ifdef G4VIS_USE_OPENGLWIN32 |
---|
| 119 | RegisterGraphicsSystem (new G4OpenGLImmediateWin32); |
---|
| 120 | RegisterGraphicsSystem (new G4OpenGLStoredWin32); |
---|
| 121 | #endif |
---|
| 122 | |
---|
| 123 | #ifdef G4VIS_USE_OPENGLXM |
---|
| 124 | RegisterGraphicsSystem (new G4OpenGLImmediateXm); |
---|
| 125 | RegisterGraphicsSystem (new G4OpenGLStoredXm); |
---|
| 126 | #endif |
---|
| 127 | |
---|
| 128 | #ifdef G4VIS_USE_OIX |
---|
| 129 | RegisterGraphicsSystem (new G4OpenInventorX); |
---|
| 130 | #endif |
---|
| 131 | |
---|
| 132 | #ifdef G4VIS_USE_OIWIN32 |
---|
| 133 | RegisterGraphicsSystem (new G4OpenInventorWin32); |
---|
| 134 | #endif |
---|
| 135 | |
---|
| 136 | #ifdef G4VIS_USE_RAYX |
---|
| 137 | RegisterGraphicsSystem (new G4RayX); |
---|
| 138 | #endif |
---|
| 139 | |
---|
| 140 | #ifdef G4VIS_USE_VRML |
---|
| 141 | RegisterGraphicsSystem (new G4VRML1); |
---|
| 142 | // RegisterGraphicsSystem (new G4VRML2); |
---|
| 143 | #endif |
---|
| 144 | |
---|
| 145 | #ifdef G4VIS_USE_VRMLFILE |
---|
| 146 | RegisterGraphicsSystem (new G4VRML1File); |
---|
| 147 | // RegisterGraphicsSystem (new G4VRML2File); |
---|
| 148 | #endif |
---|
| 149 | |
---|
| 150 | if (fVerbose > 0) { |
---|
| 151 | G4cout << |
---|
| 152 | "\nYou have successfully chosen to use the following graphics systems." |
---|
| 153 | << G4endl; |
---|
| 154 | PrintAvailableGraphicsSystems (); |
---|
| 155 | } |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | #endif |
---|
| 159 | |
---|
| 160 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|