source: trunk/examples/extended/parameterisations/gflash/src/ExGflashVisManager.cc@ 1209

Last change on this file since 1209 was 807, checked in by garnier, 17 years ago

update

File size: 3.9 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#ifdef G4VIS_USE
27
28#include "ExGflashVisManager.hh"
29
30// Supported drivers...
31
32#ifdef G4VIS_USE_DAWN
33#include "G4FukuiRenderer.hh"
34#endif
35
36#ifdef G4VIS_USE_DAWNFILE
37#include "G4DAWNFILE.hh"
38#endif
39
40#ifdef G4VIS_USE_OPACS
41#include "G4Wo.hh"
42#include "G4Xo.hh"
43#endif
44
45#ifdef G4VIS_USE_OPENGLX
46#include "G4OpenGLImmediateX.hh"
47#include "G4OpenGLStoredX.hh"
48#endif
49
50#ifdef G4VIS_USE_OPENGLWIN32
51#include "G4OpenGLImmediateWin32.hh"
52#include "G4OpenGLStoredWin32.hh"
53#endif
54
55#ifdef G4VIS_USE_OPENGLXM
56#include "G4OpenGLImmediateXm.hh"
57#include "G4OpenGLStoredXm.hh"
58#endif
59
60#ifdef G4VIS_USE_OIX
61#include "G4OpenInventorX.hh"
62#endif
63
64#ifdef G4VIS_USE_OIWIN32
65#include "G4OpenInventorWin32.hh"
66#endif
67
68#ifdef G4VIS_USE_RAYX
69#include "G4RayX.hh"
70#endif
71
72#ifdef G4VIS_USE_VRML
73#include "G4VRML1.hh"
74// #include "G4VRML2.hh"
75#endif
76
77#ifdef G4VIS_USE_VRMLFILE
78#include "G4VRML1File.hh"
79//#include "G4VRML2File.hh"
80#endif
81
82ExGflashVisManager::ExGflashVisManager () {}
83
84void ExGflashVisManager::RegisterGraphicsSystems () {
85
86#ifdef G4VIS_USE_DAWN
87 RegisterGraphicsSystem (new G4FukuiRenderer);
88#endif
89
90#ifdef G4VIS_USE_DAWNFILE
91 RegisterGraphicsSystem (new G4DAWNFILE);
92#endif
93
94#ifdef G4VIS_USE_OPACS
95 RegisterGraphicsSystem (new G4Wo);
96 RegisterGraphicsSystem (new G4Xo);
97#endif
98
99#ifdef G4VIS_USE_OPENGLX
100 RegisterGraphicsSystem (new G4OpenGLImmediateX);
101 RegisterGraphicsSystem (new G4OpenGLStoredX);
102#endif
103
104#ifdef G4VIS_USE_OPENGLWIN32
105 RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
106 RegisterGraphicsSystem (new G4OpenGLStoredWin32);
107#endif
108
109#ifdef G4VIS_USE_OPENGLXM
110 RegisterGraphicsSystem (new G4OpenGLImmediateXm);
111 RegisterGraphicsSystem (new G4OpenGLStoredXm);
112#endif
113
114#ifdef G4VIS_USE_OIX
115 RegisterGraphicsSystem (new G4OpenInventorX);
116#endif
117
118#ifdef G4VIS_USE_OIWIN32
119 RegisterGraphicsSystem (new G4OpenInventorWin32);
120#endif
121
122#ifdef G4VIS_USE_RAYX
123 RegisterGraphicsSystem (new G4RayX);
124#endif
125
126#ifdef G4VIS_USE_VRML
127 RegisterGraphicsSystem (new G4VRML1);
128// RegisterGraphicsSystem (new G4VRML2);
129#endif
130
131#ifdef G4VIS_USE_VRMLFILE
132 RegisterGraphicsSystem (new G4VRML1File);
133// RegisterGraphicsSystem (new G4VRML2File);
134#endif
135
136 if (fVerbose > 0) {
137 G4cout <<
138 "\nYou have successfully chosen to use the following graphics systems."
139 << endl;
140 PrintAvailableGraphicsSystems ();
141 }
142}
143
144#endif
Note: See TracBrowser for help on using the repository browser.