Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ViewParameters.cc,v 1.15 2003/06/16 17:14:20 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4ViewParameters.cc,v 1.17 2004/12/07 23:41:01 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
//
//
// John Allison 19th July 1996
@@ -36,6 +36,7 @@
G4ViewParameters::G4ViewParameters ():
fDrawingStyle (wireframe),
fAuxEdgeVisible (false),
fRepStyle (polyhedron),
fCulling (true),
fCullInvisible (true),
@@ -97,7 +98,7 @@ G4double G4ViewParameters::GetCameraDistance (G4double radius) const {
cameraDistance = radius;
}
else {
cameraDistance = radius / sin (fFieldHalfAngle) - fDolly;
cameraDistance = radius / std::sin (fFieldHalfAngle) - fDolly;
}
return cameraDistance;
}
@@ -125,7 +126,7 @@ G4double G4ViewParameters::GetFrontHalfHeight (G4double nearDistance,
frontHalfHeight = radius / fZoomFactor;
}
else {
frontHalfHeight = nearDistance * tan (fFieldHalfAngle) / fZoomFactor;
frontHalfHeight = nearDistance * std::tan (fFieldHalfAngle) / fZoomFactor;
}
return frontHalfHeight;
}
@@ -220,6 +221,7 @@ void G4ViewParameters::PrintDifferences (const G4ViewParameters& v) const {
// No particular order from here on.
(fDrawingStyle != v.fDrawingStyle) ||
(fAuxEdgeVisible != v.fAuxEdgeVisible) ||
(fRepStyle != v.fRepStyle) ||
(fCulling != v.fCulling) ||
(fCullInvisible != v.fCullInvisible) ||
@@ -293,6 +295,10 @@ std::ostream& operator << (std::ostream& os, const G4ViewParameters& v) {
os << "\n Drawing style: " << v.fDrawingStyle;
os << "\n Auxiliary edges: ";
if (!v.fAuxEdgeVisible) os << "in";
os << "visible";
os << "\n Representation style: ";
switch (v.fRepStyle) {
case G4ViewParameters::polyhedron:
@@ -425,6 +431,7 @@ G4bool G4ViewParameters::operator != (const G4ViewParameters& v) const {
// No particular order from here on.
(fDrawingStyle != v.fDrawingStyle) ||
(fAuxEdgeVisible != v.fAuxEdgeVisible) ||
(fRepStyle != v.fRepStyle) ||
(fCulling != v.fCulling) ||
(fCullInvisible != v.fCullInvisible) ||