G4OpenInventor.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 #ifdef G4VIS_BUILD_OI_DRIVER
00030 
00031 // this :
00032 #include "G4OpenInventor.hh"
00033 
00034 #include "HEPVis/nodes/SoBox.h"
00035 #include "HEPVis/nodes/SoTubs.h"
00036 #include "HEPVis/nodes/SoCons.h"
00037 #include "HEPVis/nodes/SoTrd.h"
00038 #include "HEPVis/nodes/SoTrap.h"
00039 #include "HEPVis/nodes/SoMarkerSet.h"
00040 #include "HEPVis/nodes/SoImageWriter.h"
00041 #include "HEPVis/nodekits/SoDetectorTreeKit.h"
00042 #include "HEPVis/actions/SoGL2PSAction.h"
00043 #include "HEPVis/actions/SoCounterAction.h"
00044 #include "HEPVis/actions/SoAlternateRepAction.h"
00045 
00046 #include "Geant4_SoPolyhedron.h"
00047 
00048 #include "G4OpenInventorSceneHandler.hh"
00049 
00050 G4OpenInventor::G4OpenInventor (
00051  const G4String name
00052 ,const G4String nickname
00053 ,G4VGraphicsSystem::Functionality f
00054 )
00055 :G4VGraphicsSystem(name,nickname,f)
00056 ,interactorManager(0)
00057 {
00058 }
00059 
00060 G4OpenInventor::~G4OpenInventor () {}
00061 
00062 void G4OpenInventor::SetInteractorManager (G4VInteractorManager* im) {
00063   interactorManager = im;
00064 }
00065 G4VInteractorManager* G4OpenInventor::GetInteractorManager () {
00066   return interactorManager;
00067 }
00068 G4VSceneHandler* G4OpenInventor::CreateSceneHandler (const G4String& name) {
00069   Initialize();
00070   G4VSceneHandler* p = new G4OpenInventorSceneHandler (*this, name);
00071   return    p;
00072 }
00073 
00074 void G4OpenInventor::InitNodes()
00075 {
00076   SoBox::initClass();
00077   SoTubs::initClass();
00078   SoCons::initClass();
00079   SoTrd::initClass();
00080   SoTrap::initClass();
00081   SoDetectorTreeKit::initClass();
00082   HEPVis_SoMarkerSet::initClass();
00083   SoImageWriter::initClass();
00084   Geant4_SoPolyhedron::initClass();
00085 
00086   SoGL2PSAction::initClass();
00087   SoCounterAction::initClass();
00088   SoAlternateRepAction::initClass();
00089 }
00090 
00091 
00092 
00093 #endif

Generated on Mon May 27 17:49:12 2013 for Geant4 by  doxygen 1.4.7