00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifdef G4VIS_BUILD_OI_DRIVER
00030
00031
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