158 lines
4.8 KiB
Plaintext
158 lines
4.8 KiB
Plaintext
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// $Id: G4VisExecutive.icc,v 1.13 2006/06/29 21:28:52 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-08-01 $
|
|
//
|
|
//
|
|
// John Allison 24th January 1998.
|
|
|
|
#ifndef G4VISEXECUTIVE_ICC
|
|
#define G4VISEXECUTIVE_ICC
|
|
|
|
// Supported drivers...
|
|
|
|
// Not needing external packages or libraries...
|
|
#include "G4ASCIITree.hh"
|
|
#include "G4DAWNFILE.hh"
|
|
#include "G4GAGTree.hh"
|
|
#include "G4HepRep.hh"
|
|
#include "G4HepRepFile.hh"
|
|
#include "G4RayTracer.hh"
|
|
#include "G4TrajectoryFilterFactories.hh"
|
|
#include "G4TrajectoryModelFactories.hh"
|
|
#include "G4VRML1File.hh"
|
|
#include "G4VRML2File.hh"
|
|
|
|
// Needing external packages or libraries...
|
|
|
|
#ifdef G4VIS_USE_DAWN
|
|
#include "G4FukuiRenderer.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLX
|
|
#include "G4OpenGLImmediateX.hh"
|
|
#include "G4OpenGLStoredX.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLWIN32
|
|
#include "G4OpenGLImmediateWin32.hh"
|
|
#include "G4OpenGLStoredWin32.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLXM
|
|
#include "G4OpenGLImmediateXm.hh"
|
|
#include "G4OpenGLStoredXm.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OIX
|
|
#include "G4OpenInventorX.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OIWIN32
|
|
#include "G4OpenInventorWin32.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_RAYTRACERX
|
|
#include "G4RayTracerX.hh"
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_VRML
|
|
#include "G4VRML1.hh"
|
|
#include "G4VRML2.hh"
|
|
#endif
|
|
|
|
G4VisExecutive::G4VisExecutive () {}
|
|
|
|
void G4VisExecutive::RegisterGraphicsSystems () {
|
|
|
|
// Graphics Systems not needing external packages or libraries...
|
|
RegisterGraphicsSystem (new G4ASCIITree);
|
|
RegisterGraphicsSystem (new G4DAWNFILE);
|
|
RegisterGraphicsSystem (new G4GAGTree);
|
|
RegisterGraphicsSystem (new G4HepRep);
|
|
RegisterGraphicsSystem (new G4HepRepFile);
|
|
RegisterGraphicsSystem (new G4RayTracer);
|
|
RegisterGraphicsSystem (new G4VRML1File);
|
|
RegisterGraphicsSystem (new G4VRML2File);
|
|
|
|
// Graphics systems needing external packages or libraries...
|
|
|
|
#ifdef G4VIS_USE_DAWN
|
|
RegisterGraphicsSystem (new G4FukuiRenderer);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLX
|
|
RegisterGraphicsSystem (new G4OpenGLImmediateX);
|
|
RegisterGraphicsSystem (new G4OpenGLStoredX);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLWIN32
|
|
RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
|
|
RegisterGraphicsSystem (new G4OpenGLStoredWin32);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OPENGLXM
|
|
RegisterGraphicsSystem (new G4OpenGLImmediateXm);
|
|
RegisterGraphicsSystem (new G4OpenGLStoredXm);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OIX
|
|
RegisterGraphicsSystem (new G4OpenInventorX);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_OIWIN32
|
|
RegisterGraphicsSystem (new G4OpenInventorWin32);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_RAYTRACERX
|
|
RegisterGraphicsSystem (new G4RayTracerX);
|
|
#endif
|
|
|
|
#ifdef G4VIS_USE_VRML
|
|
RegisterGraphicsSystem (new G4VRML1);
|
|
RegisterGraphicsSystem (new G4VRML2);
|
|
#endif
|
|
|
|
}
|
|
|
|
void
|
|
G4VisExecutive::RegisterModelFactories()
|
|
{
|
|
// Trajectory draw models
|
|
RegisterModelFactory(new G4TrajectoryGenericDrawerFactory());
|
|
RegisterModelFactory(new G4TrajectoryDrawByChargeFactory());
|
|
RegisterModelFactory(new G4TrajectoryDrawByParticleIDFactory());
|
|
RegisterModelFactory(new G4TrajectoryDrawByOriginVolumeFactory());
|
|
|
|
// Trajectory filter models
|
|
RegisterModelFactory(new G4TrajectoryChargeFilterFactory());
|
|
RegisterModelFactory(new G4TrajectoryParticleFilterFactory());
|
|
RegisterModelFactory(new G4TrajectoryOriginVolumeFilterFactory());
|
|
}
|
|
|
|
#endif
|