source: trunk/source/geometry/solids/test/fred/src/FredVisManager.cc @ 1316

Last change on this file since 1316 was 1316, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 4.0 KB
Line 
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// FredVisManager
28//
29// Implementation of visualization manager for Fred
30//
31
32#include "FredVisManager.hh"
33
34//
35// The following is borrowed from GEANT4's example "N02"
36//
37// Supported drivers...
38 
39#ifdef G4VIS_USE_DAWN
40#include "G4FukuiRenderer.hh"
41#endif
42 
43#ifdef G4VIS_USE_DAWNFILE
44#include "G4DAWNFILE.hh"
45#endif
46 
47#ifdef G4VIS_USE_OPACS
48#include "G4Wo.hh"
49#include "G4Xo.hh"
50#endif
51 
52#ifdef G4VIS_USE_OPENGLX
53#include "G4OpenGLImmediateX.hh"
54#include "G4OpenGLStoredX.hh"
55#endif
56 
57#ifdef G4VIS_USE_OPENGLWIN32
58#include "G4OpenGLImmediateWin32.hh"
59#include "G4OpenGLStoredWin32.hh"
60#endif
61 
62#ifdef G4VIS_USE_OPENGLXM
63#include "G4OpenGLImmediateXm.hh"
64#include "G4OpenGLStoredXm.hh"
65#endif
66 
67#ifdef G4VIS_USE_OIX
68#include "G4OpenInventorX.hh"
69#endif
70
71#ifdef G4VIS_USE_OIWIN32
72#include "G4OpenInventorWin32.hh"
73#endif
74
75#ifdef G4VIS_USE_RAYTRACERX
76#include "G4RayTracerX.hh"
77#endif
78
79#ifdef G4VIS_USE_VRML
80#include "G4VRML1.hh"
81#include "G4VRML2.hh"
82#include "G4VRML1File.hh"
83#include "G4VRML2File.hh"
84#endif
85
86//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
87
88void FredVisManager::RegisterGraphicsSystems () {
89
90#ifdef G4VIS_USE_DAWN
91  RegisterGraphicsSystem (new G4FukuiRenderer);
92#endif
93
94#ifdef G4VIS_USE_DAWNFILE
95  RegisterGraphicsSystem (new G4DAWNFILE);
96#endif
97
98#ifdef G4VIS_USE_OPACS
99  RegisterGraphicsSystem (new G4Wo);
100  RegisterGraphicsSystem (new G4Xo);
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_RAYTRACERX
127  RegisterGraphicsSystem (new G4RayTracerX);
128#endif
129 
130#ifdef G4VIS_USE_VRML
131  RegisterGraphicsSystem (new G4VRML1);
132  RegisterGraphicsSystem (new G4VRML2);
133  RegisterGraphicsSystem (new G4VRML1File);
134  RegisterGraphicsSystem (new G4VRML2File);
135#endif
136 
137  if (fVerbose > 0) {
138    G4cout <<
139      "\nYou have successfully chosen to use the following graphics systems."
140         << G4endl;
141    PrintAvailableGraphicsSystems ();
142  }
143}
Note: See TracBrowser for help on using the repository browser.