| [529] | 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: G4OpenInventor.cc,v 1.20 2006/06/29 21:22:12 gunter Exp $
|
|---|
| [850] | 28 | // GEANT4 tag $Name: HEAD $
|
|---|
| [529] | 29 | //
|
|---|
| 30 | #ifdef G4VIS_BUILD_OI_DRIVER
|
|---|
| 31 |
|
|---|
| 32 | // this :
|
|---|
| 33 | #include "G4OpenInventor.hh"
|
|---|
| 34 |
|
|---|
| 35 | #include "HEPVis/nodes/SoBox.h"
|
|---|
| 36 | #include "HEPVis/nodes/SoTubs.h"
|
|---|
| 37 | #include "HEPVis/nodes/SoCons.h"
|
|---|
| 38 | #include "HEPVis/nodes/SoTrd.h"
|
|---|
| 39 | #include "HEPVis/nodes/SoTrap.h"
|
|---|
| 40 | #include "HEPVis/nodes/SoMarkerSet.h"
|
|---|
| 41 | #include "HEPVis/nodes/SoImageWriter.h"
|
|---|
| 42 | #include "HEPVis/nodekits/SoDetectorTreeKit.h"
|
|---|
| 43 | #include "HEPVis/actions/SoGL2PSAction.h"
|
|---|
| 44 | #include "HEPVis/actions/SoCounterAction.h"
|
|---|
| 45 | #include "HEPVis/actions/SoAlternateRepAction.h"
|
|---|
| 46 |
|
|---|
| 47 | #include "Geant4_SoPolyhedron.h"
|
|---|
| 48 |
|
|---|
| 49 | #include "G4OpenInventorSceneHandler.hh"
|
|---|
| 50 |
|
|---|
| 51 | G4OpenInventor::G4OpenInventor (
|
|---|
| 52 | const G4String name
|
|---|
| 53 | ,const G4String nickname
|
|---|
| 54 | ,G4VGraphicsSystem::Functionality f
|
|---|
| 55 | )
|
|---|
| 56 | :G4VGraphicsSystem(name,nickname,f)
|
|---|
| 57 | ,interactorManager(0)
|
|---|
| 58 | {
|
|---|
| 59 | }
|
|---|
| 60 |
|
|---|
| 61 | G4OpenInventor::~G4OpenInventor () {}
|
|---|
| 62 |
|
|---|
| 63 | void G4OpenInventor::SetInteractorManager (G4VInteractorManager* im) {
|
|---|
| 64 | interactorManager = im;
|
|---|
| 65 | }
|
|---|
| 66 | G4VInteractorManager* G4OpenInventor::GetInteractorManager () {
|
|---|
| 67 | return interactorManager;
|
|---|
| 68 | }
|
|---|
| 69 | G4VSceneHandler* G4OpenInventor::CreateSceneHandler (const G4String& name) {
|
|---|
| 70 | Initialize();
|
|---|
| 71 | G4VSceneHandler* p = new G4OpenInventorSceneHandler (*this, name);
|
|---|
| 72 | return p;
|
|---|
| 73 | }
|
|---|
| 74 |
|
|---|
| 75 | void G4OpenInventor::InitNodes()
|
|---|
| 76 | {
|
|---|
| 77 | SoBox::initClass();
|
|---|
| 78 | SoTubs::initClass();
|
|---|
| 79 | SoCons::initClass();
|
|---|
| 80 | SoTrd::initClass();
|
|---|
| 81 | SoTrap::initClass();
|
|---|
| 82 | SoDetectorTreeKit::initClass();
|
|---|
| 83 | HEPVis_SoMarkerSet::initClass();
|
|---|
| 84 | SoImageWriter::initClass();
|
|---|
| 85 | Geant4_SoPolyhedron::initClass();
|
|---|
| 86 |
|
|---|
| 87 | SoGL2PSAction::initClass();
|
|---|
| 88 | SoCounterAction::initClass();
|
|---|
| 89 | SoAlternateRepAction::initClass();
|
|---|
| 90 | }
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | #endif
|
|---|