LBNEVisManager.cc
Go to the documentation of this file.
1 // $Id: LBNEVisManager.cc,v 1.1 2011/07/13 16:20:52 loiacono Exp $
2 
3 #ifdef G4VIS_USE
4 
5 #include "LBNEVisManager.hh"
6 
7 // Supported drivers...
8 
9 // Not needing external packages or libraries...
10 #include "G4ASCIITree.hh"
11 #include "G4DAWNFILE.hh"
12 #include "G4ASCIITree.hh"
13 #include "G4HepRepFile.hh"
14 #include "G4HepRep.hh"
15 #include "G4RayTracer.hh"
16 #include "G4VRML1File.hh"
17 #include "G4VRML2File.hh"
18 
19 #include "LBNFWormPlot.hh"
20 
21 #include "G4HitFilterFactories.hh"
22 #include "G4TrajectoryFilterFactories.hh"
23 #include "G4TrajectoryModelFactories.hh"
24 
25 #include "G4TrajectoryDrawByParticleID.hh"
26 
27 // Needing external packages or libraries...
28 
29 #ifdef G4VIS_USE_DAWN
30 #include "G4FukuiRenderer.hh"
31 #endif
32 
33 #ifdef G4VIS_USE_OPENGLX
34 #include "G4OpenGLImmediateX.hh"
35 #include "G4OpenGLStoredX.hh"
36 #endif
37 
38 #ifdef G4VIS_USE_OPENGLWIN32
39 #include "G4OpenGLImmediateWin32.hh"
40 #include "G4OpenGLStoredWin32.hh"
41 #endif
42 
43 #ifdef G4VIS_USE_OPENGLXM
44 #include "G4OpenGLImmediateXm.hh"
45 #include "G4OpenGLStoredXm.hh"
46 #endif
47 
48 #ifdef G4VIS_USE_OIX
49 #include "G4OpenInventorX.hh"
50 #include "G4OpenInventorXt.hh"
51 #include "G4OpenInventorXtExtended.hh"
52 #endif
53 
54 #ifdef G4VIS_USE_OIWIN32
55 #include "G4OpenInventorWin32.hh"
56 #endif
57 
58 #ifdef G4VIS_USE_OPENGLQT
59 #include "G4OpenGLImmediateQt.hh"
60 #include "G4OpenGLStoredQt.hh"
61 #endif
62 
63 #ifdef G4VIS_USE_VRML
64 #include "G4VRML1.hh"
65 #include "G4VRML2.hh"
66 #endif
67 
68 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
69 
70 LBNEVisManager::LBNEVisManager () {}
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
74 void LBNEVisManager::RegisterGraphicsSystems () {
75 
76  // Graphics Systems not needing external packages or libraries...
77  RegisterGraphicsSystem (new G4ASCIITree);
78  RegisterGraphicsSystem (new G4DAWNFILE);
79  RegisterGraphicsSystem (new G4ASCIITree);
80  RegisterGraphicsSystem (new G4HepRepFile);
81  RegisterGraphicsSystem (new G4HepRep);
82  RegisterGraphicsSystem (new G4RayTracer);
83  RegisterGraphicsSystem (new G4VRML1File);
84  RegisterGraphicsSystem (new G4VRML2File);
85  RegisterGraphicsSystem (new LBNFWormPlot);
86 
87  // Graphics systems needing external packages or libraries...
88 
89 #ifdef G4VIS_USE_DAWN
90  RegisterGraphicsSystem (new G4FukuiRenderer);
91 #endif
92 
93 #ifdef G4VIS_USE_OPENGLX
94  RegisterGraphicsSystem (new G4OpenGLImmediateX);
95  RegisterGraphicsSystem (new G4OpenGLStoredX);
96 #endif
97 
98 #ifdef G4VIS_USE_OPENGLWIN32
99  RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
100  RegisterGraphicsSystem (new G4OpenGLStoredWin32);
101 #endif
102 
103 #ifdef G4VIS_USE_OPENGLXM
104  RegisterGraphicsSystem (new G4OpenGLImmediateXm);
105  RegisterGraphicsSystem (new G4OpenGLStoredXm);
106 #endif
107 
108 #ifdef G4VIS_USE_OIX
109  RegisterGraphicsSystem (new G4OpenInventorX);
110  RegisterGraphicsSystem (new G4OpenInventorXt);
111  RegisterGraphicsSystem (new G4OpenInventorXtExtended);
112 #endif
113 
114 #ifdef G4VIS_USE_OIWIN32
115  RegisterGraphicsSystem (new G4OpenInventorWin32);
116 #endif
117 
118 #ifdef G4VIS_USE_OPENGLQT
119  RegisterGraphicsSystem (new G4OpenGLImmediateQt);
120  RegisterGraphicsSystem (new G4OpenGLStoredQt);
121 #endif
122 
123 #ifdef G4VIS_USE_VRML
124  RegisterGraphicsSystem (new G4VRML1);
125  RegisterGraphicsSystem (new G4VRML2);
126 #endif
127 
128 // if (fVerbose > 0) {
129 // G4cout <<
130 // "\nYou have successfully chosen to use the following graphics systems."
131 // << G4endl;
132 // PrintAvailableGraphicsSystems ();
133 // }
134 // No longer available in G4 v4.10.2
135 }
136 
137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138 void LBNEVisManager::RegisterModelFactories()
139 {
140  // Trajectory draw models
141  RegisterModelFactory(new G4TrajectoryGenericDrawerFactory());
142  RegisterModelFactory(new G4TrajectoryDrawByChargeFactory());
143  RegisterModelFactory(new G4TrajectoryDrawByParticleIDFactory());
144  RegisterModelFactory(new G4TrajectoryDrawByOriginVolumeFactory());
145  RegisterModelFactory(new G4TrajectoryDrawByAttributeFactory());
146 
147  // Trajectory filter models
148  RegisterModelFactory(new G4TrajectoryChargeFilterFactory());
149  RegisterModelFactory(new G4TrajectoryParticleFilterFactory());
150  RegisterModelFactory(new G4TrajectoryOriginVolumeFilterFactory());
151  RegisterModelFactory(new G4TrajectoryAttributeFilterFactory());
152 
153  // Hit filter models
154  RegisterModelFactory(new G4HitAttributeFilterFactory());
155 
156 }
157 
158 #endif
159 
160 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......