Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VRML1.cc,v 2.4 1998/11/09 19:33:17 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VRML1.cc,v 1.3 1999/01/11 00:48:04 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// G4VRML1.cc
|
||||
// Yasuhide Sawada & Satoshi Tanaka
|
||||
@@ -19,11 +19,11 @@
|
||||
#include <stdio.h> // sscanf
|
||||
#include <stdlib.h> // getenv
|
||||
|
||||
#include "G4VScene.hh"
|
||||
#include "G4VSceneHandler.hh"
|
||||
|
||||
#include "G4VRML1.hh"
|
||||
#include "G4VRML1Scene.hh"
|
||||
#include "G4VRML1View.hh"
|
||||
#include "G4VRML1SceneHandler.hh"
|
||||
#include "G4VRML1Viewer.hh"
|
||||
|
||||
#include "G4FRClient.hh"
|
||||
|
||||
@@ -51,24 +51,24 @@ G4VRML1::~G4VRML1()
|
||||
}
|
||||
|
||||
|
||||
G4VScene* G4VRML1::CreateScene(const G4String& name)
|
||||
G4VSceneHandler* G4VRML1::CreateSceneHandler(const G4String& name)
|
||||
{
|
||||
G4VScene *p = NULL;
|
||||
G4VSceneHandler *p = NULL;
|
||||
|
||||
p = new G4VRML1Scene(*this, name);
|
||||
p = new G4VRML1SceneHandler(*this, name);
|
||||
|
||||
G4cout << G4VRML1Scene::GetSceneCount()
|
||||
G4cout << G4VRML1SceneHandler::GetSceneCount()
|
||||
<< " " << fName << " scenes extanct." << endl;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
G4VView* G4VRML1::CreateView(G4VScene& scene, const G4String& name)
|
||||
G4VViewer* G4VRML1::CreateViewer(G4VSceneHandler& scene, const G4String& name)
|
||||
{
|
||||
G4VView* pView = NULL;
|
||||
G4VViewer* pView = NULL;
|
||||
|
||||
G4VRML1Scene* pScene = (G4VRML1Scene*)&scene;
|
||||
pView = new G4VRML1View(*pScene, name);
|
||||
G4VRML1SceneHandler* pScene = (G4VRML1SceneHandler*)&scene;
|
||||
pView = new G4VRML1Viewer(*pScene, name);
|
||||
|
||||
return pView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user