1 |
|
2 |
|
3 |
#ifdef G4VIS_USE |
4 |
|
5 |
#include "VisManager.hh" |
6 |
|
7 |
// Supported drivers... |
8 |
|
9 |
// Not needing external packages or libraries... |
10 |
#include "G4ASCIITree.hh" |
11 |
#include "G4DAWNFILE.hh" |
12 |
#include "G4GAGTree.hh" |
13 |
#include "G4HepRepFile.hh" |
14 |
#include "G4HepRep.hh" |
15 |
#include "G4RayTracer.hh" |
16 |
#include "G4VRML1File.hh" |
17 |
#include "G4VRML2File.hh" |
18 |
|
19 |
// Needing external packages or libraries... |
20 |
|
21 |
#ifdef G4VIS_USE_DAWN |
22 |
#include "G4FukuiRenderer.hh" |
23 |
#endif |
24 |
|
25 |
#ifdef G4VIS_USE_OPENGLX |
26 |
#include "G4OpenGLImmediateX.hh" |
27 |
#include "G4OpenGLStoredX.hh" |
28 |
#endif |
29 |
|
30 |
#ifdef G4VIS_USE_OPENGLWIN32 |
31 |
#include "G4OpenGLImmediateWin32.hh" |
32 |
#include "G4OpenGLStoredWin32.hh" |
33 |
#endif |
34 |
|
35 |
|
36 |
|
37 |
#ifdef G4VIS_USE_OIX |
38 |
#include "G4OpenInventorX.hh" |
39 |
#endif |
40 |
|
41 |
#ifdef G4VIS_USE_OIWIN32 |
42 |
#include "G4OpenInventorWin32.hh" |
43 |
#endif |
44 |
|
45 |
#ifdef G4VIS_USE_VRML |
46 |
#include "G4VRML1.hh" |
47 |
#include "G4VRML2.hh" |
48 |
#endif |
49 |
|
50 |
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
51 |
|
52 |
VisManager::VisManager () {} |
53 |
|
54 |
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
55 |
|
56 |
void VisManager::RegisterGraphicsSystems () { |
57 |
|
58 |
// Graphics Systems not needing external packages or libraries... |
59 |
RegisterGraphicsSystem (new G4ASCIITree); |
60 |
RegisterGraphicsSystem (new G4DAWNFILE); |
61 |
RegisterGraphicsSystem (new G4GAGTree); |
62 |
RegisterGraphicsSystem (new G4HepRepFile); |
63 |
RegisterGraphicsSystem (new G4HepRep); |
64 |
RegisterGraphicsSystem (new G4RayTracer); |
65 |
RegisterGraphicsSystem (new G4VRML1File); |
66 |
RegisterGraphicsSystem (new G4VRML2File); |
67 |
|
68 |
// Graphics systems needing external packages or libraries... |
69 |
|
70 |
#ifdef G4VIS_USE_DAWN |
71 |
RegisterGraphicsSystem (new G4FukuiRenderer); |
72 |
#endif |
73 |
|
74 |
#ifdef G4VIS_USE_OPENGLX |
75 |
RegisterGraphicsSystem (new G4OpenGLImmediateX); |
76 |
RegisterGraphicsSystem (new G4OpenGLStoredX); |
77 |
#endif |
78 |
|
79 |
|
80 |
|
81 |
#ifdef G4VIS_USE_OPENGLXM |
82 |
RegisterGraphicsSystem (new G4OpenGLImmediateXm); |
83 |
RegisterGraphicsSystem (new G4OpenGLStoredXm); |
84 |
#endif |
85 |
|
86 |
#ifdef G4VIS_USE_OIX |
87 |
RegisterGraphicsSystem (new G4OpenInventorX); |
88 |
#endif |
89 |
|
90 |
#ifdef G4VIS_USE_OIWIN32 |
91 |
RegisterGraphicsSystem (new G4OpenInventorWin32); |
92 |
#endif |
93 |
|
94 |
#ifdef G4VIS_USE_VRML |
95 |
RegisterGraphicsSystem (new G4VRML1); |
96 |
RegisterGraphicsSystem (new G4VRML2); |
97 |
#endif |
98 |
|
99 |
if (fVerbose > 0) { |
100 |
G4cout << |
101 |
"\nYou have successfully chosen to use the following graphics systems." |
102 |
<< G4endl; |
103 |
PrintAvailableGraphicsSystems (); |
104 |
} |
105 |
} |
106 |
|
107 |
#endif |
108 |
|
109 |
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |