BOSS 8.0.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
64G4SvcVisManager::G4SvcVisManager() {}
65
66// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
67
68void G4SvcVisManager::RegisterGraphicsSystems() {
69
70# ifdef G4VIS_USE_DAWN
71 RegisterGraphicsSystem( new G4FukuiRenderer() );
72# endif
73
74# ifdef G4VIS_USE_DAWNFILE
75 RegisterGraphicsSystem( new G4DAWNFILE );
76# endif
77
78# ifdef G4VIS_USE_OPACS
79 RegisterGraphicsSystem( new G4Wo );
80 RegisterGraphicsSystem( new G4Xo );
81# endif
82
83# ifdef G4VIS_USE_OPENGLX
84 RegisterGraphicsSystem( new G4OpenGLImmediateX );
85 RegisterGraphicsSystem( new G4OpenGLStoredX );
86# endif
87
88# ifdef G4VIS_USE_OPENGLWIN32
89 RegisterGraphicsSystem( new G4OpenGLImmediateWin32 );
90 RegisterGraphicsSystem( new G4OpenGLStoredWin32 );
91# endif
92
93# ifdef G4VIS_USE_OPENGLXM
94 RegisterGraphicsSystem( new G4OpenGLImmediateXm );
95 RegisterGraphicsSystem( new G4OpenGLStoredXm );
96# endif
97
98# ifdef G4VIS_USE_OIX
99 RegisterGraphicsSystem( new G4OpenInventorX );
100# endif
101
102# ifdef G4VIS_USE_OIWIN32
103 RegisterGraphicsSystem( new G4OpenInventorWin32 );
104# endif
105
106# ifdef G4VIS_USE_VRML
107 RegisterGraphicsSystem( new G4VRML1 );
108 RegisterGraphicsSystem( new G4VRML2 );
109# endif
110
111# ifdef G4VIS_USE_VRMLFILE
112 RegisterGraphicsSystem( new G4VRML1File );
113 RegisterGraphicsSystem( new G4VRML2File );
114# endif
115
116 if ( fVerbose > 0 )
117 {
118 G4cout << "\nYou have successfully chosen to use the following graphics systems."
119 << G4endl;
120 // PrintAvailableGraphicsSystems ();
121 }
122}
123
124#endif