Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -34,12 +34,10 @@
|
||||
#include "G4RotationMatrix.hh"
|
||||
#include "G4ModelingParameters.hh"
|
||||
|
||||
G4VModel::G4VModel (const G4Transform3D& modelTransformation,
|
||||
const G4ModelingParameters* pMP):
|
||||
G4VModel::G4VModel (const G4ModelingParameters* pMP):
|
||||
fType ("Other"),
|
||||
fGlobalTag ("Empty"),
|
||||
fGlobalDescription ("Empty"),
|
||||
fTransform (modelTransformation),
|
||||
fpMP (pMP)
|
||||
{}
|
||||
|
||||
@@ -55,17 +53,6 @@ G4String G4VModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
|
||||
const G4VisExtent& G4VModel::GetTransformedExtent () const {
|
||||
static G4VisExtent transformedExtent;
|
||||
transformedExtent = fExtent;
|
||||
transformedExtent.Transform(fTransform);
|
||||
return transformedExtent;
|
||||
}
|
||||
|
||||
void G4VModel::SetTransformation (const G4Transform3D& transform) {
|
||||
fTransform = transform;
|
||||
}
|
||||
|
||||
G4bool G4VModel::Validate (G4bool) {
|
||||
return true;
|
||||
}
|
||||
@@ -77,15 +64,5 @@ std::ostream& operator << (std::ostream& os, const G4VModel& model) {
|
||||
if (mp) os << "\n " << *mp;
|
||||
else os << " none.";
|
||||
os << "\n Extent: " << model.fExtent;
|
||||
os << "\n Transformation: ";
|
||||
os << "\n Rotation: ";
|
||||
G4RotationMatrix rotation = model.fTransform.getRotation ();
|
||||
os << rotation.thetaX() << ", "
|
||||
<< rotation.phiX() << ", "
|
||||
<< rotation.thetaY() << ", "
|
||||
<< rotation.phiY() << ", "
|
||||
<< rotation.thetaZ() << ", "
|
||||
<< rotation.phiZ();
|
||||
os << "\n Translation: " << model.fTransform.getTranslation ();
|
||||
return os;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user