source: trunk/source/geometry/magneticfield/test/NTST/src/NTSTVisManager.cc@ 1331

Last change on this file since 1331 was 1199, checked in by garnier, 16 years ago

nvx fichiers dans CVS

File size: 4.4 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// $Id: NTSTVisManager.cc,v 1.3 2006/06/29 18:26:38 gunter Exp $
27// GEANT4 tag $Name: HEAD $
28//
29//
30// John Allison 24th January 1998.
31
32//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
34
35#ifdef G4VIS_USE
36
37#include "NTSTVisManager.hh"
38
39// Supported drivers...
40
41#ifdef G4VIS_USE_DAWN
42#include "G4FukuiRenderer.hh"
43#endif
44
45#ifdef G4VIS_USE_DAWNFILE
46#include "G4DAWNFILE.hh"
47#endif
48
49#ifdef G4VIS_USE_OPACS
50#include "G4Wo.hh"
51#include "G4Xo.hh"
52#endif
53
54#ifdef G4VIS_USE_OPENGLX
55#include "G4OpenGLImmediateX.hh"
56#include "G4OpenGLStoredX.hh"
57#endif
58
59#ifdef G4VIS_USE_OPENGLWIN32
60#include "G4OpenGLImmediateWin32.hh"
61#include "G4OpenGLStoredWin32.hh"
62#endif
63
64#ifdef G4VIS_USE_OPENGLXM
65#include "G4OpenGLImmediateXm.hh"
66#include "G4OpenGLStoredXm.hh"
67#endif
68
69#ifdef G4VIS_USE_OIX
70#include "G4OpenInventorX.hh"
71#endif
72
73#ifdef G4VIS_USE_OIWIN32
74#include "G4OpenInventorWin32.hh"
75#endif
76
77#ifdef G4VIS_USE_RAYX
78#include "G4RayX.hh"
79#endif
80
81#ifdef G4VIS_USE_VRML
82#include "G4VRML1.hh"
83// #include "G4VRML2.hh"
84#endif
85
86#ifdef G4VIS_USE_VRMLFILE
87#include "G4VRML1File.hh"
88//#include "G4VRML2File.hh"
89#endif
90
91//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
92
93NTSTVisManager::NTSTVisManager () {}
94
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
96
97void NTSTVisManager::RegisterGraphicsSystems () {
98
99#ifdef G4VIS_USE_DAWN
100 RegisterGraphicsSystem (new G4FukuiRenderer);
101#endif
102
103#ifdef G4VIS_USE_DAWNFILE
104 RegisterGraphicsSystem (new G4DAWNFILE);
105#endif
106
107#ifdef G4VIS_USE_OPACS
108 RegisterGraphicsSystem (new G4Wo);
109 RegisterGraphicsSystem (new G4Xo);
110#endif
111
112#ifdef G4VIS_USE_OPENGLX
113 RegisterGraphicsSystem (new G4OpenGLImmediateX);
114 RegisterGraphicsSystem (new G4OpenGLStoredX);
115#endif
116
117#ifdef G4VIS_USE_OPENGLWIN32
118 RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
119 RegisterGraphicsSystem (new G4OpenGLStoredWin32);
120#endif
121
122#ifdef G4VIS_USE_OPENGLXM
123 RegisterGraphicsSystem (new G4OpenGLImmediateXm);
124 RegisterGraphicsSystem (new G4OpenGLStoredXm);
125#endif
126
127#ifdef G4VIS_USE_OIX
128 RegisterGraphicsSystem (new G4OpenInventorX);
129#endif
130
131#ifdef G4VIS_USE_OIWIN32
132 RegisterGraphicsSystem (new G4OpenInventorWin32);
133#endif
134
135#ifdef G4VIS_USE_RAYX
136 RegisterGraphicsSystem (new G4RayX);
137#endif
138
139#ifdef G4VIS_USE_VRML
140 RegisterGraphicsSystem (new G4VRML1);
141// RegisterGraphicsSystem (new G4VRML2);
142#endif
143
144#ifdef G4VIS_USE_VRMLFILE
145 RegisterGraphicsSystem (new G4VRML1File);
146// RegisterGraphicsSystem (new G4VRML2File);
147#endif
148
149 if (fVerbose > 0) {
150 G4cout <<
151 "\nYou have successfully chosen to use the following graphics systems."
152 << G4endl;
153 PrintAvailableGraphicsSystems ();
154 }
155}
156
157#endif
158
159//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracBrowser for help on using the repository browser.