ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimVisManager.cc
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 11/2004
2 /******************************************************************
3  * Copyright (C) 2005-2016, Hector Alvarez-Pol *
4  * All rights reserved. *
5  * *
6  * License according to GNU LESSER GPL (see lgpl-3.0.txt). *
7  * For the list of contributors see CREDITS. *
8  ******************************************************************/
9 //////////////////////////////////////////////////////////////////
10 /// \class ActarSimVisManager
11 /// Visualization manager. Common to all G4 programs.
12 /////////////////////////////////////////////////////////////////
13 
14 #ifdef G4VIS_USE
15 
16 #include "ActarSimVisManager.hh"
17 
18 // Supported drivers...
19 // Not needing external packages or libraries...
20 #include "G4ASCIITree.hh"
21 #include "G4DAWNFILE.hh"
22 #include "G4HepRepFile.hh"
23 #include "G4HepRep.hh"
24 #include "G4RayTracer.hh"
25 #include "G4VRML1File.hh"
26 #include "G4VRML2File.hh"
27 
28 // Needing external packages or libraries...
29 
30 #ifdef G4VIS_USE_DAWN
31 #include "G4FukuiRenderer.hh"
32 #endif
33 
34 #ifdef G4VIS_USE_OPENGLX
35 #include "G4OpenGLImmediateX.hh"
36 #include "G4OpenGLStoredX.hh"
37 #endif
38 
39 #ifdef G4VIS_USE_OPENGLWIN32
40 #include "G4OpenGLImmediateWin32.hh"
41 #include "G4OpenGLStoredWin32.hh"
42 #endif
43 
44 #ifdef G4VIS_USE_OPENGLXM
45 #include "G4OpenGLImmediateXm.hh"
46 #include "G4OpenGLStoredXm.hh"
47 #endif
48 
49 #ifdef G4VIS_USE_OIX
50 #include "G4OpenInventorX.hh"
51 #endif
52 
53 #ifdef G4VIS_USE_OIWIN32
54 #include "G4OpenInventorWin32.hh"
55 #endif
56 
57 #ifdef G4VIS_USE_VRML
58 #include "G4VRML1.hh"
59 #include "G4VRML2.hh"
60 #endif
61 
62 #ifdef G4VIS_USE_OPENGLQT
63 #include "G4OpenGLImmediateQt.hh"
64 #include "G4OpenGLStoredQt.hh"
65 #endif
66 
67 //////////////////////////////////////////////////////////////////
68 /// Constructor. Nothing to do.
69 ActarSimVisManager::ActarSimVisManager () {}
70 
71 //////////////////////////////////////////////////////////////////
72 /// Graphics Systems not needing external packages or libraries...
73 void ActarSimVisManager::RegisterGraphicsSystems () {
74  RegisterGraphicsSystem (new G4ASCIITree);
75  RegisterGraphicsSystem (new G4DAWNFILE);
76  RegisterGraphicsSystem (new G4HepRepFile);
77  RegisterGraphicsSystem (new G4HepRep);
78  RegisterGraphicsSystem (new G4RayTracer);
79  RegisterGraphicsSystem (new G4VRML1File);
80  RegisterGraphicsSystem (new G4VRML2File);
81 
82  // Graphics systems needing external packages or libraries...
83 #ifdef G4VIS_USE_DAWN
84  RegisterGraphicsSystem (new G4FukuiRenderer);
85 #endif
86 
87 #ifdef G4VIS_USE_OPENGLX
88  RegisterGraphicsSystem (new G4OpenGLImmediateX);
89  RegisterGraphicsSystem (new G4OpenGLStoredX);
90 #endif
91 
92 #ifdef G4VIS_USE_OPENGLWIN32
93  RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
94  RegisterGraphicsSystem (new G4OpenGLStoredWin32);
95 #endif
96 
97 #ifdef G4VIS_USE_OPENGLXM
98  RegisterGraphicsSystem (new G4OpenGLImmediateXm);
99  RegisterGraphicsSystem (new G4OpenGLStoredXm);
100 #endif
101 
102 #ifdef G4VIS_USE_OIX
103  RegisterGraphicsSystem (new G4OpenInventorX);
104 #endif
105 
106 #ifdef G4VIS_USE_OIWIN32
107  RegisterGraphicsSystem (new G4OpenInventorWin32);
108 #endif
109 
110 #ifdef G4VIS_USE_VRML
111  RegisterGraphicsSystem (new G4VRML1);
112  RegisterGraphicsSystem (new G4VRML2);
113 #endif
114 
115 #ifdef G4VIS_USE_OPENGLQT
116  RegisterGraphicsSystem (new G4OpenGLImmediateQt);
117  RegisterGraphicsSystem (new G4OpenGLStoredQt);
118 #endif
119 
120  if (fVerbose > 0) {
121  G4cout << "##################################################################"
122  << G4endl
123  << "####### ActarSimVisManager::RegisterGraphicsSystems () #######"
124  << G4endl
125  << "You have successfully chosen to use the following graphics systems."
126  << G4endl;
127  PrintAvailableGraphicsSystems (all);
128  }
129 }
130 
131 #endif