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