Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsCamera.cc,v 2.2 1998/07/23 02:18:55 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4VisCommandsCamera.cc,v 1.3 1999/01/11 00:48:31 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,15 +15,19 @@
void G4VisCommandCameraReset::SetValue () {
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
const G4SceneData& sd = pVMan -> GetCurrentSceneData ();
const G4Scene* pScene = pVMan -> GetCurrentScene ();
G4ViewParameters& vp = pVMan -> SetCurrentViewParameters ();
vp.SetCurrentTargetPoint (sd.GetStandardTargetPoint ());
vp.SetCurrentTargetPoint (pScene -> GetStandardTargetPoint ());
vp.SetZoomFactor (1.);
vp.SetDolly (0.);
vp.SetViewpointDirection (G4Vector3D (0., 0., 1.));
vp.SetUpVector (G4Vector3D (0., 1., 0.));
if (pVMan -> GetVerboseLevel () > 0) {
G4cout << "Target point reset";
G4cout << "\nZoom factor reset to 1.";
G4cout << "\nDolly distance reset to 0.";
G4cout << "\nViewpoint direction reset to +z.";
G4cout << "\nUp vector set to +y.";
G4cout << endl;
if (pVMan -> GetVerboseLevel () > 1) {
pVMan -> PrintCurrentView ();