| 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 | // This code implementation is the intellectual property of
|
|---|
| 27 | // the RD44 GEANT4 collaboration.
|
|---|
| 28 | //
|
|---|
| 29 | // By copying, distributing or modifying the Program (or any work
|
|---|
| 30 | // based on the Program) you indicate your acceptance of this statement,
|
|---|
| 31 | // and all its terms.
|
|---|
| 32 | //
|
|---|
| 33 |
|
|---|
| 34 | // 2002 march, updated for geant4.4.0, Hajime Yoshida
|
|---|
| 35 | //
|
|---|
| 36 | //
|
|---|
| 37 | // John Allison 24th January 1998.
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | #ifdef G4VIS_USE
|
|---|
| 41 |
|
|---|
| 42 | #include "MomoVisManager.hh"
|
|---|
| 43 |
|
|---|
| 44 | // Supported drivers...
|
|---|
| 45 |
|
|---|
| 46 | #ifdef G4VIS_USE_DAWN
|
|---|
| 47 | #include "G4FukuiRenderer.hh"
|
|---|
| 48 | #endif
|
|---|
| 49 |
|
|---|
| 50 | #ifdef G4VIS_USE_DAWNFILE
|
|---|
| 51 | #include "G4DAWNFILE.hh"
|
|---|
| 52 | #endif
|
|---|
| 53 |
|
|---|
| 54 | #ifdef G4VIS_USE_OPENGLX
|
|---|
| 55 | #include "G4OpenGLImmediateX.hh"
|
|---|
| 56 | #include "G4OpenGLStoredX.hh"
|
|---|
| 57 | #endif
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | #ifdef G4VIS_USE_VRML
|
|---|
| 61 | #include "G4VRML1.hh"
|
|---|
| 62 | // #include "G4VRML2.hh"
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|
| 65 | #ifdef G4VIS_USE_VRMLFILE
|
|---|
| 66 | #include "G4VRML1File.hh"
|
|---|
| 67 | //#include "G4VRML2File.hh"
|
|---|
| 68 | #endif
|
|---|
| 69 |
|
|---|
| 70 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|---|
| 71 |
|
|---|
| 72 | MomoVisManager::MomoVisManager () {}
|
|---|
| 73 |
|
|---|
| 74 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|---|
| 75 |
|
|---|
| 76 | void MomoVisManager::RegisterGraphicsSystems () {
|
|---|
| 77 |
|
|---|
| 78 | #ifdef G4VIS_USE_DAWN
|
|---|
| 79 | RegisterGraphicsSystem (new G4FukuiRenderer);
|
|---|
| 80 | #endif
|
|---|
| 81 |
|
|---|
| 82 | #ifdef G4VIS_USE_DAWNFILE
|
|---|
| 83 | RegisterGraphicsSystem (new G4DAWNFILE);
|
|---|
| 84 | #endif
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 | #ifdef G4VIS_USE_OPENGLX
|
|---|
| 88 | RegisterGraphicsSystem (new G4OpenGLImmediateX);
|
|---|
| 89 | RegisterGraphicsSystem (new G4OpenGLStoredX);
|
|---|
| 90 | #endif
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | #ifdef G4VIS_USE_VRML
|
|---|
| 94 | RegisterGraphicsSystem (new G4VRML1);
|
|---|
| 95 | // RegisterGraphicsSystem (new G4VRML2);
|
|---|
| 96 | #endif
|
|---|
| 97 |
|
|---|
| 98 | #ifdef G4VIS_USE_VRMLFILE
|
|---|
| 99 | RegisterGraphicsSystem (new G4VRML1File);
|
|---|
| 100 | // RegisterGraphicsSystem (new G4VRML2File);
|
|---|
| 101 | #endif
|
|---|
| 102 |
|
|---|
| 103 | if (fVerbose > 0) {
|
|---|
| 104 | G4cout <<
|
|---|
| 105 | "\nYou have successfully chosen to use the following graphics systems."
|
|---|
| 106 | << G4endl;
|
|---|
| 107 | PrintAvailableGraphicsSystems ();
|
|---|
| 108 | }
|
|---|
| 109 | }
|
|---|
| 110 |
|
|---|
| 111 | #endif
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 |
|
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|