source: trunk/geant4/visualization/management/include/G4VisExecutive.icc @ 564

Last change on this file since 564 was 564, checked in by garnier, 17 years ago

r569@mac-90108: laurentgarnier | 2007-08-14 15:07:23 +0200
commenatires et suppression de double rotation

  • Property svn:mime-type set to text/cpp
File size: 5.3 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// $Id: G4VisExecutive.icc,v 1.14 2006/09/12 18:55:45 tinslay Exp $
28// GEANT4 tag $Name: geant4-08-02-patch-01 $
29//
30//
31// John Allison 24th January 1998.
32
33#ifndef G4VISEXECUTIVE_ICC
34#define G4VISEXECUTIVE_ICC
35
36// Supported drivers...
37
38// Not needing external packages or libraries...
39#include "G4ASCIITree.hh"
40#include "G4DAWNFILE.hh"
41#include "G4GAGTree.hh"
42#include "G4HepRep.hh"
43#include "G4HepRepFile.hh"
44#include "G4RayTracer.hh"
45#include "G4HitFilterFactories.hh"
46#include "G4TrajectoryFilterFactories.hh"
47#include "G4TrajectoryModelFactories.hh"
48#include "G4VRML1File.hh"
49#include "G4VRML2File.hh"
50
51// Needing external packages or libraries...
52
53#ifdef G4VIS_USE_DAWN
54#include "G4FukuiRenderer.hh"
55#endif
56
57#ifdef G4VIS_USE_OPENGLX
58#include "G4OpenGLImmediateX.hh"
59#include "G4OpenGLStoredX.hh"
60#endif
61
62#ifdef G4VIS_USE_OPENGLWIN32
63#include "G4OpenGLImmediateWin32.hh"
64#include "G4OpenGLStoredWin32.hh"
65#endif
66
67#ifdef G4VIS_USE_OPENGLXM
68#include "G4OpenGLImmediateXm.hh"
69#include "G4OpenGLStoredXm.hh"
70#endif
71
72#ifdef G4VIS_USE_OPENGLQT
73#include "G4OpenGLImmediateQt.hh"
74#include "G4OpenGLStoredQt.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_RAYTRACERX
86#include "G4RayTracerX.hh"
87#endif
88
89#ifdef G4VIS_USE_VRML
90#include "G4VRML1.hh"
91#include "G4VRML2.hh"
92#endif
93
94G4VisExecutive::G4VisExecutive () {}
95
96void G4VisExecutive::RegisterGraphicsSystems () {
97
98  // Graphics Systems not needing external packages or libraries...
99  RegisterGraphicsSystem (new G4ASCIITree);
100  RegisterGraphicsSystem (new G4DAWNFILE);
101  RegisterGraphicsSystem (new G4GAGTree);
102  RegisterGraphicsSystem (new G4HepRep);
103  RegisterGraphicsSystem (new G4HepRepFile);
104  RegisterGraphicsSystem (new G4RayTracer);
105  RegisterGraphicsSystem (new G4VRML1File);
106  RegisterGraphicsSystem (new G4VRML2File);
107  // Graphics systems needing external packages or libraries...
108
109#ifdef G4VIS_USE_DAWN
110  RegisterGraphicsSystem (new G4FukuiRenderer);
111#endif
112
113#ifdef G4VIS_USE_OPENGLX
114  RegisterGraphicsSystem (new G4OpenGLImmediateX);
115  RegisterGraphicsSystem (new G4OpenGLStoredX);
116#endif
117
118#ifdef G4VIS_USE_OPENGLWIN32
119  RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
120  RegisterGraphicsSystem (new G4OpenGLStoredWin32);
121#endif
122
123#ifdef G4VIS_USE_OPENGLXM
124  RegisterGraphicsSystem (new G4OpenGLImmediateXm);
125  RegisterGraphicsSystem (new G4OpenGLStoredXm);
126#endif
127
128#ifdef G4VIS_USE_OPENGLQT
129  RegisterGraphicsSystem (new G4OpenGLImmediateQt);
130  RegisterGraphicsSystem (new G4OpenGLStoredQt);
131#endif
132
133#ifdef G4VIS_USE_OIX
134  RegisterGraphicsSystem (new G4OpenInventorX);
135#endif
136
137#ifdef G4VIS_USE_OIWIN32
138  RegisterGraphicsSystem (new G4OpenInventorWin32);
139#endif
140
141#ifdef G4VIS_USE_RAYTRACERX
142  RegisterGraphicsSystem (new G4RayTracerX);
143#endif
144
145#ifdef G4VIS_USE_VRML
146  RegisterGraphicsSystem (new G4VRML1);
147  RegisterGraphicsSystem (new G4VRML2);
148#endif
149
150}
151
152void
153G4VisExecutive::RegisterModelFactories()
154{
155   // Trajectory draw models
156   RegisterModelFactory(new G4TrajectoryGenericDrawerFactory());       
157   RegisterModelFactory(new G4TrajectoryDrawByChargeFactory());
158   RegisterModelFactory(new G4TrajectoryDrawByParticleIDFactory());
159   RegisterModelFactory(new G4TrajectoryDrawByOriginVolumeFactory()); 
160   RegisterModelFactory(new G4TrajectoryDrawByAttributeFactory()); 
161
162   // Trajectory filter models
163   RegisterModelFactory(new G4TrajectoryChargeFilterFactory());
164   RegisterModelFactory(new G4TrajectoryParticleFilterFactory());
165   RegisterModelFactory(new G4TrajectoryOriginVolumeFilterFactory());
166   RegisterModelFactory(new G4TrajectoryAttributeFilterFactory());
167
168   // Hit filter models
169   RegisterModelFactory(new G4HitAttributeFilterFactory());
170}
171
172#endif
Note: See TracBrowser for help on using the repository browser.