Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,13 +5,15 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsCamera.cc,v 1.3.8.1 1999/12/07 20:54:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4VisCommandsCamera.cc,v 1.5 2000/01/11 17:23:25 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
|
||||
#include "G4VisCommandsCamera.hh"
|
||||
|
||||
#include "G4UnitsTable.hh"
|
||||
|
||||
void G4VisCommandCameraReset::SetValue () {
|
||||
G4VisManager* pVMan = G4VisManager::GetInstance ();
|
||||
if (pVMan -> IsValidView ()) {
|
||||
@@ -22,16 +24,20 @@ void G4VisCommandCameraReset::SetValue () {
|
||||
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 ();
|
||||
}
|
||||
G4cout << "Target point reset to centre of scene, ("
|
||||
<< G4BestUnit (pScene -> GetStandardTargetPoint ().x(), "Length")
|
||||
<< ", "
|
||||
<< G4BestUnit (pScene -> GetStandardTargetPoint ().y(), "Length")
|
||||
<< ", "
|
||||
<< G4BestUnit (pScene -> GetStandardTargetPoint ().z(), "Length")
|
||||
<< ")";
|
||||
G4cout << "\nZoom factor reset to 1.";
|
||||
G4cout << "\nDolly distance reset to 0.";
|
||||
G4cout << "\nViewpoint direction reset to +z.";
|
||||
G4cout << "\nUp vector reset to +y.";
|
||||
G4cout << G4endl;
|
||||
if (pVMan -> GetVerboseLevel () > 1) {
|
||||
pVMan -> PrintCurrentView ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user