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: 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 ();
|
||||
|
||||
Reference in New Issue
Block a user