source: trunk/source/processes/electromagnetic/lowenergy/test/hTest/src/hTestVisManager.cc @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 4.6 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//---------------------------------------------------------------------------
27//
28//---------------------------------------------------------------------------
29//
30// ClassName:   hTestVisManager
31//
32// 
33// Authors:   08.04.01  V.Ivanchenko take from John Allison Examples
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39
40//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
41//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
42
43#ifdef G4VIS_USE
44
45#include "hTestVisManager.hh"
46
47// Supported drivers...
48
49#ifdef G4VIS_USE_DAWN
50#include "G4FukuiRenderer.hh"
51#endif
52
53#ifdef G4VIS_USE_DAWNFILE
54#include "G4DAWNFILE.hh"
55#endif
56
57#ifdef G4VIS_USE_OPACS
58#include "G4Wo.hh"
59#include "G4Xo.hh"
60#endif
61
62#ifdef G4VIS_USE_OPENGLX
63#include "G4OpenGLImmediateX.hh"
64#include "G4OpenGLStoredX.hh"
65#endif
66
67#ifdef G4VIS_USE_OPENGLWIN32
68#include "G4OpenGLImmediateWin32.hh"
69#include "G4OpenGLStoredWin32.hh"
70#endif
71
72#ifdef G4VIS_USE_OPENGLXM
73#include "G4OpenGLImmediateXm.hh"
74#include "G4OpenGLStoredXm.hh"
75#endif
76
77#ifdef G4VIS_USE_OIX
78#include "G4OpenInventorX.hh"
79#endif
80
81#ifdef G4VIS_USE_OIWIN32
82#include "G4OpenInventorWin32.hh"
83#endif
84
85#ifdef G4VIS_USE_RAYX
86#include "G4RayX.hh"
87#endif
88
89#ifdef G4VIS_USE_VRML
90#include "G4VRML1.hh"
91// #include "G4VRML2.hh"
92#endif
93
94#ifdef G4VIS_USE_VRMLFILE
95#include "G4VRML1File.hh"
96//#include "G4VRML2File.hh"
97#endif
98
99//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
100
101hTestVisManager::hTestVisManager () {}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
104
105void hTestVisManager::RegisterGraphicsSystems () {
106
107#ifdef G4VIS_USE_DAWN
108  RegisterGraphicsSystem (new G4FukuiRenderer);
109#endif
110
111#ifdef G4VIS_USE_DAWNFILE
112  RegisterGraphicsSystem (new G4DAWNFILE);
113#endif
114
115#ifdef G4VIS_USE_OPACS
116  RegisterGraphicsSystem (new G4Wo);
117  RegisterGraphicsSystem (new G4Xo);
118#endif
119
120#ifdef G4VIS_USE_OPENGLX
121  RegisterGraphicsSystem (new G4OpenGLImmediateX);
122  RegisterGraphicsSystem (new G4OpenGLStoredX);
123#endif
124
125#ifdef G4VIS_USE_OPENGLWIN32
126  RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
127  RegisterGraphicsSystem (new G4OpenGLStoredWin32);
128#endif
129
130#ifdef G4VIS_USE_OPENGLXM
131  RegisterGraphicsSystem (new G4OpenGLImmediateXm);
132  RegisterGraphicsSystem (new G4OpenGLStoredXm);
133#endif
134
135#ifdef G4VIS_USE_OIX
136  RegisterGraphicsSystem (new G4OpenInventorX);
137#endif
138
139#ifdef G4VIS_USE_OIWIN32
140  RegisterGraphicsSystem (new G4OpenInventorWin32);
141#endif
142
143#ifdef G4VIS_USE_RAYX
144  RegisterGraphicsSystem (new G4RayX);
145#endif
146
147#ifdef G4VIS_USE_VRML
148  RegisterGraphicsSystem (new G4VRML1);
149// RegisterGraphicsSystem (new G4VRML2);
150#endif
151
152#ifdef G4VIS_USE_VRMLFILE
153  RegisterGraphicsSystem (new G4VRML1File);
154// RegisterGraphicsSystem (new G4VRML2File);
155#endif
156
157  if (fVerbose > 0) {
158    G4cout <<
159      "\nYou have successfully chosen to use the following graphics systems."
160         << G4endl;
161    PrintAvailableGraphicsSystems ();
162  }
163}
164
165#endif
166
167//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracBrowser for help on using the repository browser.