| [1316] | 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: SCVisManager.cc,v 1.3 2007/05/18 11:04:23 gcosmo Exp $
|
|---|
| [1347] | 28 | // GEANT4 tag $Name: geant4-09-04-ref-00 $
|
|---|
| [1316] | 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 "SCVisManager.hh"
|
|---|
| 39 |
|
|---|
| 40 | // Supported drivers...
|
|---|
| 41 |
|
|---|
| 42 | // Not needing external packages or libraries...
|
|---|
| 43 | #include "G4ASCIITree.hh"
|
|---|
| 44 | #include "G4DAWNFILE.hh"
|
|---|
| 45 | #include "G4HepRepFile.hh"
|
|---|
| 46 | #include "G4HepRep.hh"
|
|---|
| 47 | #include "G4RayTracer.hh"
|
|---|
| 48 | #include "G4VRML1File.hh"
|
|---|
| 49 | #include "G4VRML2File.hh"
|
|---|
| 50 |
|
|---|
| 51 | // Needing external packages or libraries...
|
|---|
| 52 |
|
|---|
| 53 | #ifdef G4VIS_USE_DAWN
|
|---|
| 54 | #include "G4FukuiRenderer.hh"
|
|---|
| 55 | #endif
|
|---|
| 56 |
|
|---|
| 57 | #ifdef G4VIS_USE_OPACS
|
|---|
| 58 | #include "G4Wo.hh"
|
|---|
| 59 | #include "G4Xo.hh"
|
|---|
| 60 | #endif
|
|---|
| 61 |
|
|---|
| 62 | #ifdef G4VIS_USE_OPENGLX
|
|---|
| 63 | #include "G4OpenGLImmediateX.hh"
|
|---|
| 64 | #include "G4OpenGLStoredX.hh"
|
|---|
| 65 | #endif
|
|---|
| 66 |
|
|---|
| 67 | #ifdef G4VIS_USE_OPENGLWIN32
|
|---|
| 68 | #include "G4OpenGLImmediateWin32.hh"
|
|---|
| 69 | #include "G4OpenGLStoredWin32.hh"
|
|---|
| 70 | #endif
|
|---|
| 71 |
|
|---|
| 72 | #ifdef G4VIS_USE_OPENGLXM
|
|---|
| 73 | #include "G4OpenGLImmediateXm.hh"
|
|---|
| 74 | #include "G4OpenGLStoredXm.hh"
|
|---|
| 75 | #endif
|
|---|
| 76 |
|
|---|
| 77 | #ifdef G4VIS_USE_OIX
|
|---|
| 78 | #include "G4OpenInventorX.hh"
|
|---|
| 79 | #endif
|
|---|
| 80 |
|
|---|
| 81 | #ifdef G4VIS_USE_OIWIN32
|
|---|
| 82 | #include "G4OpenInventorWin32.hh"
|
|---|
| 83 | #endif
|
|---|
| 84 |
|
|---|
| 85 | #ifdef G4VIS_USE_VRML
|
|---|
| 86 | #include "G4VRML1.hh"
|
|---|
| 87 | #include "G4VRML2.hh"
|
|---|
| 88 | #endif
|
|---|
| 89 |
|
|---|
| 90 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 91 |
|
|---|
| 92 | SCVisManager::SCVisManager () {}
|
|---|
| 93 |
|
|---|
| 94 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 95 |
|
|---|
| 96 | void SCVisManager::RegisterGraphicsSystems () {
|
|---|
| 97 |
|
|---|
| 98 | // Graphics Systems not needing external packages or libraries...
|
|---|
| 99 | RegisterGraphicsSystem (new G4ASCIITree);
|
|---|
| 100 | RegisterGraphicsSystem (new G4DAWNFILE);
|
|---|
| 101 | RegisterGraphicsSystem (new G4HepRepFile);
|
|---|
| 102 | RegisterGraphicsSystem (new G4HepRep);
|
|---|
| 103 | RegisterGraphicsSystem (new G4RayTracer);
|
|---|
| 104 | RegisterGraphicsSystem (new G4VRML1File);
|
|---|
| 105 | RegisterGraphicsSystem (new G4VRML2File);
|
|---|
| 106 |
|
|---|
| 107 | // Graphics systems needing external packages or libraries...
|
|---|
| 108 |
|
|---|
| 109 | #ifdef G4VIS_USE_DAWN
|
|---|
| 110 | RegisterGraphicsSystem (new G4FukuiRenderer);
|
|---|
| 111 | #endif
|
|---|
| 112 |
|
|---|
| 113 | #ifdef G4VIS_USE_OPACS
|
|---|
| 114 | RegisterGraphicsSystem (new G4Wo);
|
|---|
| 115 | RegisterGraphicsSystem (new G4Xo);
|
|---|
| 116 | #endif
|
|---|
| 117 |
|
|---|
| 118 | #ifdef G4VIS_USE_OPENGLX
|
|---|
| 119 | RegisterGraphicsSystem (new G4OpenGLImmediateX);
|
|---|
| 120 | RegisterGraphicsSystem (new G4OpenGLStoredX);
|
|---|
| 121 | #endif
|
|---|
| 122 |
|
|---|
| 123 | #ifdef G4VIS_USE_OPENGLWIN32
|
|---|
| 124 | RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
|
|---|
| 125 | RegisterGraphicsSystem (new G4OpenGLStoredWin32);
|
|---|
| 126 | #endif
|
|---|
| 127 |
|
|---|
| 128 | #ifdef G4VIS_USE_OPENGLXM
|
|---|
| 129 | RegisterGraphicsSystem (new G4OpenGLImmediateXm);
|
|---|
| 130 | RegisterGraphicsSystem (new G4OpenGLStoredXm);
|
|---|
| 131 | #endif
|
|---|
| 132 |
|
|---|
| 133 | #ifdef G4VIS_USE_OIX
|
|---|
| 134 | RegisterGraphicsSystem (new G4OpenInventorX);
|
|---|
| 135 | #endif
|
|---|
| 136 |
|
|---|
| 137 | #ifdef G4VIS_USE_OIWIN32
|
|---|
| 138 | RegisterGraphicsSystem (new G4OpenInventorWin32);
|
|---|
| 139 | #endif
|
|---|
| 140 |
|
|---|
| 141 | #ifdef G4VIS_USE_VRML
|
|---|
| 142 | RegisterGraphicsSystem (new G4VRML1);
|
|---|
| 143 | RegisterGraphicsSystem (new G4VRML2);
|
|---|
| 144 | #endif
|
|---|
| 145 |
|
|---|
| 146 | if (fVerbose > 0) {
|
|---|
| 147 | G4cout <<
|
|---|
| 148 | "\nYou have successfully chosen to use the following graphics systems."
|
|---|
| 149 | << G4endl;
|
|---|
| 150 | PrintAvailableGraphicsSystems ();
|
|---|
| 151 | }
|
|---|
| 152 | }
|
|---|
| 153 |
|
|---|
| 154 | #endif
|
|---|
| 155 |
|
|---|
| 156 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|