BOSS
7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
G4SvcVisManager.cpp
Go to the documentation of this file.
1
//------------------------------------------------------------------
2
//
3
// ClassName: G4SvcVisManager
4
//
5
// Description: Visalization manager
6
//
7
// Author: Charles Leggett
8
//
9
10
#ifdef G4VIS_USE
11
12
#include "
G4Svc/G4SvcVisManager.h
"
13
14
// Supported drivers...
15
16
#ifdef G4VIS_USE_DAWN
17
#include "G4FukuiRenderer.hh"
18
#endif
19
20
#ifdef G4VIS_USE_DAWNFILE
21
#include "G4DAWNFILE.hh"
22
#endif
23
24
#ifdef G4VIS_USE_OPACS
25
#include "G4Wo.hh"
26
#include "G4Xo.hh"
27
#endif
28
29
#ifdef G4VIS_USE_OPENGLX
30
#include "G4OpenGLImmediateX.hh"
31
#include "G4OpenGLStoredX.hh"
32
#endif
33
34
#ifdef G4VIS_USE_OPENGLWIN32
35
#include "G4OpenGLImmediateWin32.hh"
36
#include "G4OpenGLStoredWin32.hh"
37
#endif
38
39
#ifdef G4VIS_USE_OPENGLXM
40
#include "G4OpenGLImmediateXm.hh"
41
#include "G4OpenGLStoredXm.hh"
42
#endif
43
44
#ifdef G4VIS_USE_OIX
45
#include "G4OpenInventorX.hh"
46
#endif
47
48
#ifdef G4VIS_USE_OIWIN32
49
#include "G4OpenInventorWin32.hh"
50
#endif
51
52
#ifdef G4VIS_USE_VRML
53
#include "G4VRML1.hh"
54
#include "G4VRML2.hh"
55
#endif
56
57
#ifdef G4VIS_USE_VRMLFILE
58
#include "G4VRML1File.hh"
59
#include "G4VRML2File.hh"
60
#endif
61
62
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
63
64
65
G4SvcVisManager::G4SvcVisManager () {}
66
67
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
68
69
void
G4SvcVisManager::RegisterGraphicsSystems () {
70
71
#ifdef G4VIS_USE_DAWN
72
RegisterGraphicsSystem (
new
G4FukuiRenderer());
73
#endif
74
75
#ifdef G4VIS_USE_DAWNFILE
76
RegisterGraphicsSystem (
new
G4DAWNFILE);
77
#endif
78
79
#ifdef G4VIS_USE_OPACS
80
RegisterGraphicsSystem (
new
G4Wo);
81
RegisterGraphicsSystem (
new
G4Xo);
82
#endif
83
84
#ifdef G4VIS_USE_OPENGLX
85
RegisterGraphicsSystem (
new
G4OpenGLImmediateX);
86
RegisterGraphicsSystem (
new
G4OpenGLStoredX);
87
#endif
88
89
#ifdef G4VIS_USE_OPENGLWIN32
90
RegisterGraphicsSystem (
new
G4OpenGLImmediateWin32);
91
RegisterGraphicsSystem (
new
G4OpenGLStoredWin32);
92
#endif
93
94
#ifdef G4VIS_USE_OPENGLXM
95
RegisterGraphicsSystem (
new
G4OpenGLImmediateXm);
96
RegisterGraphicsSystem (
new
G4OpenGLStoredXm);
97
#endif
98
99
#ifdef G4VIS_USE_OIX
100
RegisterGraphicsSystem (
new
G4OpenInventorX);
101
#endif
102
103
#ifdef G4VIS_USE_OIWIN32
104
RegisterGraphicsSystem (
new
G4OpenInventorWin32);
105
#endif
106
107
#ifdef G4VIS_USE_VRML
108
RegisterGraphicsSystem (
new
G4VRML1);
109
RegisterGraphicsSystem (
new
G4VRML2);
110
#endif
111
112
#ifdef G4VIS_USE_VRMLFILE
113
RegisterGraphicsSystem (
new
G4VRML1File);
114
RegisterGraphicsSystem (
new
G4VRML2File);
115
#endif
116
117
if
(fVerbose > 0) {
118
G4cout <<
119
"\nYou have successfully chosen to use the following graphics systems."
120
<< G4endl;
121
//PrintAvailableGraphicsSystems ();
122
}
123
}
124
125
#endif
G4SvcVisManager.h
source
Simulation
G4Svc
G4Svc-00-01-56
src
G4SvcVisManager.cpp
Generated by
1.9.6